/* =========================================================
   LUXCODE — Design system
   Clean, flat, social-network style. Light & dark themes.
   ========================================================= */

/* Сброс отступов страницы: без этого браузер оставляет свои
   стандартные margin/фон у html и body, из-за чего по краям
   окна видны белые полосы/окантовки — особенно заметно на
   скруглённых углах .lx-wrap и при нецелых значениях зума. */
html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  overscroll-behavior-y: none;
  background: #0b1220;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}
html::-webkit-scrollbar, body::-webkit-scrollbar { width: 4px; }
html::-webkit-scrollbar-track, body::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-thumb, body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 10px; }
html::-webkit-scrollbar-thumb:hover, body::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }
/* держим фон страницы синхронным со светлой темой,
   чтобы за пределами .lx-wrap не мелькал тёмный/белый край */
html:has(.lx-wrap.light-theme), body:has(.lx-wrap.light-theme) {
  background: #ffffff;
  scrollbar-color: rgba(15,23,42,0.15) transparent;
}
html:has(.lx-wrap.light-theme)::-webkit-scrollbar-thumb,
body:has(.lx-wrap.light-theme)::-webkit-scrollbar-thumb { background: rgba(15,23,42,0.15); }

:root {
  --lx-nav-h: 74px; /* запасное значение, реальное подставит JS */
  /* Dark theme (default) */
  --lx-bg: #0b1220;
  --lx-bg-rgb: 11, 18, 32;
  --lx-card: #111a2c;
  --lx-border: #1e293b;
  --lx-accent: #3b82f6;
  --lx-accent-2: #60a5fa;
  --lx-accent-soft: rgba(59, 130, 246, 0.16);
  --lx-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  --lx-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --lx-text: #e5e9f0;
  --lx-muted: #94a3b8;
  --lx-text-strong: #f1f5f9;
  --lx-overlay-03: rgba(255,255,255,0.03);
  --lx-overlay-04: rgba(255,255,255,0.04);
  --lx-overlay-06: rgba(255,255,255,0.06);
  --lx-overlay-08: rgba(255,255,255,0.08);
  --lx-overlay-10: rgba(255,255,255,0.1);
  --lx-bubble-theirs: #1e293b;
  --lx-input-bg: #0f1a2c;
  --lx-popover-bg: #111a2c;
  --lx-danger: #f43f5e;
  --lx-danger-soft: rgba(244,63,94,0.14);
  --lx-success: #10b981;
  --lx-success-soft: rgba(16,185,129,0.14);
}

.lx-wrap.light-theme {
  --lx-bg: #ffffff;
  --lx-bg-rgb: 255, 255, 255;
  --lx-card: #ffffff;
  --lx-border: #f1f5f9;
  --lx-accent: #2563eb;
  --lx-accent-2: #2563eb;
  --lx-accent-soft: #eff6ff;
  --lx-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  --lx-text: #1f2937;
  --lx-muted: #64748b;
  --lx-text-strong: #0f172a;
  --lx-overlay-03: rgba(15,23,42,0.025);
  --lx-overlay-04: rgba(15,23,42,0.035);
  --lx-overlay-06: rgba(15,23,42,0.05);
  --lx-overlay-08: rgba(15,23,42,0.06);
  --lx-overlay-10: rgba(15,23,42,0.08);
  --lx-bubble-theirs: #f1f5f9;
  --lx-input-bg: #f8fafc;
  --lx-popover-bg: #ffffff;
  --lx-danger: #ef4444;
  --lx-danger-soft: rgba(239,68,68,0.08);
  --lx-success: #10b981;
  --lx-success-soft: rgba(16,185,129,0.08);
}

.lx-wrap.light-theme .lx-post-card,
.lx-wrap.light-theme .lx-stat-card,
.lx-wrap.light-theme #messages-layout,
.lx-wrap.light-theme .lx-modal-card,
.lx-wrap.light-theme .lx-news-card,
.lx-wrap.light-theme .profile-header {
  box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 1px 3px rgba(15,23,42,0.06);
}

.lx-wrap.light-theme .lx-badge { background: var(--lx-accent-soft); color: var(--lx-accent); border-color: var(--lx-accent); }
.lx-wrap.light-theme .lx-badge-admin { background: rgba(239,68,68,0.08); color:#dc2626; border-color:rgba(239,68,68,0.22); }
.lx-wrap.light-theme .lx-badge-mod { background: var(--lx-accent-soft); color: var(--lx-accent); border-color: var(--lx-accent); }
.lx-wrap.light-theme .lx-btn-danger { background: rgba(239,68,68,0.08); color:#dc2626; border-color:rgba(239,68,68,0.22); }
.lx-wrap.light-theme .lx-btn-mod { background: var(--lx-accent-soft); color: var(--lx-accent); border-color: var(--lx-accent); }
.lx-wrap.light-theme .lx-status-line { color: var(--lx-accent); }
.lx-wrap.light-theme .lx-scroll-thin { scrollbar-color: rgba(15,23,42,0.15) transparent; }
.lx-wrap.light-theme .lx-scroll-thin::-webkit-scrollbar-thumb { background: rgba(15,23,42,0.15); }
.lx-wrap.light-theme .lx-side-link.active { background: var(--lx-accent-soft); color: var(--lx-accent); }
.lx-wrap.light-theme .lx-side-link:hover { background: var(--lx-overlay-04); }
/* ============ Тёмно-зелёная ============ */
.lx-wrap.theme-green {
  --lx-bg: #0a1512;
  --lx-bg-rgb: 10, 21, 18;
  --lx-card: #0f1f1a;
  --lx-border: #1c3229;
  --lx-accent: #10b981;
  --lx-accent-2: #34d399;
  --lx-accent-soft: rgba(16, 185, 129, 0.16);
  --lx-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --lx-bubble-theirs: #1c3229;
  --lx-input-bg: #0d1a16;
  --lx-popover-bg: #0f1f1a;
}
/* ============ Тёмно-фиолетовая ============ */
.lx-wrap.theme-purple {
  --lx-bg: #130b1f;
  --lx-bg-rgb: 19, 11, 31;
  --lx-card: #1a1129;
  --lx-border: #2e1f42;
  --lx-accent: #8b5cf6;
  --lx-accent-2: #a78bfa;
  --lx-accent-soft: rgba(139, 92, 246, 0.16);
  --lx-gradient: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  --lx-bubble-theirs: #2e1f42;
  --lx-input-bg: #170f24;
  --lx-popover-bg: #1a1129;
}
/* ============ Светлая розовая ============ */
.lx-wrap.light-theme.theme-pink {
  --lx-bg: #fff8fb;
  --lx-bg-rgb: 255, 248, 251;
  --lx-card: #ffffff;
  --lx-border: #fce7f0;
  --lx-accent: #ec4899;
  --lx-accent-2: #ec4899;
  --lx-accent-soft: #fdf2f8;
  --lx-gradient: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
  --lx-bubble-theirs: #fce7f0;
  --lx-input-bg: #fdf2f8;
  --lx-popover-bg: #ffffff;
}
/* ============ Светлая голубая ============ */
.lx-wrap.light-theme.theme-blue {
  --lx-bg: #f5fbff;
  --lx-bg-rgb: 245, 251, 255;
  --lx-card: #ffffff;
  --lx-border: #e0f2fe;
  --lx-accent: #0ea5e9;
  --lx-accent-2: #0ea5e9;
  --lx-accent-soft: #f0f9ff;
  --lx-gradient: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  --lx-bubble-theirs: #e0f2fe;
  --lx-input-bg: #f0f9ff;
    --lx-popover-bg: #ffffff;
}
/* ============ Тёмная золотая (премиум) ============ */
.lx-wrap.theme-gold {
  --lx-bg: #0c0a08;
  --lx-bg-rgb: 12, 10, 8;
  --lx-card: #16130f;
  --lx-border: #2e2415;
  --lx-accent: #d4af37;
  --lx-accent-2: #f0c75e;
  --lx-accent-soft: rgba(212, 175, 55, 0.16);
  --lx-gradient: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
  --lx-bubble-theirs: #2e2415;
  --lx-input-bg: #120f0a;
  --lx-popover-bg: #16130f;
}
/* ============ Тёмная винная (премиум) ============ */
.lx-wrap.theme-wine {
  --lx-bg: #150a0d;
  --lx-bg-rgb: 21, 10, 13;
  --lx-card: #1f1015;
  --lx-border: #3a1a22;
  --lx-accent: #be123c;
  --lx-accent-2: #e11d48;
  --lx-accent-soft: rgba(190, 18, 60, 0.16);
  --lx-gradient: linear-gradient(135deg, #be123c 0%, #881337 100%);
  --lx-bubble-theirs: #3a1a22;
  --lx-input-bg: #170b0e;
  --lx-popover-bg: #1f1015;
}
/* ============ Светлая шампань (премиум) ============ */
.lx-wrap.light-theme.theme-champagne {
  --lx-bg: #fdfaf3;
  --lx-bg-rgb: 253, 250, 243;
  --lx-card: #ffffff;
  --lx-border: #f0e6cf;
  --lx-accent: #a8791a;
  --lx-accent-2: #a8791a;
  --lx-accent-soft: #fbf3e0;
  --lx-gradient: linear-gradient(135deg, #c9a227 0%, #a8791a 100%);
  --lx-bubble-theirs: #f0e6cf;
  --lx-input-bg: #fbf3e0;
  --lx-popover-bg: #ffffff;
}

/* ============ Переключатель тем в настройках ============ */
.lx-theme-swatches { display:flex; gap:10px; flex-wrap:wrap; }
.lx-theme-swatch {
  width:30px; height:30px; border-radius:50%; border:2px solid transparent;
  cursor:pointer; padding:0; position:relative; box-shadow:0 0 0 1px var(--lx-border);
}
.lx-theme-swatch.active { border-color: var(--lx-text-strong); }
.lx-theme-swatch.active::after {
  content:'✓'; position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:14px; font-weight:800; text-shadow:0 1px 2px rgba(0,0,0,0.45);
}
/* =========================================================
   BASE
   ========================================================= */

.lx-wrap * { box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.lx-wrap {
  background: var(--lx-bg); color: var(--lx-text); min-height: 100dvh;
  position: relative; overflow-x: hidden;
  transition: background 0.2s ease, color 0.2s ease;
}
.lx-wrap h1, .lx-wrap h2, .lx-wrap h3, .lx-wrap h4 { color: var(--lx-text-strong); font-weight: 800; letter-spacing: -0.01em; }

/* Icons */
.lx-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; display: block; }
.lx-icon-sm { width: 14px; height: 14px; stroke-width: 2; }
.lx-icon-lg { width: 22px; height: 22px; }

/* =========================================================
   APP SHELL / SIDEBAR / TOPBAR
   ========================================================= */

.lx-app-shell { display: flex; min-height: 100dvh; align-items: stretch; }

.lx-sidebar {
  width: 252px; flex-shrink: 0; display: flex; flex-direction: column; gap: 3px;
  padding: 22px 14px; border-right: none;
}
.lx-logo-sidebar {
  font-weight: 900; font-size: 27px; letter-spacing: -0.02em; color: var(--lx-accent);
  padding: 6px 12px 22px; cursor: pointer;
  display: flex; align-items: center; gap: 9px; width: 100%;
}
.lx-logo-icon { width: 26px; height: 26px; flex-shrink: 0; }
.lx-auth-logo {
  max-width: 400px; width: 100%; margin: 32px auto 0;
  display: flex; align-items: flex-end; justify-content: center; gap: 2px;
}
.lx-auth-logo span { line-height: 1; }
.lx-auth-logo-icon { margin-bottom: 0px; }
.lx-auth-logo-icon { width: 40px; height: 40px; flex-shrink: 0; }
.lx-auth-logo span { font-weight: 900; font-size: 34px; letter-spacing: -0.02em; color: var(--lx-accent); }
.lx-auth-tagline {
  max-width: 400px; width: 100%; margin: 8px auto 0;
  text-align: center;
}
.lx-auth-tagline-main {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--lx-muted); opacity: 0.8;
}
.lx-auth-tagline-cycle-word {
  display: inline-block;
  text-align: left;
  white-space: nowrap;
  transition: opacity 0.28s ease, transform 0.28s ease;
  opacity: 1; transform: translateY(0);
}
.lx-auth-tagline-cycle-word.lx-tagline-out {
  opacity: 0; transform: translateY(-3px);
}
@media (prefers-reduced-motion: reduce) {
  .lx-auth-tagline-cycle-word { transition: none !important; }
}
#auth-loading-overlay {
  position: fixed; inset: 0; z-index: 1000000;
  background: var(--lx-bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.45s ease;
}
#auth-loading-overlay.visible { opacity: 1; pointer-events: all; }
#auth-loading-overlay.hidden { display: none; }
.lx-auth-loading-logo {
  width: 64px; height: 64px; margin-bottom: 24px;
  animation: lx-auth-logo-grow 1s cubic-bezier(0.34,1.56,0.64,1) forwards,
             lx-auth-logo-glow 2.2s ease-in-out 1s infinite;
}
.lx-auth-loading-logo-icon { width: 100%; height: 100%; }
@keyframes lx-auth-logo-grow {
  0% { transform: scale(0.55); opacity: 0; }
  60% { transform: scale(1.18); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes lx-auth-logo-glow {
  0%, 100% { filter: drop-shadow(0 0 0px rgba(249,115,22,0)); }
  50% { filter: drop-shadow(0 0 20px rgba(249,115,22,0.5)); }
}
.lx-auth-loading-text {
  font-weight: 900; font-size: 30px; letter-spacing: 0.04em; color: var(--lx-accent);
  opacity: 0; animation: lx-auth-text-fade 0.6s ease 0.45s forwards;
  display: flex; align-items: center; gap: 2px;
}
@keyframes lx-auth-text-fade { to { opacity: 1; } }
.lx-auth-loading-dots span { animation: lx-auth-dot-blink 1.4s infinite; opacity: 0; }
.lx-auth-loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.lx-auth-loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes lx-auth-dot-blink { 0%, 80%, 100% { opacity: 0; } 40% { opacity: 1; } }
.lx-auth-loading-sub {
  margin-top: 8px; font-size: 13px; color: var(--lx-muted);
  opacity: 0; animation: lx-auth-text-fade 0.6s ease 0.65s forwards;
}
@media (prefers-reduced-motion: reduce) {
  .lx-auth-loading-logo, .lx-auth-loading-text, .lx-auth-loading-sub, .lx-auth-loading-dots span { animation: none !important; opacity: 1 !important; }
}
/* --- Auth card: premium glow + glass border --- */
.lx-auth-card {
  max-width: 400px; margin: 8px auto 0; background: var(--lx-card);
  padding: 30px; border-radius: 16px;
  border: 1px solid var(--lx-border);
  border-top-color: rgba(255,255,255,0.14);
  border-bottom-color: rgba(0,0,0,0.3);
  box-shadow: 0 0 70px color-mix(in srgb, var(--lx-accent) 20%, transparent), 0 20px 50px rgba(0,0,0,0.35);
}

/* --- Auth card: button extra glow (только эта кнопка, не весь сайт) --- */
#auth-submit-btn, #auth-confirm-btn {
  box-shadow: 0 4px 22px color-mix(in srgb, var(--lx-accent) 45%, transparent) !important;
}
#auth-submit-btn:hover, #auth-confirm-btn:hover {
  box-shadow: 0 6px 28px color-mix(in srgb, var(--lx-accent) 60%, transparent) !important;
}

/* --- Auth card: custom checkboxes --- */
.lx-auth-check {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  font-size: 12px; color: var(--lx-muted); margin-bottom: 8px;
}
.lx-auth-check input {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.lx-auth-check-box {
  flex-shrink: 0; width: 17px; height: 17px; margin-top: 1px;
  border-radius: 5px; border: 1.5px solid var(--lx-border);
  background: var(--lx-overlay-06);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}
.lx-auth-check-box::after {
  content: ""; position: absolute; left: 5px; top: 1.5px;
  width: 4px; height: 8px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.15s ease;
}
.lx-auth-check input:checked ~ .lx-auth-check-box {
  background: var(--lx-gradient); border-color: transparent;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lx-accent) 15%, transparent);
}
.lx-auth-check input:checked ~ .lx-auth-check-box::after {
  transform: rotate(45deg) scale(1);
}
.lx-auth-check input:focus-visible ~ .lx-auth-check-box {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lx-accent) 35%, transparent);
}
.lx-auth-check-link {
  color: var(--lx-accent-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lx-auth-check-link:hover { color: var(--lx-accent); }
.lx-wrap:has(#page-auth.active) .lx-sidebar,
.lx-wrap:has(#page-auth.active) .lx-topbar-search,
.lx-wrap:has(#page-auth.active) .lx-global-fab,
.lx-wrap:has(#page-auth.active) .lx-global-compose-menu {
  display: none;
}
.lx-user-count-badge {
  font-size: 11.5px;
  color: var(--lx-muted);
  padding: 0 12px 18px;
  margin-top: -8px;
}
.lx-user-count-badge span {
  color: var(--lx-text-strong);
  font-weight: 700;
}
.lx-side-link {
  display:flex; align-items:center; gap:14px; padding:11px 14px; border-radius:12px;
  background:transparent; border:none; color: var(--lx-text); font-size:14.5px; font-weight:600;
  cursor:pointer; text-align:left; width:100%; font-family: inherit; transition: background 0.15s, color 0.15s;
}
.lx-side-link:hover { background: var(--lx-overlay-06); }
.lx-side-link:active { background: var(--lx-overlay-10); transition: background 0.05s; }
.lx-side-link.active { background: var(--lx-accent-soft); color: var(--lx-accent-2); }
.lx-side-icon { position:relative; width:22px; height: 22px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.lx-side-label { flex:1; white-space: nowrap; }
.lx-side-divider { height:1px; background:var(--lx-border); margin:10px 8px; }
.lx-sidebar { transition: width 0.18s ease; }
.lx-sidebar-header { display:flex; align-items:center; justify-content:space-between; gap:6px; padding: 6px 6px 22px 12px; }
.lx-sidebar-header .lx-logo-sidebar { padding: 0; }
.lx-sidebar-toggle-btn {
  display:flex; align-items:center; justify-content:center; width:32px; height:32px; flex-shrink:0;
  border-radius:8px; background:transparent; border:none; color:var(--lx-muted); cursor:pointer;
}
.lx-sidebar-toggle-btn:hover { background: var(--lx-overlay-06); }
.lx-sidebar-toggle-btn .lx-icon { width:18px; height:18px; }
.lx-sidebar.lx-sidebar-collapsed .lx-sidebar-header { justify-content:center; }
.lx-sidebar.lx-sidebar-collapsed .lx-logo-sidebar { display: none; }
.lx-collapse-arrow { transition: transform 0.18s ease; }
.lx-sidebar.lx-sidebar-collapsed { width: 78px; }
.lx-sidebar.lx-sidebar-collapsed .lx-side-label,
.lx-sidebar.lx-sidebar-collapsed .lx-logo-sidebar span { display: none; }
.lx-sidebar.lx-sidebar-collapsed .lx-side-link { justify-content: center; gap: 0; padding: 11px 0; }
.lx-sidebar.lx-sidebar-collapsed .lx-side-divider { width: 60%; margin: 10px auto; }
.lx-sidebar.lx-sidebar-collapsed .lx-logo-sidebar { justify-content: center; padding: 6px 0 22px; }
.lx-sidebar.lx-sidebar-collapsed .lx-collapse-arrow { transform: rotate(180deg); }
.lx-side-login { background: var(--lx-gradient); color:#fff !important; margin-top:6px; box-shadow: 0 4px 14px rgba(37,99,235,0.3); }
.lx-side-login .lx-icon { stroke: #fff; }
.lx-mobile-menu-btn { display: none; }

.lx-content { flex:1; min-width:0; display:flex; flex-direction:column; min-height:0; }
.lx-page-body { padding: 26px 32px 60px; flex:1; min-width:0; width: 100%; display:flex; flex-direction:column; min-height: 0; }
.lx-wrap:has(#page-messages.active) .lx-page-body {
  overflow: hidden;
  padding-bottom: 0;
}

@media (max-width: 768px) {
  .lx-wrap:has(#page-messages.active) .lx-page-body {
    padding: 0;
  }
}
.lx-body-row {
  display:flex; align-items:flex-start; gap:28px;
  flex:1; min-height:0; width:100%;
  max-width:1180px; margin:0 auto;
}

.lx-right-col {
  display:none;
  width:300px; min-width:220px; flex-shrink:1;
  position:sticky; top:20px;
  padding-top:26px;
}

/* показываем правую колонку только на Ленте */
.lx-wrap:has(#page-home.active) .lx-right-col {
  display:flex; flex-direction:column; gap:16px;
}

/* содержимое "Топ пользователей" — только для Ленты, в Профиле пусто */
.lx-right-col-feed { display:none; }
.lx-wrap:has(#page-home.active) .lx-right-col-feed {
  display:flex; flex-direction:column; gap:12px;
}
.lx-side-disabled { opacity: 0.4; cursor: not-allowed; }
.lx-side-label em { display:block; font-size:10px; font-style:normal; color:var(--lx-muted); font-weight:400; }
#page-messages.active {
  flex:1; display:flex; flex-direction:column; min-height:0;
  height: calc(100dvh - 90px);
  max-height: calc(100dvh - 90px);
  overflow: hidden;
}

@media (max-width: 768px) {
  #page-messages.active {
    height: calc(100dvh - var(--lx-nav-h));
    max-height: calc(100dvh - var(--lx-nav-h));
    overflow: hidden;
  }
}

@media (max-width: 900px) { .lx-main-layout { grid-template-columns: 1fr; } .lx-stats-grid { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 768px) {
  .lx-app-shell { flex-direction: column; }
  .lx-sidebar {
    position: fixed; left:16px; right:16px; bottom: calc(12px + env(safe-area-inset-bottom)); top:auto; width:auto;
    flex-direction: row; align-items:center; justify-content: center; gap: 8vw; padding: 6px 4px;
    border: none; border-radius: 999px;
    background: var(--lx-card); z-index: 100; overflow: visible;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .lx-logo-sidebar { display: none; }
  .lx-side-link { flex:0 0 auto; flex-direction:column; gap:3px; padding:10px 18px; width:auto; min-width:0; border-radius:999px; display: none; }
  .lx-side-icon { width:26px; height:26px; }
  .lx-side-icon .lx-icon { width:25px; height:25px; }
  .lx-side-label { display:none; }
  .lx-side-divider { display: none; }
  .lx-side-login { background: transparent; box-shadow: none; color: var(--lx-accent-2) !important; }
  .lx-side-login .lx-icon { stroke: var(--lx-accent-2); }
  .lx-content { padding-bottom: var(--lx-nav-h); }
  .lx-page-body { padding: 16px; }

  .lx-right-col { display:none !important; }
  .profile-top-side, .profile-body-side { display:none !important; }
  /* показываем только 4 пункта в нужном порядке */
  .lx-mobile-menu-btn { display: flex; order: 1; }
  .lx-sidebar .lx-side-link[data-route=""] { display: flex; order: 2; }
  #nav-cabinet-btn { display: flex; order: 3; }
  #nav-messages-btn { display: flex; order: 4; }
}

/* =========================================================
   BUTTONS / INPUTS / BADGES
   ========================================================= */

.lx-btn {
  background: var(--lx-gradient); color: #fff; border: none; padding: 10px 18px;
  border-radius: 10px; font-weight: 700; font-size: 13.5px; cursor: pointer; transition: all 0.2s;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.25) !important; text-decoration: none; display: inline-flex; align-items: center; gap: 7px;
}
.lx-btn .lx-icon { stroke: #fff; }
.lx-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35) !important; }
.lx-btn-icon-only { padding: 10px 12px; height: 38px; box-sizing: border-box; display:inline-flex; align-items:center; justify-content:center; }

.lx-btn-sec {
  background: var(--lx-overlay-06); color: var(--lx-text-strong); border: 1px solid var(--lx-border);
  padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 13px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; transition: background 0.15s, border-color 0.15s;
}
.lx-btn-sec:hover { background: var(--lx-overlay-10); border-color: var(--lx-accent-2); color: var(--lx-accent-2); }

.lx-btn-follow {
  background: var(--lx-accent); color: #fff; border: none;
  padding: 7px 18px; border-radius: 20px; font-weight: 700; font-size: 13px; cursor: pointer;
}
.lx-btn-follow.following { background: var(--lx-overlay-10); color: var(--lx-muted); }
.lx-btn-danger { background: var(--lx-danger-soft); color: var(--lx-danger); border: 1px solid rgba(244,63,94,0.35); font-size: 11.5px; padding: 5px 10px; border-radius: 8px; cursor: pointer; display:inline-flex; align-items:center; gap:6px; }
.lx-btn-mod { background: var(--lx-accent-soft); color: var(--lx-accent-2); border: 1px solid rgba(59,130,246,0.35); font-size: 11.5px; padding: 5px 10px; border-radius: 8px; cursor: pointer; }
.conv-list-col { padding: 16px; }
.chat-col { padding: 20px; }
.lx-fab {
  position:absolute; bottom:16px; right:16px; width:52px; height:52px; border-radius:50%;
  background: var(--lx-gradient); border:none; cursor:pointer; box-shadow: 0 6px 20px rgba(37,99,235,0.4) !important;
  z-index:5; display:flex; align-items:center; justify-content:center; color:#fff;
}
.lx-fab .lx-icon { stroke:#fff; width:22px; height:22px; }

.lx-avatar-sm { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.lx-avatar-lg { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid var(--lx-card); box-shadow: 0 0 0 1px var(--lx-border); }

.lx-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 700; background: var(--lx-accent-soft); border: 1px solid rgba(59,130,246,0.30); color: var(--lx-accent-2); margin-right: 4px; margin-bottom: 4px; }
.lx-badge-admin { background: var(--lx-danger-soft); border-color: rgba(244,63,94,0.30); color: var(--lx-danger); }
.lx-name-badge {
  width:16px; height:16px; object-fit:contain;
  margin-left:4px; vertical-align:middle; flex-shrink:0;
}
#cv-name .lx-name-badge {
  width: 24px;
  height: 24px;
  margin-left: 6px;
}
.lx-name-effect {
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: lx-name-shimmer 3s linear infinite;
}
@keyframes lx-name-shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.lx-badge-mod { background: var(--lx-accent-soft); border-color: rgba(59,130,246,0.30); color: var(--lx-accent-2); }

.lx-input, .lx-select, .lx-textarea { width: 100%; background: var(--lx-input-bg); border: 1px solid var(--lx-border); color: var(--lx-text); padding: 11px 13px; border-radius: 10px; margin-bottom: 12px; outline: none; font-size: 13.5px; transition: border-color 0.15s; }
.lx-input:focus, .lx-select:focus, .lx-textarea:focus { border-color: var(--lx-accent-2); }
.lx-input::placeholder, .lx-textarea::placeholder { color: var(--lx-muted); }

.lx-search-wrap { position: relative; margin-bottom: 12px; }
.lx-search-wrap .lx-search-input { margin-bottom: 0; padding-left: 40px; border-radius: 24px; background: var(--lx-overlay-04); }
.lx-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--lx-muted); pointer-events: none; }
.lx-input-icon-btn { background: none; border: none; cursor: pointer; padding: 0; line-height: 1; color: var(--lx-muted); display:flex; align-items:center; position: absolute; bottom: 11px; right: 12px; }
.lx-input-icon-btn:hover { color: var(--lx-accent-2); }

.lx-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 14px; margin-bottom: 24px; }
.lx-status-line { font-size: 13px; color: var(--lx-accent-2); font-weight: 600; margin-bottom: 4px; min-height: 18px; }
.lx-profile-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.lx-stat-card { background: var(--lx-overlay-03); border: 1px solid var(--lx-border); padding: 16px; border-radius: 14px; text-align: center; }
.lx-stat-num { font-size: 22px; font-weight: 800; color: var(--lx-text-strong); }
.lx-stat-label { font-size: 12px; color: var(--lx-muted); margin-top: 2px; }

.lx-main-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }

/* =========================================================
   FEED / POST CARDS  (social-network style)
   ========================================================= */

.lx-post-card {
  background: var(--lx-card); border: 1px solid var(--lx-border); border-radius: 16px;
  padding: 20px; display: flex; flex-direction: column; justify-content: space-between;
  margin-bottom: 14px; transition: border-color 0.15s;
}
.lx-post-card:hover { border-color: var(--lx-accent-2); }
/* ================= ОПРОСЫ ================= */
.lx-poll-toggle-active {
  background: var(--lx-accent-soft) !important;
  color: var(--lx-accent-2) !important;
  border-color: rgba(59,130,246,0.4) !important;
}

.lx-poll-builder {
  background: var(--lx-overlay-03);
  border: 1px solid var(--lx-border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
}
.lx-poll-builder-label {
  font-size: 12px; font-weight: 700; color: var(--lx-accent-2);
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 10px;
}
.lx-poll-option-row { display: flex; align-items: center; gap: 8px; }
.lx-poll-option-row .lx-poll-option-input { margin-bottom: 8px; }
.lx-poll-option-remove {
  background: var(--lx-overlay-06); border: 1px solid var(--lx-border); color: var(--lx-muted);
  width: 30px; height: 30px; min-width: 30px; border-radius: 8px; cursor: pointer;
  margin-bottom: 8px; font-size: 13px; transition: all 0.15s;
}
.lx-poll-option-remove:hover { background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.4); color: #ef4444; }
.lx-poll-remove-all { background: none; border: none; color: var(--lx-muted); font-size: 12px; cursor: pointer; padding: 4px; }
.lx-poll-remove-all:hover { color: #ef4444; }

/* --- виджет опроса в карточке мысли (премиальный вид) --- */
.lx-poll-widget { margin: 10px 0 14px; }

.lx-poll-vote-option {
  display: block; width: 100%; text-align: left;
  background: var(--lx-overlay-04);
  border: 1.5px solid var(--lx-border);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 13.5px; font-weight: 600; color: var(--lx-text-strong);
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.lx-poll-vote-option:hover {
  border-color: var(--lx-accent-2);
  background: var(--lx-accent-soft);
  transform: translateX(2px);
}
.lx-poll-vote-option:active { transform: scale(0.99); }
.lx-poll-vote-option:disabled { opacity: 0.6; cursor: default; transform: none; }

.lx-poll-result-option {
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: space-between;
  border: 1.5px solid var(--lx-border);
  border-radius: 12px;
  padding: 11px 16px;
  margin-bottom: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--lx-text-strong);
  background: var(--lx-overlay-03);
}
.lx-poll-result-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--lx-gradient);
  opacity: 0.16;
  border-radius: 12px;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}
.lx-poll-result-option.lx-poll-result-mine { border-color: var(--lx-accent-2); }
.lx-poll-result-option.lx-poll-result-mine .lx-poll-result-fill { opacity: 0.26; }
.lx-poll-result-text { position: relative; z-index: 1; }
.lx-poll-result-pct { position: relative; z-index: 1; font-weight: 800; color: var(--lx-accent-2); }

.lx-poll-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 4px; font-size: 11.5px; color: var(--lx-muted);
}
.lx-poll-anon-tag { display: inline-flex; align-items: center; gap: 4px; }
.lx-post-title { font-size: 17px; font-weight: 700; margin: 8px 0; cursor: pointer; color: var(--lx-text-strong); text-decoration: none; display: block; line-height: 1.35; }

.lx-auth-tabs { display: flex; border-bottom: 1px solid var(--lx-border); margin-bottom: 20px; }
.lx-auth-tab { flex: 1; text-align: center; padding: 10px; cursor: pointer; font-weight: 600; color: var(--lx-muted); border-bottom: 2px solid transparent; }
.lx-auth-tab.active { color: var(--lx-text-strong); border-color: var(--lx-accent-2); }

.lx-filter-btn { background: var(--lx-overlay-04); border: 1px solid var(--lx-border); color: var(--lx-muted); padding: 7px 15px; border-radius: 20px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.lx-filter-btn.active { background: var(--lx-accent); color: #fff; border-color: transparent; }

.lx-page { display: none; }
.lx-page.active { display: block; }
#page-messages.active { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.lx-comment-box { background: var(--lx-overlay-03); border: 1px solid var(--lx-border); border-radius: 12px; padding: 12px; margin-bottom: 8px; }

.lx-modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100dvh; background: rgba(3,7,18,0.72); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.lx-modal-card { background: var(--lx-card); border: 1px solid var(--lx-border); border-radius: 18px; width: 90%; max-width: 520px; padding: 28px; box-shadow: 0 20px 60px rgba(0,0,0,0.35); }
.lx-modal-card-scroll { max-height: 88vh; overflow-y: auto; }
.lx-chat-embed-wrap { position: relative; width: 300px; max-width: 100%; }
.lx-chat-embed { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.lx-chat-embed iframe { width: 100% !important; height: 100% !important; border: 0; display: block; }
.lx-chat-embed-expand { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,0.6); color: #fff; border: none; border-radius: 6px; width: 30px; height: 30px; cursor: pointer; font-size: 15px; line-height: 1; }
.lx-chat-embed-expand:hover { background: rgba(0,0,0,0.8); }
#video-viewer-content { width: min(860px, 92vw); aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
#video-viewer-content iframe { width: 100% !important; height: 100% !important; border: 0; }

.ql-toolbar { background: var(--lx-overlay-04); border-color: var(--lx-border) !important; border-radius: 10px 10px 0 0; }
.ql-container { background: var(--lx-input-bg); border-color: var(--lx-border) !important; color: var(--lx-text); border-radius: 0 0 10px 10px; min-height: 180px; font-size: 14.5px; }
#vacancy-quill-editor .ql-editor {
  max-height: 260px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}
#vacancy-quill-editor .ql-editor::-webkit-scrollbar { width: 4px; }
#vacancy-quill-editor .ql-editor::-webkit-scrollbar-track { background: transparent; }
#vacancy-quill-editor .ql-editor::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 10px; }
#vacancy-quill-editor .ql-editor::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }
.lx-wrap.light-theme #vacancy-quill-editor .ql-editor { scrollbar-color: rgba(15,23,42,0.15) transparent; }
.lx-wrap.light-theme #vacancy-quill-editor .ql-editor::-webkit-scrollbar-thumb { background: rgba(15,23,42,0.15); }
#news-quill-editor .ql-editor {
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}
#news-quill-editor .ql-editor::-webkit-scrollbar { width: 4px; }
#news-quill-editor .ql-editor::-webkit-scrollbar-track { background: transparent; }
#news-quill-editor .ql-editor::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 10px; }
#news-quill-editor .ql-editor::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }
.lx-wrap.light-theme #news-quill-editor .ql-editor { scrollbar-color: rgba(15,23,42,0.15) transparent; }
.lx-wrap.light-theme #news-quill-editor .ql-editor::-webkit-scrollbar-thumb { background: rgba(15,23,42,0.15); }
.ql-stroke { stroke: var(--lx-text) !important; } .ql-fill { fill: var(--lx-text) !important; } .ql-picker { color: var(--lx-text) !important; }

.hidden { display: none !important; }

/* GAMIFICATION */
.lx-level-card { background: var(--lx-card); border: 1px solid var(--lx-border); border-radius: 16px; padding: 20px; margin-bottom: 20px; }
.lx-level-title { font-size: 16px; font-weight: 800; color: #d97706; }
.lx-progress-track { width: 100%; height: 9px; background: var(--lx-overlay-06); border-radius: 20px; overflow: hidden; margin-top: 10px; }
.lx-progress-fill { height: 100%; background: var(--lx-gradient); border-radius: 20px; transition: width 0.4s ease; }
.lx-progress-fill.gold { background: var(--lx-gold); }
.lx-progress-label { display: flex; justify-content: space-between; font-size: 11px; color: var(--lx-muted); margin-top: 6px; }

.lx-ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 14px; }
.lx-ach-item { border-radius: 14px; padding: 14px 10px; text-align: center; border: 1px solid var(--lx-border); background: var(--lx-overlay-03); opacity: 0.4; filter: grayscale(1); }
.lx-ach-item.unlocked { opacity: 1; filter: none; background: var(--lx-accent-soft); border-color: rgba(59,130,246,0.35); }
.lx-ach-icon { font-size: 24px; display: block; margin-bottom: 6px; }
.lx-ach-label { font-size: 11px; font-weight: 700; color: var(--lx-text-strong); }
.lx-ach-desc { font-size: 9.5px; color: var(--lx-muted); margin-top: 2px; display: block; }

.lx-streak-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.35); color: #d97706; padding: 6px 14px; border-radius: 20px; font-weight: 700; font-size: 13px; }

.lx-project-card { background: var(--lx-overlay-03); border: 1px solid var(--lx-border); border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.lx-project-card a { color: var(--lx-accent-2); font-size: 12px; text-decoration: none; }

/* ==================== ПРЕМИУМ-КАРТОЧКИ НОВОСТЕЙ (превью) ==================== */
.lx-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.lx-news-card {
  background: var(--lx-card); border: 1px solid var(--lx-border); border-radius: 16px;
  overflow: hidden; cursor: pointer; position: relative; display: flex; flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.lx-news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
  border-color: var(--lx-accent-2);
}
.lx-news-card-cover {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block;
  background: var(--lx-gradient);
}
.lx-news-card-cover-empty {
  width: 100%; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center;
  font-size: 32px; background: var(--lx-gradient);
}
.lx-news-card-pin {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: rgba(250,204,21,0.92); color: #1a1400; font-size: 10.5px; font-weight: 700;
  padding: 3px 9px; border-radius: 20px; display: flex; align-items: center; gap: 4px;
}
.lx-news-card-del {
  position: absolute; top: 8px; right: 8px; z-index: 2; width: 28px; height: 28px; padding: 0;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); border: none; color: #fff; cursor: pointer;
  transition: background 0.15s;
}
.lx-news-card-del:hover { background: var(--lx-danger); }
.lx-news-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.lx-news-card-date { font-size: 11.5px; color: var(--lx-muted); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.lx-news-card-title {
  font-size: 16px; font-weight: 800; color: var(--lx-text-strong); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lx-news-card-teaser {
  font-size: 13px; line-height: 1.55; color: var(--lx-muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ==================== ПОПАП ЧТЕНИЯ НОВОСТИ ==================== */
#news-read-modal .lx-modal-card.lx-news-read-card {
  max-width: 680px; width: 92%; max-height: 88vh; padding: 0; overflow: hidden; position: relative;
  border-radius: 20px; display: flex; flex-direction: column;
}
.lx-news-read-scroll { flex: 1; min-height: 0; overflow-y: auto; }
.lx-news-read-hero {
  position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; background: var(--lx-gradient);
}
.lx-news-read-hero.lx-no-cover { aspect-ratio: 21/9; }
.lx-news-read-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.lx-news-read-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(3,7,18,0.94) 0%, rgba(3,7,18,0.55) 42%, rgba(3,7,18,0.05) 75%);
}
.lx-news-read-hero-content { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 28px 20px; }
.lx-news-read-meta { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.75); letter-spacing: 0.01em; }
.lx-news-read-title { font-size: 23px; font-weight: 800; margin: 8px 0 0; line-height: 1.28; color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,0.35); }
.lx-news-read-body { padding: 26px 30px 32px; font-size: 15px; line-height: 1.75; color: var(--lx-text); }
#news-read-modal .lx-modal-close-btn { position: absolute; top: 16px; right: 16px; z-index: 4; background: rgba(0,0,0,0.45); backdrop-filter: blur(6px); color: #fff; border-color: transparent; }
#news-read-modal .lx-modal-close-btn:hover { background: var(--lx-danger); color: #fff; }
.lx-completeness-wrap { margin-bottom: 18px; }

.lx-notif-badge { position: absolute; top: -4px; right: -4px; background: var(--lx-danger); color: #fff; font-size: 10px; font-weight: 800; min-width: 16px; height: 16px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 3px; }
.lx-notif-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; border: 1px solid var(--lx-border); margin-bottom: 8px; cursor: pointer; background: var(--lx-overlay-03); transition: background 0.15s; }
.lx-notif-item:hover { background: var(--lx-overlay-06); }
.lx-notif-item.unread { background: var(--lx-accent-soft); border-color: rgba(59,130,246,0.3); }
.lx-notif-icon {
  width: 38px; height: 38px; border-radius: 50%; background: var(--lx-overlay-06);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--lx-accent-2);
}
.lx-notif-text { font-size: 13.5px; color: var(--lx-text); }
.lx-notif-time { font-size: 11px; color: var(--lx-muted); margin-top: 4px; }

/* =========================================================
   PROFILE PAGE
   ========================================================= */
.profile-card { position: relative; margin-bottom: 24px; }

.profile-cover {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 220px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--lx-overlay-06);
}
.profile-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.lx-camera-btn {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--lx-card); border: 1px solid var(--lx-border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--lx-muted); transition: color 0.15s, border-color 0.15s;
}
.lx-camera-btn:hover { color: var(--lx-accent-2); border-color: var(--lx-accent-2); }
.lx-camera-btn .lx-icon { width: 15px; height: 15px; }
.profile-cover-camera { position: absolute; bottom: 12px; right: 12px; opacity: 0.85; z-index: 5; }

.profile-avatar-wrap {
  position: relative;
  z-index: 4;
  width: fit-content;
  margin: -48px 0 0 28px;
}
.profile-avatar-wrap .lx-avatar-lg { width: 128px; height: 128px; border-width: 5px; border-color: var(--lx-bg); }
.profile-avatar-camera { position: absolute; bottom: 4px; right: 4px; z-index: 5; }

.chat-info-avatar-wrap { position: relative; z-index: 4; width: fit-content; }
.chat-info-avatar-wrap .lx-avatar-lg { width: 96px; height: 96px; }
.chat-info-avatar-camera { position: absolute; bottom: 0; right: 0; z-index: 5; }

.profile-action-buttons {
  position: absolute; top: 236px; right: 28px;
  display: flex; gap: 10px; z-index: 3;
}
.profile-square-btn {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--lx-card); border: 1px solid var(--lx-border); color: var(--lx-text);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.profile-square-btn:hover { background: var(--lx-overlay-06); border-color: var(--lx-accent-2); }
.profile-square-btn.is-blocked { color: var(--lx-danger); border-color: rgba(244,63,94,0.35); background: var(--lx-danger-soft); }
.profile-square-btn .lx-icon { width: 19px; height: 19px; }

.profile-identity { padding: 20px 28px 24px; }
.profile-header-info h1 { font-size: 26px; margin: 0 0 8px; }
.profile-header-info .username { color: var(--lx-muted); font-size: 14.5px; margin-bottom: 10px; }
.profile-header-info .bio { color: var(--lx-muted); font-size: 14px; max-width: 480px; margin-bottom: 6px; }
.profile-action-row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; margin-top: 16px;
}
.profile-action-row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; margin-top: 16px;
}
.profile-action-row.is-own { justify-content: flex-start; }
.profile-action-group { display: flex; align-items: center; gap: 10px; }
.profile-action-group.hidden { display: none; }

@media (max-width: 768px) {
  .profile-action-row { flex-direction: column; align-items: flex-start; }
  .profile-header-stats { order: 1; }
  .profile-action-group { order: 2; margin-top: 8px; }
}

.profile-header-stats {
  display: flex; gap: 32px; flex-wrap: wrap;
  padding-right: 8px; /* небольшой отступ от края баннера, не впритык */
}
.profile-header-stats .stat-item { text-align: left; }
.profile-header-stats .stat-item .num { font-size: 20px; font-weight: 800; color: var(--lx-text-strong); display: block; }
.profile-header-stats .stat-item .label { font-size: 12px; color: var(--lx-muted); }

.profile-icon-btn {
  width: 42px; height: 42px; border-radius: 50%; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--lx-overlay-06); border: 1px solid var(--lx-border); color: var(--lx-text);
  cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.profile-icon-btn .lx-icon { width: 19px; height: 19px; }
.profile-icon-btn:hover { background: var(--lx-overlay-10); border-color: var(--lx-accent-2); }

/* кнопка подписки — акцентная, пока не подписан */
.profile-icon-btn.lx-btn-follow { background: var(--lx-gradient); border: none; }
.profile-icon-btn.lx-btn-follow .lx-icon { stroke: #fff; }
/* уже подписан — приглушённая */
.profile-icon-btn.lx-btn-follow.following { background: var(--lx-overlay-10); border: 1px solid var(--lx-border); }
.profile-icon-btn.lx-btn-follow.following .lx-icon { stroke: var(--lx-muted); }

@media (max-width: 768px) {
  .profile-action-row { margin-top: 12px; }
}
/* Отдельная "страница" настроек, выезжающая справа */
.lx-settings-page {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--lx-bg); z-index: 300; overflow-y: auto;
  transform: translateX(100%); visibility: hidden;
  transition: transform 0.28s ease, visibility 0s linear 0.28s;
}
.lx-settings-page.open {
  transform: translateX(0); visibility: visible;
  transition: transform 0.28s ease;
}
.lx-settings-page-inner { max-width: 720px; margin: 0 auto; padding: 26px 24px 60px; }
.lx-settings-header {
  display: flex; align-items: center; gap: 14px; margin-bottom: 24px;
  position: sticky; top: 0; background: var(--lx-bg); padding: 4px 0 14px; z-index: 2;
}
.lx-settings-back-btn {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--lx-overlay-06); border: 1px solid var(--lx-border); color: var(--lx-text);
  cursor: pointer; transition: background 0.15s;
}
.lx-settings-back-btn:hover { background: var(--lx-overlay-10); }
.lx-settings-back-btn .lx-icon { width: 20px; height: 20px; }
.lx-settings-header h3 { margin: 0; }

.lx-decor-author-short { display: none; }
@media (max-width: 768px) {
  .lx-settings-page-inner { padding: 18px 16px 60px; }
  .lx-decor-author-full { display: none; }
  .lx-decor-author-short { display: inline; }
}
.lx-profile-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--lx-border); margin-bottom: 24px; padding-bottom: 2px; flex-wrap: wrap; }
.lx-tab { background: transparent; border: none; color: var(--lx-muted); padding: 10px 16px; font-size: 13.5px; font-weight: 600; cursor: pointer; border-bottom: 2.5px solid transparent; transition: all 0.15s; }
.lx-tab.active { color: var(--lx-text-strong); border-bottom-color: var(--lx-accent-2); }
.lx-tab:hover { color: var(--lx-text-strong); }
/* ============ ПРОФИЛЬ: КОЛОНКИ (шапка отдельно, вкладки отдельно) ============ */
.profile-top-row {
  display:flex; align-items:flex-start; gap:28px; width:100%;
}
.profile-top-main { flex:1; min-width:0; }
.profile-top-side { width:300px; min-width:220px; flex-shrink:1; } /* пустая, только для выравнивания ширины */

.profile-body-row {
  display:flex; align-items:flex-start; gap:28px; width:100%;
}
.profile-body-main { flex:1; min-width:0; }
.profile-body-side {
  width:300px; min-width:220px; flex-shrink:1;
  position:sticky; top:20px;
  display:flex; flex-direction:column; gap:16px;
}

@media (max-width: 1024px) {
  .profile-top-side, .profile-body-side { display:none; }
}
.lx-chat-subtabs { display:flex; gap:6px; margin-bottom:12px; flex-wrap:wrap; }
.lx-chat-subtab {
  background: var(--lx-overlay-06);
  border: 1px solid transparent;
  color: var(--lx-muted);
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s;
}
.lx-chat-subtab.active {
  background: var(--lx-accent-soft);
  color: var(--lx-accent-2);
  border-color: var(--lx-accent-2);
}
.lx-chat-subtab:hover { color: var(--lx-text-strong); }

.tab-content { display: none; }
.tab-content.active { display: block; }

.feed-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--lx-border); }
.feed-item .feed-icon { font-size: 22px; }
.feed-item .feed-text { flex: 1; }
.feed-item .feed-text .feed-title { font-weight: 600; color: var(--lx-text-strong); }
.feed-item .feed-text .feed-desc { color: var(--lx-muted); font-size: 13px; }
.feed-item .feed-time { font-size: 12px; color: var(--lx-muted); white-space: nowrap; }

.cert-card { background: var(--lx-overlay-03); border: 1px solid var(--lx-border); border-radius: 14px; padding: 16px; margin-bottom: 12px; }
.cert-card .cert-title { font-weight: 700; font-size: 15.5px; color: var(--lx-text-strong); }
.cert-card .cert-org { color: var(--lx-muted); font-size: 13px; }
.cert-card .cert-date { font-size: 12px; color: var(--lx-muted); }
.cert-card .cert-actions { margin-top: 8px; display: flex; gap: 8px; }

.lx-settings-btn { margin-top: 16px; }

.profile-about { display: grid; gap: 12px; }
.profile-about .about-row { display: flex; flex-wrap: wrap; gap: 6px; }
.profile-about .about-label { font-weight: 600; min-width: 100px; color: var(--lx-muted); }
.profile-about .about-value { color: var(--lx-text-strong); }

/* Subscriptions */
.subscription-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--lx-border); }
.subscription-item img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.subscription-item .sub-name { font-weight: 700; color: var(--lx-text-strong); }
.subscription-item .sub-username { color: var(--lx-muted); font-size: 13px; }

/* Compose menu (messages) */
.lx-compose-item { padding:10px 12px; cursor:pointer; display:flex; align-items:center; gap:10px; font-size:13px; font-weight:600; border-radius: 10px; color: var(--lx-text); }
.lx-compose-item:hover { background: var(--lx-overlay-06); }
.lx-compose-item .lx-icon { color: var(--lx-accent-2); }

/* --- Quill dropdowns / palette --- */
.ql-toolbar .ql-picker-options {
  background-color: var(--lx-popover-bg) !important;
  border: 1px solid var(--lx-border) !important;
  border-radius: 10px !important;
  padding: 8px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}
.ql-toolbar .ql-picker-item { color: var(--lx-text) !important; }
.ql-toolbar .ql-picker-item:hover { color: var(--lx-accent-2) !important; }

.ql-editor blockquote {
  border-left: 4px solid var(--lx-accent-2) !important;
  padding-left: 12px !important;
  color: var(--lx-muted) !important;
  font-style: italic;
  margin: 12px 0;
}

.ql-editor table { border-collapse: collapse; width: 100%; margin: 12px 0; }
.ql-editor td, .ql-editor th { border: 1px solid var(--lx-border); padding: 8px 12px; }

.ql-editor .article-btn {
  display: inline-block; padding: 10px 20px; background-color: var(--lx-accent);
  color: #ffffff !important; text-decoration: none !important; border-radius: 10px;
  font-weight: 600; margin: 8px 0; text-align: center;
}
.ql-editor img { max-width: 100%; height: auto; display: block; margin: 12px auto; border-radius: 10px; }

.ql-editor iframe { width: 100%; max-width: 100%; height: 380px; border: none; border-radius: 12px; margin: 16px 0; }

@media (max-width: 600px) { .ql-editor iframe { height: 220px; } }

.ql-editor .lx-article-btn,
a.lx-article-btn {
  display: inline-flex !important; align-items: center; justify-content: center;
  padding: 12px 24px !important; background: var(--lx-gradient) !important;
  color: #ffffff !important; font-weight: 600 !important; font-size: 14px !important;
  border-radius: 10px !important; text-decoration: none !important; margin: 12px 0 !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important; transition: all 0.2s ease !important; cursor: pointer !important;
}
.ql-editor .lx-article-btn:hover,
a.lx-article-btn:hover { transform: translateY(-2px) !important; box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4) !important; color: #ffffff !important; }

.lx-scroll-hidden { scrollbar-width: none; -ms-overflow-style: none; }
.lx-scroll-hidden::-webkit-scrollbar { display: none; width: 0; height: 0; }

.mobile-only { display: inline-flex; }

.chat-header-menu-toggle { display: none; align-items: center; justify-content: center; }
.chat-header-menu-toggle .chat-header-menu-text { display: none; font-weight: 800; letter-spacing: 1px; font-size: 18px; line-height: 1; }
.lx-chat-header-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 50;
  background: var(--lx-popover-bg); border: 1px solid var(--lx-border); border-radius: 14px;
  padding: 6px; min-width: 210px; box-shadow: 0 12px 34px rgba(0,0,0,0.4);
}
@media (max-width: 768px) {
  #chat-header-desktop-actions { display: none !important; }
  .chat-header-menu-toggle { display: flex !important; }
  .chat-header-menu-toggle .chat-header-menu-icon { display: none; }
  .chat-header-menu-toggle .chat-header-menu-text { display: inline-block; }
}


.lx-scroll-thin { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.15) transparent; }
.lx-scroll-thin::-webkit-scrollbar { width: 4px; }
.lx-scroll-thin::-webkit-scrollbar-track { background: transparent; }
.lx-scroll-thin::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 10px; }
.lx-scroll-thin::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }

.ql-editor pre.ql-syntax {
  background: #0f172a; color: #e2e8f0; font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
  padding: 14px 16px; border-radius: 12px; overflow-x: auto; font-size: 13.5px; line-height: 1.5; margin: 12px 0;
}

/* =========================================================
   TOP-AUTHORS WIDGET (numbered author cards, horizontal row)
   ========================================================= */

/* Reserved utility classes kept for compatibility */
.lx-side-disabled { opacity:0.4; cursor:not-allowed; }
@media (max-width: 768px) { .mobile-only-hide { display:none !important; } }

.lx-ad-banner {
  width:100%; border-radius:16px; overflow:hidden; position:relative;
  background:var(--lx-card); border:1px solid var(--lx-border);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.lx-ad-banner:hover { transform:translateY(-3px); box-shadow:0 12px 28px rgba(0,0,0,0.18); border-color:var(--lx-accent-2); }
.lx-ad-banner-cover {
  width:100%; aspect-ratio:4/3; background-size:cover; background-position:center;
  background-color:var(--lx-gradient);
}
.lx-ad-banner-body {
  padding:14px; display:flex; flex-direction:column; gap:8px;
}
.lx-ad-banner-title { font-weight:700; font-size:14.5px; color:var(--lx-text-strong); line-height:1.3; }
.lx-ad-banner-desc { font-size:12.5px; color:var(--lx-muted); line-height:1.4; }
.lx-ad-banner-btn {
  margin-top:4px; display:inline-flex; align-items:center; justify-content:center;
  background:var(--lx-accent); color:#fff; font-size:12.5px; font-weight:700;
  padding:9px 14px; border-radius:10px; text-decoration:none; text-align:center;
  transition: opacity 0.15s;
}
.lx-ad-banner-btn:hover { opacity:0.88; }
.lx-ad-banner-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 0;
  transition: background 0.15s ease;
}
.lx-ad-banner-close svg { width: 14px; height: 14px; }
.lx-ad-banner-close:hover { background: rgba(0, 0, 0, 0.8); }
/* ================= ГЛОБАЛЬНАЯ КНОПКА СОЗДАНИЯ ================= */
.lx-global-fab {
  position: fixed; bottom: 24px; right: 24px; width: 58px; height: 58px; border-radius: 50%;
  background: var(--lx-gradient); border: none; cursor: pointer;
  box-shadow: 0 8px 24px rgba(37,99,235,0.45) !important;
  z-index: 500; display: flex; align-items: center; justify-content: center; color: #fff;
  transition: transform 0.2s ease;
}
.lx-global-fab:hover { transform: scale(1.06); }
.lx-global-fab.open { transform: rotate(45deg); }
.lx-global-fab .lx-icon { stroke:#fff; width:26px; height:26px; }

@media (max-width: 768px) {
  .lx-global-fab { bottom: calc(var(--lx-nav-h) + 8px); right: 18px; }
  .lx-global-compose-menu { bottom: calc(var(--lx-nav-h) + 76px) !important; right: 18px !important; }
}

/* прячем кнопку и меню в разделе Сообщений (чаты) */
.lx-wrap:has(#page-messages.active) .lx-global-fab,
.lx-wrap:has(#page-messages.active) .lx-global-compose-menu { display: none !important; }
@media (max-width: 768px) {
  .lx-wrap:has(#page-messages.active) .lx-global-player { display: none !important; }
  .lx-wrap:has(#mobile-menu-panel.open) .lx-global-player { display: none !important; }
}
.lx-wrap:has(#page-messages.active) .lx-app-shell { height: 100dvh; overflow: hidden; }
@media (max-width: 768px) {
  .lx-wrap:has(#page-messages.active) .lx-topbar { display: none; }
}
@media (max-width: 768px) {
  .mobile-only { display: inline-flex; }

  #messages-layout { border-radius: 0; flex-direction: column; }
  #messages-layout .conv-list-col, #messages-layout .chat-col { width: 100% !important; border-right: none !important; }
  #messages-layout .conv-list-col, #messages-layout .chat-col { flex: 1; min-height: 0; }
  #messages-layout.chat-open .conv-list-col { display: none !important; }
  #messages-layout:not(.chat-open) .chat-col { display: none !important; }
}
.lx-wrap:has(#page-messages.active) .lx-body-row {
  align-items: stretch;
}
.lx-global-compose-menu {
  position: fixed; bottom: 92px; right: 24px; background: var(--lx-popover-bg);
  border: 1px solid var(--lx-border); border-radius: 16px; padding: 8px;
  box-shadow: 0 12px 34px rgba(0,0,0,0.4); z-index: 499; min-width: 210px;
}

/* ================= МОДАЛКА СТАТЬИ ================= */
#article-modal-overlay .lx-modal-card {
  max-width: 780px; max-height: 88vh; overflow-y: auto; position: relative;
}
#work-filters-modal .lx-modal-card { position: relative; }
.lx-modal-close-btn {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--lx-border); background: var(--lx-overlay-06); color: var(--lx-text);
  cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 18px; line-height:1;
}
.lx-modal-close-btn:hover { background: var(--lx-danger-soft); color: var(--lx-danger); border-color: rgba(244,63,94,0.35); }

/* ================= МЫСЛИ (короткие посты) ================= */
.lx-thought-card {
  background: var(--lx-card); border: 1px solid var(--lx-border); border-radius: 16px;
  padding: 18px 20px; margin-bottom: 14px; transition: border-color 0.15s;
}
.lx-thought-card:hover { border-color: var(--lx-accent-2); }
.lx-post-card, .lx-thought-card { position: relative; }

.lx-card-menu-btn {
  position:absolute; top:14px; right:14px; width:28px; height:28px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  color: var(--lx-muted); font-size:18px; line-height:1; font-weight:700; user-select:none;
  transition: background 0.15s;
}
.lx-card-menu-btn:hover { background: var(--lx-overlay-08); color: var(--lx-text-strong); }

.lx-card-menu-dropdown {
  position:absolute; top:44px; right:14px; background: var(--lx-popover-bg, var(--lx-card));
  border:1px solid var(--lx-border); border-radius:12px; padding:6px; min-width:170px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35); z-index: 50;
}
.lx-card-menu-item {
  display:block; padding:8px 10px; font-size:13px; color: var(--lx-text-strong);
  cursor:pointer; border-radius:8px;
}
.lx-card-menu-item:hover { background: var(--lx-overlay-08); }
.lx-card-menu-item.danger { color: var(--lx-danger, #ef4444); }
.lx-help-tours-dropdown { position: relative; display: inline-block; }
.lx-help-tours-arrow { width:14px; height:14px; margin-left:6px; transition: transform 0.15s; vertical-align:middle; }
.lx-help-tours-dropdown.open .lx-help-tours-arrow { transform: rotate(180deg); }
.lx-help-tours-menu {
  display:none; position:absolute; top:calc(100% + 6px); left:0; min-width:280px;
  background: var(--lx-popover-bg, var(--lx-card)); border:1px solid var(--lx-border);
  border-radius:12px; padding:6px; box-shadow: 0 10px 30px rgba(0,0,0,0.35); z-index: 50;
  max-height: 360px; overflow-y: auto;
}
.lx-help-tours-dropdown.open .lx-help-tours-menu { display:block; }
.lx-help-tours-item {
  padding:9px 12px; font-size:13.5px; color: var(--lx-text-strong); cursor:pointer; border-radius:8px;
}
.lx-help-tours-item:hover { background: var(--lx-overlay-08); }
.lx-views-date-trigger { position:relative; cursor:pointer; display:inline-flex; align-items:center; }
.lx-views-date-trigger .lx-views-tooltip {
  position:absolute; bottom:130%; right:0; background: var(--lx-popover-bg, var(--lx-card));
  border:1px solid var(--lx-border); color:var(--lx-text-strong); font-size:11px;
  padding:4px 8px; border-radius:8px; white-space:nowrap; opacity:0; pointer-events:none;
  transition:opacity 0.15s; box-shadow:0 6px 18px rgba(0,0,0,0.3);
}
.lx-views-date-trigger:hover .lx-views-tooltip,
.lx-views-date-trigger.show .lx-views-tooltip { opacity:1; }
.lx-thought-text { font-size: 15px; line-height: 1.5; color: var(--lx-text); white-space: pre-wrap; margin: 10px 0 14px; }

#thought-modal-overlay .lx-modal-card { max-width: 480px; position: relative; }
.lx-thought-counter { text-align: right; font-size: 12px; color: var(--lx-muted); margin-top: -8px; margin-bottom: 12px; }
.lx-thought-counter.limit { color: var(--lx-danger); font-weight: 700; }

/* ================= ФОТО В МЫСЛЯХ ================= */
.lx-thought-photo {
  width: 100%; max-height: 380px; object-fit: cover; border-radius: 12px;
  margin: 4px 0 14px; cursor: zoom-in; display: block; transition: opacity 0.15s;
}
.lx-thought-photo:hover { opacity: 0.92; }

.lx-thought-photo-preview-wrap { position: relative; margin-bottom: 14px; }
.lx-thought-photo-preview { width: 100%; max-height: 220px; object-fit: cover; border-radius: 12px; display: block; }
.lx-thought-photo-remove {
  position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(0,0,0,0.6); color: #fff; border: none; cursor: pointer; font-size: 14px; line-height: 1;
}

/* ================= ЛАЙТБОКС (увеличение фото) ================= */
.lx-lightbox-overlay {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100dvh; background: rgba(3,7,18,0.9);
  backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center;
  z-index: 10000; cursor: zoom-out;
}
.lx-lightbox-overlay img { max-width: 92vw; max-height: 92vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lx-lightbox-close {
  position: absolute; top: 20px; right: 24px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25); color: #fff;
  font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* ================= ВЛОЖЕНИЯ МЫСЛИ (лента) — до 3, в ряд ================= */
.lx-attachments-row { display:flex; gap:8px; margin:10px 0 14px; }
.lx-attachment-photo { flex:1; min-width:0; height:200px; object-fit:cover; border-radius:12px; cursor:zoom-in; display:block; }
.lx-attachment-video-wrap { flex:1; min-width:0; height:200px; border-radius:12px; overflow:hidden; }
.lx-attachment-video-wrap iframe { width:100%; height:100%; display:block; border:none; }

/* ================= ПЛЕЕР КЛИПА ================= */
.lx-clip-player {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto 10px;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
  border: 1px solid var(--lx-border);
}
.lx-clip-player video {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  display: block;
  background: #000;
}
.lx-clip-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to top, rgba(0,0,0,0.35), rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.05));
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.lx-clip-play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--lx-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.lx-clip-play-btn svg { margin-left: 3px; }
.lx-clip-category-chip {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  pointer-events: none;
  backdrop-filter: blur(4px);
}
/* одно фото — показываем целиком, без кропа */
.lx-attachments-row:has(> .lx-attachment-photo:only-child) { display:block; }
.lx-attachments-row:has(> .lx-attachment-photo:only-child) .lx-attachment-photo {
  width:100%; height:auto; max-height:520px;
  object-fit:contain; background:var(--lx-overlay-03);
}
/* одно видео — тот же размер отображения, что и у одиночного фото */
.lx-attachments-row:has(> .lx-attachment-video-wrap:only-child) { display:block; }
.lx-attachments-row:has(> .lx-attachment-video-wrap:only-child) .lx-attachment-video-wrap {
  width:100%; height:auto; aspect-ratio:16/9; max-height:520px;
}
/* ================= СЛАЙДЕР ВЛОЖЕНИЙ (2+ фото/видео) ================= */
.lx-attachments-slider { position:relative; margin:10px 0 14px; border-radius:12px; overflow:hidden; }
.lx-attachments-track {
  display:flex; overflow-x:auto; scroll-snap-type:x mandatory;
  scrollbar-width:none; -ms-overflow-style:none;
}
.lx-attachments-track::-webkit-scrollbar { display:none; }
.lx-attachment-slide { flex:0 0 100%; scroll-snap-align:center; }
.lx-attachment-slide .lx-attachment-photo,
.lx-attachment-slide .lx-attachment-video-wrap {
  width: 100%;
  height: 320px;
  border-radius: 0;
  margin: 0;
}

.lx-attachment-slide .lx-attachment-photo {
  object-fit: contain;          /* сохраняет пропорции, не обрезает */
  background: var(--lx-overlay-03); /* цвет фона для пустых областей */
}

.lx-attachment-slide .lx-attachment-video-wrap {
  background: #000;            /* для видео можно чёрный фон */
}
.lx-slider-arrow {
  position:absolute; top:50%; transform:translateY(-50%);
  width:34px; height:34px; border-radius:50%; border:none;
  background:rgba(0,0,0,0.45); color:#fff; font-size:20px; line-height:1;
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  z-index:2; transition:background 0.15s;
}
.lx-slider-arrow:hover { background:rgba(0,0,0,0.7); }
.lx-slider-prev { left:10px; }
.lx-slider-next { right:10px; }
.lx-slider-dots {
  position:absolute; bottom:10px; left:50%; transform:translateX(-50%);
  display:flex; gap:6px; z-index:2;
}
.lx-slider-dot { width:6px; height:6px; border-radius:50%; background:rgba(255,255,255,0.5); transition:background 0.15s, transform 0.15s; }
.lx-slider-dot.active { background:#fff; transform:scale(1.3); }

@media (max-width: 768px) {
  .lx-slider-arrow { display:none; } /* на мобильном листают свайпом */
}
/* ================= ПРЕВЬЮ ВЛОЖЕНИЙ В МОДАЛКЕ ================= */
.lx-attach-preview-row { display:flex; gap:8px; margin-bottom:14px; }
.lx-attach-preview-item { position:relative; flex:1; min-width:0; }
.lx-attach-preview-item img { width:100%; height:100px; object-fit:cover; border-radius:10px; display:block; }
.lx-attach-preview-remove {
  position:absolute; top:4px; right:4px; width:22px; height:22px; border-radius:50%;
  background:rgba(0,0,0,0.65); color:#fff; border:none; cursor:pointer; font-size:12px; line-height:1;
}
.lx-video-badge { position:absolute; bottom:6px; left:6px; background:rgba(0,0,0,0.6); color:#fff; font-size:10px; padding:2px 6px; border-radius:6px; }

/* ================= РЕПОСТ (цитата исходного поста) ================= */
.lx-repost-quote {
  display: block; border: 1px solid var(--lx-border); border-radius: 12px; padding: 12px;
  margin: 10px 0 4px; text-decoration: none; color: inherit; background: var(--lx-overlay-03);
  transition: border-color 0.15s; cursor: pointer;
}
.lx-repost-quote:hover { border-color: var(--lx-accent-2); }
.lx-repost-quote-deleted { color: var(--lx-muted); font-size: 13px; font-style: italic; padding: 12px; }
.lx-reply-original-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12.5px; color: var(--lx-muted); text-decoration: none;
  margin: 8px 0 2px; transition: color 0.15s;
}
.lx-reply-original-link:hover { color: var(--lx-accent-2); }
.lx-reply-original-link-deleted { font-style: italic; cursor: default; }
.lx-reply-quote {
  display: block; border-left: 3px solid var(--lx-accent-2); border-radius: 8px;
  padding: 8px 12px; margin: 8px 0 4px; background: var(--lx-overlay-03);
  cursor: pointer; transition: opacity 0.15s;
}
.lx-reply-quote:hover { opacity: 0.85; }
.lx-reply-quote-author { font-size: 12px; font-weight: 700; color: var(--lx-text-strong); margin-bottom: 2px; }
.lx-reply-quote-text { font-size: 13px; color: var(--lx-muted); }
.lx-reply-quote-deleted { font-style: italic; color: var(--lx-muted); font-size: 13px; cursor: default; padding: 12px; }
.lx-topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 22px 32px;
  border-bottom: 1px solid var(--lx-border);
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(var(--lx-bg-rgb), 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lx-topbar-search { flex: 1 1 auto; max-width: 640px; width: 100%; margin-bottom: 0; }
.lx-topbar-search .lx-search-input { margin-bottom: 0; }

.lx-topbar-notif-btn {
  position: relative;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--lx-overlay-04);
  border: none; cursor: pointer; flex-shrink: 0;
  color: var(--lx-text);
  transition: background 0.15s;
}
.lx-topbar-notif-btn:hover { background: var(--lx-overlay-08); }

.lx-global-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--lx-popover-bg);
  border: 1px solid var(--lx-border);
  border-radius: 14px;
  padding: 8px;
  max-height: 420px;
  overflow-y: auto;
  z-index: 60;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}
.lx-global-search-group-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  color: var(--lx-muted); padding: 8px 10px 4px;
}
.lx-global-search-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 10px; cursor: pointer;
}
.lx-global-search-item:hover { background: var(--lx-overlay-06); }

@media (max-width: 768px) {
  .lx-topbar { padding: 14px 16px; gap: 10px; }
}
/* ================= ВКЛАДКИ ПРОФИЛЯ — ИКОНКИ + ПОДПИСИ ================= */
.lx-tab { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.lx-tab-label { font-size: 11px; }

@media (max-width: 768px) {
  .lx-tab-label { display: none; }
}

/* ================= ЗАКРЕП ================= */
.lx-pin-badge { background: var(--lx-accent-soft); color: var(--lx-accent-2); }

.lx-saved { color: #fbbf24 !important; border-color: rgba(251,191,36,0.4) !important; background: rgba(251,191,36,0.08) !important; }
.lx-disliked { color: #64748b !important; border-color: rgba(100,116,139,0.4) !important; background: rgba(100,116,139,0.12) !important; }
.lx-disliked svg { fill: #64748b; }

.lx-liked { color: var(--lx-danger) !important; border-color: rgba(244,63,94,0.35) !important; background: var(--lx-danger-soft) !important; }
.lx-liked svg { fill: var(--lx-danger); }
.lx-video-lazy { background: var(--lx-overlay-06); min-height: 200px; }
.lx-video-play-btn { width:52px; height:52px; border-radius:50%; background:rgba(255,255,255,0.2); backdrop-filter: blur(4px); display:flex; align-items:center; justify-content:center; font-size:20px; color:#fff; }
/* ===== Мобильное меню (доп. разделы) ===== */
.lx-mobile-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 400; opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.lx-mobile-menu-overlay.open { opacity: 1; pointer-events: auto; }

.lx-mobile-menu-panel {
  position: fixed; top: 0; left: 0; bottom: 0; width: 82%; max-width: 300px;
  background: var(--lx-card); border-right: none;
  z-index: 401; padding: 22px 18px; overflow-y: auto;
  transform: translateX(-100%); transition: transform 0.28s ease;
}
.lx-mobile-menu-panel.open { transform: translateX(0); }

.lx-mobile-menu-close {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--lx-overlay-06); border: 1px solid var(--lx-border); color: var(--lx-text);
  cursor: pointer;
}
.lx-mobile-menu-close .lx-icon { width: 17px; height: 17px; }

.lx-mobile-menu-profile { display: flex; flex-direction: column; align-items: center; text-align: center; margin: 24px 0 24px; }
.lx-mobile-menu-profile img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; border: 3px solid var(--lx-bg); box-shadow: 0 0 0 1px var(--lx-border); }
.lx-mobile-menu-profile .mm-name { font-weight: 700; font-size: 15px; color: var(--lx-text-strong); }
.lx-mobile-menu-profile .mm-username { font-size: 13px; color: var(--lx-muted); margin-top: 2px; }

.lx-mobile-menu-list { display: flex; flex-direction: column; gap: 2px; }
.lx-mobile-menu-list button {
  background: transparent; border: none; text-align: left; padding: 12px 10px; border-radius: 10px;
  font-size: 14.5px; font-weight: 600; color: var(--lx-text); cursor: pointer; width: 100%;
}
.lx-mobile-menu-list button:hover { background: var(--lx-overlay-06); }
.lx-mobile-menu-list button:active { background: var(--lx-overlay-10); transition: background 0.05s; }

@media (min-width: 769px) {
  .lx-mobile-menu-overlay, .lx-mobile-menu-panel { display: none; }
}
/* ================= МАГАЗИН / ТОВАРЫ ================= */
.lx-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}






.lx-star-row { display: inline-flex; gap: 2px; align-items: center; }
.lx-star-icon { width: 16px; height: 16px; }
.lx-star-icon.filled { fill: #fbbf24; stroke: #fbbf24; }
.lx-star-icon.empty { fill: none; stroke: var(--lx-muted); }

.lx-reviews-summary { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.lx-reviews-summary .lx-rating-big { font-size: 32px; font-weight: 700; }

.lx-review-card {
  background: var(--lx-card); border: 1px solid var(--lx-border); border-radius: 14px;
  padding: 16px 18px; margin-bottom: 12px;
}
.lx-review-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.lx-review-author { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 13.5px; }
.lx-review-date { color: var(--lx-muted); font-size: 11px; }
.lx-review-text { font-size: 13.5px; line-height: 1.5; color: var(--lx-text); }

.lx-review-form { margin-bottom: 24px; }
.lx-star-picker { display: flex; gap: 6px; margin-bottom: 12px; cursor: pointer; }
.lx-star-picker .lx-star-icon { width: 26px; height: 26px; }


/* Галерея фото товара */
.lx-thumb-row { display: flex; gap: 6px; }
.lx-thumb-row img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; cursor: pointer; border: 2px solid transparent; opacity: 0.6; }
.lx-thumb-row img.active { border-color: var(--lx-accent-2, #60a5fa); opacity: 1; }
.lx-price-text { font-size: 18px; font-weight: 700; color: var(--lx-text-strong); margin: 0; }


/* Сводка отзывов на странице магазина */
.lx-reviews-summary-block {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--lx-card); border: 1px solid var(--lx-border); border-radius: 16px;
  padding: 16px 20px; margin: 18px 0 28px; cursor: pointer; transition: border-color 0.15s;
}
.lx-reviews-summary-block:hover { border-color: var(--lx-accent-2); }
.lx-reviews-summary-block .lx-rating-big { font-size: 32px; font-weight: 700; }
.lx-reviews-read-btn {
  display: flex; align-items: center; gap: 6px; color: var(--lx-accent-2, #60a5fa); font-size: 13px; font-weight: 600;
}

/* Ответ владельца на отзыв */
.lx-owner-reply {
  margin-top: 10px; padding: 10px 14px; border-radius: 10px;
  background: var(--lx-overlay-06); border-left: 3px solid var(--lx-accent-2, #60a5fa);
}
.lx-owner-reply-label { font-size: 11px; font-weight: 700; color: var(--lx-accent-2, #60a5fa); margin-bottom: 4px; }
.lx-review-reply-form { margin-top: 10px; display: flex; gap: 8px; }
.lx-review-reply-form input { flex: 1; }

/* Модалка товара: крестик и слайдер */
.lx-product-modal-card { position: relative; }
.lx-product-gallery { position: relative; }
.lx-product-modal-close {
  position: absolute; top: 10px; right: 10px; z-index: 5;
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: rgba(0,0,0,0.55); color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.lx-gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: rgba(0,0,0,0.45); color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 4;
}
.lx-gallery-arrow:hover { background: rgba(0,0,0,0.7); }
.lx-gallery-prev { left: 10px; }
.lx-gallery-next { right: 10px; }

.lx-product-store-link { font-size: 13px; color: var(--lx-accent-2, #60a5fa); cursor: pointer; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 6px 0 0; }
.lx-product-store-link .lx-star-row { transform: scale(0.85); transform-origin: left center; }



/* Удаление товара — иконка на карточке владельца */
.lx-product-card { position: relative; }
.lx-product-delete-btn {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  width: 30px; height: 30px; border-radius: 50%; border: none;
  background: rgba(0,0,0,0.55); color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.lx-product-delete-btn:hover { background: #dc2626; }
.lx-save-btn {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  width: 30px; height: 30px; border-radius: 50%; border: none;
  background: rgba(0,0,0,0.45); display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.lx-save-btn .lx-icon { width: 16px; height: 16px; stroke: #fff; fill: none; }
.lx-save-btn.saved .lx-icon { fill: #fbbf24; stroke: #fbbf24; }
.lx-save-btn:hover { background: rgba(0,0,0,0.65); }
/* Поле загрузки фото товара */
.lx-product-photo-upload {
  position: relative;
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  border: 1.5px dashed var(--lx-border);
  background: var(--lx-overlay-06);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  overflow: hidden;
  margin-bottom: 12px;
  transition: border-color .15s, background .15s;
}
.lx-product-photo-upload:hover { border-color: var(--lx-accent-2); background: var(--lx-overlay-08); }
.lx-product-photo-upload img#product-photo-preview {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.lx-product-photo-upload-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--lx-muted); font-size: 12.5px;
}
.lx-product-photo-remove {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 26px; height: 26px; border-radius: 50%; border: none;
  background: rgba(0,0,0,0.6); color: #fff; font-size: 13px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.lx-product-photo-remove:hover { background: #dc2626; }

/* Премиальные icon-кнопки (жалоба/поделиться в карточке товара и т.п.) — без нативной обводки */
.lx-btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex-shrink: 0;
  border: none; border-radius: 12px; outline: none;
  background: var(--lx-overlay-08);
  color: var(--lx-text);
  font-size: 17px;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.lx-btn-icon:hover { background: var(--lx-overlay-10); transform: translateY(-1px); }
.lx-btn-icon:focus, .lx-btn-icon:focus-visible { outline: none; box-shadow: none; }
.lx-btn-icon .lx-icon { stroke: currentColor; }

/* Поиск + каталог */
.lx-shop-search-row { display: flex; gap: 12px; margin-bottom: 18px; }
.lx-catalog-wrap { position: relative; flex-shrink: 0; }
.lx-catalog-btn {
  display: flex; align-items: center; gap: 8px; height: 100%;
  background: var(--lx-accent, #3a86ff); color: #fff; border: none; border-radius: 12px;
  padding: 0 18px; font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap;
}
.lx-shop-search-input {
  flex: 1; display: flex; align-items: center; gap: 10px;
  background: var(--lx-card); border: 1px solid var(--lx-border); border-radius: 12px; padding: 0 14px;
}
.lx-shop-search-input .lx-icon { width: 18px; height: 18px; color: var(--lx-muted); flex-shrink: 0; }
.lx-shop-search-input input {
  border: none; background: transparent; outline: none; color: var(--lx-text); font-size: 14px;
  width: 100%; padding: 12px 0;
}

.lx-catalog-panel {
  position: fixed; z-index: 999999;
  background: var(--lx-card); border: 1px solid var(--lx-border); border-radius: 14px;
  min-width: 240px; max-height: 320px;
  overflow-x: hidden; overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.lx-catalog-panel::-webkit-scrollbar { width: 4px; }
.lx-catalog-panel::-webkit-scrollbar-track { background: transparent; }
.lx-catalog-panel::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 10px; }
.lx-catalog-panel::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }

.lx-wrap.light-theme .lx-catalog-panel { scrollbar-color: rgba(15,23,42,0.15) transparent; }
.lx-wrap.light-theme .lx-catalog-panel::-webkit-scrollbar-thumb { background: rgba(15,23,42,0.15); }
.lx-catalog-item {
  display: block; width: 100%; text-align: left; background: none; border: none;
  padding: 12px 18px; font-size: 13.5px; color: var(--lx-text); cursor: pointer;
}
.lx-catalog-item:hover { background: var(--lx-overlay-06); }
.lx-catalog-item.active { color: var(--lx-accent-2, #60a5fa); font-weight: 700; }



.lx-chat-product-card {
  display: flex; gap:10px; background: rgba(255,255,255,0.06); border-radius: 12px;
  padding: 10px; margin-bottom: 6px; max-width: 240px;
}
.lx-chat-product-card img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.lx-chat-product-card-info { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.lx-chat-product-card-title { font-size: 12.5px; font-weight: 700; margin: 0 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lx-chat-product-card-price { font-size: 12px; font-weight: 700; margin: 0 0 6px; }
.lx-chat-product-card-btn {
  font-size: 11px; font-weight: 600; color: var(--lx-accent-2, #60a5fa); cursor: pointer; width: fit-content;
}

/* Подпись отправителя в чате с магазином — кликабельная, с мини-лого/аватаркой */
.lx-store-msg-sender {
  display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--lx-muted);
  margin-bottom: 3px; cursor: pointer; text-decoration: none;
}
.lx-store-msg-sender img { width: 18px; height: 18px; border-radius: 6px; object-fit: cover; }
.lx-reply-react-btn { background:none; border:none; cursor:pointer; color:var(--lx-muted); font-size:12px; display:flex; align-items:center; gap:4px; padding:0; }
.lx-reply-react-btn:hover { color: var(--lx-text); }
.lx-reply-react-btn.active { color: var(--lx-accent-2, #60a5fa); font-weight:700; }
.lx-reply-children { margin-top:10px; padding-left:14px; border-left:2px solid var(--lx-border); }

.lx-folder-tabs { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.15) transparent; padding-bottom:6px; }
.lx-folder-tabs::-webkit-scrollbar { height:4px; }
.lx-folder-tabs::-webkit-scrollbar-track { background: transparent; }
.lx-folder-tabs::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius:10px; }
.lx-folder-tabs::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }
.lx-wrap.light-theme .lx-folder-tabs { scrollbar-color: rgba(15,23,42,0.15) transparent; }
.lx-wrap.light-theme .lx-folder-tabs::-webkit-scrollbar-thumb { background: rgba(15,23,42,0.15); }
.lx-folder-chip { scroll-snap-align:start; white-space:nowrap; flex-shrink:0; padding:7px 14px; border-radius:20px; border:1px solid var(--lx-border); background:var(--lx-overlay-06); color:var(--lx-text); font-size:13px; font-weight:600; cursor:pointer; }
.lx-folder-chip.active { background:var(--lx-accent-soft); color:var(--lx-accent-2); border-color:var(--lx-accent-2); }
.lx-folder-chip { position: relative; }

.lx-folder-tabs { padding-top: 8px; margin-top: -8px; }

.lx-folder-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--lx-danger);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--lx-bg);
}
.lx-article-snippet {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
#comments-modal-overlay .lx-modal-card { position: relative; }

@keyframes lxFlameFlicker {
  0%, 100% { transform: scale(1,1) skewX(0deg); }
  20% { transform: scale(0.96,1.05) skewX(-2.5deg); }
  45% { transform: scale(1.04,0.96) skewX(2deg); }
  70% { transform: scale(0.97,1.03) skewX(-1.5deg); }
}
@keyframes lxSparkRise {
  0% { transform: translate(0,0) scale(1); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translate(var(--dx,1px), -6px) scale(0.3); opacity: 0; }
}
.lx-flame-path { transform-box: fill-box; transform-origin: 50% 100%; animation: lxFlameFlicker 2.4s ease-in-out infinite; }
.lx-spark { transform-box: fill-box; transform-origin: 50% 50%; animation: lxSparkRise 1.8s ease-out infinite; }
@media (prefers-reduced-motion: reduce) { .lx-flame-path, .lx-spark { animation: none; } }

/* Панель выбора подарка (в "+") */
.lx-gift-picker-grid { display:grid; grid-template-columns: repeat(4, 1fr); gap:8px; padding:6px 10px; }
.lx-gift-picker-item { cursor:pointer; border-radius:10px; overflow:hidden; background:var(--lx-overlay-03); aspect-ratio:1; }
.lx-gift-picker-item img { width:100%; height:100%; object-fit:cover; display:block; }

/* Подарок как сообщение в чате */
.lx-gift-message { display:flex; flex-direction:column; align-items:center; gap:4px; margin-bottom:6px; }
.lx-gift-message img { width:120px; height:120px; object-fit:cover; border-radius:12px; }
.lx-gift-message-label { font-size:12px; color:var(--lx-muted); }

/* Вкладка "Подарки" в профиле */
.lx-gifts-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap:16px; }
.lx-gift-card { display:flex; flex-direction:column; align-items:center; gap:6px; text-align:center; }
.lx-gift-card img { width:100%; aspect-ratio:1; object-fit:cover; border-radius:14px; background:var(--lx-overlay-03); }
.lx-gift-card-sender { display:flex; align-items:center; gap:6px; text-decoration:none; color:var(--lx-text-strong); font-size:12.5px; }
.lx-gift-card-sender-avatar { width:22px; height:22px; border-radius:50%; object-fit:cover; }

.lx-profile-lock-overlay {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--lx-bg, #0d0f14);
  display: flex; align-items: center; justify-content: center;
}
/* --- Декорация поверх аватара --- */
.profile-avatar-decoration {
  position: absolute;
  top: 50%; left: 50%;
  width: 172.8px; height: 172.8px;   /* 135% от 128px аватара — единый стандарт рамок для всего сайта */
  transform: translate(-50%, -50%);
  pointer-events: none;              /* чтобы не мешала кликать по аватару/камере */
  z-index: 2;
  object-fit: contain;
}

/* --- Страница "Каталог" --- */
.lx-catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}
@media (max-width: 640px) {
  .lx-catalog-grid { grid-template-columns: repeat(3, 1fr); }
}
.lx-catalog-item {
  cursor: pointer;
  border-radius: 14px;
  border: 2px solid transparent;
  background: var(--lx-overlay-03);
  padding: 10px 8px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: border-color 0.15s, background 0.15s;
  text-align: center;
}
.lx-catalog-item:hover { background: var(--lx-overlay-06); }
.lx-catalog-item.selected { border-color: var(--lx-accent-2); background: var(--lx-accent-soft); }
.lx-catalog-item-thumb {
  width: 100%; aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--lx-overlay-06);
}
.lx-catalog-item-thumb img { width: 100%; height: 100%; object-fit: contain; }
.lx-catalog-item-name { font-size: 12px; color: var(--lx-muted); line-height: 1.2; }
.lx-catalog-empty { color: var(--lx-muted); font-size: 13px; padding: 30px 0; text-align: center; }

.lx-ava-wrap { position: relative; display: inline-block; flex-shrink: 0; }
.lx-ava-deco {
  position: absolute;
  top: 50%; left: 50%;
  width: 135%; height: 135%;
  transform: translate(-50%, -50%);
  object-fit: contain;
  pointer-events: none;
  z-index: 2;
}
.profile-banner-frame {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}
.lx-banner-frame-tile {
  position: absolute;
  object-fit: cover;
}
.lx-catalog-subtabs { display:flex; gap:8px; margin:14px 0 6px; }
.lx-subtab { padding:6px 14px; border-radius:20px; border:1px solid var(--lx-border); background:transparent; color:var(--lx-muted); font-size:12.5px; cursor:pointer; }
.lx-subtab.active { background:var(--lx-accent-2); color:#fff; border-color:var(--lx-accent-2); }
.lx-catalog-owned-badge { font-size:11px; color:var(--lx-muted); margin-top:4px; display:inline-block; }



@media (max-width: 768px) {
  .lx-sidebar-header { display: none; }
  #page-messages.active {
    padding-bottom: 0;
  }

  #page-messages.active #messages-layout {
    height: 100%;
  }

  #page-messages.active .chat-col {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
  }

  #page-messages.active .chat-col #chat-messages {
    flex: 1;
    min-height: 0;
  }

  #page-messages.active .chat-col #chat-panel {
    min-height: 0;
  }
}
.lx-apps-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px;
}
.lx-app-card {
  background: var(--lx-card); border: 1px solid var(--lx-border); border-radius: 16px;
  padding: 22px 16px; display: flex; flex-direction: column; align-items: center;
  text-align: center; transition: border-color 0.15s;
}
.lx-app-card:hover { border-color: var(--lx-accent-2); }
.lx-app-card-icon {
  width: 56px; height: 56px; border-radius: 14px; background: var(--lx-gradient);
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.lx-app-card-icon .lx-icon { width: 28px; height: 28px; stroke: #fff; }
.lx-app-card-title { font-weight: 700; font-size: 15px; color: var(--lx-text-strong); margin-bottom: 6px; }
.lx-app-card-desc { font-size: 12.5px; color: var(--lx-muted); line-height: 1.4; margin-bottom: 14px; min-height: 34px; }
.lx-app-card-btn {
  margin-top: auto; width: 100%; padding: 9px 12px; border-radius: 10px; font-size: 13px; font-weight: 600;
  background: var(--lx-accent); color: #fff; border: none; cursor: pointer; transition: 0.15s;
}
.lx-app-card-btn:hover { transform: translateY(-1px); }
.lx-app-card-btn.installed { background: var(--lx-success-soft); color: var(--lx-success); }
.lx-mention-link {
  color: var(--lx-accent-2);
  font-weight: 600;
  text-decoration: none;
}
.lx-mention-link:hover { text-decoration: underline; }

.lx-mention-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 4px);
  z-index: 50;
  background: var(--lx-card);
  border: 1px solid var(--lx-border);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  max-height: 220px;
  overflow-y: auto;
  padding: 6px;
}
.lx-mention-suggest-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  cursor: pointer;
}
.lx-mention-suggest-item:hover,
.lx-mention-suggest-item.active {
  background: var(--lx-overlay-06);
}
.lx-mention-suggest-item img {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.lx-mention-suggest-name {
  font-size: 12.5px; font-weight: 700; color: var(--lx-text-strong);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lx-mention-suggest-username {
  font-size: 11.5px; color: var(--lx-muted);
}
@media (max-width: 600px) {
  .lx-reviews-summary-block { flex-wrap: wrap; row-gap: 8px; }
  .lx-reviews-summary-block .lx-rating-big { font-size: 24px; }
  .lx-reviews-read-btn { width: 100%; justify-content: flex-end; }
}
/* ================= ПОПАП: Поделиться профилем (QR) ================= */
.lx-share-popover {
  position: fixed; inset: 0; z-index: 10000;
  background: transparent; /* на десктопе фон прозрачный — просто ловит клик "мимо" */
}
.lx-share-popover-card {
  position: fixed;
  width: 280px;
  background: var(--lx-card);
  border: 1px solid var(--lx-border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 16px 44px rgba(0,0,0,0.35);
  z-index: 10001;
}
.lx-share-qr-logo-badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 42px; height: 42px; border-radius: 10px;
  background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  display: flex; align-items: center; justify-content: center;
}
.lx-share-qr-logo { width: 26px; height: 26px; display: block; }
.lx-share-popover-title {
  margin: 0 0 14px; font-size: 14px; font-weight: 700;
  color: var(--lx-text-strong); text-align: center;
}
.lx-share-qr-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 14px;
}

.lx-share-qr-img { width: 220px; height: 220px; }
.lx-share-qr-logo-badge { width: 56px; height: 56px; border-radius: 14px; }
.lx-share-qr-logo { width: 34px; height: 34px; }
.lx-share-download-btn { width: 100%; justify-content: center; margin-bottom: 14px; }
.lx-share-link-row { display: flex; gap: 8px; align-items: center; }
.lx-share-link-input { flex: 1; min-width: 0; font-size: 12px; padding: 0 10px; height: 38px; box-sizing: border-box; margin-bottom: 0; }
.lx-share-copy-btn { white-space: nowrap; font-size: 12px; padding: 0 14px; height: 38px; box-sizing: border-box; }

@media (max-width: 768px) {
  .lx-share-popover {
    background: rgba(3,7,18,0.72); backdrop-filter: blur(6px);
  }
  .lx-share-popover-card {
    top: 0 !important; left: 0 !important; right: 0; bottom: 0;
    width: 100%; height: 100%; max-width: none; border-radius: 0;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 24px;
  }
  .lx-share-popover-flame { width: 64px; height: 64px; }
  .lx-share-qr-img { width: 220px; height: 220px; }
  .lx-share-download-btn, .lx-share-link-row { width: 100%; max-width: 320px; }
}
/* CRM работодателя: воронка найма */
.lx-crm-stage-btn { display:flex; justify-content:space-between; align-items:center; padding:10px 14px; border-radius:10px; border:none; background:transparent; cursor:pointer; text-align:left; font-size:13.5px; color:var(--lx-text); width:100%; }
.lx-crm-stage-btn:hover { background:var(--lx-overlay-05); }
.lx-crm-stage-btn.active { background:var(--lx-overlay-08); font-weight:700; }
.lx-crm-toolbar-item { height:42px; padding:0 14px; box-sizing:border-box; }
.lx-crm-actions-row { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.lx-crm-action-item { height:34px; padding:0 12px; box-sizing:border-box; display:inline-flex; align-items:center; }

.lx-lesson-layout {
  display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: start; position: relative;
}
.lx-lesson-sidebar-toggle { display: none; }
.lx-lesson-sidebar-backdrop { display: none; }
.lx-lesson-sidebar {
  border: 1px solid var(--lx-border); border-radius: 10px; padding: 12px;
  max-height: 80vh; overflow-y: auto; box-sizing: border-box;
}
.lx-lesson-sidebar-head { display: none; }

@media (max-width: 768px) {
  .lx-lesson-layout { display: block; }
  .lx-lesson-sidebar-toggle { display: inline-flex; margin-bottom: 10px; }
  .lx-lesson-sidebar-backdrop {
    display: block; position: fixed; inset: 0; background: rgba(3,7,18,0.55);
    backdrop-filter: blur(4px); z-index: 998; opacity: 0; pointer-events: none;
    transition: opacity 0.25s ease;
  }
  .lx-lesson-sidebar-backdrop.open { opacity: 1; pointer-events: auto; }
  .lx-lesson-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: 82%; max-width: 320px;
    max-height: none; border-radius: 0; border: none; margin: 0;
    background: var(--lx-card); z-index: 999; box-sizing: border-box;
    padding: 16px 14px; transform: translateX(-100%);
    transition: transform 0.28s ease; box-shadow: 8px 0 24px rgba(0,0,0,0.3);
    display: flex; flex-direction: column;
  }
  .lx-lesson-sidebar.open { transform: translateX(0); }
  .lx-lesson-sidebar-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--lx-border);
  }
  .lx-lesson-sidebar-head-title { font-size: 14px; font-weight: 700; }
  .lx-lesson-sidebar-close {
    background: none; border: none; font-size: 18px; color: var(--lx-muted); cursor: pointer; line-height: 1;
  }
  #lesson-view-sidebar-content { overflow-y: auto; flex: 1; }
}
/* ==================== ПРЕМИУМ-КАРТОЧКА КУРСА ==================== */
.lx-course-card {
  background: var(--lx-card); border: 1px solid var(--lx-border); border-radius: 16px;
  overflow: hidden; cursor: pointer; position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.lx-course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
  border-color: var(--lx-accent-2);
}
.lx-course-card-cover {
  width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block;
  background: var(--lx-gradient);
}
.lx-course-card-overlay {
  position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 16/10;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 12px;
  pointer-events: none;
}
.lx-course-card-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: auto; }
.lx-course-card-badge {
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); color: #fff;
  font-size: 10.5px; padding: 3px 9px; border-radius: 20px; font-weight: 600;
}
.lx-course-card-title {
  color: #fff; font-weight: 700; font-size: 15px; margin: 0 0 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.lx-course-card-author {
  display: flex; align-items: center; gap: 6px; pointer-events: auto; cursor: pointer;
}
.lx-course-card-author img {
  width: 22px; height: 22px; border-radius: 50%; object-fit: cover;
  border: 1.5px solid rgba(255,255,255,0.8);
}
.lx-course-card-author span {
  color: #fff; font-size: 12px; font-weight: 500; text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.lx-course-card-body { padding: 10px 14px 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lx-course-card-rating { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--lx-muted); }
.lx-course-card-share {
  background: var(--lx-overlay-06); border: none; border-radius: 50%; width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer;
  color: var(--lx-muted); transition: background 0.15s;
}
.lx-course-card-share:hover { background: var(--lx-overlay-08); }

/* прогресс-кольцо для "Мои курсы" */
.lx-course-progress-ring { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; }
.lx-course-progress-ring svg { transform: rotate(-90deg); }
.lx-course-progress-ring circle { fill: none; stroke-width: 4; }
.lx-course-progress-ring .ring-bg { stroke: rgba(255,255,255,0.3); }
.lx-course-progress-ring .ring-fill { stroke: var(--lx-accent); stroke-linecap: round; transition: stroke-dashoffset 0.4s ease; }
.lx-course-progress-ring .ring-fill.gold { stroke: var(--lx-gold); }
.lx-course-progress-ring-text {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
/* ==================== HERO СТРАНИЦЫ КУРСА ==================== */
.lx-course-hero {
  position: relative; border-radius: 16px; overflow: hidden; margin-bottom: 24px;
  min-height: 220px; display: flex; align-items: flex-end; padding: 28px;
  background: var(--lx-gradient); background-size: cover; background-position: center;
}
.lx-course-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.1) 100%);
}
.lx-course-hero-content { position: relative; z-index: 1; max-width: 720px; }
.lx-course-hero-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.lx-course-hero-title { color: #fff; font-size: 26px; font-weight: 800; margin: 0 0 10px; text-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.lx-course-hero-desc { color: rgba(255,255,255,0.85); font-size: 14px; margin: 0 0 14px; max-width: 600px; }
.lx-course-hero-author {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: rgba(255,255,255,0.12); backdrop-filter: blur(6px); padding: 6px 12px 6px 6px; border-radius: 30px;
}
.lx-course-hero-author img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.lx-course-hero-author span { color: #fff; font-size: 13px; font-weight: 600; }

.lx-course-stats-row {
  display: flex; gap: 20px; flex-wrap: wrap; padding: 14px 0; margin-bottom: 24px;
  border-bottom: 1px solid var(--lx-border);
}
.lx-course-stat { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--lx-muted); }
.lx-course-stat b { color: var(--lx-text-strong); font-size: 14px; }

.lx-course-layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.lx-course-sidebar-cta {
  position: sticky; top: 20px; border: 1px solid var(--lx-border); border-radius: 14px; padding: 18px;
  background: var(--lx-card);
}

.lx-course-accordion-item { border: 1px solid var(--lx-border); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.lx-course-accordion-header {
  display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; cursor: pointer;
  background: var(--lx-overlay-04);
}
.lx-course-accordion-header:hover { background: var(--lx-overlay-06); }
.lx-course-accordion-arrow { transition: transform 0.2s ease; }
.lx-course-accordion-item.open .lx-course-accordion-arrow { transform: rotate(180deg); }
.lx-course-accordion-body { padding: 4px 14px 10px; display: none; }
.lx-course-accordion-item.open .lx-course-accordion-body { display: block; }

@media (max-width: 900px) {
  .lx-course-layout { grid-template-columns: 1fr; }
  .lx-course-sidebar-cta { position: static; }
}
@media (max-width: 600px) {
  .lx-course-hero { min-height: 160px; padding: 18px; }
  .lx-course-hero-title { font-size: 20px; }
}
.lx-msg-selected > div { outline: 2px solid var(--lx-accent-2); border-radius: 14px; }
@media (hover: none) and (pointer: coarse) {
  [id^="msg-"] {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    touch-action: manipulation;
  }
}
/* ============ ТУМБЛЕР (доставка) ============ */
.lx-shop-toggle-row { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.lx-switch-row { display: flex; align-items: center; gap: 10px; margin: 10px 0 14px; cursor: pointer; }
.lx-switch { position: relative; display: inline-flex; flex-shrink: 0; width: 42px; height: 24px; cursor: pointer; }
.lx-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.lx-switch-track {
  position: absolute; inset: 0; background: var(--lx-overlay-08);
  border: 1px solid var(--lx-border); border-radius: 999px; transition: background 0.2s ease;
}
.lx-switch-thumb {
  position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.3); transition: transform 0.2s ease;
}
.lx-switch input:checked + .lx-switch-track { background: var(--lx-accent, #3a86ff); border-color: var(--lx-accent, #3a86ff); }
.lx-switch input:checked + .lx-switch-track .lx-switch-thumb { transform: translateX(18px); }
.lx-switch-label { font-size: 13.5px; color: var(--lx-text); }
/* ================= ШАПКА-КАРТОЧКА (переиспользуется в ЛК Работа для профиля работодателя) ================= */
.lx-store-header {
  background: var(--lx-card); border: 1px solid var(--lx-border); border-radius: 18px;
  overflow: hidden; margin-bottom: 20px;
}
.lx-store-cover {
  position: relative;
  width: 100%; height: 140px; background: var(--lx-gradient); background-size: cover; background-position: center;
}
.lx-store-cover-camera { position: absolute; bottom: 12px; right: 12px; opacity: 0.85; z-index: 5; }
.lx-store-identity {
  display: flex; align-items: flex-end; gap: 16px; padding: 0 20px 18px; margin-top: -40px; flex-wrap: wrap;
}
.lx-store-logo-wrap { position: relative; z-index: 4; flex-shrink: 0; }
.lx-store-logo {
  width: 84px; height: 84px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--lx-card); background: var(--lx-card); display: block;
}
.lx-store-logo-camera { position: absolute; bottom: 0; right: 0; z-index: 5; }
.lx-store-meta { flex: 1; min-width: 200px; padding-top: 44px; }
.lx-store-meta h1 { margin: 0 0 4px; font-size: 19px; }
.lx-store-stats { font-size: 12.5px; }
.lx-store-header-buttons { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 44px; }
/* ============ ПРЕМИАЛЬНАЯ КАРТОЧКА ТОВАРА (по образцу lx-course-card) ============ */
.lx-product-card {
  background: var(--lx-card); border: 1px solid var(--lx-border); border-radius: 16px;
  overflow: hidden; cursor: pointer; position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: flex; flex-direction: column;
}
.lx-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
  border-color: var(--lx-accent-2);
}
.lx-product-card-photo {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block;
  background: var(--lx-overlay-06);
}
.lx-product-card-overlay {
  position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 1 / 1;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.12) 55%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 12px;
  pointer-events: none;
}
.lx-product-card-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: auto; }
.lx-product-card-badge {
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); color: #fff;
  font-size: 10px; padding: 3px 9px; border-radius: 20px; font-weight: 600;
}
.lx-product-card-badge.delivery { background: rgba(58,134,255,0.8); }
.lx-product-card-title {
  color: #fff; font-weight: 700; font-size: 14.5px; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.lx-product-card-footer {
  padding: 10px 14px 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.lx-product-card-price { font-weight: 700; font-size: 15px; color: var(--lx-text-strong); }
.lx-product-card-seller {
  font-size: 12px; color: var(--lx-accent-2, #60a5fa); cursor: pointer;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 55%;
}
/* ============ КАРТОЧКА ЗАКАЗА (лента заказов) ============ */
.lx-order-card {
  background: var(--lx-card); border: 1px solid var(--lx-border); border-radius: 16px;
  padding: 18px 20px; margin-bottom: 12px; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.lx-order-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.16);
  border-color: var(--lx-accent-2);
}
.lx-order-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
.lx-order-card-title { margin: 0; font-size: 16px; }
.lx-order-card-urgent {
  display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0;
  background: var(--lx-danger-soft); color: var(--lx-danger); border: 1px solid rgba(244,63,94,0.3);
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px;
}
.lx-order-card-desc {
  color: var(--lx-muted); font-size: 13px; margin: 8px 0 12px; white-space: pre-wrap;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lx-order-card-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 12px; }
.lx-order-card-meta-item { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--lx-muted); }
.lx-order-card-meta-item .lx-icon { width: 14px; height: 14px; flex-shrink: 0; }
.lx-order-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--lx-border); }
.lx-order-card-responses { font-size: 12px; color: var(--lx-muted); }

/* ============ ЛЕВАЯ ПАНЕЛЬ ФИЛЬТРОВ (доска заказов) ============ */
.lx-orders-layout { display: flex; gap: 24px; align-items: flex-start; }
.lx-orders-filters {
  width: 240px; flex-shrink: 0; background: var(--lx-card); border: 1px solid var(--lx-border);
  border-radius: 16px; padding: 18px; position: sticky; top: 16px;
}
.lx-orders-filter-group { margin-bottom: 18px; }
.lx-orders-filter-group:last-of-type { margin-bottom: 16px; }
.lx-orders-filter-group .lx-input, .lx-orders-filter-group .lx-select { margin-bottom: 0; }
.lx-orders-filter-label { font-size: 12px; font-weight: 700; color: var(--lx-text-strong); margin-bottom: 8px; }
.lx-orders-filter-cats { display: flex; flex-direction: column; gap: 2px; max-height: 260px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.15) transparent; }
.lx-orders-filter-cats::-webkit-scrollbar { width: 4px; }
.lx-orders-filter-cats::-webkit-scrollbar-track { background: transparent; }
.lx-orders-filter-cats::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 10px; }
.lx-orders-filter-cats::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }
.lx-wrap.light-theme .lx-orders-filter-cats::-webkit-scrollbar-thumb { background: rgba(15,23,42,0.15); }
.lx-orders-filter-cat {
  display: block; width: 100%; text-align: left; background: none; border: none;
  padding: 7px 8px; border-radius: 8px; font-size: 13px; color: var(--lx-muted); cursor: pointer;
}
.lx-orders-filter-cat:hover { background: var(--lx-overlay-06); color: var(--lx-text); }
.lx-orders-filter-cat.active { background: var(--lx-accent-soft); color: var(--lx-accent-2); font-weight: 700; }
.lx-orders-filter-range { display: flex; gap: 8px; }
.lx-orders-filter-range .lx-input { width: 50%; }
.lx-orders-filter-checkbox { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--lx-text); cursor: pointer; }
.lx-orders-filter-checkbox input { width: auto; margin: 0; }
.lx-orders-main { flex: 1; min-width: 0; }
.lx-orders-filters-toggle { display: none; }

@media (max-width: 900px) {
  .lx-orders-layout { flex-direction: column; }
  .lx-orders-filters {
    width: 100%;
    position: static;
    display: none;
  }
  .lx-orders-filters.open { display: block; }
  .lx-orders-filters-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    flex-shrink: 0;
  }
}

/* ===== Кошелёк "Звёзды" ===== */
.lx-wallet-balance-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1408 0%, #2a1f0a 45%, #1a1408 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.12);
}
.lx-wallet-balance-glow {
  position: absolute; top: -60px; right: -60px;
  width: 220px; height: 220px;
  background: var(--lx-gold);
  filter: blur(70px); opacity: 0.35;
  border-radius: 50%;
  pointer-events: none;
}
.lx-wallet-balance-top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.lx-wallet-balance-label { font-size: 13px; color: #d4af6a; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.lx-wallet-star-icon { width: 22px; height: 22px; fill: #f59e0b; }
.lx-wallet-balance-amount { position: relative; z-index: 1; font-size: 40px; font-weight: 800; color: #f8f3e8; margin: 14px 0 22px; }
.lx-wallet-balance-currency { font-size: 26px; color: #f59e0b; }
.lx-wallet-topup-btn {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--lx-gold); color: #1a1408; font-weight: 700;
  border: none; border-radius: 12px; padding: 12px 20px;
  cursor: pointer; font-size: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.lx-wallet-topup-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(245, 158, 11, 0.3); }
.lx-wallet-topup-btn .lx-icon { stroke: #1a1408; }

.lx-wallet-empty {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 40px 20px; text-align: center; color: var(--lx-muted);
  background: var(--lx-card); border: 1px solid var(--lx-border); border-radius: 16px;
}
.lx-wallet-empty p { margin: 0; font-size: 14px; }

.lx-wrap.light-theme .lx-wallet-balance-card {
  background: linear-gradient(135deg, #fff7e6 0%, #fdecc8 45%, #fff7e6 100%);
  border-color: rgba(217, 119, 6, 0.35);
}
.lx-wrap.light-theme .lx-wallet-balance-label { color: #b45309; }
.lx-wrap.light-theme .lx-wallet-balance-amount { color: #3f2d05; }

#news-quill-editor .ql-video,
#quill-editor .ql-video {
  resize: both;
  overflow: hidden;
  min-width: 200px;
  min-height: 120px;
  max-width: 100%;
}
#board-viewport {
  position: relative;
  width: 100%;
  height: calc(100vh - 200px);
  overflow: hidden;
  background:
    radial-gradient(circle, var(--lx-border) 1px, transparent 1px) 0 0/24px 24px,
    var(--lx-card);
  border: 1px solid var(--lx-border);
  border-radius: 16px;
  cursor: grab;
}
#board-viewport.panning { cursor: grabbing; }
#board-world, #board-view-world { position: absolute; top:0; left:0; transform-origin: 0 0; }

.lx-board-el {
  position: absolute;
  box-sizing: border-box;
}
#board-connections-svg, #board-view-connections-svg { overflow: visible; }
.lx-board-el [contenteditable] {
  user-select: text;
  cursor: text;
}
.lx-board-el.sticker { box-shadow:0 4px 14px rgba(0,0,0,0.25); padding:10px; font-size:14px; line-height:1.4; color:#1a1a1a; }
.lx-board-el.text-block { background:transparent; color:var(--lx-text); font-size:15px; padding:4px; }
.lx-board-el.frame { background:transparent; border:2px dashed var(--lx-border); }
.lx-board-el.frame .frame-label { position:absolute; top:-24px; left:0; font-size:12px; font-weight:700; color:var(--lx-muted); background:var(--lx-bg); padding:2px 8px; border-radius:6px; }
.lx-board-el.image-block img { width:100%; height:100%; object-fit:cover; border-radius:10px; display:block; }
.lx-board-el.table-block { background:var(--lx-card); border:1px solid var(--lx-border); display:flex; flex-direction:column; overflow:visible; }
.lx-board-el.table-block .table-scroll { flex:1; overflow:auto; }
.lx-board-el.table-block .table-controls { display:flex; gap:10px; padding:8px 10px; flex-shrink:0; border-top:1px solid var(--lx-border); }
.table-ctrl-group { display:flex; gap:4px; }
.table-ctrl-btn { height:26px; padding:0 10px; border-radius:6px; border:none; background:var(--lx-overlay-08,rgba(255,255,255,0.08)); color:var(--lx-text-strong); font-size:12px; font-weight:600; cursor:pointer; white-space:nowrap; }
.table-ctrl-btn:hover { background:var(--lx-overlay-12,rgba(255,255,255,0.14)); }
.lx-board-el.table-block table { border-collapse:collapse; width:100%; }
.lx-board-el.table-block td { border:1px solid var(--lx-border); padding:0; font-size:13px; min-width:60px; color:var(--lx-text); position:relative; }
.lx-board-el.table-block .td-content { padding:6px 8px; min-height:1em; outline:none; }
.lx-board-el.table-block .td-merge-controls { position:absolute; top:2px; right:2px; display:none; gap:2px; z-index:5; }
.lx-board-el.table-block td:hover .td-merge-controls { display:flex; }
.td-merge-btn { width:16px; height:16px; font-size:9px; line-height:16px; padding:0; border:none; border-radius:3px; background:rgba(0,0,0,0.55); color:#fff; cursor:pointer; }

.board-el-toolbar { position:absolute; top:-26px; right:0; display:none; gap:4px; z-index:50; }
.lx-board-el.active .board-el-toolbar { display:flex; }
.board-el-btn { width:20px; height:20px; border-radius:5px; border:none; background:rgba(0,0,0,0.5); color:#fff; font-size:11px; cursor:pointer; }
.board-el-btn.danger { background:var(--lx-danger); }
.lx-sticker-palette { position:absolute; top:-56px; right:0; display:flex; gap:4px; padding:4px 6px; background:var(--lx-card); border:1px solid var(--lx-border); border-radius:8px; box-shadow:0 4px 14px rgba(0,0,0,0.3); z-index:55; }
.lx-sticker-palette.hidden { display:none; }
.lx-sticker-color-dot { width:18px; height:18px; border-radius:50%; border:2px solid transparent; cursor:pointer; padding:0; }
.lx-sticker-color-dot:hover { border-color:#fff; transform:scale(1.15); }
.lx-board-toolbar { display:flex; gap:8px; margin-bottom:12px; flex-wrap:wrap; align-items:center; }
#board-connect-btn.active { border-color:var(--lx-accent-2,#60a5fa); color:var(--lx-accent-2,#60a5fa); }
#board-erase-btn.active { border-color:#ef4444; color:#ef4444; }
.board-connection { cursor:pointer; }
.board-connection:hover { stroke:#ef4444 !important; stroke-width:3; }
#board-draw-btn.active { border-color:var(--lx-accent-2,#60a5fa); color:var(--lx-accent-2,#60a5fa); }
.lx-board-draw-panel { display:flex; align-items:center; gap:10px; padding:6px 10px; background:var(--lx-card); border:1px solid var(--lx-border); border-radius:10px; }
.lx-draw-colors { display:flex; gap:4px; }
.lx-draw-color-dot { width:18px; height:18px; border-radius:50%; border:2px solid transparent; cursor:pointer; padding:0; }
.lx-draw-color-dot.active { border-color:var(--lx-accent-2,#60a5fa); }
.lx-draw-widths { display:flex; gap:4px; }
.lx-draw-width-btn { width:26px; height:26px; border-radius:6px; border:1px solid var(--lx-border); background:transparent; color:var(--lx-text); font-size:11px; font-weight:700; cursor:pointer; }
.lx-draw-width-btn.active { background:var(--lx-accent-2,#60a5fa); color:#fff; border-color:var(--lx-accent-2,#60a5fa); }
/* ГРАФФИТИ НА СТЕНЕ */
#graffiti-modal-card { max-width: 660px; }
.lx-graffiti-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:14px; }
#graffiti-wall-svg { width:100%; height:auto; aspect-ratio: 600 / 260; display:block; border-radius:12px; border:1px solid var(--lx-border); background:#e8e4da; cursor:crosshair; touch-action:none; }
#graffiti-eraser-btn.active { border-color:var(--lx-accent-2,#60a5fa); color:var(--lx-accent-2,#60a5fa); }
.lx-graffiti-wrap { border-radius:12px; overflow:hidden; border:1px solid var(--lx-border); margin-bottom:4px; }
.lx-graffiti-svg { display:block; width:100%; height:auto; }

#comments-modal-post-preview .lx-attachment-photo,
#comments-modal-post-preview .lx-attachment-video-wrap,
#comments-modal-post-preview .lx-attachment-slide .lx-attachment-photo,
#comments-modal-post-preview .lx-attachment-slide .lx-attachment-video-wrap {
  height:140px; max-height:140px;
}
#comments-modal-post-preview .lx-graffiti-svg { max-height:140px; }
.board-drawing { pointer-events:none; }
#board-viewport.erase-mode .board-drawing { pointer-events: stroke; }
.conn-anchor {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lx-accent-2,#60a5fa);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  z-index: 60;
  cursor: crosshair;
  transition: transform .12s ease, opacity .12s ease;
}
#board-viewport.connect-mode .conn-anchor { opacity: 0.85; pointer-events: auto; }
.conn-anchor:hover { opacity: 1; transform: scale(1.3); }
.conn-anchor-top { top: -6px; left: 50%; transform: translateX(-50%); }
.conn-anchor-bottom { bottom: -6px; left: 50%; transform: translateX(-50%); }
.conn-anchor-left { left: -6px; top: 50%; transform: translateY(-50%); }
.conn-anchor-right { right: -6px; top: 50%; transform: translateY(-50%); }
.conn-anchor-top:hover, .conn-anchor-bottom:hover { transform: translateX(-50%) scale(1.3); }
.conn-anchor-left:hover, .conn-anchor-right:hover { transform: translateY(-50%) scale(1.3); }

.lx-board-el.connect-target-hover { outline: 2px solid var(--lx-accent-2,#60a5fa); outline-offset: 3px; }
.board-connection-preview { pointer-events: none; }
.lx-board-zoom { font-size:12px; color:var(--lx-muted); margin-left:auto; }

/* ==================== КАЛЕНДАРЬ ==================== */
.lx-cal-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 1px; margin-bottom: 4px;
}
.lx-cal-weekdays > div {
  text-align: center; font-size: 11.5px; font-weight: 700;
  color: var(--lx-muted); padding: 6px 0; text-transform: uppercase;
}

.lx-cal-month-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 1px; background: var(--lx-border);
  border: 1px solid var(--lx-border); border-radius: 12px; overflow: hidden;
}

.lx-cal-cell {
  background: var(--lx-card); min-height: 96px; padding: 6px;
  cursor: pointer; transition: background 0.15s; box-sizing: border-box;
}
.lx-cal-cell:hover { background: var(--lx-overlay-04); }
.lx-cal-cell-muted .lx-cal-cell-date { color: var(--lx-muted); opacity: 0.55; }
.lx-cal-cell-today { background: var(--lx-accent-soft); }
.lx-cal-cell-today .lx-cal-cell-date {
  color: var(--lx-accent-2); font-weight: 800;
}

.lx-cal-cell-date { font-size: 13px; font-weight: 600; color: var(--lx-text-strong); margin-bottom: 4px; }

.lx-cal-cell-events { display: flex; flex-direction: column; gap: 3px; }

.lx-cal-event-chip {
  background: #2563eb; color: #fff; font-size: 11px; font-weight: 600;
  padding: 3px 6px; border-radius: 6px; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; cursor: pointer;
}
.lx-cal-event-more { font-size: 10.5px; color: var(--lx-muted); padding: 2px 6px; cursor: pointer; }

/* --- Неделя / День --- */
.lx-cal-time-grid { display: flex; border: 1px solid var(--lx-border); border-radius: 12px; overflow: hidden; }

.lx-cal-hours-col { width: 56px; flex-shrink: 0; border-right: 1px solid var(--lx-border); }
.lx-cal-hour-label {
  font-size: 11px; color: var(--lx-muted); text-align: right; padding: 2px 8px 0 0;
  box-sizing: border-box; border-top: 1px solid var(--lx-border);
}
.lx-cal-hour-label:first-of-type { border-top: none; }

.lx-cal-days-row { display: flex; flex: 1; overflow-x: auto; }

.lx-cal-day-col { flex: 1; min-width: 90px; border-right: 1px solid var(--lx-border); }
.lx-cal-day-col:last-child { border-right: 1px solid var(--lx-border); }

.lx-cal-day-col-header {
  height: 40px; display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 700; color: var(--lx-text-strong);
  border-bottom: none; box-sizing: border-box;
}

.lx-cal-day-col-body {
  position: relative; cursor: pointer;
  background-image: repeating-linear-gradient(
    to bottom, var(--lx-border) 0, var(--lx-border) 1px,
    transparent 1px, transparent 56px
  );
}

.lx-cal-time-event {
  position: absolute; left: 4px; right: 4px;
  background: #2563eb; color: #fff; border-radius: 6px;
  padding: 4px 6px; overflow: hidden; cursor: pointer;
  box-shadow: 0 2px 8px rgba(37,99,235,0.3); box-sizing: border-box;
}
.lx-cal-time-event-title { font-size: 11.5px; font-weight: 700; line-height: 1.2; }
.lx-cal-time-event-hours { font-size: 10px; opacity: 0.85; margin-top: 1px; }
.lx-cal-color-picker { display: flex; gap: 8px; margin: 8px 0; }
.lx-cal-color-dot {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent;
  cursor: pointer; padding: 0;
}
.lx-cal-color-dot.active { border-color: var(--lx-text-strong); box-shadow: 0 0 0 2px var(--lx-card); }
/* --- Модалка события --- */
#event-recurrence-fields { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }

.lx-cal-invites-panel {
  background: var(--lx-card); border: 1px solid var(--lx-border);
  border-radius: 12px; padding: 10px 14px; margin-bottom: 16px;
}
.lx-cal-invites-header {
  font-size: 12.5px; font-weight: 700; color: var(--lx-muted);
  text-transform: uppercase; margin-bottom: 6px;
}
.lx-cal-invite-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 4px; border-top: 1px solid var(--lx-border); cursor: pointer;
}
.lx-cal-invite-row:first-of-type { border-top: none; }
.lx-cal-invite-row:hover { background: var(--lx-overlay-04); border-radius: 8px; }
.lx-cal-invite-title { font-size: 13.5px; font-weight: 600; color: var(--lx-text-strong); }
.lx-cal-invite-meta { font-size: 11.5px; color: var(--lx-muted); margin-top: 2px; }
.lx-cal-invite-arrow { color: var(--lx-accent-2); font-weight: 700; }

.lx-cal-participants-list {
  display: flex; flex-direction: column; gap: 6px; margin-top: 10px;
  max-height: 220px; overflow-y: auto; padding-right: 4px;
}

.lx-cal-participant-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 10px; background: var(--lx-overlay-04);
}

.lx-cal-participant-info {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0;
  text-decoration: none; color: var(--lx-text-strong); font-size: 13.5px; font-weight: 600;
}
.lx-cal-participant-info span {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lx-cal-participant-info img { flex-shrink: 0; }

.lx-cal-participant-status {
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 20px; white-space: nowrap;
}
.lx-cal-participant-status-pending { background: rgba(234,179,8,0.15); color: #eab308; }
.lx-cal-participant-status-accepted { background: rgba(34,197,94,0.15); color: #22c55e; }
.lx-cal-participant-status-declined { background: rgba(239,68,68,0.15); color: #ef4444; }

.lx-cal-participant-remove {
  width: 24px; height: 24px; border-radius: 50%; border: none; flex-shrink: 0;
  background: var(--lx-overlay-08); color: var(--lx-muted); font-size: 15px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.lx-cal-participant-remove:hover { background: #ef4444; color: #fff; }

.lx-cal-participant-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 20;
  background: var(--lx-card); border: 1px solid var(--lx-border); border-radius: 10px;
  max-height: 220px; overflow-y: auto; box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.lx-cal-participant-dropdown-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  cursor: pointer; font-size: 13px; color: var(--lx-text-strong);
}
.lx-cal-participant-dropdown-item:hover { background: var(--lx-overlay-04); }
.lx-cal-participant-dropdown-empty { padding: 10px; font-size: 12.5px; color: var(--lx-muted); }

.lx-task-board-columns { display:flex; gap:14px; overflow-x:auto; padding-bottom:12px; align-items:flex-start; }
.lx-task-column { background:var(--lx-overlay-03); border:1px solid var(--lx-border); border-radius:12px; width:272px; flex-shrink:0; padding:10px; display:flex; flex-direction:column; gap:8px; max-height:calc(100vh - 220px); transition:box-shadow 0.15s; }
.lx-wrap.light-theme .lx-task-column { border-color:rgba(15,23,42,0.10); }
.lx-task-column.lx-task-col-dragging { opacity:0.4; }
.lx-task-column-header { display:flex; justify-content:space-between; align-items:center; font-weight:700; font-size:14px; cursor:grab; padding:2px 4px; user-select:none; }
.lx-task-column-header:active { cursor:grabbing; }
.lx-task-column-count { font-size:11px; font-weight:600; color:var(--lx-muted); background:var(--lx-overlay-08); border-radius:10px; padding:1px 7px; }
.lx-task-column-cards { display:flex; flex-direction:column; gap:8px; overflow-y:auto; flex:1; min-height:24px; padding:2px; border-radius:8px; transition:background 0.12s; }
.lx-task-column-cards.lx-task-dropzone-active { background:var(--lx-accent-soft); }
.lx-task-card-mini {
  background:var(--lx-card); border:1px solid var(--lx-border); border-radius:8px;
  padding:8px 10px; font-size:13px; cursor:pointer; box-shadow:0 1px 2px rgba(0,0,0,0.06);
  display:flex; flex-direction:column; gap:6px; transition:box-shadow 0.15s;
}
.lx-wrap.light-theme .lx-task-card-mini { border-color:rgba(15,23,42,0.12); }
.lx-task-card-mini:hover { box-shadow:0 2px 8px rgba(0,0,0,0.12); border-color:var(--lx-accent-2); }
.lx-task-card-mini.lx-task-card-dragging { opacity:0.35; }
.lx-task-card-labels { display:flex; gap:4px; flex-wrap:wrap; }
.lx-task-card-label-chip { height:6px; width:28px; border-radius:3px; }
.lx-task-card-title-text { line-height:1.35; }
.lx-task-card-meta { display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:11px; color:var(--lx-muted); }
.lx-task-card-meta span { display:inline-flex; align-items:center; gap:3px; }
.lx-task-card-due.overdue { color:var(--lx-danger); font-weight:700; }
.lx-task-card-avatars { display:flex; margin-left:auto; }
.lx-task-card-avatars .lx-ava-wrap { margin-left:-6px; border-radius:50%; border:2px solid var(--lx-card); overflow:hidden; display:inline-block; }
.lx-task-add-card-btn, .lx-task-add-column { background:transparent; border:1px dashed var(--lx-border); border-radius:8px; padding:8px; font-size:12px; color:var(--lx-muted); cursor:pointer; text-align:left; }
.lx-task-add-card-btn:hover, .lx-task-add-column:hover { border-color:var(--lx-accent-2); color:var(--lx-accent-2); background:var(--lx-accent-soft); }
.lx-task-add-column-wrap { width:272px; flex-shrink:0; }
.lx-task-column-header-right { display:flex; align-items:center; gap:4px; }
.lx-task-column-title-text { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lx-task-column-del-btn { background:transparent; border:none; cursor:pointer; color:var(--lx-muted); font-size:13px; padding:2px 5px; border-radius:6px; line-height:1; }
.lx-task-column-del-btn:hover { color:var(--lx-danger); background:var(--lx-danger-soft); }
.lx-task-card-vote { cursor:pointer; padding:1px 6px; border-radius:10px; border:1px solid var(--lx-border); font-weight:700; }
.lx-task-card-vote:hover { border-color:var(--lx-accent-2); color:var(--lx-accent-2); }
.lx-task-card-vote.voted { background:var(--lx-accent-soft); border-color:var(--lx-accent-2); color:var(--lx-accent-2); }
.lx-task-filters { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:12px; }
.lx-task-filter-labels { display:flex; gap:6px; flex-wrap:wrap; }
.lx-task-filter-chip { cursor:pointer; padding:3px 10px; border-radius:12px; font-size:11px; font-weight:600; border:1.5px solid; }
.lx-task-filter-select { background:var(--lx-input-bg); border:1px solid var(--lx-border); color:var(--lx-text); padding:6px 10px; border-radius:8px; font-size:12.5px; }
.lx-task-filter-clear { background:transparent; border:none; color:var(--lx-muted); font-size:12px; cursor:pointer; text-decoration:underline; }
.lx-task-filter-hint { font-size:11px; color:var(--lx-muted); width:100%; }
.lx-task-vote-row { display:flex; align-items:center; gap:8px; margin-top:8px; }
.lx-task-card-title-row { display:flex; align-items:flex-start; gap:6px; }
.lx-task-card-done-checkbox { margin-top:2px; flex-shrink:0; cursor:pointer; accent-color:var(--lx-accent-2); }
.lx-task-card-mini.lx-task-card-done { opacity:0.6; }
.lx-task-card-mini.lx-task-card-done .lx-task-card-title-text { text-decoration:line-through; color:var(--lx-muted); }
.lx-wallet-mini {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--lx-overlay-08);
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.lx-wallet-mini-star {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  fill: #f7b733;
  animation: lx-wallet-star-pulse 2.4s ease-in-out infinite;
}
.lx-wallet-mini-balance {
  background: linear-gradient(110deg, #fde68a 0%, #f7b733 30%, #d97706 50%, #f7b733 70%, #fde68a 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: lx-wallet-shimmer 3.5s linear infinite;
}
@keyframes lx-wallet-shimmer {
  to { background-position: -250% center; }
}
@keyframes lx-wallet-star-pulse {
  0%, 100% { filter: drop-shadow(0 0 0px rgba(247,183,51,0)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 5px rgba(247,183,51,0.9)); transform: scale(1.15); }
}
.lx-wallet-mini-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fde68a 0%, #f7b733 55%, #d97706 100%);
  color: #241a00;
  border: none;
  cursor: pointer;
  margin-left: 2px;
  padding: 0;
  box-shadow: 0 0 9px rgba(247, 183, 51, 0.6);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.lx-wallet-mini-plus svg {
  width: 12px;
  height: 12px;
}
.lx-orders-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lx-orders-header-actions .lx-wallet-mini,
.lx-orders-header-actions #btn-create-order,
.lx-orders-header-actions .lx-orders-filters-toggle {
  height: 44px;
  box-sizing: border-box;
}
.lx-orders-header-actions #btn-create-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 900px) {
  .lx-orders-header-actions {
    width: 100%;
  }
  .lx-orders-header-actions #btn-create-order {
    flex: 1;
  }
}
@media (max-width: 900px) {
  .lx-work-toolbar {
    flex-wrap: wrap;
  }
  .lx-work-toolbar .lx-catalog-wrap {
    flex: 1;
  }
  .lx-work-toolbar .lx-catalog-btn {
    width: 100%;
    justify-content: center;
    height: 44px;
  }
  .lx-work-toolbar .lx-work-search-box {
    order: 3;
    flex-basis: 100%;
    margin-top: 10px;
  }
}
.lx-course-price-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-size: 10.5px; font-weight: 800; padding: 3px 10px; border-radius: 20px;
  white-space: nowrap;
}
.lx-course-price-badge .lx-wallet-mini-star { width: 12px; height: 12px; }
.lx-course-price-badge .lx-wallet-mini-balance { font-weight: 800; }
.lx-course-price-badge.lx-course-price-free {
  color: #4ade80; border-color: rgba(74, 222, 128, 0.35); background: rgba(0,0,0,0.5);
}
/* ============ АВТОРИЗАЦИЯ: фоновый паттерн + центрирование ============ */

.lx-wrap {
  isolation: isolate;
}

.lx-wrap::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.1;
  pointer-events: none;
  background-repeat: repeat;
  background-size: 340px 340px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='340' viewBox='0 0 340 340'%3E%3Cg fill='none' stroke='%233b82f6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='translate(20,15) rotate(18) scale(1.3)'%3E%3Cpath d='M7 13C6.3 10.5 6.8 8 7.6 6.3C7.9 7.8 8.6 9 9.6 9.6C9.3 6.8 10.2 3.8 12 2C13.8 3.8 14.7 6.8 14.4 9.6C15.4 9 16.1 7.8 16.4 6.3C17.2 8 17.7 10.5 17 13Z'/%3E%3C/g%3E%3Cg transform='translate(140,25) rotate(-12)'%3E%3Cpath d='M0 4l-8 10 8 10M32 4l8 10-8 10M16 0l-6 28'/%3E%3C/g%3E%3Cg transform='translate(255,20) rotate(20)'%3E%3Cpolygon points='9,0 11,7 18,7 12,11 14,18 9,14 4,18 6,11 0,7 7,7'/%3E%3C/g%3E%3Cg transform='translate(50,90) rotate(-15) scale(1.1)'%3E%3Cpath d='M0 6S-7 1.6 -9.5 -3C-11.5 -7 -9 -10 -6 -10c2 0 4 1 6 4 2-3 4-4 6-4 3 0 5.5 3 3.5 7C7 1.6 0 6 0 6z'/%3E%3C/g%3E%3Cg transform='translate(170,90) rotate(9)'%3E%3Crect x='0' y='0' width='38' height='25' rx='7'/%3E%3Cpath d='M8 25l0 8 10-8'/%3E%3C/g%3E%3Cg transform='translate(275,95) rotate(-22) scale(0.9)'%3E%3Cpolyline points='6,0 -4,16 4,16 -6,32 10,14 2,14'/%3E%3C/g%3E%3Cg transform='translate(15,175) rotate(-25) scale(1.1)'%3E%3Ccircle cx='0' cy='16' r='4'/%3E%3Ccircle cx='16' cy='13' r='4'/%3E%3Cpath d='M4 16V2l16-4v14'/%3E%3C/g%3E%3Cg transform='translate(110,180) rotate(10)'%3E%3Crect x='0' y='4' width='30' height='20' rx='4'/%3E%3Cpath d='M9 4l3-4h6l3 4'/%3E%3Ccircle cx='15' cy='14' r='6'/%3E%3C/g%3E%3Cg transform='translate(215,175) rotate(-10)'%3E%3Crect x='0' y='9' width='26' height='17' rx='2'/%3E%3Cpath d='M0 15h26M13 9v17'/%3E%3Cpath d='M13 9c-2-7-11-7-11-1c0 3 4 1 11 1zM13 9c2-7 11-7 11-1c0 3-4 1-11 1z'/%3E%3C/g%3E%3Cg transform='translate(295,190) rotate(30) scale(0.7)'%3E%3Cpolygon points='9,0 11,7 18,7 12,11 14,18 9,14 4,18 6,11 0,7 7,7'/%3E%3C/g%3E%3Cg transform='translate(45,255) rotate(-8) scale(1.1)'%3E%3Ccircle cx='10' cy='6' r='6'/%3E%3Cpath d='M0 26c0-8 4.5-12 10-12s10 4 10 12'/%3E%3C/g%3E%3Cg transform='translate(150,265) rotate(16) scale(0.8)'%3E%3Cpath d='M0 4l-8 10 8 10M32 4l8 10-8 10M16 0l-6 28'/%3E%3C/g%3E%3Cg transform='translate(245,260) rotate(22) scale(0.75)'%3E%3Cpath d='M0 6S-7 1.6 -9.5 -3C-11.5 -7 -9 -10 -6 -10c2 0 4 1 6 4 2-3 4-4 6-4 3 0 5.5 3 3.5 7C7 1.6 0 6 0 6z'/%3E%3C/g%3E%3Cg transform='translate(80,300) rotate(12) scale(0.7)'%3E%3Cpolyline points='6,0 -4,16 4,16 -6,32 10,14 2,14'/%3E%3C/g%3E%3Cg transform='translate(200,300) rotate(-18) scale(1.2)'%3E%3Cpolygon points='9,0 11,7 18,7 12,11 14,18 9,14 4,18 6,11 0,7 7,7'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

@media (min-width: 769px) {
  .lx-wrap:has(#page-auth.active) .lx-body-row {
    align-items: stretch;
  }

  #page-auth.lx-page.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
  }

  .lx-wrap:has(#page-auth.active) .lx-auth-logo {
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .lx-auth-logo { margin-top: 20px; }
  .lx-auth-tagline { margin-top: 6px; }
  .lx-auth-card {
    padding: 22px 20px; margin-top: 6px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  }
  .lx-auth-card h3 { margin-bottom: 12px; }
  .lx-auth-usercount { margin-top: 12px; }
  #auth-submit-btn, #auth-confirm-btn {
    box-shadow: 0 3px 10px color-mix(in srgb, var(--lx-accent) 30%, transparent) !important;
  }
  .lx-wrap:has(#page-auth.active)::before {
    opacity: 0.06;
    background-size: 260px 260px;
  }
}

@keyframes lx-rec-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.lx-voice-player {
  display:flex; align-items:center; gap:10px;
  background:var(--lx-overlay-06);
  border-radius:20px;
  padding:6px 12px 6px 6px;
  width:220px; max-width:100%;
}
.lx-voice-play-btn {
  width:32px; height:32px; border-radius:50%;
  background:var(--lx-gradient); border:none; flex-shrink:0; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
}
.lx-voice-play-btn svg { width:16px; height:16px; fill:#fff; stroke:none; }

.lx-voice-wave-wrap {
  position:relative; flex:1; min-width:0; height:22px; cursor:pointer; overflow:hidden;
}
.lx-voice-wave-bg, .lx-voice-wave-fg {
  display:flex; align-items:center; gap:2px; height:100%; width:100%;
}
.lx-voice-wave-fg-clip {
  position:absolute; top:0; left:0; height:100%; width:0%; overflow:hidden;
}
.lx-voice-wave-bg span, .lx-voice-wave-fg span {
  display:block; width:3px; border-radius:2px; flex-shrink:0;
}
.lx-voice-wave-bg span { background:var(--lx-overlay-08); }
.lx-voice-wave-fg span { background:var(--lx-gradient); }

.lx-voice-time {
  font-size:11px; color:var(--lx-muted); flex-shrink:0;
  width:32px; text-align:left; font-variant-numeric:tabular-nums;
}
/* Миниатюра прикреплённого фото в баре превью (чат) */
.lx-photo-preview-thumb {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--lx-overlay-06);
}
.lx-photo-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lx-photo-preview-spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
}
.lx-photo-preview-spinner::after {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  animation: lx-spin 0.8s linear infinite;
}
@keyframes lx-spin {
  to { transform: rotate(360deg); }
}
/* =========================================================
   МУЗЫКА
   ========================================================= */

.lx-track-list { display: flex; flex-direction: column; }

.lx-track-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 8px; border-radius: 10px;
  border-bottom: 1px solid var(--lx-border);
  transition: background 0.15s;
}
.lx-track-row:hover { background: var(--lx-overlay-04); }
.lx-track-row:last-child { border-bottom: none; }

.lx-track-cover-wrap { position: relative; flex-shrink: 0; width: 36px; height: 36px; }
.lx-track-play-btn {
  position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 8px;
  border: none; background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.15s;
}
.lx-track-play-btn .lx-icon { width: 16px; height: 16px; fill: #fff; stroke: none; margin-left: 2px; }
.lx-track-play-btn:hover { background: rgba(0,0,0,0.65); }
.lx-track-play-btn.is-playing { background: rgba(0,0,0,0.65); }

.lx-track-info { flex: 1; min-width: 0; cursor: pointer; }
.lx-track-title {
  font-size: 14px; font-weight: 600; color: var(--lx-text-strong);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lx-track-artist {
  font-size: 12.5px; color: var(--lx-muted); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.lx-track-duration { flex-shrink: 0; font-size: 12.5px; color: var(--lx-muted); min-width: 38px; text-align: right; }

.lx-track-add-btn {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--lx-border); background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.15s;
}
.lx-track-add-btn .lx-icon { width: 16px; height: 16px; stroke: var(--lx-muted); }
.lx-track-add-btn:hover { border-color: var(--lx-accent); }
.lx-track-add-btn:hover .lx-icon { stroke: var(--lx-accent); }
.lx-track-add-btn.is-added { background: var(--lx-success-soft); border-color: var(--lx-success); }
.lx-track-add-btn.is-added .lx-icon { stroke: var(--lx-success); }

.lx-track-offline-btn {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--lx-border); background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.15s; margin-left: 6px;
}
.lx-track-offline-btn .lx-icon { width: 16px; height: 16px; stroke: var(--lx-muted); }
.lx-track-offline-btn:hover { border-color: var(--lx-accent); }
.lx-track-offline-btn:hover .lx-icon { stroke: var(--lx-accent); }
.lx-track-offline-btn[data-offline="1"] { background: var(--lx-success-soft); border-color: var(--lx-success); }
.lx-track-offline-btn[data-offline="1"] .lx-icon { stroke: var(--lx-success); }
.lx-track-offline-btn:disabled { opacity: 0.5; cursor: default; }

.lx-track-row-artist { align-items: flex-start; justify-content: space-between; }
.lx-track-row-artist-wrap { border-bottom: 1px solid var(--lx-border); }
.lx-track-row-artist-wrap .lx-track-row-artist { border-bottom: none; }
.lx-track-row-artist-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; flex-shrink: 0; }
.lx-track-chart-mini { padding: 2px 8px 14px 56px; }
.lx-chart-wrap-mini { height: 54px; margin-bottom: 0; }
#music-artist-tracks-list .lx-btn-sec.active { background: var(--lx-accent-soft); border-color: var(--lx-accent); color: var(--lx-accent); }

.lx-feed-track-row {
  border: 1px solid var(--lx-border); border-radius: 12px;
  background: var(--lx-overlay-03); margin: 10px 0 4px; cursor: pointer;
}

/* -------------------- Глобальный плеер -------------------- */

.lx-global-player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 500;
  background: var(--lx-card); border-top: 1px solid var(--lx-border);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.18);
}

.lx-global-player-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  padding: 10px 20px;
}

.lx-player-track-info { width: 180px; flex-shrink: 0; min-width: 0; }
.lx-player-track-info .lx-player-track-title,
#player-track-title {
  font-size: 13.5px; font-weight: 600; color: var(--lx-text-strong);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#player-track-artist {
  font-size: 12px; color: var(--lx-muted); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.lx-player-controls { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.lx-player-btn {
  border: none; background: transparent; cursor: pointer;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.lx-player-btn .lx-icon { width: 18px; height: 18px; fill: var(--lx-text); stroke: none; }
.lx-player-btn:hover { background: var(--lx-overlay-08); }
.lx-player-btn-main { width: 42px; height: 42px; background: var(--lx-gradient); }
.lx-player-btn-main .lx-icon { fill: #fff; width: 20px; height: 20px; }
.lx-player-btn-main:hover { opacity: 0.9; background: var(--lx-gradient); }

.lx-player-progress-wrap { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.lx-player-time { font-size: 11px; color: var(--lx-muted); width: 34px; flex-shrink: 0; }
.lx-player-time:last-child { text-align: right; }

.lx-player-progress {
  flex: 1; -webkit-appearance: none; appearance: none; height: 4px;
  border-radius: 2px; background: var(--lx-border); cursor: pointer; outline: none;
}
.lx-player-progress::-webkit-slider-thumb {
  -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%;
  background: var(--lx-accent-2); cursor: pointer; margin-top: -4px;
}
.lx-player-progress::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%; background: var(--lx-accent-2);
  border: none; cursor: pointer;
}
.lx-player-progress::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--lx-border); }

.lx-player-track-meta-mobile { display: none; }

.lx-player-add-btn .lx-icon { stroke: var(--lx-muted); fill: none; }
.lx-player-add-btn:hover .lx-icon { stroke: var(--lx-accent); }
.lx-player-add-btn.is-added .lx-icon { stroke: var(--lx-success); }
.lx-player-close-btn { margin-left: 4px; }
.lx-player-close-btn .lx-icon { stroke: var(--lx-muted); fill: none; width: 16px; height: 16px; }
.lx-player-volume-wrap { position: relative; flex-shrink: 0; }
.lx-player-volume-btn .lx-icon { stroke: var(--lx-muted); fill: none; width: 18px; height: 18px; }
.lx-player-volume-btn:hover .lx-icon { stroke: var(--lx-accent); }
.lx-player-volume-popover {
  position: absolute; bottom: 44px; right: 0;
  background: var(--lx-card); border: 1px solid var(--lx-border); border-radius: 10px;
  padding: 10px 10px; box-shadow: 0 4px 16px rgba(0,0,0,0.18); z-index: 10;
}
.lx-player-volume-popover input[type="range"] { width: 100px; accent-color: var(--lx-accent-2); cursor: pointer; }
/* -------------------- Мини-плеер в топбаре (десктоп) -------------------- */

.lx-mini-player {
  display: flex; align-items: center; gap: 6px;
  flex-shrink: 0; width: 280px; max-width: 280px;
  padding: 6px 8px; border-radius: 999px;
  background: var(--lx-overlay-06);
  border: 1px solid var(--lx-border);
  position: relative; overflow: visible;
}
.lx-mini-player-cover-wrap {
  position: relative; width: 36px; height: 36px;
  flex-shrink: 0;
}
.lx-mini-player-progress-ring {
  position: absolute; top: 0; left: 0; width: 36px; height: 36px;
  transform: rotate(-90deg);
}
.lx-mini-player-progress-ring-bg {
  fill: none; stroke: var(--lx-border); stroke-width: 2;
}
.lx-mini-player-progress-ring-fill {
  fill: none; stroke: var(--lx-accent-2); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 100.53; stroke-dashoffset: 100.53;
  transition: stroke-dashoffset 0.1s linear;
}
.lx-mini-player-info { cursor: pointer; }

.lx-mini-queue-panel {
  position: absolute; top: 46px; left: 0; width: 320px;
  background: var(--lx-card); border: 1px solid var(--lx-border); border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.25); z-index: 20; overflow: hidden;
}
.lx-mini-queue-now { display: flex; align-items: center; gap: 10px; padding: 12px; }
.lx-mini-queue-cover { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--lx-overlay-04); }
.lx-mini-queue-now-info { flex: 1; min-width: 0; }
.lx-mini-queue-now-title { font-size: 13.5px; font-weight: 700; color: var(--lx-text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-mini-queue-now-artist { font-size: 12px; color: var(--lx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }

.lx-mini-queue-seek { height: 4px; background: var(--lx-border); cursor: pointer; margin: 0 12px 10px; border-radius: 2px; }
.lx-mini-queue-seek-fill { height: 100%; width: 0%; background: var(--lx-gradient); border-radius: 2px; transition: width 0.1s linear; }

.lx-mini-queue-list { max-height: 320px; overflow-y: auto; border-top: 1px solid var(--lx-border); }
.lx-mini-queue-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; cursor: pointer; transition: background 0.15s; }
.lx-mini-queue-row:hover { background: var(--lx-overlay-04); }
.lx-mini-queue-row.active { background: var(--lx-accent-soft); }
.lx-mini-queue-row-cover { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; flex-shrink: 0; background: var(--lx-overlay-04); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.lx-mini-queue-row-info { flex: 1; min-width: 0; }
.lx-mini-queue-row-title { font-size: 13px; font-weight: 600; color: var(--lx-text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-mini-queue-row-artist { font-size: 11.5px; color: var(--lx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.lx-mini-queue-row-duration { font-size: 11.5px; color: var(--lx-muted); flex-shrink: 0; }
.lx-mini-player-cover {
  position: absolute; top: 3px; left: 3px; width: 30px; height: 30px;
  border-radius: 50%; object-fit: cover; display: block; background: var(--lx-overlay-06);
}
.lx-mini-player-cover-play-btn {
  position: absolute; top: 3px; left: 3px; width: 30px; height: 30px; border-radius: 50%;
  border: none; background: rgba(0,0,0,0.45); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background 0.15s;
}
.lx-mini-player-cover-play-btn:hover { background: rgba(0,0,0,0.65); }
.lx-mini-player-cover-play-btn .lx-icon { fill: #fff; stroke: none; width: 14px; height: 14px; }
.lx-mini-player-info { min-width: 0; flex: 1; line-height: 1.25; }
.lx-mini-player-title {
  font-size: 12.5px; font-weight: 700; color: var(--lx-text-strong);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lx-mini-player-artist {
  font-size: 11px; color: var(--lx-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lx-mini-player-controls { display: flex; align-items: center; gap: 0; flex-shrink: 0; }
.lx-mini-player-btn {
  border: none; background: transparent; cursor: pointer;
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.lx-mini-player-btn .lx-icon { width: 14px; height: 14px; fill: var(--lx-text); stroke: none; }
.lx-mini-player-btn:hover { background: var(--lx-overlay-08); }
.lx-mini-player-btn-main { width: 28px; height: 28px; background: var(--lx-gradient); margin: 0 2px; }
.lx-mini-player-btn-main .lx-icon { fill: #fff; width: 14px; height: 14px; }
.lx-mini-player-btn-main:hover { opacity: 0.9; }
.lx-mini-player-add-btn .lx-icon { stroke: var(--lx-muted); fill: none; width: 14px; height: 14px; }
.lx-mini-player-add-btn:hover .lx-icon { stroke: var(--lx-accent); }
.lx-mini-player-add-btn.is-added .lx-icon { stroke: var(--lx-success); }
.lx-mini-player-close-btn { margin-left: 2px; }
.lx-mini-player-close-btn .lx-icon { stroke: var(--lx-muted); fill: none; width: 12px; height: 12px; }
.lx-mini-player-volume { position: relative; flex-shrink: 0; }
.lx-mini-player-volume-btn .lx-icon { stroke: var(--lx-muted); fill: none; width: 14px; height: 14px; }
.lx-mini-player-volume-btn:hover .lx-icon { stroke: var(--lx-accent); }
.lx-mini-player-volume-popover {
  position: absolute; top: 32px; right: 0;
  background: var(--lx-card); border: 1px solid var(--lx-border); border-radius: 10px;
  padding: 10px 10px; box-shadow: 0 4px 16px rgba(0,0,0,0.18); z-index: 10;
}
.lx-mini-player-volume-popover input[type="range"] { width: 90px; accent-color: var(--lx-accent-2); cursor: pointer; }


@media (max-width: 768px) {
  .lx-mini-player { display: none !important; }
}
@media (min-width: 769px) {
  .lx-global-player { display: none !important; }
}

@media (max-width: 768px) {
  .lx-global-player {
    bottom: var(--lx-nav-h);
    background: transparent; border-top: none; box-shadow: none;
    padding: 0 76px 8px 12px;
  }
  .lx-global-player-inner {
    max-width: none; margin: 0; padding: 8px 10px; gap: 8px;
    border-radius: 999px; background: var(--lx-card); border: 1px solid var(--lx-border);
    box-shadow: 0 4px 18px rgba(0,0,0,0.22);
    position: relative; overflow: hidden; flex-wrap: nowrap;
  }
  .lx-player-track-info { width: auto; flex: 1; min-width: 0; }
  .lx-player-track-cover { width: 40px; height: 40px; border-radius: 8px; }
  .lx-player-controls > .lx-player-btn:not(.lx-player-btn-main) { display: none; }
  .lx-player-btn-main { width: 34px; height: 34px; flex-shrink: 0; }
  .lx-player-btn-main .lx-icon { width: 16px; height: 16px; }
  .lx-player-progress-wrap { display: none; }
  .lx-player-progress-fill-mobile {
    position: absolute; left: 0; bottom: 0; height: 2px; width: 0%;
    background: var(--lx-accent-2); transition: width 0.1s linear; pointer-events: none;
  }
  .lx-player-volume-wrap,
  .lx-player-add-btn { display: none; }
  .lx-player-close-btn { width: 26px; height: 26px; flex-shrink: 0; }
}

/* -------------------- Полноэкранный плеер (моб.) -------------------- */
.lx-full-player {
  position: fixed; inset: 0; z-index: 900;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.lx-full-player.active { opacity: 1; pointer-events: auto; }
.lx-full-player-backdrop {
  position: absolute; inset: 0; background-color: #0b0b10;
  background-size: cover; background-position: center;
  filter: blur(40px) brightness(0.45) saturate(1.3); transform: scale(1.2);
}
.lx-full-player-sheet {
  position: relative; width: 100%; max-width: 480px; height: 100dvh;
  background: rgba(15,15,20,0.55);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  display: flex; flex-direction: column;
  padding: max(16px, env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform 0.32s cubic-bezier(.32,.72,0,1);
  color: #fff;
}
.lx-full-player.active .lx-full-player-sheet { transform: translateY(0); }
.lx-full-player-drag-handle { width: 36px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.3); margin: 0 auto 10px; flex-shrink: 0; }
.lx-full-player-topbar { display:flex; align-items:center; justify-content:space-between; margin-bottom: 8px; }
.lx-full-player-collapse-btn, .lx-full-player-queue-btn {
  width: 38px; height:38px; border-radius:50%; border:none; background: rgba(255,255,255,0.08);
  display:flex; align-items:center; justify-content:center; cursor:pointer; flex-shrink:0;
}
.lx-full-player-collapse-btn .lx-icon, .lx-full-player-queue-btn .lx-icon { width:20px; height:20px; stroke:#fff; fill:none; }
.lx-full-player-topbar-label { font-size:12px; letter-spacing:0.04em; text-transform:uppercase; color:rgba(255,255,255,0.6); font-weight:600; }
.lx-full-player-cover-wrap { flex: 1; display:flex; align-items:center; justify-content:center; min-height: 0; padding: 12px 0; }
.lx-full-player-cover, .lx-full-player-cover-placeholder {
  width: min(78vw, 340px); height: min(78vw, 340px); border-radius: 18px;
  object-fit: cover; box-shadow: 0 20px 50px rgba(0,0,0,0.45); background: rgba(255,255,255,0.06);
}
.lx-full-player-cover-placeholder { display:flex; align-items:center; justify-content:center; font-size:64px; }
.lx-full-player-cover:not(.hidden) ~ .lx-full-player-cover-placeholder { display:none; }
.lx-full-player-meta { display:flex; align-items:center; gap:12px; margin-bottom: 14px; }
.lx-full-player-meta-text { flex:1; min-width:0; }
.lx-full-player-title { font-size: 21px; font-weight:800; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lx-full-player-artist { font-size: 14px; color: rgba(255,255,255,0.65); margin-top:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lx-full-player-add-btn {
  width:40px; height:40px; border-radius:50%; border:none; background: rgba(255,255,255,0.08); flex-shrink:0;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
}
.lx-full-player-add-btn .lx-icon { width:20px; height:20px; stroke: rgba(255,255,255,0.75); fill:none; }
.lx-full-player-add-btn.is-added .lx-icon { stroke: var(--lx-success); }
.lx-full-player-progress-wrap { margin-bottom: 8px; }
.lx-full-player-progress {
  width:100%; -webkit-appearance:none; appearance:none; height:4px; border-radius:2px;
  background: rgba(255,255,255,0.2); cursor:pointer; outline:none;
}
.lx-full-player-progress::-webkit-slider-thumb {
  -webkit-appearance:none; width:14px; height:14px; border-radius:50%; background:#fff; cursor:pointer;
  margin-top:-5px; box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.lx-full-player-progress::-moz-range-thumb { width:14px; height:14px; border-radius:50%; background:#fff; border:none; cursor:pointer; }
.lx-full-player-times { display:flex; justify-content:space-between; font-size:11.5px; color:rgba(255,255,255,0.55); margin-top:6px; }
.lx-full-player-controls { display:flex; align-items:center; justify-content:center; gap: 28px; margin: 10px 0 4px; }
.lx-full-player-btn { border:none; background:transparent; cursor:pointer; width:48px; height:48px; border-radius:50%; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.lx-full-player-btn .lx-icon { width:26px; height:26px; fill:#fff; stroke:none; }
.lx-full-player-btn-main { width:72px; height:72px; background:#fff; box-shadow:0 8px 24px rgba(0,0,0,0.35); }
.lx-full-player-btn-main .lx-icon { fill:#111; width:30px; height:30px; }
.lx-full-player-btn-main:active { transform: scale(0.94); }
.lx-full-player-queue-panel {
  position:absolute; left:0; right:0; bottom:0; top: 12%; z-index: 2;
  background: rgba(12,12,16,0.94); backdrop-filter: blur(20px);
  border-radius: 20px 20px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  display:flex; flex-direction:column;
}
.lx-full-player-queue-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; flex-shrink:0; }
.lx-full-player-queue-title { font-size:15px; font-weight:700; }
.lx-full-player-queue-close-btn { width:32px; height:32px; border-radius:50%; border:none; background: rgba(255,255,255,0.08); display:flex; align-items:center; justify-content:center; cursor:pointer; flex-shrink:0; }
.lx-full-player-queue-close-btn .lx-icon { width:18px; height:18px; stroke:#fff; fill:none; }
.lx-full-player-queue-list {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(to bottom, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
}
.lx-full-player-queue-row { display:flex; align-items:center; gap:10px; padding:8px 6px; border-radius:10px; cursor:pointer; }
.lx-full-player-queue-row:hover, .lx-full-player-queue-row.active { background: rgba(255,255,255,0.08); }
.lx-full-player-queue-row-cover { width:40px; height:40px; border-radius:6px; object-fit:cover; flex-shrink:0; background: rgba(255,255,255,0.08); display:flex; align-items:center; justify-content:center; font-size:14px; }
.lx-full-player-queue-row-info { flex:1; min-width:0; }
.lx-full-player-queue-row-title { font-size:13.5px; font-weight:600; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lx-full-player-queue-row-artist { font-size:11.5px; color:rgba(255,255,255,0.6); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:1px; }
.lx-full-player-queue-row-duration { font-size:11.5px; color:rgba(255,255,255,0.5); flex-shrink:0; }
@media (min-width: 769px) { .lx-full-player { display:none !important; } }

/* -------------------- Обложка трека -------------------- */
.lx-track-cover {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 8px;
  object-fit: cover; background: var(--lx-overlay-04);
}
.lx-track-cover-placeholder { display: flex; align-items: center; justify-content: center; font-size: 16px; }
.lx-player-track-cover {
  width: 34px; height: 34px; border-radius: 6px; object-fit: cover;
  flex-shrink: 0; margin-right: 8px;
}

/* -------------------- ЛК артиста: статистика -------------------- */
.lx-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 16px; }
.lx-stat-box { background: var(--lx-card); border: 1px solid var(--lx-border); border-radius: 12px; padding: 14px; text-align: center; }
.lx-stat-box-value { font-size: 22px; font-weight: 800; color: var(--lx-text-strong); }
.lx-stat-box-label { font-size: 11.5px; color: var(--lx-muted); margin-top: 4px; }
.lx-artist-top-rank { margin-top: 6px; padding: 10px 14px; border-radius: 10px; background: var(--lx-accent-soft); color: var(--lx-accent); font-size: 12.5px; font-weight: 600; }
.lx-badge-success { background: var(--lx-success-soft); border-color: var(--lx-success); color: var(--lx-success); }

/* -------------------- ЛК артиста: график прослушиваний -------------------- */
.lx-chart-title { font-size: 12.5px; color: var(--lx-muted); margin-bottom: 8px; }
.lx-chart-wrap { position: relative; height: 90px; background: var(--lx-card); border: 1px solid var(--lx-border); border-radius: 12px; margin-bottom: 16px; overflow: hidden; }
.lx-chart-bar { position: absolute; bottom: 0; background: var(--lx-gradient); border-radius: 3px 3px 0 0; transition: height 0.2s; }
.lx-hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 0;
  overflow: hidden;
}
.lx-restriction-banner {
  background: linear-gradient(90deg, #f87171, #fb923c);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 8px 16px;
  line-height: 1.4;
}
.lx-auth-usercount {
  max-width: 400px; width: 100%; margin: 16px auto 0;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--lx-muted); font-size: 13px;
}
.lx-auth-usercount svg { color: var(--lx-accent-2); flex-shrink: 0; }
.lx-auth-usercount b { color: var(--lx-text-strong); font-weight: 700; }

.lx-auth-footer {
  display: flex; justify-content: center; gap: 18px; flex-wrap: wrap;
  max-width: 400px; margin: 24px auto 16px;
  font-size: 12px;
}
.lx-auth-footer a {
  color: var(--lx-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lx-auth-footer a:hover { color: var(--lx-accent-2); }

.lx-cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
  padding: 14px 20px;
  background: var(--lx-card);
  border-top: 1px solid var(--lx-border);
  font-size: 12.5px; color: var(--lx-muted);
}
.lx-cookie-banner span { max-width: 700px; }
.lx-cookie-banner a { color: var(--lx-accent-2); text-decoration: underline; text-underline-offset: 2px; }


.lx-exec-public-header { display:flex; align-items:center; gap:18px; margin-bottom:14px; }
.lx-exec-public-header-info { display:flex; flex-direction:column; gap:8px; }
.lx-exec-public-name { margin:0; font-size:20px; }
.lx-exec-public-badges { display:flex; flex-wrap:wrap; gap:6px; }
.lx-exec-public-badge {
  display:inline-flex; align-items:center; padding:4px 10px; border-radius:20px;
  background: var(--lx-overlay-06); font-size:12px; font-weight:600; color: var(--lx-text);
}
.lx-exec-public-badge-verified { background: var(--lx-accent-soft); color: var(--lx-accent-2, #60a5fa); }
.lx-exec-section { background: var(--lx-card); border: 1px solid var(--lx-border); border-radius: 16px; padding: 18px 20px; margin-bottom: 14px; }
.lx-exec-section-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; margin-bottom: 12px; color: var(--lx-text-strong); }
.lx-exec-section-icon { font-size: 17px; line-height: 1; }
.lx-exec-section .lx-input, .lx-exec-section .lx-textarea { margin-bottom: 10px; }
.lx-exec-section .lx-input:last-child, .lx-exec-section .lx-textarea:last-child { margin-bottom: 0; }
.lx-exec-counter { text-align: right; font-size: 11px; color: var(--lx-muted); margin-top: -6px; margin-bottom: 4px; }
.lx-category-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 340px;
  display: flex;
  flex-direction: column;
  background: var(--lx-card);
  border: 1px solid var(--lx-border);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}
.lx-category-dropdown-items { overflow-y: auto; flex: 1; min-height: 0; }
.lx-wrap.light-theme .lx-category-dropdown { box-shadow: 0 12px 32px rgba(15,23,42,0.15); }
.lx-category-suggest-chip {
  padding: 7px 14px; border-radius: 20px; border: 1px solid var(--lx-border);
  background: var(--lx-overlay-06); color: var(--lx-text); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.lx-category-suggest-chip:hover { background: var(--lx-accent-soft); border-color: var(--lx-accent-2, #60a5fa); }
.lx-category-suggest-chip-manual {
  background: transparent; color: var(--lx-muted); border-style: dashed; font-weight: 500;
}
.lx-banned-notice { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; padding:70px 20px; text-align:center; }
.lx-banned-notice svg { stroke:var(--lx-danger); fill:none; stroke-width:1.8; }
.lx-banned-notice p { font-size:15px; font-weight:600; color:var(--lx-danger); margin:0; }
/* ===== Премиальные блоки профиля компании (ЛК Работа) ===== */
.lx-emp-block-card {
  background: var(--lx-card);
  border: 1px solid var(--lx-border);
  border-radius: 16px;
  padding: 16px;
  margin: 14px 0;
  transition: border-color .15s;
}
.lx-emp-block-card:hover { border-color: var(--lx-accent-2); }

.lx-emp-block-topline {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 10px; flex-wrap: wrap;
}
.lx-emp-block-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px;
  padding: 5px 10px; border-radius: 8px;
  background: var(--lx-overlay-08); color: var(--lx-muted);
}
.lx-emp-block-badge .lx-icon { width: 13px; height: 13px; }
.lx-emp-block-badge-photo { color: #60a5fa; background: rgba(96,165,250,0.12); }
.lx-emp-block-badge-video { color: #c084fc; background: rgba(192,132,252,0.12); }
.lx-emp-block-badge-text  { color: var(--lx-accent-2); background: var(--lx-accent-soft); }

.lx-emp-block-controls { display: flex; gap: 6px; }
.lx-emp-block-icon-btn {
  width: 30px; height: 30px; border-radius: 9px; border: none;
  background: var(--lx-overlay-08); color: var(--lx-text);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s;
}
.lx-emp-block-icon-btn .lx-icon { width: 15px; height: 15px; }
.lx-emp-block-icon-btn:hover { background: var(--lx-overlay-10); }
.lx-emp-block-icon-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.lx-emp-block-icon-btn:disabled:hover { background: var(--lx-overlay-08); }
.lx-emp-block-icon-btn-danger:hover { background: var(--lx-danger-soft); color: var(--lx-danger); }

.lx-emp-block-body { line-height: 1.5; }
.lx-emp-block-text { white-space: pre-wrap; margin: 0; font-size: 14px; }
.lx-emp-block-photo { width: 100%; border-radius: 12px; display: block; object-fit: cover; max-height: 420px; }
.lx-emp-block-video { border-radius: 12px; overflow: hidden; }
.lx-emp-block-video iframe { width: 100%; display: block; border: none; }
.lx-emp-block-caption { font-size: 12px; color: var(--lx-muted); margin-top: 8px; }

/* Сегмент-переключатель типа блока в редакторе */
.lx-emp-block-type-switch {
  display: flex; gap: 4px; padding: 4px;
  background: var(--lx-overlay-06); border-radius: 12px;
  margin-bottom: 14px;
}
.employer-block-type-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 8px; border: none; border-radius: 9px;
  background: transparent; color: var(--lx-muted); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background .15s, color .15s;
}
.employer-block-type-btn .lx-icon { width: 15px; height: 15px; }
.employer-block-type-btn:hover:not(:disabled) { color: var(--lx-text); }
.employer-block-type-btn.active {
  background: var(--lx-card); color: var(--lx-accent-2);
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.employer-block-type-btn:disabled { opacity: 0.35; cursor: not-allowed; }
/* ================= МОДАЛКА "КАК УСТАНОВИТЬ КАК ПРИЛОЖЕНИЕ" ================= */
.lx-install-guide-link,
.lx-install-guide-link:visited {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--lx-accent-2) !important;
  text-decoration: none !important;
  margin: -4px 0 14px;
}
.lx-install-guide-link:hover,
.lx-install-guide-link:hover:visited { color: var(--lx-accent) !important; text-decoration: underline !important; }
.lx-install-guide-link svg { flex-shrink: 0; width: 16px; height: 16px; margin-top: 1px; }

.lx-install-modal { max-width: 340px; padding: 22px; position: relative; text-align: center; }

.lx-install-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 14px; }
.lx-install-tab {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--lx-border); background: var(--lx-overlay-06); color: var(--lx-muted);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: 0.15s;
}
.lx-install-tab.active { background: var(--lx-gradient); border-color: transparent; color: #fff; }
.lx-install-tab.done { border-color: var(--lx-accent-2); color: var(--lx-accent-2); }

.lx-install-slide { display: none; }
.lx-install-slide.active { display: block; animation: lxInstallFade 0.2s ease; }
@keyframes lxInstallFade { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }

.lx-install-img {
  width: auto; max-width: 100%; max-height: 220px;
  border-radius: 16px; border: 1px solid var(--lx-border);
  margin: 0 auto 14px; display: block; object-fit: contain;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.lx-install-step-title { font-weight: 700; font-size: 14.5px; margin-bottom: 5px; }
.lx-install-step-text { font-size: 12.5px; color: var(--lx-muted); line-height: 1.45; }

.lx-install-nav { display: flex; gap: 10px; margin-top: 14px; }
.lx-install-nav button { flex: 1; }
.lx-install-nav .hidden-nav { visibility: hidden; }



/* Чек-лист онбординга профиля */
.onboarding-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}
.onboarding-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  flex: 0 0 260px;
  width: 260px;
  border-radius: 12px;
  border: 1px solid var(--lx-border);
  background: var(--lx-overlay-03);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, opacity 0.3s ease;
}
.onboarding-card:hover {
  border-color: var(--lx-accent);
  transform: translateY(-1px);
}
.onboarding-card.done {
  cursor: default;
  opacity: 0.55;
  border-color: var(--lx-success);
  background: var(--lx-success-soft);
}
.onboarding-card.done:hover { transform: none; }
.onboarding-check {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  background: var(--lx-accent-soft);
  color: var(--lx-accent);
}
.onboarding-check .lx-icon { width: 14px; height: 14px; }
.onboarding-card > div:last-child { min-width: 0; overflow: hidden; }
.onboarding-card.done .onboarding-check {
  background: var(--lx-success);
  color: #fff;
}
.onboarding-title {
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.onboarding-desc {
  font-size: 10.5px;
  color: var(--lx-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Виджет рекомендованных авторов */
.suggested-authors-widget {
  border: 1px solid var(--lx-border);
  border-radius: 16px;
  background: var(--lx-overlay-03);
  padding: 14px;
}
.suggested-authors-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
.suggested-authors-close {
  background: none;
  border: none;
  color: var(--lx-muted);
  cursor: pointer;
  font-size: 13px;
  padding: 2px 6px;
  border-radius: 6px;
}
.suggested-authors-close:hover {
  background: var(--lx-overlay-03);
  color: var(--lx-accent);
}
.suggested-author-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--lx-border);
}
.suggested-author-row:last-child { border-bottom: none; }
.suggested-author-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  flex-shrink: 0;
}
.suggested-author-name {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.suggested-author-follow-btn {
  font-size: 11px;
  padding: 5px 10px;
  flex-shrink: 0;
}

/* Виджет топ-авторов платформы (сайдбар ленты) */
.lx-top-authors-widget {
  border: 1px solid var(--lx-border);
  border-radius: 16px;
  background: var(--lx-overlay-03);
  padding: 14px;
}
.lx-top-authors-header {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
.lx-top-author-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--lx-border);
  cursor: pointer;
}
.lx-top-author-row:last-child { border-bottom: none; }
.lx-top-author-row:hover .lx-top-author-name { color: var(--lx-accent); }
.lx-top-author-rank {
  flex-shrink: 0;
  width: 18px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--lx-muted);
}
.lx-top-author-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.lx-top-author-name {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lx-top-author-rep {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--lx-accent);
}

/* Мобильная полоса топ-авторов под поиском (только < 1024px) */
.mobile-top-authors-strip { display: none; }
@media (max-width: 1024px) {
  .mobile-top-authors-strip {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 10px 2px 6px;
    margin-top: 10px;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-top-authors-strip::-webkit-scrollbar { display: none; }
}
.mta-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 58px;
  cursor: pointer;
}
.mta-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--lx-accent);
  padding: 2px;
  box-sizing: border-box;
}
.mta-name {
  font-size: 10.5px;
  color: var(--lx-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 58px;
}

/* =========================================================
   ОНБОРДИНГ-ТУР
   ========================================================= */
.lx-tour-click-catcher {
  position: fixed; inset: 0; z-index: 999990; background: transparent;
}
.lx-tour-spotlight {
  position: fixed; z-index: 999991; border-radius: 14px; pointer-events: none;
  transition: top 0.3s ease, left 0.3s ease, width 0.3s ease, height 0.3s ease;
  animation: lx-tour-pulse 1.8s ease-in-out infinite;
}
@keyframes lx-tour-pulse {
  0%, 100% { box-shadow: 0 0 0 9999px rgba(3,7,18,0.72), 0 0 0 3px var(--lx-accent), 0 0 24px 4px var(--lx-accent-soft); }
  50%      { box-shadow: 0 0 0 9999px rgba(3,7,18,0.72), 0 0 0 5px var(--lx-accent-2), 0 0 34px 8px var(--lx-accent-soft); }
}
@media (prefers-reduced-motion: reduce) {
  .lx-tour-spotlight { animation: none; box-shadow: 0 0 0 9999px rgba(3,7,18,0.72), 0 0 0 3px var(--lx-accent); }
}

.lx-tour-card {
  position: fixed; z-index: 999992;
  width: 328px; max-width: calc(100vw - 32px);
  background: var(--lx-card); border: 1px solid var(--lx-border); border-radius: 18px;
  padding: 18px 20px; box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  transition: top 0.3s ease, left 0.3s ease;
  box-sizing: border-box;
}
.lx-tour-card-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px;
}
.lx-tour-step-counter {
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--lx-accent-2);
}
.lx-tour-skip-btn {
  background: none; border: none; color: var(--lx-muted); font-size: 12.5px;
  cursor: pointer; padding: 3px 4px; font-family: inherit;
}
.lx-tour-skip-btn:hover { color: var(--lx-text-strong); }
.lx-tour-title {
  margin: 0 0 6px; font-size: 16.5px; font-weight: 800; color: var(--lx-text-strong); line-height: 1.3;
}
.lx-tour-text {
  margin: 0 0 14px; font-size: 13.5px; line-height: 1.5; color: var(--lx-muted);
}
.lx-tour-dots { display: flex; gap: 5px; margin-bottom: 14px; flex-wrap: wrap; }
.lx-tour-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--lx-border);
  transition: background 0.2s ease, width 0.2s ease;
}
.lx-tour-dot.active { background: var(--lx-accent); width: 16px; border-radius: 3px; }
.lx-tour-card-nav { display: flex; gap: 10px; }
.lx-tour-card-nav .lx-tour-prev-btn { flex: 1; justify-content: center; }
.lx-tour-card-nav .lx-tour-next-btn { flex: 1.4; justify-content: center; }

@media (max-width: 768px) {
  .lx-tour-card {
    left: 12px !important; right: 12px !important; top: auto !important;
    bottom: calc(var(--lx-nav-h, 78px) + 14px + env(safe-area-inset-bottom));
    width: auto; max-width: none; border-radius: 20px;
  }
}

/* =========================================================
   FAQ В РАЗДЕЛЕ «ПОМОЩЬ»
   ========================================================= */
.lx-faq-block { margin-bottom: 26px; }
.lx-faq-chips {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px;
}
.lx-faq-chip {
  background: var(--lx-overlay-06); border: 1px solid var(--lx-border); color: var(--lx-muted);
  font-size: 12.5px; font-weight: 700; padding: 7px 14px; border-radius: 999px;
  cursor: pointer; transition: all 0.15s ease; white-space: nowrap; font-family: inherit;
}
.lx-faq-chip:hover { border-color: var(--lx-accent-2); color: var(--lx-text-strong); }
.lx-faq-chip.active { background: var(--lx-accent); border-color: var(--lx-accent); color: #fff; }

.lx-faq-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  gap: 14px;
}
.lx-faq-item {
  border: 1px solid var(--lx-border); border-radius: 16px; background: var(--lx-card);
  overflow: hidden; transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.lx-faq-item:hover {
  border-color: var(--lx-accent-2);
  box-shadow: 0 8px 22px var(--lx-overlay-06);
  transform: translateY(-2px);
}
.lx-faq-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--lx-text-strong);
}
.lx-faq-arrow { flex: none; width: 18px; height: 18px; transition: transform 0.2s ease; color: var(--lx-muted); }
.lx-faq-item.open .lx-faq-arrow { transform: rotate(180deg); color: var(--lx-accent-2); }
.lx-faq-body { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.lx-faq-item.open .lx-faq-body { max-height: 400px; }
.lx-faq-body-inner { padding: 0 16px 16px; font-size: 13.5px; line-height: 1.55; color: var(--lx-muted); }
.lx-faq-empty { grid-column: 1 / -1; text-align: center; padding: 34px 16px; color: var(--lx-muted); font-size: 13.5px; }
.lx-faq-empty a { color: var(--lx-accent-2); font-weight: 700; }

@media (max-width: 768px) {
  .lx-faq-chips { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .lx-faq-chips::-webkit-scrollbar { display: none; }
  .lx-faq-list { grid-template-columns: 1fr; }
}