/* =====================================================
   SoloBot site — Material dark (shared)
   Used by: home, features, support, reviews.
   Namespaced under .lp-* to avoid collisions with homestyles.css.
   Design language: material elevation (shadows), tonal surfaces,
   restrained single accent. No outlines, no gradient-border glow.
   ===================================================== */

:root {
  --lp-font: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --lp-font-head: 'Golos Text', system-ui, -apple-system, sans-serif;
  --lp-bg: #131316;
  --lp-surface-1: #1b1b20;   /* cards */
  --lp-surface-2: #212128;   /* hover / raised */
  --lp-surface-3: #26262e;   /* inset panels */
  --lp-text: #ececed;
  --lp-muted: #9c9ca6;
  --lp-faint: #74747e;
  --lp-accent: #ff7b00;
  --lp-accent-2: #ff5a00;
  --lp-accent-soft: rgba(255, 123, 0, 0.14);
  --lp-radius: 18px;
  --lp-radius-sm: 12px;

  /* material elevation */
  --lp-e1: 0 1px 2px rgba(0,0,0,0.34), 0 1px 3px rgba(0,0,0,0.24);
  --lp-e2: 0 4px 10px -2px rgba(0,0,0,0.42), 0 2px 6px rgba(0,0,0,0.3);
  --lp-e3: 0 16px 34px -12px rgba(0,0,0,0.6), 0 6px 14px -6px rgba(0,0,0,0.42);
  --lp-e-accent: none;
  --lp-ease: cubic-bezier(0.2, 0, 0, 1);
}

body.lp,
body.lp.dark-theme {
  background: var(--lp-bg);
  color: var(--lp-text);
  font-family: var(--lp-font);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.006em;
  overflow-x: hidden;
}
/* beat homestyles.css `body.dark-theme{font-family:Roboto}` which loads after us */
body.lp.dark-theme { font-family: var(--lp-font); }

/* headings use the display face */
.lp-h1, .lp-h2, .lp-card-head h3, .lp-card h5,
.lp-cmp-vname, .lp-auth-brand,
.lp .navbar .navbar-brand {
  font-family: var(--lp-font-head);
}


/* ---------- navbar, themed (scoped to .lp pages only) ---------- */
.lp .navbar {
  background: rgba(17, 17, 21, 0.72);
  border-bottom: 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 24px -18px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
/* unify the whole header on the site font (navbar.css hardcodes Roboto) */
.lp .navbar,
.lp .navbar .nav-link,
.lp .navbar .dropdown-item {
  font-family: var(--lp-font);
}
.lp .navbar .navbar-brand {
  color: var(--lp-text);
  font-family: var(--lp-font-head);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.lp .navbar .nav-link {
  color: var(--lp-muted);
  font-weight: 600;
  transition: color 0.2s var(--lp-ease);
}
.lp .navbar .nav-link:hover { color: var(--lp-text); }
.lp .navbar .nav-link.active { color: var(--lp-accent); }
.lp .navbar .nav-link.user-menu-toggle {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--lp-muted);
  transition: background 0.2s var(--lp-ease), color 0.2s var(--lp-ease);
}
.lp .navbar .nav-link.user-menu-toggle:hover { background: var(--lp-surface-2); color: var(--lp-text); box-shadow: none; }
.lp .navbar .nav-link.user-menu-toggle:focus,
.lp .navbar .nav-link.user-menu-toggle:active { box-shadow: none; outline: none; background: var(--lp-surface-2); }
/* ---- отметка новых предложений в шапке ---- */
.lp .navbar .nav-link.user-menu-toggle { position: relative; }
.nav-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lp-accent);
}
.nav-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--lp-accent);
  color: #1a1207;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lp .navbar .dropdown-menu {
  background: var(--lp-surface-2);
  border: 0;
  border-radius: var(--lp-radius-sm);
  box-shadow: var(--lp-e3);
  padding: 8px;
}
.lp .navbar .dropdown-item {
  color: var(--lp-muted);
  border-radius: 8px;
  font-weight: 600;
  padding: 9px 12px;
}
.lp .navbar .dropdown-item:hover { background: var(--lp-surface-3); color: var(--lp-text); }
.lp .navbar .dropdown-item.active { background: var(--lp-accent-soft); color: var(--lp-accent); }
.lp .navbar .dropdown-divider { border-color: rgba(255, 255, 255, 0.07); }

/* Ambient background: clean neutral dark. No orange washes, no blur, no mesh. */
.lp-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, #141418 0%, #0e0e11 70%, #0c0c0f 100%);
}

.lp-container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.lp-section { padding: 80px 0; position: relative; }
.lp-section-sm { padding: 48px 0; }

/* ---------- reveal on scroll ---------- */
.lp-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--lp-ease), transform 0.6s var(--lp-ease);
}
.lp-reveal.show { opacity: 1; transform: none; }

/* ---------- eyebrow / badges / chips ---------- */
.lp-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--lp-surface-2);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--lp-text);
}
.lp-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lp-accent);
  flex: none;
}
.lp-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--lp-surface-3);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--lp-muted);
}
.lp-chip .lp-dot { width: 7px; height: 7px; }

/* ---------- typography ---------- */
.lp-h1 {
  font-size: clamp(2.7rem, 5.6vw, 4.4rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 18px 0 0;
}
.lp-h1 .lp-accent-text { color: var(--lp-accent); }
.lp-lead {
  font-size: clamp(1.04rem, 1.4vw, 1.24rem);
  line-height: 1.62;
  color: var(--lp-muted);
  max-width: 560px;
  margin: 20px 0 0;
}
.lp-lead strong { color: var(--lp-text); font-weight: 700; }

.lp-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lp-accent);
}
.lp-h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 12px 0 0;
}
.lp-sub {
  font-size: 1.07rem;
  line-height: 1.6;
  color: var(--lp-muted);
  max-width: 620px;
  margin: 14px 0 0;
}

/* ---------- buttons (material) ---------- */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background 0.18s var(--lp-ease), filter 0.18s var(--lp-ease);
}
.lp-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--lp-accent), var(--lp-accent-2));
}
.lp-btn-primary:hover { filter: brightness(1.04); color: #fff; }
.lp-btn-primary:active { filter: brightness(0.97); }
.lp-btn-tonal {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.lp-btn-tonal:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.lp-btn-tonal:active { background: rgba(255, 255, 255, 0.11); }

/* hover: the icon inside travels, the button itself stays put */
.lp-btn svg {
  transition: transform 0.22s var(--lp-ease);
}
.lp-btn:hover svg { transform: translateX(3px); }
.lp-btn-soon { opacity: 0.5; pointer-events: none; }

.lp-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ---------- hero ---------- */
.lp-hero { position: relative; padding: clamp(20px, 2.6vw, 36px) 0 clamp(44px, 6vw, 80px); }
.lp-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 48px; }
.lp-hero .lp-hero-grid { align-items: start; }
.lp-hero .lp-hero-grid > .lp-reveal:first-child { padding-top: clamp(6px, 2vw, 34px); }
.lp-hero-media { position: relative; display: flex; justify-content: center; }
.lp-hero-media::before { display: none; }
.lp-hero-media img {
  position: relative; z-index: 1; max-width: 100%; height: auto;
  filter: drop-shadow(0 34px 60px rgba(0, 0, 0, 0.55));
  animation: lp-float 7s ease-in-out infinite;
}
@keyframes lp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.lp-trust { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 34px; color: var(--lp-faint); font-size: 0.92rem; }
.lp-trust b { color: var(--lp-text); font-weight: 700; }

/* ---------- section head ---------- */
.lp-head { max-width: 720px; margin-bottom: 42px; }

/* ---------- cards (material elevation, no borders) ---------- */
.lp-grid { display: grid; gap: 20px; }
.lp-grid-2 { grid-template-columns: repeat(2, 1fr); }
.lp-grid-3 { grid-template-columns: repeat(3, 1fr); }

.lp-card {
  background: var(--lp-surface-1);
  border-radius: var(--lp-radius);
  padding: 28px;
  transition: background 0.22s var(--lp-ease), transform 0.22s var(--lp-ease);
}
.lp-card:hover { background: var(--lp-surface-2); }
/* light lift — only for cards that don't hold their own buttons */
.lp-card:not(:has(.lp-btn)):hover { transform: translateY(-4px); }

.lp-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.lp-card-head h3 { font-size: 1.35rem; font-weight: 700; margin: 0; }

/* feature card: icon sits inline with the title, no filled bubble */
.lp-feature {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px;
}
.lp-feature-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lp-feature-top .badge-free, .lp-feature-top .badge-version { margin-left: auto; }
.lp-feature-ico {
  display: grid; place-items: center;
  width: 22px; height: 22px;
  flex: none;
}
.lp-feature-ico svg { width: 22px; height: 22px; stroke: var(--lp-accent); }
.lp-feature h5 { margin: 0; font-size: 1.14rem; }
.lp-feature p { color: var(--lp-muted); }
.lp-ico { display: inline-block; vertical-align: middle; flex: none; }
.lp-btn svg { width: 18px; height: 18px; }
.lp-card h5 { font-size: 1.16rem; font-weight: 700; margin: 0 0 8px; }
.lp-card p { color: var(--lp-muted); font-size: 1rem; line-height: 1.55; margin: 0; }

.lp-list { list-style: none; padding: 0; margin: 0; }
.lp-list li {
  position: relative;
  padding: 8px 0 8px 26px;
  color: var(--lp-muted);
  line-height: 1.5;
}
.lp-list li::before {
  content: "";
  position: absolute; left: 2px; top: 15px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lp-accent);
}

/* version highlight card */
.lp-version { background: var(--lp-surface-2); }
.lp-version .lp-card-head h3 { font-size: 1.7rem; }

/* ---------- version comparison ---------- */
.lp-compare-wrap { overflow-x: auto; border-radius: var(--lp-radius); }
.lp-compare {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: var(--lp-surface-1);
  border-radius: var(--lp-radius);
  overflow: hidden;
}
.lp-compare th, .lp-compare td { padding: 16px 20px; text-align: left; vertical-align: middle; }
.lp-compare tbody tr td { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.lp-compare .lp-cmp-feat { color: var(--lp-text); font-weight: 600; font-size: 1.02rem; }
.lp-compare th.lp-cmp-col, .lp-compare td.lp-cmp-col { text-align: center; width: 172px; }
.lp-compare .lp-cmp-hi { background: rgba(255, 123, 0, 0.06); }
.lp-compare thead th { font-weight: 700; padding-top: 22px; padding-bottom: 20px; }
.lp-cmp-vhead { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.lp-cmp-vname { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; }
.lp-yes {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--lp-accent-soft); color: var(--lp-accent);
}
.lp-yes svg { width: 15px; height: 15px; stroke: var(--lp-accent); stroke-width: 2.6; }
.lp-no { color: var(--lp-faint); font-size: 1.2rem; line-height: 1; }
@media (max-width: 640px) {
  .lp-compare th, .lp-compare td { padding: 13px 14px; }
  .lp-compare .lp-cmp-feat { font-size: 0.96rem; }
  .lp-compare th.lp-cmp-col, .lp-compare td.lp-cmp-col { width: 92px; }
}

/* inset panel (updates, forms) */
.lp-panel {
  background: var(--lp-surface-1);
  border-radius: var(--lp-radius);
  padding: 28px;
  height: 100%;
}
.lp-inset {
  background: var(--lp-surface-3);
  border-radius: var(--lp-radius-sm);
  padding: 22px;
  min-height: 118px;
}
.lp-mini-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.18s var(--lp-ease);
}
.lp-mini-btn:hover { background: rgba(255, 255, 255, 0.16); }

/* big CTA band */
.lp-cta {
  position: relative;
  border-radius: var(--lp-radius);
  padding: 52px 32px;
  background: var(--lp-surface-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}
.lp-cta .lp-sub { margin: 10px auto 0; max-width: 520px; }
.lp-cta .lp-actions { margin-top: 26px; justify-content: center; }

/* misc */
.lp-note { color: var(--lp-faint); font-size: 1rem; line-height: 1.6; margin-top: 22px; }
.lp-note b { color: var(--lp-text); }
.lp-divider { height: 1px; background: rgba(255,255,255,0.06); border: 0; margin: 0; }

/* form controls (reviews / support) */
.lp-field {
  width: 100%;
  background: var(--lp-surface-3);
  color: var(--lp-text);
  border: 0;
  border-radius: var(--lp-radius-sm);
  padding: 14px 16px;
  font-size: 1rem;
  font-family: inherit;
  transition: background 0.2s var(--lp-ease);
  resize: vertical;
}
.lp-field:focus { outline: none; background: rgba(255, 255, 255, 0.09); }
.lp-field::placeholder { color: var(--lp-faint); }

.lp-alert {
  padding: 13px 18px;
  border-radius: var(--lp-radius-sm);
  background: var(--lp-accent-soft);
  color: #ffd9b8;
  font-weight: 600;
  margin-bottom: 18px;
}
.lp-alert.is-auto {
  cursor: pointer;
  transition: opacity 0.35s var(--lp-ease), transform 0.35s var(--lp-ease), margin 0.35s var(--lp-ease), max-height 0.35s var(--lp-ease);
  max-height: 200px;
  overflow: hidden;
}
.lp-alert.is-leaving {
  opacity: 0;
  transform: translateY(-6px);
  max-height: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.lp-meta { color: var(--lp-faint); font-size: 0.88rem; }
.lp-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--lp-accent), var(--lp-accent-2));
  color: #fff; font-weight: 800; font-size: 1.05rem; flex: none;
}

/* ---------- auth (login) ---------- */
.lp-auth { min-height: calc(100vh - 74px); display: grid; place-items: center; padding: 48px 20px; }
.lp-auth-card { width: min(420px, 100%); padding: 32px; }
.lp-auth-brand {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; margin-bottom: 14px;
}
.lp-auth-brand .lp-dot { width: 9px; height: 9px; }
.lp-auth-title { text-align: center; margin-bottom: 26px; }
.lp-auth-title h1 { margin: 0; }
.lp-auth-title .lp-sub { margin: 8px auto 0; }
.lp-auth label { display: block; font-weight: 600; margin: 16px 0 8px; font-size: 0.95rem; }
.lp-auth label:first-of-type { margin-top: 0; }

/* ---------- responsive ---------- */
@media (max-width: 992px) {
  .lp-hero-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
  .lp-hero-media { order: -1; }
  .lp-lead, .lp-sub, .lp-head { margin-left: auto; margin-right: auto; }
  .lp-actions, .lp-trust { justify-content: center; }
  .lp-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .lp-cta { flex-direction: column; text-align: center; justify-content: center; }
}
@media (max-width: 640px) {
  .lp-section { padding: 58px 0; }
  .lp-grid-2, .lp-grid-3 { grid-template-columns: 1fr; }
  .lp-hero-media::before { width: 88%; left: 6%; }
}

/* expand/collapse toggle: chevron flips instead of travelling sideways */
.lp-btn-toggle:hover svg { transform: none; }
.lp-btn-toggle svg { transition: transform 0.22s var(--lp-ease); }
.lp-btn-toggle.is-open svg { transform: rotate(180deg); }

/* 4-up grid + full-width strip used by the updates section */
.lp-grid-4 { grid-template-columns: repeat(4, 1fr); }
.lp-strip {
  margin-top: 20px;
  padding: 22px 26px;
  border-radius: var(--lp-radius);
  background: var(--lp-surface-1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
@media (max-width: 992px) {
  .lp-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .lp-strip { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .lp-grid-4 { grid-template-columns: 1fr; }
}

/* ---------- closing band: full-bleed, ends the page ---------- */
.lp-final {
  margin-top: 64px;
  padding: 84px 0 92px;
  background: var(--lp-surface-1);
  text-align: center;
}
.lp-final .lp-h2 { margin: 0; }
.lp-final .lp-sub { margin: 12px auto 0; max-width: 520px; }
.lp-final .lp-actions { margin-top: 28px; justify-content: center; }
@media (max-width: 640px) {
  .lp-final { margin-top: 40px; padding: 60px 0 66px; }
}

/* ---------- table of contents (features page) ---------- */
.lp-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.lp-toc a {
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--lp-surface-1);
  color: var(--lp-muted);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s var(--lp-ease), color 0.18s var(--lp-ease);
}
.lp-toc a:hover { background: var(--lp-surface-2); color: var(--lp-text); }

/* wiki tiles reuse feature layout but keep their list tight */
.lp-feature .lp-list li { padding: 6px 0 6px 22px; font-size: 0.98rem; }
.lp-feature .lp-list li::before { top: 13px; width: 6px; height: 6px; }

/* =====================================================
   MODULES PAGE — legacy hooks restyled into the material system.
   Class names are kept because static/modules-page.js depends on them.
   ===================================================== */

/* search + filters bar */
.lp-toolbar {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  background: var(--lp-surface-1); border-radius: var(--lp-radius); padding: 18px 20px;
}
.lp-search { position: relative; flex: 1 1 320px; display: flex; gap: 10px; }
.lp-search .lp-field { padding-left: 44px; }
.lp-search .lp-search-ico {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  color: var(--lp-faint); pointer-events: none;
}
.lp-search .lp-search-ico svg { width: 18px; height: 18px; }

.price-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.price-seg .seg-btn {
  border: 0; background: var(--lp-surface-3); color: var(--lp-muted);
  padding: 9px 15px; border-radius: 999px; font: inherit; font-size: 0.93rem; font-weight: 600;
  cursor: pointer; transition: background 0.18s var(--lp-ease), color 0.18s var(--lp-ease);
}
.price-seg .seg-btn:hover { background: rgba(255,255,255,0.12); color: var(--lp-text); }
.price-seg .seg-btn.active { background: var(--lp-accent); color: #fff; }
.search-meta { color: var(--lp-faint); font-size: 0.9rem; }

/* module card */
.module-card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--lp-surface-1); border-radius: var(--lp-radius); overflow: hidden;
  transition: background 0.22s var(--lp-ease);
}
.module-card:hover { background: var(--lp-surface-2); }
.thumb-wrap {
  display: block; width: 100%; border: 0; padding: 0; cursor: pointer;
  background: var(--lp-surface-3); aspect-ratio: 16 / 10; overflow: hidden;
}
.module-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-placeholder {
  width: 100%; height: 100%; display: grid; place-items: center; color: var(--lp-faint);
}
.thumb-placeholder svg { width: 34px; height: 34px; }
.card-inner { padding: 20px 22px 0; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.module-title { margin: 0; font-size: 1.2rem; font-weight: 700; font-family: var(--lp-font-head); }
.module-title-btn { background: none; border: 0; padding: 0; color: var(--lp-text); font: inherit; cursor: pointer; text-align: left; }
.module-title-btn:hover { color: var(--lp-accent); }

/* stars */
.stars { display: inline-flex; gap: 2px; }
.stars .star { color: rgba(255,255,255,0.18); font-size: 1rem; line-height: 1; }
.stars .star.filled { color: var(--lp-accent); }
.stars.interactive .star { font-size: 1.9rem; cursor: pointer; }
.rating-line { display: flex; align-items: center; gap: 8px; }
.rating-count { color: var(--lp-faint); font-size: 0.88rem; }

/* meta row */
.meta-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--lp-muted); font-size: 0.88rem; }
.meta-sep { color: var(--lp-faint); }
.badge-version, .badge-free, .badge-unknown {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px; background: var(--lp-surface-3);
  font-size: 0.8rem; font-weight: 600; color: var(--lp-muted);
}
.badge-version .dot, .badge-free .dot, .badge-unknown .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--lp-accent);
}
.badge-dev .dot { background: #7aa2ff; }
.badge-free { color: var(--lp-accent); }

/* price */
.line-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.line-price { display: flex; align-items: baseline; gap: 10px; }
.price { font-family: var(--lp-font-head); }
.price-new { font-size: 1.3rem; font-weight: 800; color: var(--lp-text); }
.price-old { font-size: 0.98rem; color: var(--lp-faint); text-decoration: line-through; }
.buyers-count { color: var(--lp-faint); font-size: 0.86rem; white-space: nowrap; }

.module-desc-box { color: var(--lp-muted); font-size: 0.98rem; line-height: 1.55; }
.module-desc-box.js-ellipsis {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  min-height: calc(3 * 1.55em);
}
.module-meta { color: var(--lp-faint); font-size: 0.84rem; margin-top: auto; padding-top: 4px; }
.line-meta { min-height: 26px; }
.line-price-row { min-height: 34px; }
.module-footer { padding: 16px 22px 20px; }
.module-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.btn-circle {
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,0.1); color: var(--lp-text);
  display: inline-grid; place-items: center; cursor: pointer;
  transition: background 0.18s var(--lp-ease), color 0.18s var(--lp-ease);
}
.btn-circle svg { width: 18px; height: 18px; fill: currentColor; }
.btn-circle:hover { background: rgba(255,255,255,0.16); }
.btn-circle.active { background: var(--lp-accent-soft); color: var(--lp-accent); }
.btn-circle[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.btn-disabled {
  display: inline-flex; align-items: center; padding: 13px 22px; border-radius: 999px;
  background: var(--lp-surface-3); color: var(--lp-faint); font-weight: 700; font-size: 0.95rem;
  text-decoration: none; cursor: not-allowed;
}

/* modals themed */
.lp .modal-content.modal-dark, .lp .modal-content.bg-black {
  background: var(--lp-surface-1); color: var(--lp-text); border: 0; border-radius: var(--lp-radius);
}
.lp .modal-header, .lp .modal-footer { border-color: rgba(255,255,255,0.06); }
.lp .modal-title { font-family: var(--lp-font-head); font-weight: 700; }
.lp .modal-desc { color: var(--lp-muted); line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.side-cover { background: var(--lp-surface-3); border-radius: var(--lp-radius-sm); overflow: hidden; aspect-ratio: 16/10; }
.side-cover-img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.side-cover-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--lp-faint); font-size: 2rem; }
.side-prices { display: flex; align-items: baseline; gap: 12px; }
.versions-group { margin-top: 12px; }
.versions-title { color: var(--lp-faint); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; }
.list-versions { list-style: none; margin: 0; padding: 0; }
.list-versions-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.ver-chip { background: var(--lp-surface-3); border-radius: 999px; padding: 4px 11px; font-size: 0.82rem; font-weight: 600; }
.ver-date { color: var(--lp-faint); font-size: 0.86rem; }
.ver-download { margin-left: auto; color: var(--lp-accent); font-weight: 700; text-decoration: none; font-size: 0.9rem; }
.ver-download:hover { color: #fff; }
.empty-note { color: var(--lp-faint); }

/* toasts */
.toast-container { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 4000; }

/* legacy .btn-pill inside modals -> material button */
.lp .btn-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-size: 0.95rem; font-weight: 700; text-decoration: none;
  background: rgba(255,255,255,0.1); color: #fff;
  transition: background 0.18s var(--lp-ease), filter 0.18s var(--lp-ease);
}
.lp .btn-pill:hover { background: rgba(255,255,255,0.16); color: #fff; }
.lp .btn-pill[data-accent="orange"] { background: linear-gradient(135deg, var(--lp-accent), var(--lp-accent-2)); }
.lp .btn-pill[data-accent="orange"]:hover { filter: brightness(1.04); }
.lp .btn-pill[disabled] { opacity: 0.45; cursor: not-allowed; }
.lp .btn-group { display: inline-flex; gap: 8px; }
.lp .modal textarea.form-control {
  background: var(--lp-surface-3) !important; color: var(--lp-text) !important;
  border: 0; border-radius: var(--lp-radius-sm); padding: 13px 15px;
}
.lp .modal textarea.form-control:focus { outline: none; background: rgba(255,255,255,0.09) !important; }
.lp .text-orange { color: var(--lp-accent); }
.lp .text-muted { color: var(--lp-faint) !important; }

/* page head: title left, actions right */
.lp-pagehead {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px;
}
.lp-pagehead-text { flex: 1 1 420px; }
.lp-pagehead-text .lp-sub { margin-top: 10px; }
.lp-pagehead-actions { flex: 0 0 auto; }
@media (max-width: 768px) { .lp-pagehead { align-items: flex-start; } }
.price-free { color: var(--lp-accent); }

/* ---- module card: one standard footer row, unified type scale ---- */
.module-footer { padding: 16px 22px 20px; margin-top: auto; }
.module-actions { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.module-actions .mod-btn {
  height: 42px; padding: 0 16px; font-size: 0.92rem; white-space: nowrap;
  flex: 1 1 0; min-width: 0; justify-content: center;
}
.module-actions .btn-disabled.mod-btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; font-weight: 700;
}
.mod-icons { display: inline-flex; gap: 8px; flex: 0 0 auto; }
.module-actions .btn-circle { width: 42px; height: 42px; }

/* card typography */
.module-title { font-size: 1.28rem; line-height: 1.25; }
.module-desc-box { font-size: 1rem; line-height: 1.6; }
.module-desc-box.js-ellipsis { min-height: calc(3 * 1.6em); }
.price-new { font-size: 1.4rem; letter-spacing: -0.02em; }
.rating-count { font-size: 0.9rem; }
.badge-version, .badge-free, .badge-unknown { font-size: 0.82rem; padding: 5px 12px; }
.buyers-count { font-size: 0.88rem; }
.module-meta { font-size: 0.86rem; }

@media (max-width: 480px) {
  .module-actions { flex-wrap: wrap; }
  .module-actions .mod-btn { flex: 1 1 100%; }
}

/* ---- toolbar: every control on one height, pill-shaped ---- */
.lp-toolbar { --ctl-h: 44px; }
.lp-search .lp-field {
  height: var(--ctl-h);
  border-radius: 999px;
  padding: 0 18px 0 44px;
  font-size: 0.97rem;
}
.lp-search .lp-btn {
  height: var(--ctl-h);
  padding: 0 20px;
  font-size: 0.93rem;
  flex: 0 0 auto;
}
.price-seg .seg-btn {
  height: var(--ctl-h);
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
}

/* ---- compact card: shorter cover, tighter rhythm, 2-button footer ---- */
.thumb-wrap { aspect-ratio: 16 / 9; }
.card-inner { padding: 18px 20px 0; gap: 10px; }
.rating-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rating-row .btn-circle { width: 34px; height: 34px; }
.rating-row .btn-circle svg { width: 16px; height: 16px; }
.module-desc-box.js-ellipsis { -webkit-line-clamp: 2; min-height: calc(2 * 1.6em); }
.module-desc-box { font-size: 0.97rem; }
.module-title { font-size: 1.2rem; }
.price-new { font-size: 1.28rem; }
.line-price-row { min-height: 30px; }
.module-footer { padding: 14px 20px 18px; }
.module-actions .mod-btn { height: 40px; padding: 0 14px; font-size: 0.9rem; }

/* =====================================================
   MODALS — material redesign (details / review / reviews list)
   ===================================================== */
.lp .lp-modal { background: var(--lp-surface-1); border: 0; border-radius: 20px; overflow: hidden; }
.lp .lp-modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 22px 24px 18px; border: 0; background: var(--lp-surface-2);
}
.lp .lp-modal-head .modal-title { font-size: 1.3rem; font-family: var(--lp-font-head); font-weight: 800; margin: 0; }
.lp-modal-sub { color: var(--lp-muted); font-size: 0.93rem; margin-top: 6px; }
.lp-modal-close {
  border: 0; background: rgba(255,255,255,0.08); color: var(--lp-text);
  width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center;
  cursor: pointer; flex: none; transition: background 0.18s var(--lp-ease);
}
.lp-modal-close:hover { background: rgba(255,255,255,0.16); }
.lp .lp-modal-body { padding: 22px 24px; }
.lp .lp-modal-foot {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 16px 24px 20px; border: 0;
}

/* details modal layout */
.lp-modal-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px; align-items: start; }
.lp-modal-facts { margin-top: 16px; display: flex; flex-direction: column; }
.lp-fact {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 10px 0; border-top: 1px solid rgba(255,255,255,0.05);
}
.lp-fact:first-child { border-top: 0; }
.lp-fact-k { color: var(--lp-faint); font-size: 0.9rem; }
.lp-fact-v { font-weight: 600; text-align: right; }
.lp-fact-v a { color: var(--lp-accent); text-decoration: none; }
.lp-modal-section { margin-top: 22px; }
.lp-modal-section .lp-eyebrow { margin-bottom: 10px; display: block; }
.versions-group + .versions-group { margin-top: 16px; }

/* review (write) modal */
.lp-rate-block {
  background: var(--lp-surface-3); border-radius: var(--lp-radius-sm);
  padding: 18px; display: flex; justify-content: center; margin: 16px 0 18px;
}
.lp-rate-block .stars.interactive .star { font-size: 2.1rem; transition: color 0.15s var(--lp-ease); }
.lp-modal-label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.95rem; }

/* reviews list */
.lp-reviews { display: flex; flex-direction: column; gap: 12px; max-height: 56vh; overflow-y: auto; }
.lp-reviews .review-item { background: var(--lp-surface-3); border-radius: var(--lp-radius-sm); padding: 16px 18px; }
.lp-reviews .review-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.lp-reviews .review-author { font-weight: 700; }
.lp-reviews .review-date { color: var(--lp-faint); font-size: 0.85rem; display: flex; align-items: center; gap: 8px; }
.lp-reviews .version-badge { background: rgba(255,255,255,0.06); border-radius: 999px; padding: 3px 9px; font-size: 0.78rem; font-weight: 600; }
.lp-reviews .review-text { color: var(--lp-muted); line-height: 1.6; margin-top: 8px; }
.lp-pager { width: 44px; height: 40px; padding: 0; justify-content: center; }
.lp .btn-group { display: inline-flex; gap: 8px; }

@media (max-width: 768px) {
  .lp-modal-grid { grid-template-columns: 1fr; }
  .lp .lp-modal-body { padding: 18px; }
  .lp .lp-modal-head { padding: 18px; }
}

/* ---- manage page: access form + legacy form controls ---- */
.lp-accessform { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.lp-field-group { flex: 1 1 240px; min-width: 0; }
.lp-field-group .lp-modal-label { margin-bottom: 8px; }
.lp-accessform-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.lp-accessform-actions .lp-btn { height: 46px; padding: 0 20px; }
select.lp-field {
  height: 46px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239c9ca6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 18px;
  padding-right: 44px;
}
input.lp-field { height: 46px; }
.lp-field option { background: var(--lp-surface-2); color: var(--lp-text); }

/* legacy controls inside modals of the manage page */
.lp .modal .form-control, .lp .modal .form-select {
  background: var(--lp-surface-3); color: var(--lp-text); border: 0;
  border-radius: var(--lp-radius-sm); padding: 12px 15px;
}
.lp .modal .form-control:focus, .lp .modal .form-select:focus {
  outline: none; box-shadow: none; background: rgba(255,255,255,0.09); color: var(--lp-text);
}
.lp .modal .form-label { font-weight: 600; margin-bottom: 8px; }
.lp .modal .form-check-input { background-color: var(--lp-surface-3); border-color: transparent; }
.lp .modal .form-check-input:checked { background-color: var(--lp-accent); border-color: var(--lp-accent); }
.lp .card-dark { background: var(--lp-surface-3); border: 0; border-radius: var(--lp-radius-sm); }
.lp .modal-content:not(.lp-modal) { background: var(--lp-surface-1); border: 0; border-radius: 20px; color: var(--lp-text); }
.lp .modal-header, .lp .modal-footer { border-color: rgba(255,255,255,0.06); }
.lp .btn-close { filter: invert(1) grayscale(1) brightness(2); opacity: 0.7; }
.lp .alert { border: 0; border-radius: var(--lp-radius-sm); }
.lp code { color: var(--lp-accent); background: rgba(255,255,255,0.06); padding: 2px 7px; border-radius: 6px; }

/* ---- file dropzone ---- */
.lp-modal-field { margin-bottom: 20px; }
.lp-modal-field .lp-modal-label { display: block; margin-bottom: 10px; }
.lp-drop {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 26px 20px; border-radius: var(--lp-radius-sm);
  background: var(--lp-surface-3); cursor: pointer; text-align: center;
  transition: background 0.18s var(--lp-ease);
}
.lp-drop:hover { background: rgba(255,255,255,0.09); }
.lp-drop input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.lp-drop-ico {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--lp-accent-soft); margin-bottom: 4px;
}
.lp-drop-ico svg { stroke: var(--lp-accent); }
.lp-drop-main { font-weight: 600; }
.lp-drop-name { color: var(--lp-faint); font-size: 0.9rem; word-break: break-all; }
.lp-drop.has-file { background: var(--lp-accent-soft); }
.lp-drop.has-file .lp-drop-name { color: var(--lp-accent); font-weight: 600; }

/* ---- radio segments ---- */
.lp-radio-seg { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.lp-radio-seg input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.lp-radio-seg label {
  padding: 10px 16px; border-radius: 999px; background: var(--lp-surface-3);
  color: var(--lp-muted); font-weight: 600; font-size: 0.92rem; cursor: pointer; margin: 0;
  transition: background 0.18s var(--lp-ease), color 0.18s var(--lp-ease);
}
.lp-radio-seg label:hover { background: rgba(255,255,255,0.12); color: var(--lp-text); }
.lp-radio-seg input[type="radio"]:checked + label { background: var(--lp-accent); color: #fff; }

/* legacy modal-header on manage page laid out as head */
.lp .modal-header.lp-modal-head { flex-wrap: nowrap; }
.lp .modal-header.lp-modal-head .modal-title { margin: 0; }

/* ---- channel switch (sliding thumb) ---- */
.lp-switch {
  position: relative; display: inline-flex; padding: 4px; border-radius: 999px;
  background: var(--lp-surface-3); isolation: isolate;
}
.lp-switch input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.lp-switch label {
  position: relative; z-index: 1; margin: 0; cursor: pointer;
  min-width: 108px; text-align: center; padding: 9px 18px; border-radius: 999px;
  font-weight: 700; font-size: 0.93rem; color: var(--lp-muted);
  transition: color 0.2s var(--lp-ease);
}
.lp-switch input[type="radio"]:checked + label { color: #fff; }
.lp-switch-thumb {
  position: absolute; z-index: 0; top: 4px; left: 4px; bottom: 4px; width: calc(50% - 4px);
  border-radius: 999px; background: linear-gradient(135deg, var(--lp-accent), var(--lp-accent-2));
  transition: transform 0.28s var(--lp-ease);
}
.lp-switch input[type="radio"]:last-of-type:checked ~ .lp-switch-thumb { transform: translateX(100%); }
.lp-switch-hint { color: var(--lp-muted); font-size: 0.92rem; margin: 12px 0 0; line-height: 1.5; }

/* channel switch: full width */
.lp-switch { display: flex; width: 100%; }
.lp-switch label { flex: 1 1 0; min-width: 0; }
.lp-switch-thumb { width: calc(50% - 4px); }
.lp-switch-hint { text-align: center; }
/* file-name hint centered under the dropzone */
.lp-file-hint { text-align: center; }

/* =====================================================
   CABINET — sidebar tabs + content
   ===================================================== */
.lp-cab { display: grid; grid-template-columns: 262px 1fr; gap: 24px; align-items: start; }

.lp-cab-side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 8px; }
.lp-cab-user {
  display: flex; align-items: center; gap: 12px;
  background: var(--lp-surface-1); border-radius: var(--lp-radius); padding: 16px 18px; margin-bottom: 6px;
}
.lp-cab-user-name { font-weight: 700; font-family: var(--lp-font-head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-cab-nav { display: flex; flex-direction: column; gap: 6px; }
.lp-cab-tab {
  display: flex; align-items: center; gap: 12px;
  border: 0; background: transparent; color: var(--lp-muted);
  padding: 13px 16px; border-radius: var(--lp-radius-sm);
  font: inherit; font-size: 1rem; font-weight: 600; text-align: left; cursor: pointer;
  transition: background 0.18s var(--lp-ease), color 0.18s var(--lp-ease);
}
.lp-cab-tab svg { flex: none; }
.lp-cab-tab:hover { background: var(--lp-surface-1); color: var(--lp-text); }
.lp-cab-tab.active { background: var(--lp-surface-2); color: var(--lp-text); }
.lp-cab-tab.active svg { stroke: var(--lp-accent); }

.lp-cab-main { min-width: 0; }
.lp-cab-panel { display: none; }
.lp-cab-panel.active { display: block; animation: lp-fade 0.28s var(--lp-ease); }
@keyframes lp-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.lp-cab-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 22px;
}
.lp-cab-head .lp-h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); }
.lp-cab-head .lp-sub { margin-top: 8px; }
.lp-card-h3 { font-family: var(--lp-font-head); font-size: 1.15rem; font-weight: 700; margin: 0; }

/* link cards (docs) */
.lp-linkcard {
  display: flex; align-items: center; gap: 16px; text-decoration: none; color: inherit;
}
.lp-linkcard .lp-feature-ico { margin-bottom: 0; }
.lp-linkcard-body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.lp-linkcard-body b { font-family: var(--lp-font-head); font-size: 1.08rem; }
.lp-linkcard-body .lp-sub { margin: 0; font-size: 0.95rem; max-width: none; }
.lp-linkcard > svg:last-child { flex: none; stroke: var(--lp-faint); transition: transform 0.22s var(--lp-ease), stroke 0.22s var(--lp-ease); }
.lp-linkcard:hover > svg:last-child { transform: translateX(3px); stroke: var(--lp-accent); }

/* file list */
.lp-filehead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.lp-btn-sm { height: 36px; padding: 0 14px; font-size: 0.88rem; }
.lp-files { list-style: none; margin: 0; padding: 0; }
.lp-files li {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-top: 1px solid rgba(255,255,255,0.05);
}
.lp-files li:first-child { border-top: 0; }
.lp-file-ico { display: grid; place-items: center; flex: none; color: var(--lp-faint); }
.lp-file-body { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.lp-file-body a { color: var(--lp-text); font-weight: 600; text-decoration: none; }
.lp-file-body a:hover { color: var(--lp-accent); }
.lp-file-date { flex: none; white-space: nowrap; }
.lp-file-dl {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,0.08); color: var(--lp-text);
  transition: background 0.18s var(--lp-ease), color 0.18s var(--lp-ease);
}
.lp-file-dl:hover { background: var(--lp-accent); color: #fff; }
.files-tab { display: none; }
.files-tab.active { display: block; }

@media (max-width: 900px) {
  .lp-cab { grid-template-columns: 1fr; }
  .lp-cab-side { position: static; }
  .lp-cab-nav { flex-direction: row; flex-wrap: wrap; }
  .lp-cab-tab { flex: 1 1 auto; justify-content: center; }
  .lp-files li { flex-wrap: wrap; }
  .lp-file-date { order: 3; }
}

/* ---- servers list (cabinet → my bot) ---- */
.lp-codecard { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; }
.lp-codecard-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lp-codecard-code code { font-size: 1.05rem; }

.lp-servers { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.lp-server {
  display: flex; align-items: center; gap: 16px;
  background: var(--lp-surface-1); border-radius: var(--lp-radius); padding: 18px 22px;
  transition: background 0.22s var(--lp-ease);
}
.lp-server:hover { background: var(--lp-surface-2); }
.lp-server-ico {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: var(--lp-accent-soft);
}
.lp-server-ico svg { stroke: var(--lp-accent); }
.lp-server-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lp-server-name { font-weight: 700; font-family: var(--lp-font-head); font-size: 1.05rem; }

/* empty state */
.lp-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 44px 28px;
}
.lp-empty > * { max-width: 620px; }
.lp-empty .lp-feature-ico { margin: 0 auto 16px; width: 54px; height: 54px; }
.lp-empty .lp-feature-ico svg { width: 26px; height: 26px; }
.lp-empty .lp-sub { margin: 0 auto; }
.lp-empty .lp-actions { justify-content: center; margin-top: 22px; }

/* steps in the add-server modal */
.lp-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.lp-steps li { display: flex; gap: 14px; align-items: flex-start; }
.lp-steps li > div { display: flex; flex-direction: column; gap: 3px; }
.lp-steps b { font-family: var(--lp-font-head); }
.lp-steps .lp-sub { margin: 0; font-size: 0.95rem; max-width: none; }
.lp-step-n {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--lp-accent-soft); color: var(--lp-accent);
  font-weight: 800; font-size: 0.9rem;
}

@media (max-width: 640px) {
  .lp-server { flex-wrap: wrap; }
  .lp-server-body { flex: 1 1 100%; order: 2; }
  .lp-codecard { flex-direction: column; align-items: flex-start; }
}
.lp-empty { margin-top: 16px; }

/* servers quota */
.lp-title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lp-quota {
  display: inline-flex; align-items: center; margin-top: 8px;
  padding: 5px 13px; border-radius: 999px;
  background: var(--lp-accent-soft); color: var(--lp-accent);
  font-size: 0.86rem; font-weight: 700;
}

/* =====================================================
   ADMIN — wide container, data tables, row actions
   ===================================================== */

.lp-tablecard { padding: 8px 10px; }
.lp-table-wrap { overflow-x: auto; }
.lp-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.lp-table th {
  text-align: left; padding: 14px 14px; font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--lp-faint); white-space: nowrap;
}
.lp-table td { padding: 14px 14px; border-top: 1px solid rgba(255,255,255,0.05); vertical-align: middle; }
.lp-table tbody tr { transition: background 0.16s var(--lp-ease); }
.lp-table tbody tr:hover { background: rgba(255,255,255,0.035); }
.lp-cellmain { font-weight: 600; }
.lp-cellsub { font-size: 0.84rem; margin-top: 2px; word-break: break-all; }
.lp-empty-row { text-align: center; color: var(--lp-faint); padding: 34px 14px !important; }

.lp-rowactions { display: flex; gap: 8px; justify-content: flex-end; }
.lp-iconbtn {
  width: 34px; height: 34px; border-radius: 50%; border: 0;
  display: inline-grid; place-items: center; cursor: pointer;
  background: rgba(255,255,255,0.08); color: var(--lp-text); text-decoration: none;
  transition: background 0.18s var(--lp-ease), color 0.18s var(--lp-ease);
}
.lp-iconbtn:hover { background: rgba(255,255,255,0.16); color: #fff; }
.lp-iconbtn-danger:hover { background: rgba(255, 70, 60, 0.24); color: #ff8a80; }
.lp-iconbtn svg { width: 16px; height: 16px; }

.lp-pager-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; margin-top: 18px;
}
.lp-pager-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* filter row (connections) */
.lp-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.lp-filters .lp-search { flex: 1 1 280px; }
.lp-chipset { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-chipset a {
  padding: 9px 15px; border-radius: 999px; background: var(--lp-surface-3);
  color: var(--lp-muted); font-size: 0.9rem; font-weight: 600; text-decoration: none;
  transition: background 0.18s var(--lp-ease), color 0.18s var(--lp-ease);
}
.lp-chipset a:hover { background: rgba(255,255,255,0.12); color: var(--lp-text); }
.lp-chipset a.active { background: var(--lp-accent); color: #fff; }

/* stat tiles */
.lp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 20px; }
.lp-stat { background: var(--lp-surface-1); border-radius: var(--lp-radius); padding: 18px 20px; display: flex; flex-direction: column; }
.lp-stat-k { color: var(--lp-faint); font-size: 0.86rem; }
.lp-stat-v { font-family: var(--lp-font-head); font-size: 1.7rem; font-weight: 800; margin-top: auto; padding-top: 6px; }

/* admin forms */
.lp-form { display: flex; flex-direction: column; gap: 18px; }
.lp-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.lp-form label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.95rem; }
.lp-form .lp-field { width: 100%; }
.lp-check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.lp-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--lp-accent); cursor: pointer; }
.lp-checkgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 16px; }

/* control height is global: search buttons, segments and chips match real buttons everywhere */
body.lp { --ctl-h: 44px; }
.lp-search .lp-field, .lp-search .lp-btn, .price-seg .seg-btn { height: var(--ctl-h); }
.lp-chipset a {
  display: inline-flex; align-items: center; height: var(--ctl-h); padding: 0 18px;
}
.lp-filters .lp-search { display: flex; gap: 10px; }

/* ideas / requests list (admin) */
.lp-ideas { list-style: none; margin: 14px 0 0; padding: 0; }
.lp-ideas li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.05);
}
.lp-ideas li:first-child { border-top: 0; }
.lp-idea-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.lp-idea-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lp-idea-text { color: var(--lp-muted); line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.lp-idea-empty { color: var(--lp-faint); justify-content: center; padding: 26px 0; }
.lp-cab-tab, .lp-cab-tab:hover { text-decoration: none; }

/* module picker: search + paginated checkbox list */
.lp-modpicker { margin-top: 16px; }
.lp-modpicker-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.lp-modpicker-head .lp-search { flex: 1 1 260px; }
.lp-modpicker-head .lp-meta { margin-left: auto; white-space: nowrap; }
.lp-modpicker .lp-checkgrid { margin-top: 16px; min-height: 96px; }
.lp-modpicker-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-top: 16px;
}
.lp-btn.is-on { background: var(--lp-accent); color: #fff; }
.lp-filter-label { color: var(--lp-faint); font-size: 0.9rem; font-weight: 600; white-space: nowrap; }

/* header aligned to the same content grid as the page */
.lp .navbar > .container-fluid {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.lp .navbar { padding-top: 6px; padding-bottom: 6px; }
.lp .navbar .navbar-brand { font-size: 1.35rem; margin-right: 34px; }
.lp .navbar .nav-link { font-size: 0.98rem; padding-left: 14px; padding-right: 14px; }
.lp .navbar .navbar-nav.ms-auto .nav-link { padding-right: 10px; }
.lp .navbar .nav-link.user-menu-toggle { margin-left: 6px; }
/* profile button keeps its own square box — no inherited nav padding */
.lp .navbar .navbar-nav.ms-auto .nav-link.user-menu-toggle {
  padding: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* ---- админка: строки файлов ---- */
.lp-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.lp-file-acts { display: flex; align-items: center; gap: 8px; flex: none; }
.lp-file-acts form { margin: 0; }
.lp-file-acts .lp-btn { white-space: nowrap; }

@media (max-width: 780px) {
  .lp-file-acts { width: 100%; order: 4; }
  .lp-file-acts .lp-btn { flex: 1 1 auto; justify-content: center; }
}

/* ---- цифры модуля в карточке автора ---- */
.lp-modstats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 10px;
  color: var(--lp-faint);
  font-size: 0.92rem;
}
.lp-modstats b { color: var(--lp-text); font-weight: 700; }

/* ---- уведомления в кабинете ---- */
.lp-cab-tab { position: relative; }
.lp-tab-badge {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 11px;
  background: var(--lp-accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lp-notes { display: flex; flex-direction: column; gap: 14px; }
.lp-note {
  background: var(--lp-surface-1);
  border-radius: 18px;
  padding: 20px 22px;
  border-left: 3px solid transparent;
}
.lp-note.is-unread { background: var(--lp-surface-2); }
.lp-note-info.is-unread { border-left-color: var(--lp-accent); }
.lp-note-success.is-unread { border-left-color: #4ade80; }
.lp-note-warning.is-unread { border-left-color: #fbbf24; }
.lp-note-danger.is-unread { border-left-color: #f87171; }
.lp-note-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.lp-note-title { font-family: var(--lp-font-head); font-size: 1.08rem; font-weight: 700; margin: 0; color: var(--lp-text); }
.lp-note-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lp-note-body { color: var(--lp-muted); line-height: 1.6; margin: 10px 0 0; white-space: pre-line; }

/* ---- карточки помощи: кнопки на одном уровне ---- */
.lp-cab-panel .lp-feature { display: flex; flex-direction: column; }
.lp-cab-panel .lp-feature .lp-actions { margin-top: auto; padding-top: 20px; }

/* ---- поиск получателя ---- */
.lp-suggest { position: relative; }
.lp-suggest-list {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--lp-surface-2);
  border-radius: 14px;
  padding: 6px;
  max-height: 280px;
  overflow-y: auto;
}
.lp-suggest-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--lp-text);
  text-align: left;
  cursor: pointer;
}
.lp-suggest-item:hover { background: var(--lp-surface-3); }
.lp-suggest-item span { color: var(--lp-faint); font-size: 0.88rem; }

/* ---- баги модулей ---- */
.bug-status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px;
  background: var(--lp-surface-3); color: var(--lp-muted);
  font-size: 0.8rem; font-weight: 600; white-space: nowrap;
}
.bug-status-new { color: var(--lp-accent); }
.bug-status-in_progress { color: #fbbf24; }
.bug-status-fixed { color: #4ade80; }
.bug-status-rejected { color: var(--lp-faint); }
.bug-text { color: var(--lp-muted); font-size: 0.9rem; }

.lp-bugs { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 14px; align-items: start; }
@media (max-width: 980px) { .lp-bugs { grid-template-columns: 1fr; } }
.lp-bug { padding: 20px 22px; }
.lp-bug-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.lp-bug-text { margin: 12px 0 0; color: var(--lp-text); line-height: 1.6; white-space: pre-line; }
.lp-bug-answer { margin: 10px 0 0; }
.lp-bug-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.lp-bug-actions .lp-field { flex: 1 1 100%; height: 40px; }
.lp-bug-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-bug-del:hover { background: rgba(248,113,113,0.18); color: #ff8a80; }
.bug-status-done { color: #4ade80; }
.bug-status-wontfix { color: var(--lp-faint); }

/* ---- строка управления лентой уведомлений ---- */
.lp-notify-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.lp-notify-actions { display: flex; gap: 8px; margin-left: auto; }
.lp-notify-actions form { margin: 0; }
.lp-notify-actions .lp-btn { height: var(--ctl-h); padding: 0 18px; font-size: 0.94rem; }

/* панель действий в детальной модалке модуля — один ряд, компактные кнопки */
.lp-modal-actionbar {
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.lp-modal-actionbar::-webkit-scrollbar { display: none; }
.lp-modal-actionbar .lp-btn,
.lp-modal-actionbar .btn-disabled { flex: 0 0 auto; white-space: nowrap; }
.btn-disabled-sm { height: 36px; padding: 0 14px; font-size: 0.88rem; display: inline-flex; align-items: center; }

/* ── Галерея карточек (модули, наборы) ─────────────────────────────── */
.lp-gal { position: relative; width: 100%; height: 100%; overflow: hidden; }
.lp-gal-track { display: flex; height: 100%; transition: transform 420ms cubic-bezier(.22,.68,.24,1); }
.lp-gal-track.is-instant { transition: none; }
.lp-gal-slide { flex: 0 0 100%; width: 100%; height: 100%; }
.lp-gal-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-gal-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border: 0; border-radius: 50%; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(12,12,15,.62); color: #fff;
  opacity: 0; transition: opacity 180ms ease, background 180ms ease;
}
.lp-gal-nav:hover { background: rgba(12,12,15,.82); }
.lp-gal-nav.is-prev { left: 8px; }
.lp-gal-nav.is-next { right: 8px; }
.lp-gal:hover .lp-gal-nav, .lp-gal:focus-within .lp-gal-nav { opacity: 1; }
.lp-gal-dots {
  position: absolute; left: 0; right: 0; bottom: 8px;
  display: flex; justify-content: center; gap: 6px;
}
.lp-gal-dot {
  width: 6px; height: 6px; border: 0; border-radius: 50%; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.4); transition: background 180ms ease, width 180ms ease;
}
.lp-gal-dot.is-active { width: 16px; border-radius: 3px; background: var(--lp-accent); }
@media (prefers-reduced-motion: reduce) {
  .lp-gal-track { transition: none; }
}

/* ── Просмотр картинки на весь экран ───────────────────────────────── */
.lp-gal-zoom { cursor: zoom-in; }
.lp-lightbox {
  position: fixed; inset: 0; z-index: 1090;
  display: grid; place-items: center; padding: clamp(16px, 4vw, 48px);
  background: rgba(8,8,10,.94);
  opacity: 0; visibility: hidden;
  transition: opacity 180ms var(--lp-ease), visibility 180ms var(--lp-ease);
}
.lp-lightbox.is-open { opacity: 1; visibility: visible; }
.lp-lightbox-backdrop { position: absolute; inset: 0; cursor: zoom-out; }
.lp-lightbox-img {
  position: relative; max-width: 100%; max-height: 100%;
  object-fit: contain; display: block; border-radius: var(--lp-radius-sm);
}
.lp-lightbox-nav, .lp-lightbox-close {
  position: absolute; border: 0; padding: 0; cursor: pointer;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff;
  transition: background 180ms ease;
}
.lp-lightbox-nav:hover, .lp-lightbox-close:hover { background: rgba(255,255,255,.16); }
.lp-lightbox-nav:focus, .lp-lightbox-close:focus { outline: none; background: rgba(255,255,255,.16); }
.lp-lightbox-nav:focus-visible, .lp-lightbox-close:focus-visible { background: var(--lp-accent-soft); color: var(--lp-accent); }
.lp-lightbox-nav { width: 46px; height: 46px; top: 50%; transform: translateY(-50%); }
.lp-lightbox-nav.is-prev { left: clamp(10px, 2vw, 28px); }
.lp-lightbox-nav.is-next { right: clamp(10px, 2vw, 28px); }
.lp-lightbox-close { width: 40px; height: 40px; top: clamp(10px, 2vw, 24px); right: clamp(10px, 2vw, 24px); }
.lp-lightbox-solo .lp-lightbox-nav, .lp-lightbox-solo .lp-lightbox-dots { display: none; }
.lp-lightbox-dots {
  position: absolute; left: 0; right: 0; bottom: clamp(12px, 2.4vw, 28px);
  display: flex; justify-content: center; gap: 6px;
}
@media (max-width: 640px) {
  .lp-lightbox-nav { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-lightbox { transition: none; }
}

/* ── Слоты картинок в редакторе ────────────────────────────────────── */
.lp-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.lp-slot { background: var(--lp-surface-3); border-radius: var(--lp-radius-sm); overflow: hidden; display: flex; flex-direction: column; }
.lp-slot-frame { position: relative; aspect-ratio: 16/10; flex: 1 1 auto; display: grid; place-items: center; color: var(--lp-faint); }
.lp-slot-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-slot-num {
  position: absolute; top: 6px; left: 6px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: rgba(12,12,15,.7); color: #fff;
  font-size: .7rem; font-weight: 700; display: grid; place-items: center;
}
.lp-slot-actions { display: flex; gap: 6px; padding: 8px; margin-top: auto; }
.lp-slot-actions form { flex: 1; margin: 0; }
.lp-slot-actions .lp-btn { width: 100%; justify-content: center; }
.thumb-gallery { position: relative; cursor: default; }
.thumb-open {
  position: absolute; inset: 0; border: 0; padding: 0; background: transparent; cursor: pointer;
}
.thumb-gallery .lp-gal-nav, .thumb-gallery .lp-gal-dots { z-index: 2; }
.side-cover .lp-gal-slide img { cursor: default; }
.lp-gal-full { width: 100%; height: 100%; }
.lp-gal-full .lp-gal-slide img { object-fit: contain; }
.lp-slot-actions form { min-width: 0; }
.lp-slot-actions .lp-btn { min-width: 0; padding-left: 10px; padding-right: 10px; }
