/* ИИ-conversion — design system */

:root {
  --lp-bg: #ffffff;
  --lp-bg-subtle: #f4f7fb;
  --lp-bg-elevated: rgba(255, 255, 255, 0.72);
  --lp-surface: #ffffff;
  --lp-text: #0f172a;
  --lp-text-muted: #64748b;
  --lp-accent: #2563eb;
  --lp-accent-hover: #1d4ed8;
  --lp-accent-glow: rgba(37, 99, 235, 0.35);
  --lp-cyan: #06b6d4;
  --lp-cyan-soft: rgba(6, 182, 212, 0.15);
  --lp-accent-soft: rgba(37, 99, 235, 0.1);
  --lp-border: rgba(15, 23, 42, 0.08);
  --lp-border-strong: rgba(15, 23, 42, 0.12);
  --lp-success: #10b981;
  --lp-danger: #ef4444;
  --lp-hero-from: #030712;
  --lp-hero-mid: #0f172a;
  --lp-hero-to: #1e3a5f;
  --lp-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.06);
  --lp-shadow-md: 0 4px 24px rgba(15, 23, 42, 0.08), 0 12px 48px rgba(37, 99, 235, 0.08);
  --lp-shadow-glow: 0 0 0 1px rgba(37, 99, 235, 0.08), 0 8px 32px var(--lp-accent-glow);
  --lp-radius: 12px;
  --lp-radius-lg: 16px;
  --lp-radius-xl: 20px;
  --lp-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --lp-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --lp-font-mono: "JetBrains Mono", "Fira Code", Consolas, monospace;
  --lp-blur: 16px;
  --lp-content-max: 1200px;
  --site-header-h: 72px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--lp-font);
  font-weight: 400;
  background: var(--lp-bg-subtle);
  color: var(--lp-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--lp-content-max);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--lp-font);
  font-weight: 600;
  color: var(--lp-text);
  letter-spacing: -0.03em;
}

a {
  color: var(--lp-accent);
  text-decoration: none;
  transition: color var(--lp-transition);
}

a:hover {
  color: var(--lp-accent-hover);
}

/* Mesh + grid background utility */
.lp-mesh-bg {
  background-color: var(--lp-bg-subtle);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37, 99, 235, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(6, 182, 212, 0.08), transparent),
    linear-gradient(var(--lp-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--lp-border) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
}

/* --- Marketing site --- */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--lp-bg-elevated);
  backdrop-filter: blur(var(--lp-blur));
  -webkit-backdrop-filter: blur(var(--lp-blur));
  border-bottom: 1px solid var(--lp-border);
  margin-bottom: 0;
}

.header .container,
.header.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a:not(.btn) {
  color: var(--lp-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color var(--lp-transition), background var(--lp-transition);
}

.nav-links a:not(.btn):hover {
  color: var(--lp-text);
  background: var(--lp-accent-soft);
  text-decoration: none;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--lp-text);
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 2px;
}

.logo img {
  display: block;
  width: auto;
  height: 60px;
}

.logo span {
  background: linear-gradient(135deg, var(--lp-accent), var(--lp-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--lp-cyan);
  border-radius: 50%;
  margin-left: 1px;
  box-shadow: 0 0 12px var(--lp-cyan);
  animation: lpPulse 2s ease-in-out infinite;
}

@keyframes lpPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--lp-accent) 0%, #3b82f6 100%);
  color: #fff;
  border: none;
  border-radius: var(--lp-radius);
  font-weight: 600;
  font-family: var(--lp-font);
  cursor: pointer;
  font-size: 15px;
  transition: transform var(--lp-transition), box-shadow var(--lp-transition), filter var(--lp-transition);
  box-shadow: var(--lp-shadow-glow);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.15));
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2), 0 12px 40px var(--lp-accent-glow);
  color: #fff;
  text-decoration: none;
  filter: brightness(1.05);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--lp-border-strong);
  color: var(--lp-text);
  box-shadow: none;
}

.btn-outline::before {
  display: none;
}

.btn-outline:hover {
  border-color: var(--lp-accent);
  color: var(--lp-accent);
  background: var(--lp-accent-soft);
  filter: none;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

.hero {
  position: relative;
  background: linear-gradient(160deg, var(--lp-hero-from) 0%, var(--lp-hero-mid) 45%, var(--lp-hero-to) 100%);
  padding: 100px 0 120px;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-family: var(--lp-font-mono);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--lp-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--lp-cyan);
  animation: lpPulse 2s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  margin: 0 0 20px;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, #93c5fd 0%, #67e8f9 50%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title-line-2 {
  display: inline-block;
}

@media (min-width: 1024px) {
  .hero-title-line-2 {
    white-space: normal;
  }
}

.hero p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.125rem;
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.hero .btn-secondary-ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: none;
  color: #fff;
}

.hero .btn-secondary-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.section {
  padding: 80px 0;
  background: var(--lp-bg);
}

.section-alt {
  background: var(--lp-bg-subtle);
}

.section-title {
  text-align: center;
  margin-bottom: 12px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-subtitle {
  text-align: center;
  color: var(--lp-text-muted);
  max-width: 480px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-lg);
  padding: 28px;
  box-shadow: var(--lp-shadow-sm);
  transition: transform var(--lp-transition), box-shadow var(--lp-transition), border-color var(--lp-transition);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lp-accent), var(--lp-cyan));
  opacity: 0;
  transition: opacity var(--lp-transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--lp-shadow-md);
  border-color: rgba(37, 99, 235, 0.15);
}

.card:hover::before {
  opacity: 1;
}

.card-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  font-family: var(--lp-font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--lp-accent);
  background: var(--lp-accent-soft);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 10px;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: var(--lp-text);
}

.card p {
  margin: 0;
  color: var(--lp-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.pricing-single {
  max-width: 440px;
  margin: 0 auto;
}

.pricing-tiers {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  margin-bottom: 48px;
}

.pricing-tiers .price-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pricing-tiers .price-features {
  flex: 1;
  align-self: stretch;
  width: 100%;
}

.pricing-tiers .price-badge {
  align-self: flex-start;
  width: fit-content;
}

.pricing-tiers .price-card > .btn {
  align-self: stretch;
  width: 100%;
  margin-top: 20px;
}

.price-amount {
  margin: 0 0 6px;
  line-height: 1.1;
}

.price-value {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--lp-text);
}

.price-currency {
  font-size: 1rem;
  font-weight: 500;
  color: var(--lp-text-muted);
}

.price-annual {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--lp-text-muted);
}

.price-annual strong {
  color: var(--lp-accent);
}

.tariff-save-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  color: #047857;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 999px;
  vertical-align: middle;
  letter-spacing: 0.01em;
}

.price-trial {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--lp-success);
  font-weight: 600;
}

.price-trial-muted {
  color: var(--lp-text-muted);
  font-weight: 500;
}

.price-badge-popular {
  background: linear-gradient(135deg, var(--lp-accent), var(--lp-cyan));
  color: #fff;
  border: none;
}

.pricing-compare-title {
  text-align: center;
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 20px;
  color: var(--lp-text);
}

.tariffs-compare-wrap {
  overflow-x: auto;
  border-radius: var(--lp-radius-xl);
  border: 1px solid var(--lp-border-strong);
  background: var(--lp-surface);
  box-shadow: var(--lp-shadow-md);
}

.tariffs-compare {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 15px;
}

.tariffs-compare th,
.tariffs-compare td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--lp-border);
}

.tariffs-compare thead th {
  font-size: 13px;
  font-weight: 600;
  color: var(--lp-text-muted);
  text-transform: none;
  letter-spacing: 0;
  background: var(--lp-bg-subtle);
}

.tariffs-compare tbody td {
  color: var(--lp-text);
}

.tariffs-compare tbody td:first-child {
  color: var(--lp-text-muted);
  font-size: 14px;
  font-weight: 500;
  width: 28%;
}

.tariffs-compare tbody tr:last-child td {
  border-bottom: none;
}

.tariffs-compare .col-featured {
  background: linear-gradient(180deg, var(--lp-accent-soft) 0%, rgba(6, 182, 212, 0.06) 100%);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.1);
}

.tariffs-compare thead .col-featured {
  color: var(--lp-accent);
  font-weight: 700;
}

.tariffs-row-annual td {
  vertical-align: top;
}

.tariff-annual-cell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.tariff-annual-price {
  font-weight: 600;
  color: var(--lp-text);
}

.tariff-save-amount {
  flex: 1 1 100%;
  font-size: 12px;
  font-weight: 600;
  color: var(--lp-success);
}

.tariff-price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--lp-text);
  letter-spacing: -0.02em;
}

.tariff-hint {
  font-size: 12px;
  color: var(--lp-text-muted);
  font-weight: 400;
}

.tariff-yes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--lp-success);
  font-weight: 700;
  font-size: 14px;
  border: 1px solid rgba(16, 185, 129, 0.22);
}

.tariff-dash {
  color: var(--lp-text-muted);
  font-size: 18px;
  opacity: 0.65;
}

.pricing-footnote {
  margin: 16px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--lp-text-muted);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

.price-badge {
  display: inline-block;
  margin: 0 0 12px;
  padding: 5px 12px;
  background: linear-gradient(135deg, var(--lp-accent-soft), var(--lp-cyan-soft));
  color: var(--lp-accent);
  border-radius: 999px;
  font-family: var(--lp-font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.price-intro {
  font-size: 2.5rem;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.price-period {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--lp-text-muted);
}

.price-after {
  font-size: 1.125rem;
  color: var(--lp-text);
  margin: 0 0 8px;
}

.price-after strong {
  color: var(--lp-accent);
}

.price-note {
  font-size: 14px;
  color: var(--lp-text-muted);
  margin: 0 0 20px;
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  color: var(--lp-text-muted);
  font-size: 15px;
}

.price-features li {
  margin-bottom: 10px;
  padding-left: 1.5em;
  position: relative;
}

.price-features li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--lp-cyan);
  font-family: var(--lp-font-mono);
  font-size: 12px;
}

.price-card {
  background: var(--lp-surface);
  border-radius: var(--lp-radius-xl);
  padding: 36px;
  border: 1px solid var(--lp-border);
  box-shadow: var(--lp-shadow-md);
  position: relative;
}

.price-card.featured {
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: var(--lp-shadow-glow);
  overflow: hidden;
}

.price-card-ribbon {
  position: absolute;
  top: 20px;
  right: -36px;
  z-index: 2;
  width: 150px;
  padding: 7px 0;
  font-family: var(--lp-font-mono);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  background: linear-gradient(135deg, var(--lp-accent), var(--lp-cyan));
  box-shadow: 0 3px 12px rgba(37, 99, 235, 0.35);
  transform: rotate(45deg);
  pointer-events: none;
}

.price-card.featured::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--lp-accent), var(--lp-cyan));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.5;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--lp-text);
  letter-spacing: -0.03em;
}

.form-box {
  max-width: 420px;
  margin: 0 auto;
  background: var(--lp-surface);
  padding: 36px;
  border-radius: var(--lp-radius-xl);
  border: 1px solid var(--lp-border);
  box-shadow: var(--lp-shadow-md);
}

.form-box input {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 14px;
  border: 1px solid var(--lp-border-strong);
  border-radius: var(--lp-radius);
  background: var(--lp-bg-subtle);
  color: var(--lp-text);
  font-size: 15px;
  font-family: var(--lp-font);
  transition: border-color var(--lp-transition), box-shadow var(--lp-transition), background var(--lp-transition);
}

.form-box input:focus {
  outline: none;
  border-color: var(--lp-accent);
  background: var(--lp-bg);
  box-shadow: 0 0 0 4px var(--lp-accent-soft);
}

/* Cookie consent banner */
.cookie-consent {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10000;
  max-width: 360px;
  padding: 16px 40px 16px 16px;
  background: #fff;
  border-radius: var(--lp-radius);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.14);
  font-size: 14px;
  line-height: 1.45;
  color: var(--lp-text);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cookie-consent--hiding {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.cookie-consent__text {
  margin: 0;
}

.cookie-consent__close {
  position: absolute;
  top: 6px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--lp-danger);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: opacity var(--lp-transition);
}

.cookie-consent__close:hover {
  opacity: 0.75;
}

@media (max-width: 480px) {
  .cookie-consent {
    left: 16px;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0));
    max-width: none;
  }
}

.footer,
.site-footer {
  border-top: 1px solid var(--lp-border);
  background:
    radial-gradient(1200px 300px at 20% 0%, rgba(59, 130, 246, 0.08), transparent 55%),
    radial-gradient(900px 280px at 80% 0%, rgba(16, 185, 129, 0.08), transparent 60%),
    var(--lp-bg);
}

.site-footer {
  padding: 46px 0 38px;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 28px;
}

.site-footer-brand .logo {
  display: inline-flex;
  margin-bottom: 12px;
}

.site-footer-brand .logo img {
  height: 40px;
}

.site-footer-brand p {
  margin: 0 0 12px;
  color: var(--lp-text-muted);
  line-height: 1.6;
  max-width: 360px;
}

.site-footer-copy {
  display: inline-block;
  font-family: var(--lp-font-mono);
  font-size: 12px;
  color: var(--lp-text-muted);
  opacity: 0.92;
}

.site-footer-credit {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--lp-border);
  font-size: 13px;
  line-height: 1.5;
  color: var(--lp-text-muted);
}

.site-footer-credit a {
  color: var(--lp-text);
  font-weight: 600;
  text-decoration: none;
}

.site-footer-credit a:hover {
  color: var(--lp-accent);
}

.site-footer-col h4 {
  margin: 3px 0 12px;
  font-size: 14px;
}

.site-footer-col a {
  display: block;
  margin: 0 0 9px;
  color: var(--lp-text-muted);
  text-decoration: none;
  font-size: 14px;
}

.site-footer-col a:hover {
  color: var(--lp-accent);
}

.site-map-page {
  padding-top: 30px;
}

.site-map-hero {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-map-hero h1 {
  margin: 0;
}

.site-map-hero p {
  margin: 0;
  color: var(--lp-text-muted);
}

.site-map-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 16px;
}

.site-map-card {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-lg);
  box-shadow: var(--lp-shadow-sm);
  padding: 18px;
}

.site-map-card h2 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.site-map-card a {
  display: block;
  margin-bottom: 8px;
  color: var(--lp-text-muted);
  text-decoration: none;
}

.site-map-card a:hover {
  color: var(--lp-accent);
}

.site-map-card--blog {
  grid-column: 1 / -1;
}

@media (max-width: 960px) {
  .site-footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding: 36px 0 28px;
  }

  .site-footer-inner,
  .site-map-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.policy-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 14px;
  font-size: 13px;
  color: var(--lp-text-muted);
  line-height: 1.45;
}

.policy-consent-row input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.policy-consent-row a {
  color: var(--lp-accent);
  text-decoration: underline;
}

.settings-pay-recurring {
  margin: 14px 0 12px;
  padding: 12px 14px;
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  background: var(--lp-bg-subtle);
  text-align: left;
}

.settings-pay-recurring-info {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--lp-text-muted);
}

.settings-pay-consent {
  margin: 0;
}

.settings-pay-legal-links {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.4;
}

.settings-pay-legal-links a {
  color: var(--lp-accent);
}

.settings-pay-offer-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.dashboard-grid {
  display: grid;
  gap: 24px;
}

.popup-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.popup-list li {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  padding: 18px 22px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: var(--lp-shadow-sm);
  transition: border-color var(--lp-transition), box-shadow var(--lp-transition);
}

.popup-list li:hover {
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: var(--lp-shadow-md);
}

.popup-list-item--clickable {
  cursor: pointer;
}

.code-block {
  font-family: var(--lp-font-mono);
  font-size: 12px;
  background: #0f172a;
  color: #e2e8f0;
  padding: 14px 16px;
  border-radius: var(--lp-radius);
  word-break: break-all;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.alert {
  padding: 12px 16px;
  border-radius: var(--lp-radius);
  margin-bottom: 16px;
  font-size: 14px;
}

.alert-error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #b91c1c;
}

.alert-success {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #047857;
}

.hidden {
  display: none;
}

/* --- Sales landing sections --- */

body.landing-page {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
}

body.landing-page .hero,
body.landing-page .trust-bar,
body.landing-page .section,
body.landing-page .section-dark,
body.landing-page .cta-final,
body.landing-page #site-header-root,
body.landing-page #site-footer-root {
  max-width: 100%;
  overflow-x: hidden;
}

body.landing-page .cases-marquee {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  contain: paint;
}

body.landing-page #cases {
  overflow-x: hidden;
  max-width: 100%;
}

body.landing-page .tariffs-compare-wrap {
  max-width: 100%;
}

.hero-split {
  text-align: left;
  padding: 72px 0 88px;
}

.hero-split .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 993px) {
  .hero-split .container {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  }
}

.hero-split .hero-content {
  text-align: left;
}

.hero-split h1 {
  text-align: left;
  font-size: clamp(1.5rem, 4vw, 2.6rem);
}

.hero-split p {
  margin: 0 0 28px;
  max-width: none;
  text-align: left;
}

.hero-split .hero-actions {
  justify-content: flex-start;
}

.hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.hero-mockup {
  position: relative;
  width: min(620px, 100%);
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--lp-radius-xl);
  padding: 14px;
  backdrop-filter: blur(12px);
  box-shadow:
    0 30px 80px rgba(2, 6, 23, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.hero-cabinet-mock {
  background: #f4f7fb;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  text-align: left;
  color: var(--lp-text);
}

.hcm-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--lp-border);
}

.hcm-topbar-left {
  min-width: 0;
}

.hcm-logo {
  display: block;
  height: 28px;
  width: auto;
}

.hcm-topbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.hcm-badge {
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 600;
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  white-space: nowrap;
}

.hcm-email {
  font-size: 8px;
  color: var(--lp-text-muted);
  font-family: var(--lp-font-mono);
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hcm-btn {
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid var(--lp-border-strong);
  background: #fff;
  font-size: 8px;
  font-weight: 600;
  color: var(--lp-text);
  white-space: nowrap;
}

.hcm-layout {
  display: flex;
  min-height: 300px;
  background:
    linear-gradient(var(--lp-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--lp-border) 1px, transparent 1px),
    #f4f7fb;
  background-size: 20px 20px;
}

.hcm-sidebar {
  width: 108px;
  flex-shrink: 0;
  padding: 8px 6px;
  background: #fff;
  border-right: 1px solid var(--lp-border);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hcm-nav {
  display: block;
  padding: 5px 7px;
  border-radius: 7px;
  font-size: 8px;
  font-weight: 500;
  color: var(--lp-text-muted);
  line-height: 1.25;
}

.hcm-nav.is-active {
  color: var(--lp-accent);
  font-weight: 600;
  background: var(--lp-accent-soft);
  box-shadow: inset 2px 0 0 var(--lp-accent);
}

.hcm-nav-sub {
  margin-left: 8px;
  font-size: 7px;
  opacity: 0.85;
}

.hcm-main {
  flex: 1;
  min-width: 0;
  padding: 10px 10px 12px;
}

.hcm-title {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hcm-subtitle {
  margin: 0 0 8px;
  font-size: 8px;
  color: var(--lp-text-muted);
  line-height: 1.35;
}

.hcm-card {
  background: #fff;
  border: 1px solid var(--lp-border);
  border-radius: 9px;
  box-shadow: var(--lp-shadow-sm);
  margin-bottom: 7px;
}

.hcm-gen {
  padding: 8px 9px;
}

.hcm-gen-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.hcm-gen-head strong {
  display: block;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.25;
}

.hcm-gen-head span {
  display: block;
  margin-top: 2px;
  font-size: 7px;
  color: var(--lp-text-muted);
}

.hcm-gen-head em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: var(--lp-accent);
  font-variant-numeric: tabular-nums;
}

.hcm-gen-head em small {
  font-size: 9px;
  color: var(--lp-text-muted);
}

.hcm-progress {
  height: 5px;
  border-radius: 999px;
  background: var(--lp-bg-subtle);
  overflow: hidden;
}

.hcm-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lp-accent), var(--lp-cyan));
}

.hcm-onboard {
  padding: 8px 9px;
}

.hcm-onboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.hcm-onboard-head strong {
  font-size: 8px;
  font-weight: 700;
  line-height: 1.25;
}

.hcm-onboard-head span {
  font-size: 7px;
  font-weight: 600;
  color: var(--lp-text-muted);
  white-space: nowrap;
}

.hcm-onboard-bar {
  height: 4px;
  border-radius: 999px;
  background: var(--lp-bg-subtle);
  overflow: hidden;
  margin-bottom: 6px;
}

.hcm-onboard-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--lp-accent);
}

.hcm-step {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px;
  border-radius: 7px;
  border: 1px solid var(--lp-border);
  background: #fff;
  font-size: 7px;
  line-height: 1.25;
  margin-bottom: 4px;
}

.hcm-step:last-child {
  margin-bottom: 0;
}

.hcm-step i {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 7px;
  font-weight: 700;
  background: var(--lp-bg-subtle);
  color: var(--lp-text-muted);
  border: 1px solid var(--lp-border);
}

.hcm-step.is-done {
  border-color: rgba(34, 197, 94, 0.25);
  background: rgba(34, 197, 94, 0.04);
}

.hcm-step.is-done i {
  background: rgba(34, 197, 94, 0.15);
  color: #166534;
  border-color: rgba(34, 197, 94, 0.3);
}

.hcm-step.is-current {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 0 0 2px var(--lp-accent-soft);
}

.hcm-step.is-current i {
  background: var(--lp-accent);
  color: #fff;
  border-color: var(--lp-accent);
}

.hcm-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.hcm-stat {
  padding: 7px 6px;
  border-radius: 8px;
  border: 1px solid var(--lp-border);
  background: #fff;
  box-shadow: var(--lp-shadow-sm);
}

.hcm-stat span {
  display: block;
  font-size: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--lp-text-muted);
  margin-bottom: 3px;
}

.hcm-stat strong {
  font-size: 11px;
  font-weight: 700;
  color: var(--lp-text);
  font-variant-numeric: tabular-nums;
}

.hcm-stat strong.accent {
  background: linear-gradient(135deg, var(--lp-accent), var(--lp-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-mockup::before {
  content: "";
  position: absolute;
  inset: -28px -36px auto auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(103, 232, 249, 0.28), transparent 72%);
  pointer-events: none;
  z-index: -1;
}

.hero-mockup::after {
  content: "";
  position: absolute;
  inset: auto auto -36px -34px;
  width: 210px;
  height: 210px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.32), transparent 72%);
  pointer-events: none;
  z-index: -1;
}

.mock-window {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  color: var(--lp-text);
  font-size: 12px;
  border: 1px solid #dbe5f4;
  box-shadow:
    0 14px 30px rgba(15, 23, 42, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #f8fbff, #eef4fb);
  border-bottom: 1px solid #dbe5f4;
}

.mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}

.mock-dot:nth-child(1) { background: #f87171; }
.mock-dot:nth-child(2) { background: #fbbf24; }
.mock-dot:nth-child(3) { background: #34d399; }

.mock-body {
  padding: 18px;
  display: grid;
  gap: 12px;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.8), rgba(255, 255, 255, 1)),
    #fff;
}

.mock-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.mock-bar {
  height: 9px;
  border-radius: 4px;
  background: #eaf0f9;
  flex: 1;
}

.mock-bar.accent {
  background: linear-gradient(90deg, var(--lp-accent), var(--lp-cyan));
  max-width: 78%;
}

.mock-popup-preview {
  margin-top: 6px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #cfddf5;
  background: linear-gradient(180deg, #f3f7ff 0%, #ecf3ff 100%);
  display: grid;
  gap: 6px;
}

.mock-popup-preview strong {
  font-size: 12px;
  color: var(--lp-accent);
}

.mock-popup-preview span {
  font-size: 11px;
  color: var(--lp-text-muted);
}

.mock-cta {
  display: inline-block;
  padding: 7px 13px;
  background: linear-gradient(135deg, var(--lp-accent), #3b82f6);
  color: #fff;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  width: fit-content;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}

.trust-bar {
  padding: 28px 0;
  background: var(--lp-bg);
  border-bottom: 1px solid var(--lp-border);
}

.trust-bar .container {
  text-align: center;
}

.trust-label {
  font-size: 12px;
  color: var(--lp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  font-weight: 600;
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
}

.trust-logos span {
  font-size: 15px;
  font-weight: 600;
  color: var(--lp-text-muted);
  opacity: 0.75;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.how-step-card {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-lg);
  padding: 24px;
  box-shadow: var(--lp-shadow-sm);
  transition: transform var(--lp-transition), box-shadow var(--lp-transition);
}

.how-step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--lp-shadow-md);
}

.how-step-card.is-highlight {
  background: linear-gradient(160deg, var(--lp-hero-from), var(--lp-hero-mid));
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.how-step-card.is-highlight h3,
.how-step-card.is-highlight p {
  color: rgba(255, 255, 255, 0.9);
}

.how-step-card.is-highlight .card-step {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #93c5fd;
}

.how-visual {
  margin-top: 16px;
  padding: 14px;
  background: var(--lp-bg-subtle);
  border-radius: var(--lp-radius);
  border: 1px solid var(--lp-border);
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--lp-font-mono);
  font-size: 11px;
  color: var(--lp-text-muted);
}

.how-step-card.is-highlight .how-visual {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

.section-dark {
  background: linear-gradient(160deg, var(--lp-hero-from) 0%, var(--lp-hero-mid) 100%);
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.section-dark .container {
  position: relative;
  z-index: 1;
}

.section-dark .section-title,
.section-dark h2 {
  color: #fff;
}

.section-dark .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.roi-calc {
  margin-top: 32px;
}

.roi-calc-inputs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.roi-calc-field {
  padding: 18px 20px;
  border-radius: var(--lp-radius-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.roi-calc-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 12px;
}

.roi-calc-control {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.roi-calc-range {
  width: 100%;
  margin: 4px 0;
  cursor: pointer;
  accent-color: #60a5fa;
  touch-action: manipulation;
}

.roi-calc-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.roi-calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -6px;
  border-radius: 50%;
  background: #60a5fa;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.roi-calc-output {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.roi-calc-num {
  width: 100%;
  max-width: 140px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(15, 23, 42, 0.35);
  color: #fff;
  font-size: 13px;
  -moz-appearance: textfield;
  appearance: textfield;
}

.roi-calc-num::-webkit-outer-spin-button,
.roi-calc-num::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.roi-calc-summary {
  margin: 0 0 12px;
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}

.roi-calc-summary strong {
  color: #fff;
}

.roi-summary-accent {
  color: #93c5fd !important;
}

.roi-calc-extra {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  margin-bottom: 20px;
}

.roi-calc-extra-item {
  font-size: 14px;
  font-weight: 600;
  color: #bfdbfe;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.25);
  border: 1px solid rgba(147, 197, 253, 0.35);
}

.roi-table-wrap {
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--lp-radius-xl);
  overflow: hidden;
}

.roi-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.roi-table th,
.roi-table td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.roi-table th {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.roi-table td {
  color: rgba(255, 255, 255, 0.85);
}

.roi-table tr:last-child td {
  border-bottom: none;
}

.roi-table .col-after {
  background: rgba(37, 99, 235, 0.2);
  color: #fff;
  font-weight: 600;
}

.roi-table .col-after strong {
  color: #93c5fd;
}

.roi-footnote {
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.product-features {
  display: grid;
  gap: 24px;
}

.product-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 32px;
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-xl);
  box-shadow: var(--lp-shadow-sm);
}

.product-feature:nth-child(even) .product-feature-visual {
  order: 2;
}

.product-feature:nth-child(even) .product-feature-text {
  order: 1;
}

.feature-tag {
  display: inline-block;
  font-family: var(--lp-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--lp-accent);
  background: var(--lp-accent-soft);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.product-feature h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.product-feature-lead {
  margin: 0 0 14px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--lp-text-muted);
}

.product-feature ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--lp-text-muted);
  font-size: 0.95rem;
}

.product-feature li {
  padding: 6px 0 6px 1.4em;
  position: relative;
}

.product-feature li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--lp-success);
  font-weight: 700;
}

.feature-mock {
  background: var(--lp-bg-subtle);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-lg);
  padding: 20px;
  min-height: 200px;
}

.feature-mock--popup {
  padding: 10px 8px 12px;
  overflow: hidden;
  max-width: 100%;
  background:
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    var(--lp-bg-subtle);
  background-size: 16px 16px;
}

.feature-mock--popup .lp-interactive-popup {
  max-width: 100%;
  margin: 0 auto;
}

.feature-mock--popup .lp-ip-card,
.feature-mock--popup .lp-ip-card--desktop {
  flex-direction: column;
  flex-wrap: nowrap;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.14);
}

.feature-mock--popup .lp-ip-text,
.feature-mock--popup .lp-ip-image-col {
  min-width: 0;
  width: 100%;
}

.feature-mock--popup .lp-ip-text {
  padding: 16px 14px;
  flex: none;
}

.feature-mock--popup .lp-ip-headline {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 4px;
}

.feature-mock--popup .lp-ip-sub {
  font-size: 9px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.feature-mock--popup .lp-ip-bullets {
  margin-bottom: 10px;
}

.feature-mock--popup .lp-ip-bullet {
  font-size: 8px;
  margin-bottom: 4px;
  padding-left: 10px;
  line-height: 1.35;
}

.feature-mock--popup .lp-ip-label {
  font-size: 7px;
  margin-bottom: 3px;
}

.feature-mock--popup .lp-ip-input {
  padding: 5px 6px;
  font-size: 8px;
  border-radius: 5px;
}

.feature-mock--popup .lp-ip-field-block {
  margin-bottom: 6px;
}

.feature-mock--popup .lp-ip-cta {
  padding: 7px 8px;
  font-size: 8px;
  border-radius: 6px;
  background: #2563eb;
  margin-bottom: 8px;
}

.feature-mock--popup .lp-ip-consent-row {
  font-size: 6px;
  gap: 4px;
  margin-bottom: 4px;
  align-items: flex-start;
}

.feature-mock--popup .lp-ip-consent-check {
  width: 8px;
  height: 8px;
  margin-top: 1px;
}

.feature-mock--popup .lp-ip-image-col {
  flex: 0.85;
  min-width: 0;
}

.feature-mock--popup .lp-ip-image-wrap {
  min-height: 0;
}

.feature-mock--popup .lp-ip-img {
  min-height: 100%;
  height: 100%;
}

.feature-mock--popup .lp-ip-close-demo {
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  font-size: 12px;
}

.feature-mock--popup .lp-ip-image-col {
  order: -1;
  flex: none;
}

.feature-mock--popup .lp-ip-img {
  min-height: 120px;
  max-height: 160px;
}

.feature-mock--analytics {
  padding: 10px;
  overflow: hidden;
  max-width: 100%;
  background:
    linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    var(--lp-bg-subtle);
  background-size: 14px 14px;
}

.feature-mock-analytics {
  background: #fff;
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.fma-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.fma-periods {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  background: var(--lp-bg-subtle);
  border-radius: 8px;
  border: 1px solid var(--lp-border);
}

.fma-period {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 600;
  color: var(--lp-text-muted);
  white-space: nowrap;
}

.fma-period.is-active {
  background: #fff;
  color: var(--lp-accent);
  box-shadow: var(--lp-shadow-sm);
}

.fma-export {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--lp-border-strong);
  background: #fff;
  font-size: 9px;
  font-weight: 600;
  color: var(--lp-text);
  white-space: nowrap;
}

.fma-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}

.fma-kpi {
  padding: 8px 6px;
  border-radius: 8px;
  border: 1px solid var(--lp-border);
  background: var(--lp-bg-subtle);
  min-width: 0;
}

.fma-kpi-label {
  display: block;
  font-size: 7px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--lp-text-muted);
  margin-bottom: 4px;
  line-height: 1.2;
}

.fma-kpi strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--lp-text);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.fma-kpi--accent strong {
  background: linear-gradient(135deg, var(--lp-accent), var(--lp-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fma-chart-card {
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--lp-border);
  background: #fff;
  margin-bottom: 8px;
}

.fma-chart-card:last-child {
  margin-bottom: 0;
}

.fma-chart-head {
  margin-bottom: 6px;
}

.fma-chart-head strong {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--lp-text);
  line-height: 1.25;
}

.fma-chart-head span {
  display: block;
  margin-top: 2px;
  font-size: 8px;
  color: var(--lp-text-muted);
  line-height: 1.3;
}

.fma-line-chart {
  display: block;
  width: 100%;
  height: auto;
}

.fma-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  font-size: 8px;
  color: var(--lp-text-muted);
}

.fma-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.fma-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  font-style: normal;
}

.fma-subtitle {
  margin: 0 0 4px;
  font-size: 8px;
  font-weight: 700;
  color: var(--lp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fma-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 1fr auto;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
}

.fma-bar:last-child {
  margin-bottom: 0;
}

.fma-bar-meta {
  min-width: 0;
}

.fma-bar-meta span {
  display: block;
  font-size: 8px;
  font-weight: 600;
  color: var(--lp-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fma-bar-meta small {
  display: block;
  font-size: 7px;
  color: var(--lp-text-muted);
  font-family: var(--lp-font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fma-bar-track {
  height: 6px;
  border-radius: 999px;
  background: var(--lp-bg-subtle);
  overflow: hidden;
}

.fma-bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lp-accent), var(--lp-cyan));
}

.fma-bar em {
  font-size: 8px;
  font-style: normal;
  font-weight: 600;
  color: var(--lp-text-muted);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 576px) {
  .fma-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fma-kpi:nth-child(4),
  .fma-kpi:nth-child(5) {
    grid-column: span 1;
  }
}

.feature-mock-code {
  font-family: var(--lp-font-mono);
  font-size: 11px;
  background: #0f172a;
  color: #94a3b8;
  padding: 16px;
  border-radius: 10px;
  line-height: 1.6;
}

.feature-mock-code em {
  color: #67e8f9;
  font-style: normal;
}

.feature-mock--chatbot {
  position: relative;
  padding: 28px 16px 20px;
  background: linear-gradient(165deg, #eff6ff 0%, #f8fafc 48%, #ecfeff 100%);
  border-color: rgba(37, 99, 235, 0.12);
  overflow: hidden;
}

.feature-mock-chat-showcase {
  position: relative;
  max-width: 320px;
  margin: 0 auto;
}

.feature-mock-chat-glow {
  position: absolute;
  left: 50%;
  top: 38%;
  width: 88%;
  height: 70%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.24) 0%, transparent 72%);
  filter: blur(20px);
  pointer-events: none;
}

.feature-mock-chat-widget {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.feature-mock-chat-panel {
  width: 100%;
  max-width: 292px;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.04),
    0 20px 44px rgba(37, 99, 235, 0.2),
    0 0 0 1px rgba(37, 99, 235, 0.06);
}

.feature-mock-chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 12px;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #3b82f6 100%);
  color: #fff;
}

.feature-mock-chat-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.feature-mock-chat-head-text {
  flex: 1;
  min-width: 0;
}

.feature-mock-chat-head-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.feature-mock-chat-head-text span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  opacity: 0.9;
  line-height: 1.3;
}

.feature-mock-chat-head-text span::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.35);
  vertical-align: 1px;
}

.feature-mock-chat-close {
  flex-shrink: 0;
  font-size: 22px;
  line-height: 1;
  opacity: 0.85;
}

.feature-mock-chat-body {
  padding: 14px 12px 16px;
  background: #f4f6f9;
}

.feature-mock-chat-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.feature-mock-chat-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
}

.feature-mock-chat-bubble {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 14px 14px 14px 4px;
  background: #fff;
  border: 1px solid #e8edf3;
  font-size: 13px;
  line-height: 1.5;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.feature-mock-chat-actions {
  margin: 12px 0 0 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-mock-chat-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.feature-mock-chat-btn {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}

.feature-mock-chat-btn--primary {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

.feature-mock-chat-btn--secondary {
  background: #fff;
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.35);
}

.feature-mock-chat-btn--ghost {
  background: #fff;
  color: #64748b;
  border: 1px solid #e2e8f0;
  font-weight: 500;
}

.feature-mock-chat-launcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  background: #fff;
  border-radius: 999px;
  border: 1px solid var(--lp-border);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  font-size: 13px;
  font-weight: 600;
  color: var(--lp-text);
  white-space: nowrap;
}

.feature-mock-chat-launcher-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.feature-mock-chat-launcher-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Landing: topbar & site widget mocks */
.feature-mock--topbar,
.feature-mock--widget {
  padding: 12px;
  background:
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    var(--lp-bg-subtle);
  background-size: 16px 16px;
}

.feature-mock-site-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--lp-border);
  background: #fff;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.12);
}

.feature-mock-site-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--lp-border);
}

.feature-mock-site-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}

.feature-mock-site-dot:nth-child(1) {
  background: #f87171;
}

.feature-mock-site-dot:nth-child(2) {
  background: #fbbf24;
}

.feature-mock-site-dot:nth-child(3) {
  background: #4ade80;
}

.feature-mock-site-url {
  margin-left: auto;
  font-size: 10px;
  color: #64748b;
  font-family: var(--lp-font-mono);
}

.feature-mock-topbar-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 8px 14px;
  background: linear-gradient(90deg, #dc2626, #ef4444);
  color: #fff;
  font-size: 11px;
  line-height: 1.3;
}

.feature-mock-tb-date {
  font-weight: 700;
  white-space: nowrap;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.18);
  font-size: 10px;
}

.feature-mock-tb-msg {
  flex: 1 1 140px;
  text-align: center;
  font-weight: 600;
}

.feature-mock-tb-btn {
  padding: 5px 12px;
  border-radius: 5px;
  background: #fff;
  color: #dc2626;
  font-weight: 700;
  font-size: 10px;
  white-space: nowrap;
}

.feature-mock-tb-close {
  font-size: 16px;
  line-height: 1;
  opacity: 0.85;
  flex-shrink: 0;
}

.feature-mock-site-body {
  padding: 14px 16px 18px;
  min-height: 160px;
  background: #fff;
}

.feature-mock-site-body--widget {
  position: relative;
  min-height: 200px;
  padding-bottom: 56px;
}

.feature-mock-site-nav-mock {
  width: 48%;
  height: 8px;
  border-radius: 4px;
  background: #e2e8f0;
  margin-bottom: 14px;
}

.feature-mock-site-line {
  height: 6px;
  border-radius: 4px;
  background: #e2e8f0;
  margin-bottom: 8px;
}

.feature-mock-site-line.w70 {
  width: 70%;
}

.feature-mock-site-line.w50 {
  width: 50%;
}

.feature-mock-site-line.w80 {
  width: 80%;
}

.feature-mock-site-line.w60 {
  width: 60%;
}

.feature-mock-site-line.w45 {
  width: 45%;
}

.feature-mock-site-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.feature-mock-site-cards span {
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(180deg, #f1f5f9, #e2e8f0);
}

.feature-mock-site-block {
  height: 56px;
  margin-top: 12px;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fafc, #e2e8f0);
}

.feature-mock-sw-anchor {
  position: absolute;
  right: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
}

.feature-mock-sw-widget {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 32px 8px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #03824c, #059669);
  color: #fff;
  box-shadow: 0 10px 28px rgba(3, 130, 76, 0.35);
  position: relative;
}

.feature-mock-sw-text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}

.feature-mock-sw-btn {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 6px;
  background: #2563eb;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.feature-mock-sw-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.22);
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.benefit-card {
  padding: 24px 20px;
  border-radius: var(--lp-radius-lg);
  border: 1px solid var(--lp-border);
  background: var(--lp-surface);
  text-align: center;
  box-shadow: var(--lp-shadow-sm);
}

.benefit-card.is-dark {
  background: linear-gradient(160deg, var(--lp-hero-from), var(--lp-hero-mid));
  border-color: transparent;
  color: #fff;
}

.benefit-card.is-dark h4 {
  color: #fff;
}

.benefit-card.is-dark p {
  color: rgba(255, 255, 255, 0.7);
}

.benefit-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.benefit-card h4 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.benefit-card p {
  margin: 0;
  font-size: 13px;
  color: var(--lp-text-muted);
}

.cases-marquee {
  overflow: hidden;
  margin-top: 8px;
  padding: 4px 0 8px;
}

.cases-marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: cases-marquee-scroll 55s linear infinite;
  will-change: transform;
}

.cases-marquee:hover .cases-marquee-track {
  animation-play-state: paused;
}

@keyframes cases-marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.case-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
  padding: 36px;
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-xl);
  box-shadow: var(--lp-shadow-md);
  max-width: 720px;
  margin: 0 auto;
}

.case-card--slide {
  flex: 0 0 min(560px, calc(100vw - 48px));
  max-width: calc(100vw - 48px);
  margin: 0;
  min-height: 168px;
  box-shadow: none;
}

.case-metric {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--lp-accent), var(--lp-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.case-metric span {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--lp-text-muted);
  -webkit-text-fill-color: var(--lp-text-muted);
  margin-top: 8px;
  letter-spacing: 0;
}

.case-quote {
  margin: 0;
  font-size: 1.05rem;
  color: var(--lp-text);
  line-height: 1.65;
}

.case-author {
  margin-top: 12px;
  font-size: 14px;
  color: var(--lp-text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .cases-marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
    padding-bottom: 12px;
  }

  .cases-marquee-track {
    animation: none;
    flex-wrap: nowrap;
    padding: 0 16px;
  }
}

/* Trust Q&A block (#safe) */
.trust-qa-section {
  background: var(--lp-bg);
}

.trust-qa-title {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.trust-qa-accent {
  background: linear-gradient(135deg, var(--lp-accent), var(--lp-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.trust-qa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.trust-qa-card {
  position: relative;
  padding: 24px 24px 24px 28px;
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-xl);
  box-shadow: var(--lp-shadow-sm);
  transition: border-color var(--lp-transition), box-shadow var(--lp-transition);
}

.trust-qa-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 20px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--lp-accent), var(--lp-cyan));
  opacity: 0.85;
}

.trust-qa-card:hover {
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: var(--lp-shadow-md);
}

.trust-qa-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--lp-accent-soft);
  color: var(--lp-accent);
}

.trust-qa-icon svg {
  display: block;
}

.trust-qa-q {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--lp-text);
}

.trust-qa-a {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--lp-text-muted);
}

.trust-qa-card--spotlight {
  background: linear-gradient(145deg, var(--lp-hero-mid) 0%, var(--lp-hero-from) 100%);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: var(--lp-shadow-glow);
}

.trust-qa-card--spotlight::before {
  background: linear-gradient(180deg, var(--lp-cyan), var(--lp-accent));
  opacity: 1;
}

.trust-qa-card--spotlight .trust-qa-q {
  color: #f8fafc;
}

.trust-qa-card--spotlight .trust-qa-a {
  color: rgba(248, 250, 252, 0.78);
}

.trust-qa-icon--light {
  background: rgba(255, 255, 255, 0.12);
  color: #93c5fd;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cta-final {
  background: linear-gradient(135deg, var(--lp-accent) 0%, #3b82f6 50%, var(--lp-cyan) 100%);
  padding: 72px 0;
  text-align: center;
  color: #fff;
}

.cta-final h2 {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 12px;
}

.cta-final p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 520px;
  margin: 0 auto 28px;
  font-size: 1.1rem;
}

.cta-final-note {
  max-width: 640px !important;
  margin: 0 auto 20px !important;
  font-size: 0.98rem !important;
  line-height: 1.5;
}

.cta-final-note code {
  font-family: var(--lp-font-mono);
  font-size: 0.9em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
}

.cta-final .btn {
  background: #fff;
  color: var(--lp-accent);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.cta-final .btn:hover {
  background: #f8fafc;
  color: var(--lp-accent-hover);
}

.integrations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.integrations span {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 992px) {
  .hero-split .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-split .hero-content,
  .hero-split h1,
  .hero-split p {
    text-align: center;
  }

  .hero-split .hero-actions {
    justify-content: center;
  }

  .hero-mockup {
    margin: 10px auto 0;
    width: min(620px, 100%);
  }

  .hcm-email {
    display: none;
  }

  .hcm-sidebar {
    width: 92px;
  }

  .how-steps {
    grid-template-columns: 1fr;
  }

  .product-feature {
    grid-template-columns: 1fr;
  }

  .product-feature:nth-child(even) .product-feature-visual,
  .product-feature:nth-child(even) .product-feature-text {
    order: unset;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-qa-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-card,
  .case-card--slide {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .case-card--slide {
    flex: 0 0 min(400px, calc(100vw - 48px));
    max-width: calc(100vw - 48px);
    padding: 28px 24px;
  }

  .pricing-tiers {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 576px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .product-feature {
    padding: 20px 16px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .trust-qa-grid {
    grid-template-columns: 1fr;
  }

  .roi-calc-inputs {
    grid-template-columns: 1fr;
  }

  .roi-calc-summary {
    text-align: left;
    font-size: 16px;
  }

  .roi-table th,
  .roi-table td {
    padding: 12px 14px;
    font-size: 13px;
  }

  .tariffs-compare th,
  .tariffs-compare td {
    padding: 12px 14px;
    font-size: 13px;
  }

  .price-value {
    font-size: 1.85rem;
  }
}

/* --- Bootstrap app --- */

body.lp-app {
  min-height: 100vh;
}

body.lp-app.lp-mesh-bg {
  background-attachment: fixed;
}

.lp-app .navbar {
  background: var(--lp-bg-elevated) !important;
  backdrop-filter: blur(var(--lp-blur));
  -webkit-backdrop-filter: blur(var(--lp-blur));
  border-bottom: 1px solid var(--lp-border) !important;
  box-shadow: none !important;
  padding: 12px 0;
}

.lp-app .navbar-brand {
  font-weight: 700 !important;
  letter-spacing: -0.03em;
  color: var(--lp-text) !important;
}

.lp-app .navbar-brand i {
  background: linear-gradient(135deg, var(--lp-accent), var(--lp-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lp-app .nav-link {
  color: var(--lp-text-muted) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 14px !important;
  border-radius: 8px;
  transition: color var(--lp-transition), background var(--lp-transition) !important;
}

.lp-app .nav-link:hover {
  color: var(--lp-text) !important;
  background: var(--lp-accent-soft);
}

.lp-app .navbar-toggler {
  border-color: var(--lp-border-strong);
}

.lp-app .main-container {
  background: var(--lp-bg-elevated);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--lp-radius-xl);
  box-shadow: var(--lp-shadow-md);
  border: 1px solid var(--lp-border);
  margin: 28px auto 40px;
  padding: 40px;
  max-width: 1200px;
}

.lp-app .lp-page-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--lp-border);
}

.lp-app .lp-page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.lp-app .lp-page-header h1 i {
  background: linear-gradient(135deg, var(--lp-accent), var(--lp-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lp-app .lp-page-header .lead {
  color: var(--lp-text-muted);
  max-width: 540px;
  margin: 0 auto;
}

.lp-app .btn-primary {
  background: linear-gradient(135deg, var(--lp-accent), #3b82f6) !important;
  border: none !important;
  padding: 11px 26px !important;
  border-radius: var(--lp-radius) !important;
  font-weight: 600 !important;
  box-shadow: var(--lp-shadow-glow) !important;
  transition: transform var(--lp-transition), box-shadow var(--lp-transition) !important;
}

.lp-app .btn-primary:hover,
.lp-app .btn-primary:focus {
  background: linear-gradient(135deg, var(--lp-accent-hover), var(--lp-accent)) !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--lp-accent-glow) !important;
}

.lp-app .btn-warning {
  background: var(--lp-text-muted) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 500 !important;
  border-radius: var(--lp-radius) !important;
}

.lp-app .btn-warning:hover {
  background: var(--lp-text) !important;
  transform: translateY(-1px);
}

.lp-app .card {
  border: 1px solid var(--lp-border) !important;
  border-radius: var(--lp-radius-lg) !important;
  box-shadow: var(--lp-shadow-sm) !important;
  overflow: hidden;
  transition: transform var(--lp-transition), box-shadow var(--lp-transition), border-color var(--lp-transition) !important;
}

.lp-app .card.shadow-lg {
  box-shadow: var(--lp-shadow-md) !important;
}

.lp-app .card:hover {
  transform: translateY(-2px);
  box-shadow: var(--lp-shadow-md) !important;
  border-color: rgba(37, 99, 235, 0.12) !important;
}

.lp-app .card-header {
  background: var(--lp-bg-subtle) !important;
  border-bottom: 1px solid var(--lp-border) !important;
  font-weight: 600;
}

.lp-app .input-group-text {
  background: var(--lp-bg-subtle) !important;
  border-color: var(--lp-border-strong) !important;
  color: var(--lp-accent) !important;
}

.lp-app .form-control,
.lp-app .form-select {
  border-radius: var(--lp-radius) !important;
  border: 1px solid var(--lp-border-strong) !important;
  padding: 12px 16px !important;
  background: var(--lp-bg-subtle) !important;
  transition: border-color var(--lp-transition), box-shadow var(--lp-transition), background var(--lp-transition) !important;
}

.lp-app .form-control:focus,
.lp-app .form-select:focus {
  border-color: var(--lp-accent) !important;
  background: var(--lp-bg) !important;
  box-shadow: 0 0 0 4px var(--lp-accent-soft) !important;
}

.lp-app .text-primary {
  color: var(--lp-accent) !important;
}

.lp-app .bg-light {
  background: var(--lp-bg-subtle) !important;
}

.lp-app .progress {
  height: 6px;
  border-radius: 999px;
  background-color: var(--lp-accent-soft) !important;
}

.lp-app .progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--lp-accent), var(--lp-cyan)) !important;
}

.lp-app .element-preview {
  background: var(--lp-bg-subtle);
  border: 1px dashed var(--lp-border-strong);
  border-radius: var(--lp-radius-lg);
  padding: 24px;
  margin: 15px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

.lp-app .json-code {
  background: #0f172a;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--lp-radius);
  padding: 16px;
  font-family: var(--lp-font-mono);
  font-size: 0.8125rem;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.lp-app .alert {
  border-radius: var(--lp-radius) !important;
}

.lp-app .badge {
  font-family: var(--lp-font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.lp-app .lp-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  font-size: 1.35rem !important;
  border-radius: 14px;
  background: var(--lp-accent-soft);
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.lp-app .lp-feature-icon.icon-success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--lp-success) !important;
}

.lp-app .lp-feature-icon.icon-cyan {
  background: var(--lp-cyan-soft);
  border-color: rgba(6, 182, 212, 0.2);
  color: var(--lp-cyan) !important;
}

.lp-app .loading-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  z-index: 9999;
}

.lp-app .loading-content {
  background: var(--lp-surface);
  padding: 36px 40px;
  border-radius: var(--lp-radius-xl);
  text-align: center;
  box-shadow: var(--lp-shadow-md);
  border: 1px solid var(--lp-border);
}

.lp-app .spinner-border.text-primary {
  color: var(--lp-accent) !important;
}

.lp-app footer.site-footer {
  color: var(--lp-text-muted);
  background: transparent;
  font-family: var(--lp-font-mono);
  font-size: 12px;
}

.lp-app .fade-in {
  animation: lpFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes lpFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .lp-app .main-container {
    margin: 16px 12px 32px;
    padding: 24px 20px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero {
    padding: 72px 0 88px;
  }
}

/* --- Standalone admin / logs --- */

.lp-standalone {
  font-family: var(--lp-font);
  min-height: 100vh;
  padding: 20px;
  color: var(--lp-text);
}

.lp-standalone.lp-mesh-bg {
  background-attachment: fixed;
}

.lp-standalone .lp-panel {
  max-width: 1400px;
  margin: 0 auto;
  background: var(--lp-surface);
  border-radius: var(--lp-radius-xl);
  box-shadow: var(--lp-shadow-md);
  border: 1px solid var(--lp-border);
  overflow: hidden;
}

.lp-standalone .lp-panel-header,
.lp-standalone .header {
  background: linear-gradient(160deg, var(--lp-hero-from), var(--lp-hero-mid));
  color: #fff;
  padding: 32px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.lp-standalone .lp-panel-header::before,
.lp-standalone .header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.lp-standalone .lp-panel-header h1,
.lp-standalone .header h1 {
  color: #fff;
  font-size: 1.75rem;
  margin-bottom: 8px;
  position: relative;
  letter-spacing: -0.03em;
}

.lp-standalone .lp-panel-header p,
.lp-standalone .header p {
  opacity: 0.85;
  margin: 0;
  position: relative;
}

.lp-standalone .btn {
  background: linear-gradient(135deg, var(--lp-accent), #3b82f6);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--lp-radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--lp-shadow-glow);
  transition: transform var(--lp-transition), box-shadow var(--lp-transition);
}

.lp-standalone .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--lp-accent-glow);
}

.lp-standalone .btn-secondary {
  background: var(--lp-text-muted);
  box-shadow: none;
}

.lp-standalone input,
.lp-standalone select,
.lp-standalone textarea {
  font-family: var(--lp-font);
  border: 1px solid var(--lp-border-strong);
  border-radius: var(--lp-radius);
  padding: 12px 14px;
  background: var(--lp-bg-subtle);
  transition: border-color var(--lp-transition), box-shadow var(--lp-transition);
}

.lp-standalone input:focus,
.lp-standalone select:focus,
.lp-standalone textarea:focus {
  outline: none;
  border-color: var(--lp-accent);
  background: var(--lp-bg);
  box-shadow: 0 0 0 4px var(--lp-accent-soft);
}

.lp-standalone .stat-card {
  background: var(--lp-bg-subtle);
  border: 1px solid var(--lp-border);
  border-left: 3px solid var(--lp-accent);
  border-radius: var(--lp-radius-lg);
  padding: 20px;
  box-shadow: var(--lp-shadow-sm);
}

.lp-standalone pre,
.lp-standalone code,
.lp-standalone .log-content {
  font-family: var(--lp-font-mono);
  font-size: 13px;
}

/* --- Personal cabinet (user + admin) --- */

.cabinet-app {
  min-height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cabinet-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--lp-bg-elevated);
  backdrop-filter: blur(var(--lp-blur));
  border-bottom: 1px solid var(--lp-border);
  position: sticky;
  top: 0;
  z-index: 50;
  flex-shrink: 0;
}

.cabinet-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cabinet-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cabinet-mobile-title {
  display: none;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--lp-text);
  min-width: 0;
}

.cabinet-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--lp-border);
  border-radius: 10px;
  background: var(--lp-surface);
  color: var(--lp-text);
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--lp-transition), border-color var(--lp-transition);
}

.cabinet-menu-btn:hover {
  background: var(--lp-bg-subtle);
  border-color: rgba(37, 99, 235, 0.25);
}

.cabinet-menu-btn:focus-visible {
  outline: 2px solid var(--lp-accent);
  outline-offset: 2px;
}

.cabinet-menu-icon {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.cabinet-app.cabinet-menu-open .cabinet-menu-icon {
  width: 18px;
  height: 18px;
  background: transparent;
  box-shadow: none;
  position: relative;
}

.cabinet-app.cabinet-menu-open .cabinet-menu-icon::before,
.cabinet-app.cabinet-menu-open .cabinet-menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.cabinet-app.cabinet-menu-open .cabinet-menu-icon::before {
  transform: translateY(-50%) rotate(45deg);
}

.cabinet-app.cabinet-menu-open .cabinet-menu-icon::after {
  transform: translateY(-50%) rotate(-45deg);
}

.cabinet-nav-backdrop {
  display: none;
}

.cabinet-drawer-head,
.cabinet-drawer-footer {
  display: none;
}

.cabinet-badge--inline {
  margin-left: 8px;
  font-size: 10px;
}

body.cabinet-menu-scroll-lock {
  overflow: hidden;
}

.cabinet-user-chip {
  font-size: 13px;
  color: var(--lp-text-muted);
  font-family: var(--lp-font-mono);
}

.cabinet-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--lp-font-mono);
  letter-spacing: 0.03em;
}

.cabinet-badge.ok {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.cabinet-badge.warn {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.cabinet-badge.admin {
  color: var(--lp-accent);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.cabinet-layout {
  display: flex;
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  gap: 0;
  align-items: stretch;
  overflow: hidden;
}

.cabinet-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--lp-surface);
  border: none;
  border-right: 1px solid var(--lp-border);
  border-radius: 0;
  padding: 12px;
  box-shadow: none;
  align-self: stretch;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 40;
}

.cabinet-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cabinet-nav a,
.cabinet-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: transparent;
  border-radius: 8px;
  color: var(--lp-text-muted);
  font-family: var(--lp-font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background var(--lp-transition), color var(--lp-transition);
}

.cabinet-nav a:hover,
.cabinet-nav button:hover {
  background: var(--lp-bg-subtle);
  color: var(--lp-text);
  text-decoration: none;
}

.cabinet-nav a.active,
.cabinet-nav button.active {
  background: var(--lp-accent-soft);
  color: var(--lp-accent);
}

.cabinet-nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cabinet-nav-submenu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 4px 12px;
  padding-left: 10px;
  border-left: 2px solid var(--lp-border);
}

.cabinet-nav-sub {
  font-size: 13px;
  padding: 8px 10px;
}

.cabinet-nav-parent.is-parent-active {
  background: rgba(37, 99, 235, 0.06);
  color: var(--lp-text);
}

.cabinet-nav-group.has-active-child .cabinet-nav-parent {
  color: var(--lp-text);
  font-weight: 600;
}

.cabinet-nav-sub:disabled,
.cabinet-nav-sub.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.cabinet-main {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 24px 28px 32px;
}

.cabinet-panel {
  display: none;
}

.cabinet-panel.active {
  display: block;
  animation: lpCabinetPanelIn 0.2s ease-out;
}

@keyframes lpCabinetPanelIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.cabinet-panel h1 {
  font-size: 1.5rem;
  margin: 0 0 8px;
  font-weight: 700;
}

.cabinet-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.cabinet-panel-head h1 {
  margin: 0;
}

.cabinet-panel-head .panel-desc {
  margin-bottom: 0;
}

.cabinet-panel .panel-desc {
  color: var(--lp-text-muted);
  margin: 0 0 24px;
  font-size: 0.95rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.referral-hero__title {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.referral-hero__pitch {
  margin: 0 0 16px;
  color: var(--lp-text-muted);
  line-height: 1.5;
  font-size: 14px;
}

.referral-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.referral-stats-grid--funnel {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.stat-card-cabinet--highlight {
  border-color: color-mix(in srgb, var(--lp-accent) 28%, var(--lp-border));
  background: color-mix(in srgb, var(--lp-accent) 6%, var(--lp-surface));
}

.stat-card-cabinet .stat-hint {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--lp-text-muted);
}

.referral-link-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.referral-link-input {
  flex: 1;
  min-width: 200px;
  font-family: var(--lp-font-mono);
  font-size: 13px;
}

.referral-hint {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--lp-text-muted);
  line-height: 1.45;
}

.referral-table-wrap {
  overflow-x: auto;
}

.referral-table {
  width: 100%;
  min-width: 480px;
}

.cabinet-trial-nudges {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.cabinet-trial-nudges.hidden {
  display: none;
}

.trial-nudge-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: var(--lp-radius);
  border: 1px solid transparent;
}

.trial-nudge-banner--warn {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, var(--lp-surface) 70%);
  border-color: rgba(245, 158, 11, 0.35);
}

.trial-nudge-banner--info {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, var(--lp-surface) 70%);
  border-color: rgba(37, 99, 235, 0.25);
}

.trial-nudge-banner--urgent {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, var(--lp-surface) 70%);
  border-color: rgba(220, 38, 38, 0.3);
}

.trial-nudge-banner__title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.trial-nudge-banner__message {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--lp-text-muted);
}

.trial-nudge-banner__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.trial-nudge-banner__dismiss {
  border: none;
  background: transparent;
  color: var(--lp-text-muted);
  font-size: 20px;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 6px;
}

.trial-nudge-banner__dismiss:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--lp-text);
}

.overview-onboarding-wrap {
  margin-bottom: 20px;
}

.overview-onboarding-wrap.hidden {
  display: none;
}

.onboarding-card {
  padding: 20px 22px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, var(--lp-surface) 55%);
}

.onboarding-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.onboarding-title {
  margin: 0 0 4px;
  font-size: 1.1rem;
  font-weight: 700;
}

.onboarding-sub {
  margin: 0;
  font-size: 14px;
  color: var(--lp-text-muted);
  line-height: 1.45;
}

.onboarding-progress-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.onboarding-progress-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--lp-accent);
  white-space: nowrap;
}

.onboarding-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--lp-bg-subtle);
  overflow: hidden;
  margin-bottom: 18px;
}

.onboarding-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lp-accent), #60a5fa);
  transition: width 0.35s ease;
}

.onboarding-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.onboarding-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--lp-radius);
  border: 1px solid var(--lp-border);
  background: var(--lp-surface);
}

.onboarding-step.is-current {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 0 0 3px var(--lp-accent-soft);
}

.onboarding-step.is-done {
  border-color: rgba(34, 197, 94, 0.25);
  background: rgba(34, 197, 94, 0.04);
}

.onboarding-step.is-locked {
  opacity: 0.55;
}

.onboarding-step-marker {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  background: var(--lp-bg-subtle);
  color: var(--lp-text-muted);
  border: 1px solid var(--lp-border);
}

.onboarding-step.is-done .onboarding-step-marker {
  background: rgba(34, 197, 94, 0.15);
  color: #166534;
  border-color: rgba(34, 197, 94, 0.3);
}

.onboarding-step.is-current .onboarding-step-marker {
  background: var(--lp-accent);
  color: #fff;
  border-color: var(--lp-accent);
}

.onboarding-step-body {
  flex: 1;
  min-width: 0;
}

.onboarding-step-title {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.onboarding-step-desc {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--lp-text-muted);
  line-height: 1.45;
}

.onboarding-embed {
  margin: 0 0 10px;
  font-size: 12px;
  max-height: 72px;
  overflow: auto;
}

.onboarding-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--lp-text-muted);
  line-height: 1.4;
}

.install-check-host {
  margin-top: 20px;
}

.install-check-block {
  padding: 14px 16px;
  border-radius: var(--lp-radius);
  border: 1px dashed var(--lp-border-strong);
  background: var(--lp-bg-subtle);
}

.install-check-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
}

.install-check-desc {
  margin: 0 0 12px !important;
  font-size: 13px !important;
}

.install-check-result {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.45;
}

.install-check-meta {
  font-size: 12px;
  opacity: 0.9;
}

@media (max-width: 640px) {
  .onboarding-card {
    padding: 16px;
  }

  .onboarding-step {
    padding: 10px 12px;
  }
}

.generations-usage-card {
  margin-bottom: 20px;
}

.generations-usage-card:empty {
  display: none;
}

.generations-usage-inner {
  padding: 16px 18px;
  border-radius: var(--lp-radius-lg);
  border: 1px solid var(--lp-border);
  background: var(--lp-surface);
  box-shadow: var(--lp-shadow-sm);
}

.generations-usage-inner.is-warn {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(135deg, #fffbeb 0%, #fff 55%);
}

.generations-usage-inner.is-limit {
  border-color: rgba(239, 68, 68, 0.35);
  background: linear-gradient(135deg, #fef2f2 0%, #fff 55%);
}

.generations-usage-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 10px;
}

.generations-usage-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--lp-text);
}

.generations-usage-meta {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--lp-text-muted);
}

.generations-usage-count {
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--lp-accent);
  line-height: 1.1;
  white-space: nowrap;
}

.generations-usage-count small {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--lp-text-muted);
}

.generations-usage-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--lp-bg-subtle);
  overflow: hidden;
}

.generations-usage-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lp-accent), var(--lp-cyan));
  transition: width 0.25s ease;
}

.generations-usage-inner.is-warn .generations-usage-bar span {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.generations-usage-inner.is-limit .generations-usage-bar span {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.generations-usage-foot {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--lp-text-muted);
}

.account-limits-extra {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--lp-border);
}

.account-limits-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--lp-text-muted);
  margin-bottom: 8px;
}

.account-limits-row strong {
  color: var(--lp-text);
  font-variant-numeric: tabular-nums;
}

.account-limits-bar {
  margin-bottom: 12px;
}

.account-limits-bar.is-warn span {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.account-limits-bar.is-limit span {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.legal-doc {
  max-width: 960px;
}

.legal-doc-title {
  text-align: left;
  margin-bottom: 8px;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.25;
}

.legal-doc-subtitle {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--lp-text-muted);
}

.legal-doc-body h2 {
  margin: 28px 0 12px;
  font-size: 1.15rem;
}

.legal-doc-body h2:first-child {
  margin-top: 0;
}

.legal-doc-body h3 {
  margin: 20px 0 10px;
  font-size: 1.05rem;
}

.legal-doc-body p,
.legal-doc-body li {
  color: var(--lp-text-muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.legal-doc-body ul {
  margin: 8px 0 12px;
  padding-left: 1.25rem;
}

.legal-doc-body ul li {
  margin-bottom: 6px;
}

.legal-definitions {
  margin: 12px 0 0;
}

.legal-definitions dt {
  font-weight: 600;
  color: var(--lp-text);
  margin-top: 12px;
}

.legal-definitions dd {
  margin: 4px 0 0;
  color: var(--lp-text-muted);
  line-height: 1.6;
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 560px;
}

.review-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.review-field > span {
  font-size: 14px;
  font-weight: 600;
  color: var(--lp-text);
}

.review-stars-picker {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.review-star-btn,
.review-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: #cbd5e1;
  cursor: pointer;
  transition: color var(--lp-transition), transform 0.15s ease;
}

.review-star {
  width: auto;
  height: auto;
  cursor: default;
}

.review-star-btn:hover,
.review-star-btn.is-active,
.review-star.is-active {
  color: #f59e0b;
}

.review-star-btn:hover {
  transform: scale(1.08);
}

.review-stars-hint {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--lp-text-muted);
}

.review-preview-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 10px;
}

.review-preview-text {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.6;
  color: var(--lp-text);
}

.review-stars-display .review-star {
  font-size: 1.1rem;
}

.review-admin-rating {
  display: inline-flex;
  gap: 2px;
  color: #f59e0b;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.overview-stats-wrap {
  margin-bottom: 28px;
}

.overview-stats-wrap .stats-grid {
  margin-bottom: 0;
}

.stats-grid--counts-4 {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.stats-subsection-title {
  margin: 16px 0 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--lp-text-muted);
}

.stats-subsection-title:first-of-type {
  margin-top: 0;
}

.stats-chart-card--tops .stats-subsection-title + .stats-bar-chart {
  margin-bottom: 4px;
}

.overview-stats-wrap .stats-grid--metrics {
  margin-top: 16px;
}

.stat-card-cabinet {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-lg);
  padding: 20px;
  box-shadow: var(--lp-shadow-sm);
}

.stat-card-cabinet .stat-label {
  font-size: 12px;
  color: var(--lp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  font-weight: 600;
}

.stat-card-cabinet .stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--lp-text);
}

.stat-card-cabinet .stat-value.accent {
  background: linear-gradient(135deg, var(--lp-accent), var(--lp-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cabinet-card {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-lg);
  padding: 24px;
  box-shadow: var(--lp-shadow-sm);
  margin-bottom: 20px;
}

.cabinet-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-lg);
  background: var(--lp-surface);
}

.cabinet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.cabinet-table th,
.cabinet-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--lp-border);
}

.cabinet-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--lp-text-muted);
  font-weight: 600;
  background: var(--lp-bg-subtle);
}

.cabinet-table tr:last-child td {
  border-bottom: none;
}

.cabinet-table tr:hover td {
  background: rgba(37, 99, 235, 0.03);
}

.cabinet-table .mono {
  font-family: var(--lp-font-mono);
  font-size: 12px;
}

.cabinet-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-icon {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 8px;
  border: 1px solid var(--lp-border-strong);
  background: var(--lp-bg);
  color: var(--lp-text);
  cursor: pointer;
  font-family: var(--lp-font);
  font-weight: 500;
  transition: all var(--lp-transition);
}

.btn-icon:hover {
  border-color: var(--lp-accent);
  color: var(--lp-accent);
  background: var(--lp-accent-soft);
}

.btn-icon.danger:hover {
  border-color: var(--lp-danger);
  color: var(--lp-danger);
  background: rgba(239, 68, 68, 0.08);
}

.btn-icon.primary {
  background: var(--lp-accent-soft);
  border-color: rgba(37, 99, 235, 0.2);
  color: var(--lp-accent);
}

.toggle-switch {
  position: relative;
  width: 40px;
  height: 22px;
  display: inline-block;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--lp-accent);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(18px);
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
}

.login-box {
  grid-row: 1;
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 400px;
  margin: 24px;
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-xl);
  padding: 36px;
  box-shadow: var(--lp-shadow-md);
}

.login-page #site-footer-root {
  grid-row: 2;
  width: 100%;
}

.login-box h1 {
  text-align: center;
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.login-box .sub {
  text-align: center;
  color: var(--lp-text-muted);
  margin: 0 0 28px;
  font-size: 14px;
}

.login-box label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--lp-text);
}

.login-box input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 16px;
  border: 1px solid var(--lp-border-strong);
  border-radius: var(--lp-radius);
  font-family: var(--lp-font);
  font-size: 15px;
}

.login-box input:focus {
  outline: none;
  border-color: var(--lp-accent);
  box-shadow: 0 0 0 4px var(--lp-accent-soft);
}

.login-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--lp-text-muted);
}

.login-forgot-link {
  margin: -4px 0 16px;
  text-align: right;
  font-size: 13px;
}

.login-forgot-link a {
  color: var(--lp-accent);
  text-decoration: none;
}

.login-forgot-link a:hover {
  text-decoration: underline;
}

.popup-detail {
  margin-top: 20px;
  padding: 20px;
  background: var(--lp-bg-subtle);
  border-radius: var(--lp-radius);
  border: 1px solid var(--lp-border);
}

.popup-detail h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--lp-text-muted);
}

.empty-state p {
  margin: 0 0 16px;
}

.admin-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-filters label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--lp-text-muted);
}

.admin-filters select {
  padding: 8px 12px;
  border: 1px solid var(--lp-border-strong);
  border-radius: 8px;
  font-family: var(--lp-font);
  font-size: 14px;
  min-width: 160px;
  background: var(--lp-bg);
}

.admin-user-detail {
  margin-top: 24px;
}

.admin-user-detail h3 {
  margin: 0 0 16px;
  font-size: 1.1rem;
}

.sub-paid {
  color: #047857;
  font-weight: 600;
}

.sub-unpaid,
.sub-expired {
  color: #b45309;
  font-weight: 600;
}

.popup-status-active {
  color: #047857;
  font-weight: 600;
}

.popup-status-inactive {
  color: var(--lp-text-muted);
  font-weight: 600;
}

.errors-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.error-log-item {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-left: 3px solid var(--lp-danger);
  border-radius: var(--lp-radius);
  padding: 16px 18px;
  box-shadow: var(--lp-shadow-sm);
}

.error-log-item .error-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 12px;
  color: var(--lp-text-muted);
  margin-bottom: 8px;
  font-family: var(--lp-font-mono);
}

.error-log-item .error-message {
  font-weight: 600;
  color: var(--lp-text);
  margin-bottom: 8px;
  word-break: break-word;
}

.error-log-item details {
  font-size: 13px;
  color: var(--lp-text-muted);
}

.error-log-item pre {
  margin: 8px 0 0;
  padding: 12px;
  background: #0f172a;
  color: #94a3b8;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 11px;
  font-family: var(--lp-font-mono);
  max-height: 200px;
}

/* Cabinet mobile base — details in «Mobile service» section at file end */

/* Popup layout (desktop / mobile) */
.lp-layout-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 14px;
  padding: 12px 14px;
  background: var(--lp-bg-subtle);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
}

.lp-layout-toolbar-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 200px;
  flex: 1;
}

.lp-ip-card--desktop {
  flex-direction: row;
  flex-wrap: nowrap;
  max-width: 920px;
  align-items: stretch;
}

.lp-ip-card--desktop.lp-layout-desktop-left {
  flex-direction: row-reverse;
}

.lp-ip-card--desktop .lp-ip-text {
  align-self: flex-start;
  flex: 1;
}

.lp-ip-card--desktop .lp-ip-image-col {
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.lp-ip-card--mobile {
  flex-direction: column;
  max-width: 100%;
}

.lp-ip-card--mobile.lp-layout-mobile-top .lp-ip-image-col {
  order: -1;
}

.lp-ip-card--mobile.lp-layout-mobile-bottom .lp-ip-image-col {
  order: 1;
}

.lp-ip-card--mobile .lp-ip-text {
  order: 0;
}

.lp-device-preview {
  width: 100%;
}

.lp-font-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 12px;
}

.lp-font-toolbar-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--lp-text-muted);
}

.lp-font-toolbar-select {
  min-width: 180px;
  max-width: 280px;
}

.lp-device-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.lp-device-tab {
  padding: 10px 18px;
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}

.lp-device-tab.is-active {
  border-color: var(--lp-accent);
  background: var(--lp-accent-soft);
  color: var(--lp-accent);
}

.lp-device-stage {
  position: relative;
}

.lp-device-view {
  display: none;
}

.lp-device-view.is-active {
  display: block;
}

.lp-desktop-canvas {
  display: flex;
  justify-content: center;
  padding: 8px 0;
}

.lp-phone-frame {
  max-width: 380px;
  margin: 0 auto;
  border: 10px solid #0f172a;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
}

.lp-phone-screen {
  max-height: 640px;
  overflow: auto;
}

.lp-ip-card--mobile .lp-ip-image-wrap,
.lp-ip-card--mobile .lp-ip-img {
  min-height: 200px;
}

.lp-ip-card--mobile .lp-ip-text {
  padding: 24px 18px;
}

.editor-preview-box {
  padding: 16px;
  background: var(--lp-bg-subtle);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-lg);
  min-height: 320px;
  overflow: auto;
}

.editor-toolbar {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.editor-toolbar-title {
  flex: 1;
  min-width: 0;
}

.editor-wizard {
  margin-bottom: 20px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-lg);
  box-shadow: var(--lp-shadow-sm);
}

.editor-wizard-progress {
  height: 4px;
  background: var(--lp-bg-subtle);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}

.editor-wizard-progress-fill {
  height: 100%;
  width: 16.66%;
  background: linear-gradient(90deg, var(--lp-accent), var(--lp-cyan));
  border-radius: 4px;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.editor-wizard-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.editor-wizard-step {
  flex: 1 1 120px;
  min-width: 100px;
}

.editor-wizard-step-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  background: var(--lp-bg-subtle);
  cursor: pointer;
  font-family: var(--lp-font);
  text-align: left;
  transition: border-color var(--lp-transition), background var(--lp-transition), box-shadow var(--lp-transition);
}

.editor-wizard-step-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.editor-wizard-step.is-current .editor-wizard-step-btn {
  border-color: var(--lp-accent);
  background: var(--lp-accent-soft);
  box-shadow: 0 0 0 3px var(--lp-accent-soft);
}

.editor-wizard-step.is-done .editor-wizard-step-btn {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.08);
}

.editor-wizard-step.is-done .editor-wizard-step-num {
  background: var(--lp-success);
  color: #fff;
}

.editor-wizard-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: #fff;
  color: var(--lp-text-muted);
  border: 1px solid var(--lp-border);
}

.editor-wizard-step.is-current .editor-wizard-step-num {
  background: var(--lp-accent);
  color: #fff;
  border-color: var(--lp-accent);
}

.editor-wizard-step-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--lp-text);
  line-height: 1.25;
}

.editor-wizard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--lp-border);
  flex-wrap: wrap;
}

.editor-wizard-footer-right {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: auto;
}

.editor-step-heading {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.editor-step-desc {
  margin: 0 0 16px !important;
}

.editor-step-intro {
  margin-bottom: 16px;
  padding: 16px 20px;
}

.editor-publish-locked {
  padding: 20px;
  background: var(--lp-bg-subtle);
  border-radius: var(--lp-radius);
  border: 1px dashed var(--lp-border-strong);
}

.editor-publish-locked p {
  margin: 0 0 12px;
  color: var(--lp-text-muted);
  font-size: 14px;
}

@media (max-width: 720px) {
  .editor-wizard-step {
    flex: 1 1 100%;
  }

  .editor-wizard-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .editor-wizard-footer-right {
    margin-left: 0;
    width: 100%;
  }

  .editor-wizard-footer-right .btn {
    flex: 1;
  }
}

.editor-tab-panel.hidden {
  display: none;
}

.editor-metrika-card {
  max-width: 520px;
}

.editor-metrika-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.editor-metrika-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--lp-text);
  margin-top: 12px;
}

.editor-metrika-label:first-child {
  margin-top: 0;
}

.editor-metrika-hint {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--lp-text-muted);
  line-height: 1.5;
}

.editor-integrations-wrap {
  max-width: 100%;
}

.editor-after-submit-wrap {
  max-width: 100%;
}

.editor-display-wrap {
  max-width: 100%;
}

.disp-editor-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .disp-editor-layout {
    grid-template-columns: 1fr;
  }
}

.disp-sidebar {
  padding: 16px;
  background: var(--lp-bg-subtle);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
}

.disp-sidebar-title,
.disp-block-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--lp-text);
  margin: 0 0 12px;
}

.disp-check,
.disp-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin: 0 0 10px;
  cursor: pointer;
}

.disp-field {
  display: block;
  margin: 0 0 14px;
  font-size: 13px;
}

.disp-field span {
  display: block;
  margin-bottom: 6px;
  color: var(--lp-text-muted);
}

.disp-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.disp-snippet-block,
.disp-default-block {
  padding: 16px;
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  background: #fff;
}

.disp-hint {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--lp-text-muted);
  line-height: 1.45;
}

.disp-code {
  margin: 0 0 10px;
  padding: 10px 12px;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 8px;
  font-size: 12px;
  overflow-x: auto;
}

.disp-code code {
  font-family: ui-monospace, monospace;
}

.disp-default-block .disp-radio {
  display: inline-flex;
  margin-right: 20px;
}

.disp-conditions-section {
  border-top: 1px solid var(--lp-border);
  padding-top: 20px;
}

.disp-conditions-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.disp-conditions-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.disp-logic-label {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.disp-logic-select {
  width: auto;
  min-width: 140px;
  padding: 8px 10px;
}

.disp-add-condition {
  background: none;
  border: none;
  color: var(--lp-accent);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.disp-add-condition:hover {
  text-decoration: underline;
}

.disp-conditions-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.disp-condition-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 2fr) auto;
  gap: 10px;
  align-items: center;
}

.disp-cond-value.hidden {
  display: none;
}

.disp-no-conditions {
  margin: 0;
  font-size: 14px;
  color: var(--lp-text-muted);
}

.disp-cond-remove {
  min-width: 36px;
  padding: 8px 10px;
  font-size: 18px;
  line-height: 1;
}

.as-editor-layout {
  display: grid;
  grid-template-columns: 200px minmax(240px, 1fr) minmax(280px, 360px);
  gap: 16px;
  align-items: start;
}

.as-editor-layout--thankyou {
  grid-template-columns: 200px 1fr;
}

.as-thankyou-editor-main {
  min-width: 0;
}

.as-ty-edit-hint {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--lp-text-muted);
  text-align: center;
}

.as-ty-disabled-msg {
  padding: 48px 24px;
  text-align: center;
}

.as-ty-stage {
  min-height: 320px;
  align-items: center;
}

.as-ty-card-outer {
  width: 100%;
  display: flex;
  justify-content: center;
}

.as-ty-card {
  position: relative;
  max-width: 100%;
}

.as-ty-inner {
  position: relative;
  z-index: 1;
}

.as-ty-zone-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
}

.as-ty-zone-bg .as-ty-bg-zone {
  width: 100%;
  height: 100%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.35;
}

.as-ty-bg-placeholder {
  font-size: 12px;
  color: #64748b;
  padding: 12px;
  text-align: center;
}

.as-ty-bg-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.as-ty-zone-icon,
.as-ty-zone-title,
.as-ty-zone-message {
  position: relative;
  z-index: 1;
}

.as-ty-zone-layout {
  margin-top: 8px;
  z-index: 1;
  position: relative;
}

.as-ty-layout-hint {
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
  padding: 6px;
}

.as-ty-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}

.as-ty-message {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.as-ty-card .lp-ip-close-demo {
  z-index: 2;
}

.as-extra-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--lp-border);
}

.as-extra-panel {
  padding: 16px;
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-lg);
  background: var(--lp-bg-subtle);
}

.as-extra-panel.hidden {
  display: none;
}

@media (max-width: 1100px) {
  .as-editor-layout {
    grid-template-columns: 1fr;
  }
}

.as-sidebar {
  background: var(--lp-bg-subtle);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-lg);
  padding: 14px;
}

.as-sidebar-title {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--lp-text-muted);
  text-transform: uppercase;
}

.as-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 14px;
  cursor: pointer;
}

.as-preview-wrap {
  background: #334155;
  border-radius: var(--lp-radius-lg);
  padding: 20px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.as-preview-label {
  margin: 0 0 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  align-self: flex-start;
}

.as-preview-stage {
  width: 100%;
  display: flex;
  justify-content: center;
}

.as-preview-card {
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
}

.as-preview-inner {
  text-align: center;
}

.as-preview-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
}

.as-preview-inner h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.as-preview-inner p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.9;
}

.as-settings {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 720px;
  overflow-y: auto;
}

.as-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.as-grid-4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.as-upload-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.as-upload-row .dash-input {
  flex: 1;
}

.hidden {
  display: none !important;
}

.integrations-layout {
  display: grid;
  grid-template-columns: minmax(200px, 240px) 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 900px) {
  .integrations-layout {
    grid-template-columns: 1fr;
  }
}

.int-nav-heading {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--lp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.int-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.int-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: var(--lp-radius);
  background: transparent;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: var(--lp-text);
  cursor: pointer;
  font-family: var(--lp-font);
}

.int-nav-item:hover {
  background: var(--lp-bg-subtle);
}

.int-nav-item.is-active {
  background: var(--lp-accent-soft);
  color: var(--lp-accent);
  font-weight: 600;
}

.int-nav-badge {
  font-size: 11px;
  color: transparent;
  flex-shrink: 0;
}

.int-nav-badge.is-on {
  color: #16a34a;
}

.int-nav-badge.is-on::before {
  content: "● ";
}

.int-detail {
  min-width: 0;
}

.int-detail-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.int-section {
  background: var(--lp-bg-subtle);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-lg);
  padding: 16px 18px;
  margin-bottom: 12px;
}

.int-section-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--lp-text);
}

.int-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.int-section-head .int-section-title {
  margin: 0;
}

.int-radio,
.int-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 14px;
  cursor: pointer;
}

.int-link-btn {
  border: none;
  background: none;
  color: var(--lp-accent);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  font-family: var(--lp-font);
}

.int-link-btn:hover {
  text-decoration: underline;
}

.int-empty {
  margin: 0;
  font-size: 13px;
  color: var(--lp-text-muted);
}

.int-mapping-row {
  position: relative;
  background: #fff;
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  padding: 14px 14px 12px;
  margin-bottom: 10px;
}

.int-remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  background: none;
  color: #dc2626;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 6px;
}

.int-mapping-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 8px;
}

@media (max-width: 700px) {
  .int-mapping-cols {
    grid-template-columns: 1fr;
  }
}

.int-col-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--lp-text-muted);
  margin-bottom: 6px;
}

.int-custom-target {
  margin-top: 8px;
}

.int-custom-target.hidden {
  display: none;
}

.int-recipient-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.int-recipient-row .dash-input {
  flex: 1;
}

.int-utm-grid .editor-metrika-label {
  margin-top: 10px;
}

.editor-integrations-card {
  max-width: 640px;
}

.integration-block {
  padding: 16px 0;
  border-bottom: 1px solid var(--lp-border);
}

.integration-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.integration-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 12px;
  cursor: pointer;
}

.integration-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--lp-accent);
}

.integration-fields {
  padding-left: 28px;
}

.integration-fields .editor-metrika-label:first-of-type {
  margin-top: 0;
}

.integration-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--lp-text-muted);
  line-height: 1.45;
}

.inline-editor-root {
  padding: 24px;
  overflow: visible;
  display: flex;
  justify-content: center;
}

/* --- Interactive popup preview (inline edit) --- */
.lp-interactive-popup {
  width: 100%;
  max-width: 920px;
}

.lp-ip-card {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.15);
  overflow: hidden;
}

.lp-ip-text {
  flex: 1;
  min-width: 280px;
  padding: 40px 36px;
  box-sizing: border-box;
}

.lp-ip-headline {
  margin: 0 0 4px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  color: #0f172a;
}

.lp-ip-sub {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.5;
  color: #475569;
}

.lp-ip-bullets {
  margin: 0 0 24px;
}

.lp-ip-bullets .lp-edit-zone {
  margin-bottom: 10px;
}

.lp-ip-bullets .lp-edit-zone:last-child {
  margin-bottom: 0;
}

.lp-ip-field-block {
  margin-bottom: 0;
}

.lp-ip-bullet {
  margin: 0 0 10px;
  padding-left: 16px;
  position: relative;
  font-size: 15px;
  color: #334155;
}

.lp-ip-dot {
  position: absolute;
  left: 0;
  font-weight: 700;
}

.lp-ip-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.lp-ip-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
  background: #fff;
}

.lp-cta-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin: 8px 0 16px;
}

.lp-ip-cta {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 15px 16px;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: default;
  text-align: center;
}

.lp-edit-zone--field-combo.lp-edit-zone--block {
  margin-bottom: 18px;
}

.lp-edit-zone--cta-combo {
  margin-bottom: 20px;
}

.lp-edit-zone--cta-combo .lp-ip-cta {
  width: 100%;
}

.lp-ip-consents {
  margin-top: 4px;
}

.lp-ip-consent-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 11px;
  color: #64748b;
  line-height: 1.45;
  cursor: pointer;
}

.lp-ip-consent-check {
  margin-top: 2px;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  accent-color: #2563eb;
}

.lp-ip-consent-text a {
  color: #2563eb;
  text-decoration: underline;
}

.lp-color-swatch {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  box-sizing: border-box;
}

.lp-ip-privacy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #64748b;
  line-height: 1.45;
}

.lp-ip-privacy-link {
  color: #2563eb;
  text-decoration: underline;
}

.lp-ip-muted {
  font-size: 12px;
  color: #94a3b8;
}

.lp-ip-image-col {
  flex: 1;
  min-width: 240px;
}

.lp-ip-image-wrap {
  position: relative;
  min-height: 360px;
  height: 100%;
  background: #f1f5f9;
}

.lp-ip-img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
}

.lp-ip-img-placeholder {
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 14px;
}

.lp-ip-image-actions {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 1;
  pointer-events: none;
}

.lp-ip-image-actions .lp-regen-image-btn,
.lp-ip-image-actions .lp-upload-image-btn {
  pointer-events: auto;
  width: 100%;
}

.lp-upload-image-input {
  display: none;
}

.lp-regen-image-btn,
.lp-upload-image-btn {
  padding: 12px 16px;
  background: #fff;
  color: #0f172a;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.lp-upload-image-btn:disabled,
.lp-regen-image-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.lp-ip-close-demo {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0f172a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  pointer-events: none;
}

.lp-edit-zone {
  position: relative;
  border-radius: 8px;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.lp-edit-zone--block {
  margin-bottom: 12px;
}

.lp-edit-zone--inline {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.lp-edit-zone--muted {
  margin-top: 8px;
}

.lp-edit-zone:hover {
  background: rgba(37, 99, 235, 0.06);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.lp-edit-pencil {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 30px;
  height: 30px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: #fff;
  color: var(--lp-accent);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 2;
}

.lp-edit-zone:hover .lp-edit-pencil,
.lp-edit-zone:focus-within .lp-edit-pencil {
  opacity: 1;
  transform: scale(1);
}

.lp-edit-zone--inline .lp-edit-pencil {
  position: relative;
  top: auto;
  right: auto;
  margin-left: 4px;
  opacity: 0;
}

.lp-edit-zone--inline:hover .lp-edit-pencil {
  opacity: 1;
}

.lp-edit-zone--color-only {
  flex-shrink: 0;
  width: 52px;
  min-height: 52px;
}

.lp-edit-zone--color-only .lp-edit-pencil {
  top: 2px;
  right: 2px;
  width: 26px;
  height: 26px;
}

.lp-edit-zone--cta {
  flex: 1;
  min-height: 48px;
}

.lp-edit-zone--cta .lp-edit-pencil {
  top: 50%;
  right: 8px;
  transform: translateY(-50%) scale(0.9);
}

.lp-edit-zone--cta:hover .lp-edit-pencil {
  transform: translateY(-50%) scale(1);
}

.field-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.field-edit-modal.hidden {
  display: none;
}

.field-edit-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
}

.field-edit-dialog {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 24px;
}

.field-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.field-edit-regen-status {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.45;
  padding: 10px 12px;
  border-radius: var(--lp-radius);
  background: var(--lp-accent-soft);
  color: var(--lp-accent);
}

.field-edit-regen-status.hidden {
  display: none;
}

.field-edit-modal.is-processing .field-edit-backdrop {
  cursor: wait;
}

.btn.is-busy {
  position: relative;
  cursor: wait;
  opacity: 0.92;
  padding-left: 2.25rem;
}

.btn.is-busy::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lp-btn-spin 0.75s linear infinite;
}

.btn.btn-outline.is-busy::before {
  border-color: rgba(37, 99, 235, 0.25);
  border-top-color: var(--lp-accent);
}

@keyframes lp-btn-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .lp-ip-card {
    flex-direction: column;
  }

  .lp-ip-image-wrap,
  .lp-ip-img {
    min-height: 220px;
  }

  .lp-ip-text {
    padding: 28px 20px;
  }
}

/* --- Help center drawer --- */

.lp-help-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9000;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--lp-accent) 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: var(--lp-shadow-md), 0 0 0 4px var(--lp-accent-soft);
  cursor: pointer;
  transition: transform var(--lp-transition), box-shadow var(--lp-transition);
}

.lp-help-fab:hover {
  transform: translateY(-2px);
  box-shadow: var(--lp-shadow-glow);
}

.lp-help-fab-icon {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.lp-help-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9001;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(2px);
}

.lp-help-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 9002;
  width: min(400px, 100vw);
  height: 100vh;
  background: var(--lp-bg);
  border-left: 1px solid var(--lp-border-strong);
  box-shadow: -8px 0 40px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  font-family: var(--lp-font);
}

.lp-help-header {
  flex-shrink: 0;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--lp-border);
  background: var(--lp-bg-subtle);
}

.lp-help-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.lp-help-title {
  flex: 1;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.lp-help-close,
.lp-help-back {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 22px;
  line-height: 1;
  color: var(--lp-text-muted);
  cursor: pointer;
}

.lp-help-close:hover,
.lp-help-back:hover {
  background: var(--lp-accent-soft);
  color: var(--lp-accent);
}

.lp-help-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--lp-accent);
  border-radius: var(--lp-radius);
}

.lp-help-search-icon {
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
}

.lp-help-search {
  flex: 1;
  border: none;
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: var(--lp-font);
}

.lp-help-search:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--lp-accent-soft);
}

.lp-help-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 16px;
}

.lp-help-cat-title {
  margin: 16px 16px 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lp-text-muted);
}

.lp-help-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lp-help-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  border: none;
  border-bottom: 1px solid var(--lp-border);
  background: transparent;
  font-size: 14px;
  color: var(--lp-text);
  cursor: pointer;
  font-family: var(--lp-font);
  transition: background var(--lp-transition);
}

.lp-help-link:hover {
  background: var(--lp-accent-soft);
  color: var(--lp-accent);
}

.lp-help-empty,
.lp-help-search-hint {
  padding: 16px;
  margin: 0;
  font-size: 14px;
  color: var(--lp-text-muted);
}

.lp-help-article {
  padding: 16px 20px 24px;
  font-size: 14px;
  line-height: 1.6;
}

.lp-help-article h3 {
  margin: 20px 0 8px;
  font-size: 15px;
}

.lp-help-article ul,
.lp-help-article ol {
  margin: 0 0 12px;
  padding-left: 20px;
}

.lp-help-article pre {
  background: var(--lp-bg-subtle);
  padding: 10px 12px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 12px;
}

.lp-help-article code {
  font-family: var(--lp-font-mono);
  font-size: 12px;
  background: var(--lp-bg-subtle);
  padding: 2px 6px;
  border-radius: 4px;
}

.lp-help-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid var(--lp-border);
  background: var(--lp-bg-subtle);
}

.lp-help-footer-text {
  margin: 0;
  font-size: 13px;
  color: var(--lp-text-muted);
  flex: 1;
}

.lp-help-write-btn {
  white-space: nowrap;
}

/* Support panel */

.support-list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.support-ticket-num {
  font-family: var(--lp-font-mono);
  font-size: 13px;
  color: var(--lp-text-muted);
}

.support-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.support-status--open {
  background: rgba(37, 99, 235, 0.12);
  color: var(--lp-accent);
}

.support-status--answered {
  background: rgba(16, 185, 129, 0.12);
  color: var(--lp-success);
}

.support-status--closed {
  background: rgba(100, 116, 139, 0.15);
  color: var(--lp-text-muted);
}

.support-inline-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--lp-accent);
  font-size: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.support-reply {
  margin-top: 16px;
  border-left: 3px solid var(--lp-success);
}

/* Leads panel */

.leads-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 20px;
}

.leads-panel-head > div:first-child {
  flex: 1 1 220px;
  min-width: 0;
}

.leads-panel-toolbar {
  flex: 1 1 520px;
  min-width: 0;
  max-width: 100%;
}

.leads-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 12px;
  width: 100%;
}

.leads-toolbar-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.leads-filter-select {
  width: auto;
  min-width: 140px;
  max-width: 220px;
  padding: 7px 10px;
  font-size: 13px;
}

.stats-preset-group .btn.is-active,
.leads-preset.is-active {
  border-color: var(--lp-accent);
  background: var(--lp-accent-soft);
  color: var(--lp-accent);
}

.leads-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--lp-text-muted);
}

.leads-summary strong {
  color: var(--lp-text);
}

.lead-status,
.lead-source {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.lead-status--new {
  background: rgba(37, 99, 235, 0.12);
  color: var(--lp-accent);
}

.lead-status--processed {
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
}

.lead-source--popup {
  background: var(--lp-bg-subtle);
  color: var(--lp-text-muted);
  margin-bottom: 4px;
}

.lead-source--chatbot {
  background: rgba(168, 85, 247, 0.12);
  color: #6b21a8;
  margin-bottom: 4px;
}

.leads-source-label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.leads-page-cell {
  font-size: 11px;
  word-break: break-all;
}

.leads-actions-cell {
  white-space: nowrap;
  text-align: right;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.leads-row-clickable {
  cursor: pointer;
}

.leads-row-clickable:hover td {
  background: rgba(99, 102, 241, 0.04);
}

.lead-detail {
  max-width: 720px;
}

.lead-detail-head {
  margin-top: 12px;
}

.lead-detail-head-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 10px;
}

.lead-detail-title {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.35;
}

.lead-detail-section {
  margin-top: 12px;
}

.lead-detail-section h3 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 600;
}

.lead-detail-dl {
  margin: 0;
  display: grid;
  gap: 10px;
}

.lead-detail-row {
  display: grid;
  grid-template-columns: minmax(120px, 160px) 1fr;
  gap: 8px 16px;
  align-items: start;
}

.lead-detail-row dt {
  margin: 0;
  font-size: 13px;
  color: var(--lp-text-muted);
}

.lead-detail-row dd {
  margin: 0;
  font-size: 14px;
  word-break: break-word;
}

.lead-detail-url a {
  color: var(--lp-primary);
  word-break: break-all;
}

.lead-detail-empty {
  margin: 0;
}

.lead-detail-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .lead-detail-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (max-width: 900px) {
  .leads-panel-head {
    align-items: stretch;
  }

  .leads-panel-toolbar {
    flex: 1 1 100%;
  }

  .leads-toolbar-row {
    justify-content: flex-start;
  }

  .leads-filter-select {
    flex: 1 1 140px;
    max-width: none;
  }
}

/* Statistics panel */

.stats-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 20px;
}

.stats-panel-head > div:first-child {
  flex: 1 1 220px;
  min-width: 0;
}

.stats-panel-toolbar {
  display: flex;
  flex: 1 1 480px;
  min-width: 0;
  max-width: 100%;
  justify-content: flex-end;
  align-items: center;
}

.stats-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 12px;
  width: 100%;
}

.stats-date-range {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

.stats-date-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--lp-text-muted);
  white-space: nowrap;
}

.stats-date-label span {
  font-weight: 600;
}

.stats-date-input {
  padding: 7px 10px;
  border: 1px solid var(--lp-border-strong);
  border-radius: var(--lp-radius);
  background: var(--lp-bg-subtle);
  font-family: var(--lp-font);
  font-size: 13px;
  color: var(--lp-text);
}

.stats-date-input:focus {
  outline: none;
  border-color: var(--lp-accent);
  box-shadow: 0 0 0 3px var(--lp-accent-soft);
}

.stats-export-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

@media (max-width: 900px) {
  .stats-panel-head {
    align-items: stretch;
  }

  .stats-panel-toolbar {
    flex: 1 1 100%;
  }

  .stats-toolbar-row {
    justify-content: flex-start;
  }

  .stats-date-range {
    flex-wrap: wrap;
  }
}

.stats-period-tabs {
  display: inline-flex;
  padding: 4px;
  background: var(--lp-bg-subtle);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  gap: 4px;
}

.stats-period-btn {
  border: none;
  background: transparent;
  font-family: var(--lp-font);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: calc(var(--lp-radius) - 2px);
  cursor: pointer;
  color: var(--lp-text-muted);
  transition: background var(--lp-transition), color var(--lp-transition);
}

.stats-period-btn:hover {
  color: var(--lp-text);
}

.stats-period-btn.is-active {
  background: var(--lp-surface);
  color: var(--lp-accent);
  box-shadow: var(--lp-shadow-sm);
}

.stats-summary-block {
  margin-bottom: 20px;
}

.stats-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 0;
}

.stats-summary-grid .stat-card-cabinet {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100px;
  height: 100%;
  padding: 18px 20px;
  box-sizing: border-box;
}

.stats-summary-grid .stat-label {
  flex: 0 0 auto;
  margin-bottom: 10px;
  min-height: 2.6em;
  line-height: 1.3;
}

.stats-summary-grid .stat-value {
  flex: 0 0 auto;
  margin-top: auto;
  font-size: 1.75rem;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.stats-summary-grid .stat-value--accent {
  background: linear-gradient(135deg, var(--lp-accent), var(--lp-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stats-period-caption {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--lp-text-muted);
  text-align: left;
}

@media (max-width: 1100px) {
  .stats-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .stats-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.stats-charts-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 960px) {
  .stats-charts-row {
    grid-template-columns: 1fr;
  }
}

.stats-chart-card {
  margin-bottom: 0;
  min-height: 280px;
}

.stats-section-title {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
}

.stats-section-desc {
  margin: 0 0 16px;
  font-size: 13px;
}

.stats-chart-wrap {
  width: 100%;
  overflow-x: auto;
}

.stats-line-chart {
  width: 100%;
  min-width: 320px;
  height: auto;
  display: block;
}

.stats-chart-grid {
  stroke: var(--lp-border);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.stats-chart-axis {
  font-size: 10px;
  fill: var(--lp-text-muted);
  font-family: var(--lp-font);
}

.stats-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--lp-text-muted);
}

.stats-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stats-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.stats-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: var(--lp-radius-lg);
  border: 1px solid var(--lp-border);
  background: var(--lp-surface);
}

.stats-filter-bar--active {
  border-color: rgba(37, 99, 235, 0.25);
  background: var(--lp-accent-soft);
}

.stats-filter-chip {
  font-size: 14px;
  color: var(--lp-text);
}

.stats-filter-hint {
  margin: 0;
  font-size: 13px;
}

.stats-pick-row {
  cursor: pointer;
  transition: background var(--lp-transition), box-shadow var(--lp-transition);
}

.stats-pick-row:hover {
  background: rgba(37, 99, 235, 0.04);
}

.stats-pick-row.is-selected {
  background: var(--lp-accent-soft);
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.35);
}

.cabinet-table.stats-table tr.stats-pick-row.is-selected td {
  background: transparent;
}

.stats-bar-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stats-bar-row {
  display: grid;
  grid-template-columns: minmax(140px, 1.25fr) 1fr auto;
  gap: 10px;
  align-items: center;
}

.stats-bar-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.stats-bar-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--lp-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.stats-bar-domain {
  font-size: 11px;
  color: var(--lp-text-muted);
  font-family: var(--lp-font-mono, "JetBrains Mono", monospace);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.stats-bar-track {
  height: 10px;
  background: var(--lp-bg-subtle);
  border-radius: 999px;
  overflow: hidden;
}

.stats-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--lp-accent), var(--lp-cyan));
  transition: width 0.4s ease;
}

.stats-bar-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--lp-text);
  min-width: 3rem;
  text-align: right;
}

.stats-table-card {
  margin-bottom: 0;
}

.stats-table-wrap {
  margin-top: 0;
}

.stats-table th {
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 0.03em;
}

.stats-table .stats-th-metric,
.stats-table .stats-td-metric {
  text-align: right;
  white-space: nowrap;
  width: 1%;
}

.stats-table .stats-col-popup {
  min-width: 200px;
}

.stats-popup-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
}

.stats-popup-title {
  font-weight: 600;
  line-height: 1.35;
}

.cabinet-cell-popup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  max-width: 100%;
}

.cabinet-cell-popup-title {
  display: block;
  font-weight: 600;
  line-height: 1.35;
}

.stats-popup-domain {
  display: block;
  font-size: 12px;
  color: var(--lp-text-muted);
  font-family: var(--lp-font-mono, "JetBrains Mono", monospace);
  line-height: 1.3;
  word-break: break-all;
}

.stats-empty-cell {
  text-align: center;
  color: var(--lp-text-muted);
  padding: 32px 16px !important;
}

.stats-loading {
  margin: 0;
}

/* Audience analysis panel */

.audience-controls-card {
  margin-bottom: 20px;
}

.audience-field-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}

.audience-controls-card .dash-input {
  margin-top: 0;
}

.audience-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.audience-sites-block {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--lp-border);
}

.audience-sites-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--lp-text-muted);
  margin-bottom: 10px;
}

.audience-sites-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.audience-sites-empty,
.audience-sites-placeholder {
  margin: 0;
  font-size: 14px;
}

.audience-site-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--lp-border);
  border-radius: 999px;
  background: var(--lp-bg-subtle);
  cursor: pointer;
  font-family: var(--lp-font);
  font-size: 13px;
  font-weight: 600;
  color: var(--lp-text);
  transition: border-color var(--lp-transition), background var(--lp-transition), color var(--lp-transition);
}

.audience-site-chip:hover,
.audience-site-chip.is-active {
  border-color: var(--lp-accent);
  background: var(--lp-accent-soft);
  color: var(--lp-accent);
}

.audience-site-chip-domain {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audience-result-card {
  margin-bottom: 0;
}

.audience-result-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--lp-border);
}

.audience-result-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--lp-text);
  word-break: break-all;
}

.audience-result-updated {
  font-size: 13px;
  color: var(--lp-text-muted);
  white-space: nowrap;
}

.audience-prose {
  font-size: 15px;
  line-height: 1.65;
  color: var(--lp-text);
}

.audience-md-heading {
  margin: 24px 0 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--lp-text);
  letter-spacing: -0.02em;
}

.audience-prose > .audience-md-heading:first-child {
  margin-top: 0;
}

.audience-md-p {
  margin: 0 0 12px;
  color: var(--lp-text);
}

.audience-md-p strong,
.audience-md-ul strong,
.audience-md-ol strong {
  color: var(--lp-text);
  font-weight: 600;
}

.audience-md-ul,
.audience-md-ol {
  margin: 0 0 14px;
  padding-left: 1.35rem;
}

.audience-md-ul li,
.audience-md-ol li {
  margin-bottom: 6px;
  padding-left: 4px;
}

.audience-md-ul li::marker {
  color: var(--lp-accent);
}

.audience-result-body {
  max-height: none;
}

.audience-status {
  margin-top: 14px;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: var(--lp-radius);
}

.audience-status.is-loading {
  background: var(--lp-accent-soft);
  color: var(--lp-accent);
}

.audience-status.is-ok {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
}

.audience-status.is-error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--lp-danger);
}

.audience-result-wrap.hidden {
  display: none;
}

/* Toasts & dialogs (LpNotify) */

.lp-toast-stack {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 12000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(400px, calc(100vw - 32px));
  pointer-events: none;
}

.lp-toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--lp-radius-lg);
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  box-shadow: var(--lp-shadow-lg);
  font-size: 14px;
  line-height: 1.45;
  color: var(--lp-text);
  pointer-events: auto;
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.lp-toast--in {
  opacity: 1;
  transform: translateX(0);
}

.lp-toast--out {
  opacity: 0;
  transform: translateX(12px);
}

.lp-toast-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.lp-toast--success .lp-toast-icon {
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
}

.lp-toast--error .lp-toast-icon {
  background: rgba(239, 68, 68, 0.12);
  color: var(--lp-danger);
}

.lp-toast--info .lp-toast-icon {
  background: var(--lp-accent-soft);
  color: var(--lp-accent);
}

.lp-toast-text {
  flex: 1;
  min-width: 0;
}

.lp-toast-close {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--lp-text-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  margin: -2px 0 0;
}

.lp-toast-close:hover {
  color: var(--lp-text);
}

.lp-dialog-root {
  position: fixed;
  inset: 0;
  z-index: 11500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lp-dialog-root.hidden {
  display: none;
}

.lp-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
}

.lp-dialog {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 24px;
  margin: 0;
}

.lp-dialog-title {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 700;
}

.lp-dialog-message {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--lp-text-muted);
}

.lp-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.btn.btn-danger {
  background: var(--lp-danger);
  border-color: var(--lp-danger);
  color: #fff;
}

.btn.btn-danger:hover {
  filter: brightness(1.05);
}

body.lp-dialog-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .lp-toast-stack {
    left: 16px;
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    max-width: none;
  }
}

/* Admin — детальная карточка пользователя / попапа */

.admin-user-detail,
.admin-popup-detail {
  margin-top: 20px;
}

.admin-detail-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--lp-border);
}

.admin-detail-section h4 {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
}

.admin-kv {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px 20px;
  margin: 16px 0;
  font-size: 14px;
}

.admin-kv dt {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--lp-text-muted);
  margin-bottom: 4px;
}

.admin-kv dd {
  margin: 0;
  word-break: break-word;
}

.admin-audience-block {
  margin-bottom: 10px;
  padding: 12px 14px;
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  background: var(--lp-bg-subtle);
}

.admin-audience-block summary {
  cursor: pointer;
  font-size: 14px;
}

.admin-audience-text {
  margin-top: 12px;
  white-space: pre-wrap;
  font-size: 13px;
  max-height: 320px;
  overflow-y: auto;
}

.admin-ticket-mini-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 14px;
  line-height: 1.6;
}

.admin-gen-item--ok {
  border-left: 3px solid #10b981;
}

.admin-gen-item--err {
  border-left: 3px solid var(--lp-danger);
}

.admin-popup-preview-wrap {
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-lg);
  padding: 16px;
  background: #f8fafc;
  overflow: auto;
  max-height: 420px;
}

.admin-popup-preview-wrap .lp-interactive-popup {
  margin: 0 auto;
}

/* Top bar preview & widget */

.topbar-preview-wrap {
  margin-top: 12px;
  border-radius: var(--lp-radius);
  overflow: hidden;
  border: 1px solid var(--lp-border);
}

#sw-preview.topbar-preview-wrap {
  border: none;
  overflow: visible;
  background: transparent;
}

.lp-topbar-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 16px;
  box-sizing: border-box;
}

.lp-topbar-preview-msg {
  flex: 1 1 200px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
}

.lp-topbar-preview-date {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.create-flow-step {
  display: none;
}

.create-flow-step.is-active {
  display: block;
}

.cb-template-picker {
  margin-bottom: 20px;
}

.cb-template-picker-label {
  margin: 0 0 4px;
  font-weight: 600;
  font-size: 14px;
}

.cb-template-picker-hint {
  margin: 0 0 12px;
}

.cb-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.cb-template-grid--modal {
  margin-top: 12px;
}

.cb-template-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 2px solid var(--lp-border);
  border-radius: var(--lp-radius-lg);
  background: var(--lp-surface);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cb-template-card:hover {
  border-color: color-mix(in srgb, var(--lp-accent) 50%, var(--lp-border));
}

.cb-template-card.is-selected {
  border-color: var(--lp-accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--lp-accent) 25%, transparent);
}

.cb-template-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cb-template-icon {
  font-size: 22px;
  line-height: 1;
}

.cb-template-title {
  font-weight: 600;
  font-size: 14px;
}

.cb-template-desc {
  font-size: 12px;
  color: var(--lp-text-muted);
  line-height: 1.35;
}

.cb-template-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.cb-template-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.cb-template-modal-panel {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
  margin: 0;
}

.cb-template-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.lp-ab-panel-root {
  margin-bottom: 24px;
}

.lp-ab-panel-title {
  margin: 0 0 4px;
  font-size: 18px;
}

.lp-ab-create-card {
  margin-bottom: 16px;
}

.lp-ab-card-title {
  margin: 0 0 12px;
  font-size: 16px;
}

.lp-ab-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.lp-ab-status {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--lp-surface-muted, #f1f5f9);
  color: var(--lp-text-muted);
  white-space: nowrap;
}

.lp-ab-status.is-running {
  background: color-mix(in srgb, var(--lp-accent) 12%, white);
  color: var(--lp-accent);
}

.lp-ab-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lp-ab-variants {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.lp-ab-variant {
  padding: 12px 14px;
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-md, 10px);
  background: var(--lp-surface);
}

.lp-ab-variant.is-winner {
  border-color: var(--lp-accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--lp-accent) 20%, transparent);
}

.lp-ab-variant-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
}

.lp-ab-winner-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--lp-accent);
}

.lp-ab-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 12px;
  color: var(--lp-text-muted);
}

.lp-ab-metrics b {
  color: var(--lp-text);
}

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

.lp-ab-split-range {
  width: 100%;
  max-width: 320px;
  margin-top: 6px;
}

.lp-ab-split-hint {
  margin: 0;
  font-size: 13px;
}

.create-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.create-type-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding: 20px;
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-lg);
  background: var(--lp-surface);
  box-shadow: var(--lp-shadow-sm);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.create-type-card:hover {
  border-color: var(--lp-accent);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.create-type-card:focus-visible {
  outline: 2px solid var(--lp-accent);
  outline-offset: 2px;
}

.create-type-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.create-type-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--lp-text);
}

.wheel-color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.wheel-color-item input[type="color"] {
  width: 100%;
  height: 40px;
  padding: 2px;
  border: 1px solid var(--lp-border-strong);
  border-radius: var(--lp-radius);
  cursor: pointer;
}

.wh-prize-icon-cell {
  flex-shrink: 0;
}

.wh-prize-thumb {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
  background: var(--lp-bg-subtle);
  border: 1px solid var(--lp-border);
  display: block;
}

.wh-prize-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  opacity: 0.55;
}

.wheel-prize-row .wh-prob {
  max-width: 100px;
}

.wheel-badge-preview {
  display: inline-block;
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: #0d9488;
  color: #fff;
}

.lp-wheel-preview-root {
  padding: 0;
  overflow: visible;
}

.lp-wheel-device-preview {
  width: 100%;
}

.lp-wheel-mobile-stage {
  max-width: 360px;
  margin: 0 auto;
  padding: 8px 0 16px;
}

.lp-wheel-preview-card--mobile {
  flex-direction: column;
  min-height: unset;
  max-width: 100%;
  border-radius: 24px;
}

.lp-wheel-preview-card--mobile .lp-wheel-preview-left {
  order: 2;
  min-width: 0;
  padding: 16px 18px 22px;
  text-align: center;
  align-items: center;
}

.lp-wheel-preview-card--mobile .lp-wheel-preview-right {
  order: 1;
  min-width: 0;
  min-height: unset;
  padding: 16px 12px 8px;
  background: transparent;
}

.lp-wheel-preview-card--mobile .lp-wheel-preview-headline {
  font-size: 17px;
  font-weight: 600;
  text-align: center;
}

.lp-wheel-preview-card--mobile .lp-wheel-preview-sub {
  text-align: center;
  font-size: 14px;
}

.lp-wheel-preview-card--mobile .lp-wheel-preview-gift {
  margin: 0 auto 8px;
}

.lp-wheel-preview-card--desktop {
  max-width: 980px;
  margin: 0 auto;
}

.lp-wheel-preview-gift {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 10px;
}

.lp-wheel-preview-card--desktop .lp-wheel-preview-left {
  text-align: left;
  align-items: flex-start;
}

.lp-wheel-preview-card--desktop .lp-wheel-preview-gift {
  display: none;
}

.lp-wheel-preview-wrap {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.lp-wheel-preview-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 420px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.14);
  overflow: hidden;
  font-family: Inter, Arial, sans-serif;
}

.lp-wheel-preview-left {
  flex: 1 1 46%;
  min-width: 260px;
  padding: 32px 28px 28px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
}

.lp-wheel-preview-card--mobile .lp-wheel-preview-badge {
  align-self: center;
}

.lp-wheel-preview-right {
  flex: 1 1 54%;
  min-width: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  box-sizing: border-box;
  background: linear-gradient(180deg, #fafafa 0%, #f1f5f9 100%);
}

.lp-wheel-preview-badge {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.lp-wheel-preview-headline {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
}

.lp-wheel-preview-strike {
  color: #16a34a;
  font-weight: 600;
}

.lp-wheel-preview-free {
  font-weight: 800;
}

.lp-wheel-preview-sub {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.5;
}

.lp-wheel-preview-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.lp-wheel-preview-field {
  height: 44px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.lp-wheel-preview-cta {
  display: block;
  width: 100%;
  max-width: 360px;
  padding: 16px 18px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: default;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.lp-wheel-preview-card--mobile .lp-wheel-preview-cta {
  max-width: 100%;
}

.lp-wheel-preview-wheelbox {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
}

.lp-wheel-preview-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.lp-wheel-preview-pointer-top {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 22px solid #166534;
  filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.2));
}

.lp-wheel-preview-pointer {
  display: none;
}

.lp-wheel-preview-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  border: none;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  cursor: default;
  padding: 0;
}

.lp-wheel-preview-preload.hidden {
  display: none;
}

@media (max-width: 768px) {
  .lp-wheel-preview-card {
    flex-direction: column;
    min-height: unset;
  }

  .lp-wheel-preview-left {
    min-width: 0;
    padding: 24px 20px 16px;
  }

  .lp-wheel-preview-right {
    min-width: 0;
    padding: 16px 20px 28px;
  }
}

.create-type-desc {
  font-size: 13px;
  line-height: 1.45;
  color: var(--lp-text-muted);
}

.sw-device-preview {
  margin-top: 4px;
  width: 100%;
}

.sw-device-preview .lp-device-tabs {
  margin-bottom: 12px;
}

.sw-device-preview .sw-preview-device-stage {
  position: relative;
  min-height: 368px;
  width: 100%;
}

.sw-device-preview .lp-device-view {
  width: 100%;
}

.sw-device-preview .lp-device-view.is-active {
  display: block;
}

.sw-device-preview .lp-device-view--desktop.is-active {
  display: block;
}

.sw-device-preview .lp-device-view--mobile.is-active {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.sw-preview-desktop-frame {
  width: 100%;
}

.sw-preview-mobile-wrap {
  width: 320px;
  max-width: 100%;
  margin: 0 auto;
  flex-shrink: 0;
}

.sw-preview-pos-hint {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--lp-text-muted);
}

.sw-preview-pos-hint strong {
  color: var(--lp-text);
}

.sw-preview-stage {
  position: relative;
  width: 100%;
  height: 320px;
  min-height: 320px;
  max-height: 320px;
  padding: 0;
  box-sizing: border-box;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 55%, #e2ebf8 100%);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  overflow: hidden;
}

.sw-preview-stage--desktop {
  border-radius: var(--lp-radius);
}

.sw-preview-stage--mobile {
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-bottom: none;
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
}

.sw-preview-phone.lp-phone-frame {
  width: 100%;
  max-width: 320px;
  margin: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.sw-preview-phone-status {
  height: 28px;
  min-height: 28px;
  flex-shrink: 0;
  background: #0f172a;
}

.sw-preview-phone .lp-phone-screen {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  display: block;
}

.sw-preview-anchor {
  position: absolute;
  z-index: 2;
  width: max-content;
  max-width: calc(100% - 24px);
  box-sizing: border-box;
}

.sw-preview-anchor .sw-preview-widget {
  max-width: 100%;
  box-sizing: border-box;
}

.sw-preview-widget {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 36px 10px 12px;
  color: #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  box-sizing: border-box;
  flex-shrink: 0;
}

.sw-preview-text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  padding-right: 4px;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sw-preview-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border: none;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.24);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: default;
  padding: 0;
}

.sw-preview-widget:hover .lp-edit-pencil {
  opacity: 1;
  transform: scale(1);
}

.sw-preview-widget .lp-edit-pencil {
  width: 26px;
  height: 26px;
  font-size: 12px;
}

.sw-pencil-bg {
  top: 6px;
  right: 34px;
}

.sw-pencil-text {
  top: auto;
  bottom: 6px;
  left: 6px;
  right: auto;
}

.sw-pencil-image {
  top: 6px;
  left: 6px;
  right: auto;
}

.sw-pencil-button {
  bottom: 6px;
  left: auto;
  right: 34px;
  top: auto;
}

.sw-preview-image {
  width: 48px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.sw-preview-image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 700;
}

.sw-preview-action {
  flex-shrink: 0;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: #2563eb;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 0 12px;
  white-space: nowrap;
}

.sw-preview-image,
.sw-preview-image--placeholder {
  flex-shrink: 0;
}

.sw-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.sw-option-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  padding: 8px 10px;
  background: var(--lp-bg-subtle);
}

.sw-option-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--lp-text);
}

.sw-option-hint {
  color: var(--lp-text-muted);
  font-size: 12px;
  line-height: 1.35;
}

.sw-upload-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.lp-topbar-preview-btn {
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 600;
  cursor: default;
}

.lp-topbar-preview-close {
  border: none;
  background: transparent;
  color: inherit;
  font-size: 22px;
  line-height: 1;
  opacity: 0.85;
  cursor: default;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.lp-topbar-interactive .lp-topbar-preview {
  position: relative;
}

.tb-preview-edit-hint {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--lp-muted, #64748b);
}

.tb-date-settings code,
.tb-panel-hint code {
  font-size: 12px;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--lp-bg-subtle);
}

.tb-panel-card {
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: var(--lp-radius-lg);
  border: 1px solid var(--lp-border);
  background: var(--lp-bg-subtle);
}

.tb-panel-card-title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--lp-text);
}

.tb-panel-hint {
  margin: 8px 0 0;
  font-size: 13px;
}

.tb-date-renew-block {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--lp-border-strong);
}

.tb-date-live {
  margin-top: 8px;
  color: var(--lp-accent);
}

.tb-bg-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tb-bg-mode-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--lp-border-strong);
  background: var(--lp-surface);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--lp-transition), background var(--lp-transition);
}

.tb-bg-mode-tab:has(input:checked) {
  border-color: var(--lp-accent);
  background: var(--lp-accent-soft);
  color: var(--lp-accent);
}

.tb-bg-mode-tab input {
  margin: 0;
}

.tb-gradient-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tb-gradient-preset {
  min-width: 72px;
  height: 36px;
  padding: 0 10px;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: var(--lp-shadow-sm);
  transition: transform var(--lp-transition), border-color var(--lp-transition);
}

.tb-gradient-preset span {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.tb-gradient-preset:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.6);
}

.tb-range {
  width: 100%;
  max-width: 280px;
  margin-top: 6px;
  accent-color: var(--lp-accent);
}

.tb-range-value {
  display: inline-block;
  margin-left: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--lp-text-muted);
}

.lp-topbar-zone-bar {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  border-radius: inherit;
}

.lp-topbar-zone-bar .lp-edit-pencil {
  top: 8px;
  left: 8px;
  right: auto;
}

.lp-topbar-zone-bar .lp-topbar-preview-bar-hit {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 40px;
}

.lp-topbar-zone-msg {
  flex: 1 1 200px;
  position: relative;
  z-index: 1;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lp-topbar-zone-msg .lp-topbar-preview-msg {
  pointer-events: none;
}

.lp-topbar-zone-btn {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.lp-topbar-zone-btn .lp-topbar-preview-btn,
.lp-topbar-zone-btn .lp-topbar-preview-btn-placeholder {
  pointer-events: none;
}

.lp-topbar-preview-btn-placeholder {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 4px;
  border: 1px dashed rgba(255, 255, 255, 0.5);
  font-size: 14px;
  opacity: 0.85;
}

.field-edit-color-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.field-edit-color-row .dash-input-color {
  flex-shrink: 0;
}

.field-edit-styled-preview {
  padding: 12px;
  border-radius: var(--lp-radius, 8px);
  border: 1px solid var(--lp-border, #e2e8f0);
  background: #f8fafc;
}

/* Support thread & rating */

.cabinet-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 4px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  vertical-align: middle;
}

.cabinet-nav-badge.hidden {
  display: none;
}

.support-ticket-row--unread td:first-child {
  position: relative;
}

.support-row-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 6px;
  border-radius: 50%;
  background: #dc2626;
  vertical-align: middle;
}

.support-thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-support-thread .support-msg--user {
  align-self: flex-start;
}

.admin-support-thread .support-msg--admin {
  align-self: flex-end;
}

.admin-support-detail .admin-support-reply {
  border: 1px solid var(--lp-border);
}

.support-msg {
  max-width: 92%;
  padding: 12px 14px;
  border-radius: var(--lp-radius-lg);
  border: 1px solid var(--lp-border);
  background: var(--lp-bg-subtle);
}

.support-msg--admin {
  align-self: flex-start;
  border-left: 3px solid #10b981;
  background: var(--lp-surface);
}

.support-msg--user {
  align-self: flex-end;
  border-left: 3px solid var(--lp-accent);
}

.support-msg-meta {
  font-size: 11px;
  color: var(--lp-text-muted);
  margin-bottom: 6px;
}

.support-msg-body {
  white-space: pre-wrap;
  line-height: 1.55;
  font-size: 14px;
}

.support-attach-img {
  display: block;
  max-width: 100%;
  max-height: 240px;
  margin-top: 10px;
  border-radius: var(--lp-radius);
  border: 1px solid var(--lp-border);
}

.support-attach-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.support-file-label {
  cursor: pointer;
  margin: 0;
}

.support-reply-preview {
  margin-top: 10px;
}

.support-status--awaiting {
  color: #b45309;
}

.support-rating-dialog {
  position: relative;
  max-width: 420px;
}

.support-rating-emojis {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.support-emoji-btn {
  font-size: 2.5rem;
  line-height: 1;
  padding: 8px 12px;
  border: 2px solid transparent;
  border-radius: var(--lp-radius-lg);
  background: var(--lp-bg-subtle);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.support-emoji-btn:hover {
  transform: scale(1.08);
  border-color: var(--lp-accent);
}

/* === Mobile service (cabinet, editor, landing) === */

.cabinet-bottom-nav {
  display: none;
}

.cabinet-nav-chevron {
  display: none;
}

@media (max-width: 768px) {
  .cabinet-topbar {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    padding-top: max(8px, env(safe-area-inset-top, 0px));
  }

  .cabinet-topbar-left .logo {
    display: none;
  }

  .cabinet-menu-btn {
    display: inline-flex;
  }

  .cabinet-mobile-title {
    display: block;
    grid-column: 2;
    text-align: left;
    padding-right: 4px;
  }

  .cabinet-badge--inline {
    display: none;
  }

  .cabinet-topbar-right {
    display: none;
  }

  .cabinet-user-chip {
    display: none;
  }

  .cabinet-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(15, 23, 42, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
  }

  .cabinet-app.cabinet-menu-open .cabinet-nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .cabinet-app {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }

  .cabinet-app.cabinet-has-bottom-nav {
    --cabinet-bottom-nav-h: 56px;
  }

  .cabinet-layout {
    flex-direction: column;
    padding: 0;
    gap: 0;
    overflow: hidden;
    flex: 1;
    min-height: 0;
  }

  .cabinet-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 120;
    width: min(320px, 88vw);
    max-width: 100%;
    padding: 0;
    margin: 0;
    border-right: 1px solid var(--lp-border);
    border-bottom: none;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 8px 0 32px rgba(15, 23, 42, 0.14);
    align-self: auto;
    mask-image: none;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .cabinet-app.cabinet-menu-open .cabinet-sidebar {
    transform: translateX(0);
  }

  .cabinet-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--lp-border);
    flex-shrink: 0;
    background: var(--lp-bg-elevated);
  }

  .cabinet-drawer-head-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--lp-text);
  }

  .cabinet-drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--lp-border);
    border-radius: 10px;
    background: var(--lp-surface);
    color: var(--lp-text-muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
  }

  .cabinet-drawer-close:hover {
    color: var(--lp-text);
    background: var(--lp-bg-subtle);
  }

  .cabinet-sidebar .cabinet-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 10px 12px;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 4px;
    width: 100%;
    min-width: 0;
  }

  .cabinet-nav-group .cabinet-nav-parent {
    position: relative;
    padding-right: 40px;
  }

  .cabinet-nav-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: var(--lp-text-muted);
    pointer-events: auto;
    flex-shrink: 0;
  }

  .cabinet-nav-chevron::before {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -3px;
    transition: transform 0.2s ease;
  }

  .cabinet-nav-group.is-open .cabinet-nav-chevron::before {
    transform: rotate(-135deg);
    margin-top: 3px;
  }

  .cabinet-nav-group:not(.is-open) .cabinet-nav-submenu {
    display: none;
  }

  .cabinet-drawer-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;
    border-top: 1px solid var(--lp-border);
    background: var(--lp-bg-elevated);
    flex-shrink: 0;
  }

  .cabinet-drawer-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
  }

  .cabinet-drawer-email {
    font-size: 13px;
    color: var(--lp-text-muted);
    font-family: var(--lp-font-mono);
    word-break: break-all;
  }

  .cabinet-drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .cabinet-drawer-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .cabinet-main {
    flex: 1 1 auto;
    min-height: 0;
    padding: 14px 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    width: 100%;
  }

  .cabinet-app.cabinet-has-bottom-nav .cabinet-main {
    padding-bottom: calc(14px + var(--cabinet-bottom-nav-h, 56px) + env(safe-area-inset-bottom, 0px));
  }

  .cabinet-bottom-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    align-items: stretch;
    justify-content: space-around;
    gap: 2px;
    padding: 6px 8px;
    padding-bottom: max(6px, env(safe-area-inset-bottom, 0px));
    background: var(--lp-bg-elevated);
    border-top: 1px solid var(--lp-border);
    backdrop-filter: blur(var(--lp-blur));
    box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.08);
  }

  .cabinet-app.cabinet-in-editor .cabinet-bottom-nav {
    display: none;
  }

  .cabinet-bottom-nav-item {
    position: relative;
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    min-height: 48px;
    padding: 4px 2px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--lp-text-muted);
    font-family: var(--lp-font);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: color var(--lp-transition), background var(--lp-transition);
  }

  .cabinet-bottom-nav-item:hover,
  .cabinet-bottom-nav-item:focus-visible {
    color: var(--lp-text);
    background: var(--lp-bg-subtle);
  }

  .cabinet-bottom-nav-item.active {
    color: var(--lp-accent);
    background: var(--lp-accent-soft);
  }

  .cabinet-bottom-nav-icon {
    font-size: 1.15rem;
    line-height: 1;
  }

  .cabinet-bottom-nav-label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cabinet-bottom-nav-badge {
    position: absolute;
    top: 2px;
    right: calc(50% - 22px);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
  }

  .cabinet-bottom-nav-badge.hidden {
    display: none;
  }

  .cabinet-nav a,
  .cabinet-nav button {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    white-space: normal;
    justify-content: flex-start;
    padding: 12px 14px;
    font-size: 15px;
    min-height: 48px;
    border-radius: 10px;
  }

  .cabinet-nav-submenu {
    margin-left: 10px;
    padding-left: 12px;
  }

  .create-type-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .create-type-card {
    padding: 16px;
  }

  .create-type-title {
    font-size: 1.05rem;
  }

  .cabinet-panel h1 {
    font-size: 1.25rem;
  }

  .cabinet-panel .panel-desc {
    margin-bottom: 16px;
    font-size: 14px;
  }

  .cabinet-card {
    padding: 16px;
  }

  .popup-list li {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
  }

  .popup-list li > .cabinet-badge {
    align-self: flex-start;
  }

  .generations-usage-head {
    flex-direction: column;
    align-items: stretch;
  }

  .generations-usage-count {
    font-size: 1.2rem;
  }

  .stats-grid,
  .stats-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .stat-card-cabinet {
    padding: 14px;
  }

  .stat-card-cabinet .stat-value {
    font-size: 1.35rem;
  }

  .stats-panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .stats-toolbar-row {
    justify-content: stretch;
  }

  .stats-date-range {
    flex-wrap: wrap;
    width: 100%;
  }

  .stats-date-input {
    flex: 1;
    min-width: 0;
  }

  .stats-export-btn {
    margin-left: 0;
    width: 100%;
  }

  .stats-charts-row {
    grid-template-columns: 1fr;
  }

  .stats-bar-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .stats-bar-track {
    order: 3;
  }

  .stats-bar-value {
    order: 2;
    text-align: left;
  }

  .leads-panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .leads-toolbar-row {
    flex-direction: column;
    align-items: stretch;
  }

  .leads-toolbar-filters {
    flex-direction: column;
    width: 100%;
  }

  .leads-filter-select {
    width: 100%;
    max-width: none;
    min-height: 44px;
  }

  .leads-preset,
  .stats-preset-group .btn {
    flex: 1 1 auto;
    min-height: 44px;
  }

  .stats-preset-group {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 8px;
  }

  #leads-export-csv {
    width: 100%;
    min-height: 44px;
  }

  .editor-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .editor-toolbar-title h1 {
    font-size: 1.15rem;
  }

  .editor-wizard {
    padding: 12px;
  }

  .editor-wizard-steps {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .editor-wizard-steps::-webkit-scrollbar {
    display: none;
  }

  .editor-wizard-step {
    flex: 0 0 auto;
    min-width: 132px;
  }

  .editor-wizard-step-label {
    font-size: 12px;
  }

  .editor-wizard-footer {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin: 16px -16px -16px;
    padding: 12px 16px max(12px, env(safe-area-inset-bottom, 0px));
    background: var(--lp-surface);
    border-top: 1px solid var(--lp-border);
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06);
  }

  .cabinet-app.cabinet-has-bottom-nav .editor-wizard-footer {
    margin-bottom: 0;
  }

  .editor-wizard-footer-right {
    flex-direction: column;
    width: 100%;
  }

  .editor-wizard-footer-right .btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  .inline-editor-root {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -4px;
    padding: 0 4px 8px;
  }

  .lp-layout-toolbar {
    flex-direction: column;
  }

  .lp-layout-toolbar-group {
    min-width: 0;
    width: 100%;
  }

  .lp-ip-card--desktop {
    max-width: 100%;
  }

  .field-edit-modal {
    padding: 0;
    align-items: flex-end;
  }

  .field-edit-dialog {
    width: 100%;
    max-width: none;
    max-height: min(92vh, 100dvh);
    overflow-y: auto;
    margin: 0;
    border-radius: var(--lp-radius-xl) var(--lp-radius-xl) 0 0;
    padding: 20px 16px max(20px, env(safe-area-inset-bottom, 0px));
  }

  .lp-help-fab {
    right: 16px;
    bottom: calc(16px + var(--cabinet-bottom-nav-h, 0px) + env(safe-area-inset-bottom, 0px));
    width: 52px;
    height: 52px;
  }

  .cabinet-app.cabinet-in-editor .lp-help-fab {
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
  }

  .lp-help-drawer {
    width: 100%;
    max-width: 100%;
  }

  .lp-dialog-root {
    padding: 12px;
    align-items: flex-end;
  }

  .lp-dialog {
    width: 100%;
    border-radius: var(--lp-radius-xl) var(--lp-radius-xl) 0 0;
    padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
  }

  .admin-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-filters label,
  .admin-filters select,
  .admin-filters .btn {
    width: 100%;
  }

  .login-box {
    padding: 24px 20px;
  }

  .header.container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav-links {
    gap: 4px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    scrollbar-width: none;
    justify-content: flex-end;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a:not(.btn) {
    white-space: nowrap;
    font-size: 13px;
    padding: 8px 10px;
  }

  .integrations-layout .int-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .integrations-layout .int-nav::-webkit-scrollbar {
    display: none;
  }

  .integrations-layout .int-nav-item {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 44px;
  }

  .code-block {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 11px;
    padding: 12px;
  }

  #generate-form .btn,
  #panel-create .cabinet-card .btn,
  .popup-detail .btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .dash-input,
  .cabinet-card input[type="url"],
  .cabinet-card input[type="email"],
  .cabinet-card input[type="password"],
  .cabinet-card textarea,
  .cabinet-card select {
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .cabinet-table--cards {
    border: none;
    background: transparent;
  }

  .cabinet-table-wrap:has(.cabinet-table--cards) {
    overflow: visible;
    border: none;
    background: transparent;
  }

  .cabinet-table--cards thead {
    display: none;
  }

  .cabinet-table--cards tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .cabinet-table--cards tr {
    display: block;
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius-lg);
    padding: 14px 16px;
    box-shadow: var(--lp-shadow-sm);
  }

  .cabinet-table--cards tr:hover td {
    background: transparent;
  }

  .cabinet-table--cards td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border: none;
    text-align: right;
    font-size: 14px;
  }

  .cabinet-table--cards td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--lp-text-muted);
    text-align: left;
    flex-shrink: 0;
    margin-right: auto;
    padding-right: 12px;
  }

  .cabinet-table--cards td[data-label=""]::before {
    display: none;
  }

  .cabinet-table--cards td:first-child {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding-bottom: 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--lp-border);
  }

  .cabinet-table--cards td:first-child::before {
    display: none;
  }

  .cabinet-table--cards .stats-popup-domain {
    margin-top: 4px;
    word-break: break-all;
  }

  .cabinet-table--cards .cabinet-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .cabinet-table--cards .cabinet-actions::before {
    width: 100%;
    margin-bottom: 4px;
  }

  .cabinet-table--cards .cabinet-actions .btn-icon {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .cabinet-table--cards .toggle-switch {
    margin-left: auto;
  }

  .leads-table td.leads-actions-cell {
    flex-direction: column;
    align-items: stretch;
    padding-top: 12px;
    margin-top: 4px;
    border-top: 1px solid var(--lp-border);
  }

  .leads-table td.leads-actions-cell .btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  .leads-table td[data-label="Контакты"] {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .leads-table td[data-label="Страница"] {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    word-break: break-all;
  }

  .stats-table.stats-table .stats-td-metric {
    text-align: right;
  }
}

@media (max-width: 480px) {
  .stats-grid,
  .stats-summary-grid {
    grid-template-columns: 1fr;
  }

  .cabinet-topbar {
    padding-left: 10px;
    padding-right: 10px;
  }

  .cabinet-main {
    padding-left: 12px;
    padding-right: 12px;
  }

  .cabinet-panel h1 {
    font-size: 1.15rem;
  }

  .audience-form-actions,
  .audience-form-actions .btn {
    width: 100%;
  }

  .hero-split {
    padding: 48px 0 64px;
  }

  .hero-split .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-split .hero-actions .btn {
    width: 100%;
  }

  .hero-mockup::before,
  .hero-mockup::after {
    display: none;
  }
}

@media (max-width: 600px) {
  .lp-help-fab {
    right: 16px;
    bottom: calc(16px + var(--cabinet-bottom-nav-h, 0px) + env(safe-area-inset-bottom, 0px));
    width: 52px;
    height: 52px;
  }

  .cabinet-app.cabinet-in-editor .lp-help-fab {
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
  }

  .lp-help-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .lp-help-write-btn {
    width: 100%;
  }
}

/* ——— Site header (главная, блог) ——— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 200;
  padding-top: env(safe-area-inset-top, 0);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(var(--lp-blur));
  -webkit-backdrop-filter: blur(var(--lp-blur));
  border-bottom: 1px solid var(--lp-border);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  transition: background var(--lp-transition), border-color var(--lp-transition), box-shadow var(--lp-transition);
}

.site-header.is-open {
  background: #fff;
  border-bottom-color: transparent;
  box-shadow: none;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--site-header-h);
  padding-top: 0;
  padding-bottom: 0;
}

.site-header .logo {
  flex-shrink: 0;
  line-height: 0;
}

.site-header .logo img {
  height: 48px;
  width: auto;
}

.site-header-spacer {
  height: calc(var(--site-header-h) + env(safe-area-inset-top, 0));
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a:not(.btn) {
  color: var(--lp-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: color var(--lp-transition), background var(--lp-transition);
}

.site-nav a:not(.btn):hover {
  color: var(--lp-text);
  background: var(--lp-accent-soft);
}

.site-nav a.active:not(.btn) {
  color: var(--lp-accent);
  font-weight: 600;
  background: var(--lp-accent-soft);
}

.site-nav-burger {
  display: none;
  position: relative;
  z-index: 202;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--lp-transition);
}

.site-nav-burger span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--lp-text);
  border-radius: 2px;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s ease, background var(--lp-transition);
}

.site-nav-burger:hover,
.site-nav-burger:focus-visible {
  background: var(--lp-accent-soft);
  outline: none;
}

.site-header.is-open .site-nav-burger {
  background: var(--lp-accent-soft);
}

.site-header.is-open .site-nav-burger span {
  background: var(--lp-accent);
}

.site-header.is-open .site-nav-burger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header.is-open .site-nav-burger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.site-header.is-open .site-nav-burger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.site-nav-backdrop {
  display: none;
}

@media (max-width: 1100px) {
  .site-nav a:not(.btn) {
    padding: 8px 10px;
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  :root {
    --site-header-h: 56px;
  }

  .site-header .logo img {
    height: 36px;
  }

  .site-nav-burger {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: calc(var(--site-header-h) + env(safe-area-inset-top, 0));
    right: 0;
    width: min(280px, calc(100% - 48px));
    height: calc(100vh - var(--site-header-h) - env(safe-area-inset-top, 0));
    height: calc(100dvh - var(--site-header-h) - env(safe-area-inset-top, 0));
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 14px 20px;
    background: #fff;
    border-left: 1px solid var(--lp-border);
    border-top: 1px solid var(--lp-border);
    box-shadow: -12px 0 40px rgba(15, 23, 42, 0.12);
    transform: translateX(100%);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    z-index: 201;
  }

  .site-header.is-open .site-nav {
    transform: translateX(0);
  }

  .site-nav a:not(.btn) {
    padding: 12px 14px;
    font-size: 0.95rem;
    border-radius: 10px;
  }

  .site-nav .site-nav-cta {
    width: 100%;
    margin-top: 10px;
    justify-content: center;
    text-align: center;
  }

  .site-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .site-header.is-open .site-nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  body.site-nav-open {
    overflow: hidden;
  }
}

/* ——— Blog ——— */
.blog-page {
  background: #f5f7fb;
  background-image: none !important;
}

.blog-page .site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
}

.blog-page .footer,
.blog-page .site-footer {
  background: #ffffff;
  border-top: 1px solid var(--lp-border);
}

.blog-main {
  padding: 40px 0 72px;
}

.blog-breadcrumbs--list {
  margin-bottom: 16px;
}

.blog-hero {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
  padding: 10px 0;
}

.blog-hero-kicker {
  font-size: 13px;
  font-weight: 600;
  color: var(--lp-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 8px;
}

.blog-hero-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.blog-hero-sub {
  color: var(--lp-text-muted);
  font-size: 1.125rem;
  margin: 0;
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
}

.blog-content {
  min-width: 0;
}

@media (max-width: 900px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
}

.blog-search {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  padding: 10px;
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-lg);
  box-shadow: var(--lp-shadow-sm);
}

.blog-search .dash-input {
  flex: 1;
  min-width: 200px;
  min-height: 46px;
}

.blog-search .btn {
  min-height: 46px;
  border-radius: 12px;
  padding-left: 20px;
  padding-right: 20px;
}

.blog-results-meta {
  color: var(--lp-text-muted);
  font-size: 14px;
  margin: 0 0 16px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.blog-card {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-lg);
  overflow: hidden;
  box-shadow: var(--lp-shadow-sm);
  transition: box-shadow var(--lp-transition), transform var(--lp-transition), border-color var(--lp-transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.22);
}

.blog-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
}

.blog-card-cover {
  aspect-ratio: 16 / 9;
  background: var(--lp-bg-subtle);
  overflow: hidden;
  position: relative;
}

.blog-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-cover--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--lp-accent-soft), var(--lp-cyan-soft));
  font-weight: 700;
  font-size: 2rem;
  color: var(--lp-accent);
}

.blog-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-body time {
  font-size: 12px;
  color: var(--lp-text-muted);
}

.blog-card-body h2 {
  font-size: 1.15rem;
  margin: 8px 0 10px;
  line-height: 1.35;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.35em * 2);
}

.blog-card-body p {
  color: var(--lp-text-muted);
  font-size: 14px;
  margin: 0 0 12px;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.45em * 3);
  flex: 1;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--lp-text-muted);
  flex-wrap: wrap;
}

.blog-card-meta--summary {
  margin: 2px 0 10px;
  gap: 14px;
  font-size: 13px;
}

.blog-card-meta--line {
  margin-top: 2px;
  justify-content: flex-start;
  flex-wrap: nowrap;
}

.blog-card-meta-line {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog-card-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #3730a3;
}

.blog-card-tags {
  padding: 0 16px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.blog-card-cover-tags {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 2;
}

.blog-tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 999px;
  background: var(--lp-accent-soft);
  color: var(--lp-accent);
  text-decoration: none;
  font-weight: 500;
}

.blog-tag:hover {
  background: var(--lp-accent);
  color: #fff;
}

.blog-tag--cover {
  background: rgba(15, 23, 42, 0.74);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(2px);
}

.blog-sidebar-card {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--lp-shadow-sm);
}

.blog-sidebar-title {
  font-size: 1rem;
  margin: 0 0 14px;
}

.blog-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  line-height: 1.4;
}

.blog-tag-cloud-item {
  font-size: 12px !important;
  transition: background var(--lp-transition), color var(--lp-transition), border-color var(--lp-transition);
}

.blog-tag-cloud-item:hover,
.blog-tag-cloud-item.active {
  background: var(--lp-accent);
  color: #fff;
  border-color: var(--lp-accent);
}

.blog-tag-reset {
  color: var(--lp-text-muted) !important;
  background: var(--lp-bg-subtle) !important;
  border-color: var(--lp-border) !important;
}

.blog-tag-muted {
  color: var(--lp-text-muted);
  font-size: 14px;
}

.blog-sidebar-cta h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.blog-sidebar-cta p {
  font-size: 14px;
  color: var(--lp-text-muted);
  margin: 0 0 16px;
}

.blog-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 32px;
}

.blog-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--lp-radius);
  border: 1px solid var(--lp-border);
  text-decoration: none;
  color: var(--lp-text);
  font-weight: 500;
}

.blog-page-link.active,
.blog-page-link:hover {
  background: var(--lp-accent);
  border-color: var(--lp-accent);
  color: #fff;
}

.blog-loading,
.blog-empty {
  color: var(--lp-text-muted);
  text-align: center;
  padding: 48px 16px;
  grid-column: 1 / -1;
}

.blog-post-container {
  max-width: 1200px;
}

.blog-post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.blog-post-main {
  min-width: 0;
}

.blog-post-sidebar {
  position: sticky;
  top: 88px;
  padding-top: 0;
  margin-top: 52px;
  display: grid;
  gap: 14px;
}

.blog-post-sidebar .blog-sidebar-card {
  box-shadow: var(--lp-shadow-sm);
}

.blog-sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-keyword-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--lp-text-muted);
  background: var(--lp-bg-subtle);
  border: 1px solid var(--lp-border);
}

.blog-latest-list {
  display: grid;
  gap: 10px;
}

.blog-latest-link {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--lp-border);
  background: #fff;
  text-decoration: none;
  transition: border-color var(--lp-transition), transform var(--lp-transition), box-shadow var(--lp-transition);
}

.blog-latest-link:hover {
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
  box-shadow: var(--lp-shadow-sm);
}

.blog-latest-title {
  display: block;
  color: var(--lp-text);
  font-size: 14px;
  line-height: 1.35;
  line-clamp: 2;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-latest-date {
  display: block;
  color: var(--lp-text-muted);
  font-size: 12px;
}

.blog-post-author--sidebar {
  margin-bottom: 0;
}

.blog-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 8px 2px;
  font-size: 13px;
}

.blog-breadcrumbs-link {
  color: var(--lp-text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--lp-transition);
}

.blog-breadcrumbs-link:hover {
  color: var(--lp-accent);
}

.blog-breadcrumbs-sep {
  color: color-mix(in srgb, var(--lp-text-muted) 75%, white);
}

.blog-breadcrumbs-current {
  color: var(--lp-text);
  font-weight: 600;
  max-width: min(100%, 720px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1024px) {
  .blog-post-layout {
    grid-template-columns: 1fr;
  }

  .blog-post-sidebar {
    position: static;
    padding-top: 0;
    margin-top: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .blog-post-sidebar {
    grid-template-columns: 1fr;
  }
}

.blog-post-page #blog-article {
  background: #ffffff;
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-xl);
  box-shadow: var(--lp-shadow-sm);
  padding: 28px 34px;
}

@media (max-width: 900px) {
  .blog-post-page #blog-article {
    padding: 22px 18px;
  }
}

.blog-back {
  margin-bottom: 16px;
}

.blog-post-header time {
  color: var(--lp-text-muted);
  font-size: 14px;
}

.blog-post-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 10px 0 14px;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.blog-post-tags {
  margin-bottom: 20px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.blog-post-author {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
}

.blog-post-author-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.blog-author-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--lp-text);
}

.blog-author-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--lp-accent);
  line-height: 1.25;
}

.blog-author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.blog-author-avatar--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lp-accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
}

.blog-author-title {
  display: block;
  font-size: 14px;
  color: var(--lp-text-muted);
}

.blog-author-bio {
  font-size: 14px;
  color: var(--lp-text-muted);
  margin: 8px 0 0;
}

.blog-post-cover {
  border-radius: var(--lp-radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
}

.blog-post-cover img {
  width: 100%;
  display: block;
}

.blog-post-toc {
  margin: 0 0 22px;
  padding: 18px 20px;
}

.blog-post-toc-title {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.blog-post-toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.blog-post-toc-sublist {
  margin: 8px 0 0;
  padding: 0 0 0 30px;
  list-style: none;
  display: grid;
  gap: 7px;
}

.blog-post-toc-item a {
  display: inline-flex;
  align-items: baseline;
  color: var(--lp-accent);
  text-decoration: none;
  line-height: 1.45;
}

.blog-post-toc-item a:hover {
  text-decoration: underline;
}

.blog-post-toc-item.is-sub {
  font-size: 0.98rem;
}

.blog-post-body.prose {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--lp-text);
}

.blog-post-body.prose h2,
.blog-post-body.prose h3 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.blog-post-body.prose p {
  margin: 0 0 1em;
}

.blog-post-body.prose ul,
.blog-post-body.prose ol {
  margin: 0 0 1em;
  padding-left: 1.5em;
}

.blog-post-body.prose table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
  margin: 1.1em 0 1.35em;
  border: 1px solid var(--lp-border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--lp-shadow-sm);
  table-layout: fixed;
}

.blog-post-body.prose thead th {
  background: #eef4ff;
  color: #1f3a8a;
  font-weight: 700;
}

.blog-post-body.prose th,
.blog-post-body.prose td {
  border: 1px solid var(--lp-border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  font-size: 0.98rem;
  line-height: 1.45;
}

.blog-post-body.prose tbody tr:nth-child(even) td {
  background: #f8fbff;
}

.blog-post-body.prose a.btn {
  color: #fff;
}
.blog-post-body.prose ul li a,
.blog-post-body.prose p a{
  color: var(--lp-accent);
}
.blog-post-body.prose blockquote {
  border-left: 4px solid var(--lp-accent);
  margin: 1em 0;
  padding-left: 1em;
  color: var(--lp-text-muted);
}

.blog-post-body.prose .blog-note {
  margin: 1.2em 0;
  padding: 14px 16px;
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  background: var(--lp-bg-subtle);
}

.blog-post-faq {
  margin-top: 20px;
  padding: 18px 20px;
}

.blog-post-faq h2 {
  margin: 0 0 14px;
  font-size: 1.1rem;
}

.blog-post-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blog-post-faq-item {
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  background: var(--lp-bg-subtle);
  overflow: hidden;
}

.blog-post-faq-item[open] {
  border-color: color-mix(in srgb, var(--lp-accent) 35%, var(--lp-border));
}

.blog-post-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.blog-post-faq-question::-webkit-details-marker {
  display: none;
}

.blog-post-faq-question::after {
  content: "+";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--lp-bg);
  color: var(--lp-text-muted);
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease;
}

.blog-post-faq-item[open] .blog-post-faq-question::after {
  content: "−";
  background: color-mix(in srgb, var(--lp-accent) 12%, var(--lp-bg));
  color: var(--lp-accent);
}

.blog-post-faq-answer {
  padding: 0 16px 14px;
}

.blog-post-faq-answer p {
  margin: 0;
  color: var(--lp-text-muted);
  line-height: 1.6;
}

.blog-post-faq-answer a {
  color: var(--lp-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-post-faq-answer a:hover {
  color: color-mix(in srgb, var(--lp-accent) 80%, #000);
}

.blog-post-stats {
  font-size: 14px;
  color: var(--lp-text-muted);
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--lp-border);
}

.blog-share-rating {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-lg);
  margin: 32px 0;
}

.blog-share-label {
  font-size: 14px;
  font-weight: 600;
  margin-right: 12px;
}

.blog-share-buttons {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--lp-radius);
  border: 1px solid var(--lp-border);
  background: var(--lp-bg-subtle);
  color: var(--lp-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}

.blog-share-btn:hover {
  border-color: var(--lp-accent);
  color: var(--lp-accent);
}

.blog-share-icon {
  width: 18px;
  height: 18px;
  display: block;
}

@media (max-width: 640px) {
  .blog-main {
    padding: 26px 0 54px;
  }

  .blog-hero-title {
    font-size: clamp(1.55rem, 7vw, 1.95rem);
  }

  .blog-hero-sub {
    font-size: 0.96rem;
  }

  .blog-card-body {
    padding: 16px;
  }

  .blog-card-body h2 {
    font-size: 1.03rem;
    line-height: 1.3;
    margin: 6px 0 8px;
  }

  .blog-card-body p {
    font-size: 13px;
  }

  .blog-card-meta--line {
    font-size: 11px;
  }

  .blog-post-header h1 {
    font-size: clamp(1.38rem, 7vw, 1.75rem);
    line-height: 1.22;
  }

  .blog-post-body.prose {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .blog-post-body.prose th,
  .blog-post-body.prose td {
    padding: 8px 10px;
    font-size: 0.93rem;
  }

  .blog-post-body.prose table {
    display: block;
    overflow-x: auto;
    table-layout: auto;
  }

  .blog-post-body.prose h2,
  .blog-post-body.prose h3 {
    line-height: 1.3;
  }

  .blog-post-toc-title {
    font-size: 1rem;
  }

  .blog-post-toc-item a {
    font-size: 0.97rem;
  }
}

.blog-stars {
  display: inline-flex;
  gap: 4px;
}

.blog-star {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--lp-border-strong);
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
}

.blog-star.filled,
.blog-star.hover {
  color: #f59e0b;
}

.blog-star:disabled {
  cursor: default;
}

.blog-rating-meta {
  display: block;
  font-size: 13px;
  color: var(--lp-text-muted);
  margin-top: 6px;
}

.blog-comments-section {
  margin-top: 48px;
}

.blog-comments-section h2 {
  margin-bottom: 20px;
}

.blog-comments-list {
  margin-bottom: 24px;
}

.blog-comment {
  padding: 16px 20px;
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  margin-bottom: 12px;
}

.blog-comment-head {
  font-size: 13px;
  color: var(--lp-text-muted);
  margin-bottom: 8px;
}

.blog-comment-form label {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--lp-text);
}

.blog-comment-form .dash-input {
  margin-top: 6px;
}

.blog-comment-note {
  font-size: 14px;
  color: var(--lp-success);
  margin-top: 12px;
}

/* ——— Blog admin (cabinet) ——— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#panel-blog.cabinet-panel.active {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.blog-admin {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

#blog-admin-main {
  flex: 1;
  min-height: 0;
}

.blog-admin-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--lp-border);
}

.blog-admin-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lp-accent);
  margin-bottom: 6px;
}

.blog-admin-hero h1 {
  margin: 0 0 6px;
}

.blog-admin-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-stat-card {
  min-width: 88px;
  padding: 12px 16px;
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-lg);
  box-shadow: var(--lp-shadow-sm);
  text-align: center;
}

.blog-stat-card--accent {
  background: linear-gradient(145deg, var(--lp-accent-soft), var(--lp-cyan-soft));
  border-color: rgba(37, 99, 235, 0.15);
}

.blog-stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--lp-text);
}

.blog-stat-label {
  font-size: 11px;
  color: var(--lp-text-muted);
  font-weight: 500;
}

.blog-admin-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--lp-bg-subtle);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-lg);
  margin-bottom: 24px;
}

.blog-admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--lp-text-muted);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--lp-transition), color var(--lp-transition), box-shadow var(--lp-transition);
}

.blog-admin-tab:hover {
  color: var(--lp-text);
  background: rgba(255, 255, 255, 0.6);
}

.blog-admin-tab.active {
  background: var(--lp-surface);
  color: var(--lp-accent);
  box-shadow: var(--lp-shadow-sm);
  font-weight: 600;
}

.blog-admin-tab-icon {
  font-size: 1rem;
  line-height: 1;
}

.blog-admin-tab-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--lp-danger);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.blog-admin-pane.hidden {
  display: none;
}

/* Единый стиль полей блога (публичная часть + админка) */
.blog-page input.dash-input,
.blog-page textarea.dash-input,
.blog-page select.dash-input,
#panel-blog input.dash-input,
#panel-blog select.dash-input,
#panel-blog textarea.dash-input,
.blog-editor-panel input.dash-input,
.blog-editor-panel select.dash-input,
.blog-editor-panel textarea.dash-input {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--lp-border);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  color: var(--lp-text);
  font-family: var(--lp-font);
  font-size: 14px;
  line-height: 1.45;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: border-color var(--lp-transition), box-shadow var(--lp-transition), background var(--lp-transition);
}

.blog-page textarea.dash-input,
#panel-blog textarea.dash-input,
.blog-editor-panel textarea.dash-input {
  min-height: 110px;
  resize: vertical;
}

#panel-blog select.dash-input,
.blog-editor-panel select.dash-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

#panel-blog input[type="datetime-local"].dash-input,
.blog-editor-panel input[type="datetime-local"].dash-input {
  color-scheme: light;
}

.blog-page input.dash-input::placeholder,
.blog-page textarea.dash-input::placeholder,
#panel-blog input.dash-input::placeholder,
#panel-blog textarea.dash-input::placeholder,
.blog-editor-panel input.dash-input::placeholder,
.blog-editor-panel textarea.dash-input::placeholder {
  color: color-mix(in srgb, var(--lp-text-muted) 82%, white);
}

.blog-page input.dash-input:hover,
.blog-page textarea.dash-input:hover,
.blog-page select.dash-input:hover,
#panel-blog input.dash-input:hover,
#panel-blog textarea.dash-input:hover,
#panel-blog select.dash-input:hover,
.blog-editor-panel input.dash-input:hover,
.blog-editor-panel textarea.dash-input:hover,
.blog-editor-panel select.dash-input:hover {
  border-color: color-mix(in srgb, var(--lp-accent) 28%, var(--lp-border));
}

.blog-page input.dash-input:focus,
.blog-page textarea.dash-input:focus,
.blog-page select.dash-input:focus,
#panel-blog input.dash-input:focus,
#panel-blog textarea.dash-input:focus,
#panel-blog select.dash-input:focus,
.blog-editor-panel input.dash-input:focus,
.blog-editor-panel textarea.dash-input:focus,
.blog-editor-panel select.dash-input:focus {
  outline: none;
  border-color: var(--lp-accent);
  background: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lp-accent) 18%, white);
}

.blog-admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.blog-admin-toolbar-left {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  flex: 1;
}

.blog-admin-toolbar-right {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-admin-select-wrap span,
.blog-admin-search-wrap span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--lp-text);
  margin-bottom: 6px;
}

.blog-admin-select-wrap select {
  min-width: 180px;
}

.blog-admin-toolbar-left {
  padding: 12px 14px;
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-lg);
  box-shadow: var(--lp-shadow-sm);
}

.blog-admin-search-wrap {
  flex: 1;
  min-width: 200px;
  max-width: 320px;
}

.blog-admin-cta {
  box-shadow: 0 4px 14px var(--lp-accent-glow);
}

.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.blog-post-card {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-lg);
  overflow: hidden;
  box-shadow: var(--lp-shadow-sm);
  transition: box-shadow var(--lp-transition), transform var(--lp-transition), border-color var(--lp-transition);
  display: flex;
  flex-direction: column;
}

.blog-post-card:hover {
  box-shadow: var(--lp-shadow-md);
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.2);
}

.blog-post-card-cover {
  aspect-ratio: 16 / 9;
  background: var(--lp-bg-subtle);
  overflow: hidden;
}

.blog-post-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-post-card-img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--lp-accent-soft), var(--lp-cyan-soft));
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--lp-accent);
}

.blog-post-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.blog-post-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.blog-post-card-top time {
  font-size: 11px;
  color: var(--lp-text-muted);
}

.blog-post-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.35;
}

.blog-post-card-slug {
  font-size: 12px;
  color: var(--lp-accent);
  margin: 0;
  font-family: var(--lp-font-mono);
}

.blog-post-card-excerpt {
  font-size: 13px;
  color: var(--lp-text-muted);
  margin: 0;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.blog-post-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.blog-post-card-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--lp-bg-subtle);
  color: var(--lp-text-muted);
}

.blog-post-card-metrics {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--lp-text-muted);
}

.blog-post-card-metrics small {
  opacity: 0.8;
}

.blog-post-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--lp-border);
}

.blog-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.blog-status-badge--published {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.blog-status-badge--draft {
  background: rgba(100, 116, 139, 0.12);
  color: #64748b;
}

.blog-status-badge--pending {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
}

.blog-status-badge--scheduled {
  background: rgba(99, 102, 241, 0.12);
  color: #4f46e5;
}

.blog-admin-empty {
  text-align: center;
  padding: 56px 24px;
  background: var(--lp-surface);
  border: 1px dashed var(--lp-border-strong);
  border-radius: var(--lp-radius-xl);
}

.blog-admin-empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.9;
}

.blog-admin-empty h3 {
  margin: 0 0 8px;
}

.blog-admin-empty p {
  color: var(--lp-text-muted);
  margin: 0 0 20px;
}

.blog-admin-loading,
.blog-admin-error {
  text-align: center;
  padding: 40px;
  color: var(--lp-text-muted);
}

.blog-admin-error {
  color: var(--lp-danger);
}

/* Settings */
.blog-settings-grid {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 340px);
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .blog-settings-grid {
    grid-template-columns: 1fr;
  }
}

.blog-settings-form {
  padding: 24px;
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-xl);
  box-shadow: var(--lp-shadow-sm);
}

.blog-seo-preview {
  padding: 24px;
  position: sticky;
  top: 80px;
}

.blog-seo-preview-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lp-text-muted);
}

.blog-seo-preview-title {
  font-size: 18px;
  color: #1a0dab;
  margin: 8px 0 4px;
  line-height: 1.3;
}

.blog-seo-preview-url {
  font-size: 13px;
  color: #006621;
  margin-bottom: 6px;
}

.blog-seo-preview-desc {
  font-size: 13px;
  color: var(--lp-text-muted);
  line-height: 1.5;
}

.blog-seo-preview-divider {
  border: none;
  border-top: 1px solid var(--lp-border);
  margin: 20px 0;
}

.blog-page-preview h4 {
  margin: 8px 0 4px;
  font-size: 1.25rem;
}

.blog-page-preview p {
  margin: 0;
  font-size: 14px;
  color: var(--lp-text-muted);
}

.blog-settings-form .blog-admin-section-head {
  margin-bottom: 20px;
}

.blog-settings-form .blog-admin-section-head h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.blog-settings-form .blog-admin-section-head p {
  margin: 0;
  color: var(--lp-text-muted);
  line-height: 1.5;
}

.blog-settings-form .blog-form-grid {
  display: grid;
  gap: 14px;
}

.blog-settings-form .blog-field {
  margin: 0;
}

.blog-settings-form .blog-field-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--lp-text);
}

.blog-settings-form .blog-field-label small {
  color: var(--lp-text-muted);
  font-weight: 500;
}

.blog-settings-form .blog-field-hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--lp-text-muted);
}

.blog-settings-form .btn {
  margin-top: 6px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 600;
}

/* Comments admin */
.blog-comments-toolbar {
  margin-bottom: 16px;
}

.blog-comments-toolbar .blog-pending-count {
  color: #d97706;
}

.blog-comments-admin {
  display: grid;
  gap: 16px;
}

.blog-comment-card {
  padding: 20px;
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-lg);
  box-shadow: var(--lp-shadow-sm);
}

.blog-comment-card.is-pending {
  border-left: 4px solid #f59e0b;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.06), var(--lp-surface) 120px);
}

.blog-comment-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.blog-comment-author {
  display: flex;
  gap: 12px;
  align-items: center;
}

.blog-comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--lp-accent-soft);
  color: var(--lp-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.blog-comment-author time {
  display: block;
  font-size: 12px;
  color: var(--lp-text-muted);
  font-weight: 400;
}

.blog-comment-text {
  margin: 0 0 12px;
  line-height: 1.6;
}

.blog-comment-article {
  display: inline-block;
  font-size: 13px;
  color: var(--lp-accent);
  margin-bottom: 12px;
  text-decoration: none;
}

.blog-comment-article:hover {
  text-decoration: underline;
}

.blog-comment-card-actions {
  padding-top: 12px;
  border-top: 1px solid var(--lp-border);
}

/* Editor panel */
.blog-editor-panel {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin: -8px -4px 0;
  padding: 0 4px 24px;
}

.blog-editor-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--lp-border);
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--lp-bg);
  padding-top: 4px;
}

.blog-editor-topbar-title {
  flex: 1;
  min-width: 200px;
}

.blog-editor-topbar-title h2 {
  margin: 4px 0 0;
  font-size: 1.35rem;
}

.blog-editor-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  grid-template-rows: 1fr auto;
  gap: 24px;
  align-items: start;
}

.blog-editor-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.blog-editor-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 72px;
}

.blog-editor-side-card {
  padding: 18px;
}

.blog-editor-side-card h4 {
  margin: 0 0 12px;
  font-size: 14px;
}

.blog-cover-preview {
  aspect-ratio: 16 / 9;
  border-radius: var(--lp-radius);
  overflow: hidden;
  background: var(--lp-bg-subtle);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-cover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-cover-preview.is-empty span {
  font-size: 13px;
  color: var(--lp-text-muted);
}

.blog-cover-upload-btn {
  display: block;
  margin-bottom: 0;
  cursor: pointer;
}

.blog-cover-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.blog-cover-actions .btn,
.blog-cover-actions .blog-cover-upload-btn .btn {
  width: 100%;
}

.blog-cover-prompt-toggle {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 0;
  border: none;
  background: none;
  color: var(--lp-accent);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.blog-cover-prompt-toggle:hover {
  text-decoration: underline;
}

.blog-cover-prompt-wrap {
  margin-bottom: 12px;
}

.blog-cover-upload-btn .btn {
  width: 100%;
  pointer-events: none;
}

.blog-slug-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.blog-slug-row .dash-input {
  flex: 1;
}

.blog-slug-row .btn {
  flex-shrink: 0;
  padding-left: 12px;
  padding-right: 12px;
}

.blog-schedule-wrap {
  margin-bottom: 16px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.06), rgba(37, 99, 235, 0.03));
  border: 1px solid color-mix(in srgb, var(--lp-accent) 22%, var(--lp-border));
  border-radius: var(--lp-radius-lg);
}

.blog-schedule-wrap.hidden {
  display: none;
}

.blog-editor-footer {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px 24px;
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-lg);
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.06);
  position: sticky;
  bottom: 0;
  z-index: 10;
}

.blog-editor-save {
  min-width: 180px;
  box-shadow: 0 4px 14px var(--lp-accent-glow);
}

.blog-editor-delete {
  color: var(--lp-danger);
  border-color: rgba(239, 68, 68, 0.35);
}

.blog-editor-delete:hover {
  background: rgba(239, 68, 68, 0.08);
}

.blog-admin-section {
  padding: 24px;
}

.blog-admin-section-head {
  margin-bottom: 20px;
}

.blog-admin-section-head h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.blog-admin-section-head p {
  margin: 0;
  font-size: 14px;
  color: var(--lp-text-muted);
}

.blog-admin-section-head a {
  color: var(--lp-accent);
}

.blog-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px 20px;
  margin-bottom: 16px;
}

.blog-form-grid--single {
  grid-template-columns: 1fr;
}

.blog-faq-editor {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.blog-faq-editor-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.blog-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-faq-item {
  padding: 14px;
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  background: var(--lp-bg-subtle);
}

.blog-faq-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.blog-faq-item-num {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--lp-text-muted);
}

.blog-faq-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-faq-fields .blog-field {
  width: 100%;
}

.blog-faq-fields .blog-faq-answer {
  min-height: 130px;
}

.blog-field {
  display: block;
}

.blog-field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--lp-text);
  margin-bottom: 6px;
}

.blog-field-label small {
  font-weight: 400;
  color: var(--lp-text-muted);
}

.blog-field-hint {
  display: block;
  font-size: 12px;
  color: var(--lp-text-muted);
  margin-top: 4px;
}

.blog-editor-quill-wrap {
  margin-top: 8px;
}

.blog-editor-quill-wrap .blog-field-label {
  margin-bottom: 10px;
}

.blog-body-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.blog-body-tools .btn.active {
  background: var(--lp-accent);
  color: #fff;
  border-color: var(--lp-accent);
}

.blog-html-editor {
  min-height: 320px;
  font-family: var(--lp-font-mono);
  font-size: 13px;
  line-height: 1.6;
  white-space: pre;
  overflow-wrap: normal;
  overflow-x: auto;
  background: #0f172a;
  color: #e2e8f0;
  border-color: #334155;
}

.blog-html-editor:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.25);
  background: #0f172a;
}

.blog-html-editor::placeholder {
  color: #94a3b8;
}

.blog-quill-editor {
  background: #fff;
  border-radius: var(--lp-radius-lg);
  border: 1px solid var(--lp-border);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.blog-quill-editor .ql-toolbar {
  border: none;
  border-bottom: 1px solid var(--lp-border);
  background: var(--lp-bg-subtle);
  font-family: var(--lp-font);
}

.blog-quill-editor .ql-container {
  border: none;
  font-family: var(--lp-font);
  font-size: 15px;
}

.blog-quill-editor .ql-editor {
  min-height: 280px;
  line-height: 1.7;
}

@media (max-width: 1024px) {
  .blog-editor-layout {
    grid-template-columns: 1fr;
  }

  .blog-editor-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .blog-editor-side-card {
    flex: 1;
    min-width: 240px;
  }

  .blog-admin-hero {
    flex-direction: column;
  }

  .blog-admin-stats {
    width: 100%;
  }

  .blog-stat-card {
    flex: 1;
  }
}

@media (max-width: 600px) {
  .blog-admin-tabs {
    width: 100%;
    flex-direction: column;
  }

  .blog-admin-tab {
    width: 100%;
    justify-content: center;
  }

  .blog-posts-grid {
    grid-template-columns: 1fr;
  }

  .blog-admin-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .blog-admin-search-wrap {
    max-width: none;
  }
}

/* Чат-бот: полноэкранный конструктор сценария */
.cabinet-app.is-flow-editor .cabinet-main {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: var(--lp-bg-subtle);
}

.cabinet-app.is-flow-editor .cabinet-main > .cabinet-panel.active {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
}

#panel-edit-chatbot.active {
  display: block;
  animation: none;
}

#panel-edit-chatbot.is-scenario-step.active {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
}

.chatbot-editor-shell {
  display: block;
}

#panel-edit-chatbot.is-scenario-step .chatbot-editor-shell {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
}

.chatbot-editor-body {
  display: block;
}

#panel-edit-chatbot.is-scenario-step .chatbot-editor-body {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#chatbot-wizard-panels.hidden {
  display: none !important;
}

.chatbot-scenario-host {
  display: none;
}

.chatbot-scenario-host:not(.hidden) {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chatbot-flow-mount {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#panel-edit-chatbot.is-scenario-step .editor-wizard-footer {
  flex-shrink: 0;
  margin-top: 0;
  border-top: 1px solid var(--lp-border);
  background: var(--lp-surface);
}

.cb-scenario-split {
  display: flex;
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}

.cb-scenario-split .chatbot-flow-mount {
  flex: 1 1 0;
  min-width: 0;
}

.cb-preview-aside {
  flex: 0 0 340px;
  width: 340px;
  max-width: 36vw;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-left: 1px solid var(--lp-border);
  background: var(--lp-surface);
  overflow: hidden;
  position: relative;
  z-index: 6;
}

.cb-preview-aside-head {
  flex-shrink: 0;
  padding: 12px 14px;
  border-bottom: 1px solid var(--lp-border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cb-preview-aside-head strong {
  font-size: 14px;
}

.cb-preview-aside-sub {
  font-size: 12px;
  color: var(--lp-text-muted);
}

.cb-preview-aside .cb-preview-host {
  flex: 1 1 0;
  min-height: 0;
  overflow: auto;
  padding: 12px;
}

.cb-main-step-grid,
.cb-display-step-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 20px;
  align-items: start;
}

@media (max-width: 1100px) {
  .cb-main-step-grid,
  .cb-display-step-grid {
    grid-template-columns: 1fr;
  }

  .cb-preview-aside {
    flex: 0 0 300px;
    width: 300px;
  }
}

/* Мобильный конструктор сценария: вкладки (детали — в конце файла после .cb-flow-*) */
.cb-scenario-mobile-tabs {
  display: none;
}

.cb-preview-card {
  position: sticky;
  top: 12px;
}

.cb-preview-card-title {
  margin: 0 0 6px;
  font-size: 1rem;
}

.cb-preview-card-desc {
  margin: 0 0 12px !important;
  font-size: 13px;
}

.cb-preview-hint {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--lp-text-muted);
}

.cb-device-preview .cb-preview-device-stage {
  position: relative;
  min-height: 380px;
}

.cb-preview-stage {
  position: relative;
  width: 100%;
  height: 380px;
  min-height: 380px;
  max-height: 380px;
  box-sizing: border-box;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 55%, #e2ebf8 100%);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  overflow: hidden;
  isolation: isolate;
}

.cb-preview-aside .cb-preview-stage {
  height: min(420px, calc(100vh - 280px));
  min-height: 320px;
  max-height: 480px;
}

.cb-preview-stage--mobile {
  border-radius: 0;
  border: none;
  height: 340px;
  min-height: 340px;
  max-height: 340px;
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
}

.cb-preview-aside .cb-preview-stage--mobile {
  height: min(380px, calc(100vh - 300px));
  min-height: 300px;
  max-height: 440px;
}

.cb-preview-mobile-wrap {
  width: 280px;
  max-width: 100%;
  margin: 0 auto;
}

.cb-preview-phone.lp-phone-frame {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}

.cb-preview-mock-site {
  position: absolute;
  inset: 12px 12px 56px;
  pointer-events: none;
  opacity: 0.55;
  z-index: 1;
}

.cb-preview-stage--chat-open .cb-preview-mock-site {
  opacity: 0.2;
}

.cb-preview-mock-bar {
  height: 10px;
  width: 40%;
  background: #cbd5e1;
  border-radius: 4px;
  margin-bottom: 14px;
}

.cb-preview-mock-line {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  margin-bottom: 10px;
}

.cb-preview-mock-line.w80 {
  width: 80%;
}

.cb-preview-mock-line.w60 {
  width: 60%;
}

.cb-preview-mock-line.w70 {
  width: 70%;
}

.cb-preview-mock-block {
  margin-top: 16px;
  height: 72px;
  background: #e2e8f0;
  border-radius: 8px;
}

.cb-preview-anchor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.cb-preview-anchor .cb-preview-widget-root {
  pointer-events: auto;
  font-family: Inter, system-ui, sans-serif;
}

/* Кнопка чата в углу превью */
.cb-preview-widget-root--launcher {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: auto;
  top: auto;
  z-index: 20;
}

.cb-preview-widget-root--launcher .lp-chat-panel {
  display: none !important;
}

.cb-preview-widget-root--launcher.cb-preview-widget-root--left {
  right: auto;
  left: 12px;
}

.cb-preview-launcher {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* Открытый чат — на весь блок превью, поверх «текстур» сайта */
.cb-preview-widget-root--open {
  position: absolute;
  inset: 10px;
  left: 10px !important;
  right: 10px !important;
  top: 10px !important;
  bottom: 10px !important;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
}

.cb-preview-chat-panel {
  display: none;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  max-height: none !important;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}

.cb-preview-stage--chat-open .cb-preview-chat-panel {
  display: flex !important;
}

.cb-preview-chat-head {
  flex-shrink: 0;
  padding: 12px 14px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cb-preview-chat-head strong {
  font-size: 14px;
}

.cb-preview-chat-msgs {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 12px;
  background: #fff;
}

.cb-preview-chat-input {
  flex-shrink: 0;
  padding: 10px;
  border-top: 1px solid var(--lp-border);
  background: #fafafa;
  max-height: 45%;
  overflow-y: auto;
}

.cb-preview-aside .cb-device-preview {
  position: relative;
  z-index: 1;
}

.cb-preview-phone .lp-phone-screen {
  overflow: hidden;
  position: relative;
}

.cb-preview-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.cb-launcher-mode-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.cb-launcher-icon-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 8px;
}

.cb-launcher-icon-preview {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--lp-accent-soft);
  border: 1px solid var(--lp-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  overflow: hidden;
}

.cb-launcher-icon-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cb-person-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.cb-avatar-preview {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  border: 2px solid var(--lp-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
}

.cb-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cb-person-fields {
  flex: 1;
  min-width: 0;
}

.cb-person-fields textarea.dash-input {
  min-height: 72px;
  resize: vertical;
}

.cb-preview-widget-root--open .lp-chat-panel,
.cb-preview-widget-root--open .cb-preview-chat-panel {
  display: flex !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  max-height: none !important;
  border-radius: 12px;
}

.cb-preview-widget-root--launcher .lp-chat-launcher {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: auto;
  top: auto;
  z-index: 20;
}

.cb-launcher-icon-fields {
  flex: 1;
  min-width: 0;
}

.cb-emoji-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.cb-emoji-preset {
  width: 36px;
  height: 36px;
  border: 1px solid var(--lp-border);
  border-radius: 8px;
  background: var(--lp-bg-subtle);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.cb-emoji-preset:hover {
  border-color: var(--lp-accent);
  background: var(--lp-accent-soft);
}

.cb-launcher-upload-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.cb-launcher-upload-hint {
  margin: 8px 0 0 !important;
  font-size: 12px !important;
}

.cb-flow-layout {
  display: flex;
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  background: var(--lp-bg-subtle);
  overflow: hidden;
  align-items: stretch;
}

/* Боковые колонки — закреплены, прокрутка только внутри списка */
.cb-flow-rail {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  background: var(--lp-surface);
  border: none;
  border-right: 1px solid var(--lp-border);
  min-height: 0;
  overflow: hidden;
  box-shadow: none;
  align-self: stretch;
  z-index: 4;
}

.cb-flow-rail--blocks {
  width: 196px;
  transition: width 0.2s ease, opacity 0.2s ease;
}

.cb-flow-rail--props {
  width: 268px;
  border-right: none;
  border-left: 1px solid var(--lp-border);
  transition: width 0.2s ease, opacity 0.2s ease;
}

.cb-flow-layout.is-blocks-collapsed .cb-flow-rail--blocks {
  width: 40px;
}

.cb-flow-layout.is-blocks-collapsed .cb-flow-rail--blocks .cb-flow-palette-list,
.cb-flow-layout.is-blocks-collapsed .cb-flow-rail--blocks .cb-flow-rail-head > span {
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.cb-flow-layout.is-props-collapsed .cb-flow-rail--props {
  width: 40px;
}

.cb-flow-layout.is-props-collapsed .cb-flow-props-inner {
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.cb-flow-layout.is-props-collapsed .cb-flow-rail--props .cb-flow-rail-head > span {
  opacity: 0;
}

.cb-flow-props-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  transition: opacity 0.2s ease;
}

.cb-flow-rail-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 10px 10px 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lp-text-muted);
  border-bottom: none;
}

.cb-flow-rail-toggle {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--lp-border);
  border-radius: 6px;
  background: var(--lp-bg-subtle);
  color: var(--lp-text-muted);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--lp-transition), color var(--lp-transition), border-color var(--lp-transition);
}

.cb-flow-rail-toggle:hover {
  background: var(--lp-accent-soft);
  color: var(--lp-accent);
  border-color: rgba(37, 99, 235, 0.25);
}

.cb-flow-palette-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 12px 12px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.cb-flow-palette-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-family: var(--lp-font);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  color: var(--lp-text-muted);
  line-height: 1.3;
  transition: background var(--lp-transition), color var(--lp-transition);
}

.cb-flow-palette-item:hover {
  background: var(--lp-bg-subtle);
  color: var(--lp-text);
}

.cb-flow-palette-item:active {
  background: var(--lp-accent-soft);
  color: var(--lp-accent);
}

.cb-flow-palette-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  width: 22px;
  text-align: center;
}

.cb-flow-palette-label {
  flex: 1;
  min-width: 0;
}

.cb-flow-stage {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--lp-bg-subtle);
}

.cb-flow-toolbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: var(--lp-surface);
  border-bottom: 1px solid var(--lp-border);
  color: var(--lp-text);
  font-size: 13px;
  position: sticky;
  top: 0;
  z-index: 5;
}

.cb-flow-toolbar--slim {
  justify-content: flex-end;
  padding: 6px 12px;
  gap: 8px;
}

.cb-flow-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.cb-flow-toolbar-title strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--lp-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
  display: block;
}

.cb-flow-toolbar-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cb-flow-meta-inline {
  width: 130px;
  min-height: 36px;
  padding: 8px 10px;
  font-size: 13px;
}

.cb-flow-meta-color {
  width: 40px;
  height: 36px;
  padding: 2px;
  border: 1px solid var(--lp-border-strong);
  border-radius: 8px;
  background: var(--lp-surface);
  cursor: pointer;
}

.cb-flow-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}

.cb-flow-hint {
  color: var(--lp-text-muted);
  font-size: 12px;
  white-space: nowrap;
}

.cb-flow-hints {
  flex-shrink: 0;
  padding: 0 12px 8px;
  border-bottom: 1px solid var(--lp-border);
  background: color-mix(in srgb, #f59e0b 8%, var(--lp-surface));
}

.cb-flow-hints.hidden {
  display: none;
}

.cb-flow-hints-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 4px;
}

.cb-flow-hints-title {
  font-size: 12px;
  font-weight: 700;
  color: #b45309;
  white-space: nowrap;
  padding-top: 4px;
}

.cb-flow-hints-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cb-flow-hint-item {
  border: 1px solid color-mix(in srgb, #f59e0b 35%, var(--lp-border));
  background: #fffbeb;
  color: #92400e;
  font-size: 12px;
  line-height: 1.35;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.cb-flow-hint-item:hover {
  background: #fef3c7;
  border-color: #f59e0b;
}

.cb-flow-node.has-hint {
  box-shadow: 0 0 0 2px color-mix(in srgb, #f59e0b 55%, transparent);
}

.cb-flow-props-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 12px 16px;
}

.cb-flow-props-scroll .editor-metrika-label {
  margin-top: 12px;
}

.cb-flow-props-scroll .editor-metrika-label:first-child,
.cb-flow-props-scroll .cb-flow-props-type + .editor-metrika-label {
  margin-top: 0;
}

.cb-flow-props-empty {
  margin: 8px 0 0;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--lp-text-muted);
  border-radius: 8px;
  background: var(--lp-bg-subtle);
}

.cb-flow-canvas-wrap {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background-color: #f4f6f9;
  background-image:
    radial-gradient(circle, rgba(148, 163, 184, 0.35) 1px, transparent 1px);
  background-size: 24px 24px;
  scroll-padding-bottom: 80px;
}

.cb-flow-svg {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

body.cb-flow-is-dragging .cb-flow-svg {
  shape-rendering: optimizeSpeed;
}

.cb-flow-canvas {
  position: relative;
  z-index: 2;
  min-width: 100%;
  min-height: 480px;
  padding-bottom: 96px;
  box-sizing: content-box;
  contain: layout style;
}

.cabinet-app.is-flow-editor .lp-help-fab {
  bottom: 20px;
  right: 20px;
  z-index: 20;
}

.cb-flow-node {
  position: absolute;
  width: 260px;
  background: var(--lp-surface);
  border-radius: var(--lp-radius-lg);
  box-shadow: var(--lp-shadow-sm);
  border: 1px solid var(--lp-border-strong);
  font-size: 13px;
  z-index: 2;
  transition: box-shadow var(--lp-transition), border-color var(--lp-transition);
  touch-action: none;
  user-select: none;
}

.cb-flow-node:hover:not(.is-dragging) {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.cb-flow-node.is-selected {
  border-color: var(--lp-accent);
  box-shadow: 0 0 0 3px var(--lp-accent-soft), var(--lp-shadow-sm);
}

.cb-flow-node.is-dragging {
  z-index: 30;
  cursor: grabbing;
  border-color: var(--lp-accent);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
  transition: none;
  will-change: left, top;
}

body.cb-flow-is-dragging {
  cursor: grabbing;
  user-select: none;
}

body.cb-flow-is-dragging .cb-flow-node-head {
  cursor: grabbing;
}

.cb-flow-node--trigger {
  background: var(--lp-accent-soft);
  border-color: rgba(37, 99, 235, 0.25);
  color: var(--lp-text);
}

.cb-flow-node--trigger .cb-flow-node-preview {
  color: var(--lp-text-muted);
}
.cb-flow-node--telegram .cb-flow-node-head {
  background: rgba(34, 158, 217, 0.12);
  color: #0c4a6e;
  border-radius: calc(var(--lp-radius-lg) - 2px) calc(var(--lp-radius-lg) - 2px) 0 0;
}
.cb-flow-node--email .cb-flow-node-head {
  background: var(--lp-bg-subtle);
  color: var(--lp-text);
}
.cb-flow-node--sms .cb-flow-node-head {
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
}
.cb-flow-node-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  cursor: grab;
  font-weight: 600;
  font-size: 13px;
  border-bottom: 1px solid var(--lp-border);
  color: var(--lp-text);
  min-width: 0;
}

.cb-flow-node-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cb-flow-node--trigger .cb-flow-node-head {
  border-bottom-color: rgba(37, 99, 235, 0.15);
  color: var(--lp-accent);
}
.cb-flow-node-icon {
  font-size: 16px;
}
.cb-flow-node-preview,
.cb-flow-node-delay {
  padding: 10px 12px;
  color: var(--lp-text-muted);
  line-height: 1.45;
  font-size: 13px;
  min-height: 48px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  word-break: break-word;
}
.cb-flow-node-btns {
  padding: 0 12px 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.cb-flow-mini-btn {
  padding: 4px 10px;
  border: 1px solid var(--lp-border-strong);
  border-radius: 6px;
  font-size: 11px;
  background: var(--lp-bg-subtle);
  color: var(--lp-text-muted);
}
.cb-flow-node-ports {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px 10px;
  align-items: flex-start;
  border-top: 1px solid var(--lp-border);
  background: var(--lp-surface);
}
.cb-flow-node--trigger .cb-flow-node-ports {
  border-top-color: rgba(37, 99, 235, 0.12);
}
.cb-flow-port {
  border: none;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  padding: 4px 8px;
  font-family: var(--lp-font);
}
.cb-flow-port-in {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lp-border-strong);
  padding: 0;
  margin-right: auto;
  border: 2px solid var(--lp-surface);
  box-shadow: 0 0 0 1px var(--lp-border-strong);
}
.cb-flow-port-in:hover {
  background: var(--lp-accent);
  box-shadow: 0 0 0 2px var(--lp-accent-soft);
}
.cb-flow-port-out {
  background: var(--lp-bg-subtle);
  color: var(--lp-text);
  border: 1px solid var(--lp-border);
}
.cb-flow-port-out:hover,
.cb-flow-port-out.is-connecting {
  background: var(--lp-accent);
  color: #fff;
  border-color: var(--lp-accent);
}
.cb-flow-port-yes {
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.25);
}
.cb-flow-port-no {
  background: rgba(239, 68, 68, 0.1);
  color: #991b1b;
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.cb-flow-port-opt {
  max-width: 100%;
  flex: 1 1 calc(50% - 6px);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: var(--lp-accent-soft);
  color: var(--lp-accent);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.cb-flow-edge-label text {
  pointer-events: none;
  user-select: none;
}
.cb-flow-props-type {
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--lp-accent-soft);
  color: var(--lp-accent);
}

.cb-flow-props-scroll .cb-prop-delete {
  margin-top: 16px;
  width: 100%;
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.35);
}

.cb-flow-props-scroll .cb-prop-delete:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #b91c1c;
}

@media (max-width: 960px) {
  .cb-flow-rail--blocks {
    width: 72px;
  }
  .cb-flow-palette-label {
    display: none;
  }
  .cb-flow-palette-item {
    justify-content: center;
    padding: 10px 8px;
  }
  .cb-flow-rail--props {
    width: 240px;
  }
  .cb-flow-hint {
    display: none;
  }
  .cb-flow-meta-inline {
    width: 100px;
  }
}

.chatbot-opt-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}
.chatbot-opt-row .dash-input {
  flex: 1;
}

.cb-flow-branch-hint {
  margin: 0 0 10px !important;
  font-size: 12px !important;
  line-height: 1.45;
}

.cb-flow-opt-branch-row {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--lp-border);
}

.cb-flow-opt-branch-row:last-child {
  border-bottom: none;
}

.cb-flow-branch-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.cb-flow-branch-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--lp-text-muted);
}

.cb-flow-branch-label--yes {
  color: #166534;
}

.cb-flow-branch-label--no {
  color: #991b1b;
}

.cb-flow-branch-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--lp-accent);
}

.cb-flow-node-condition {
  font-weight: 600;
  color: var(--lp-text);
}

/* Мобильный конструктор сценария — после базовых .cb-flow-* (иначе колонки ломают вкладки) */
@media (max-width: 900px) {
  .chatbot-scenario-host:not(.hidden) {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
  }

  .cb-scenario-mobile-tabs {
    display: flex;
    flex-shrink: 0;
    align-items: stretch;
    gap: 4px;
    padding: 6px 10px;
    background: var(--lp-bg-elevated);
    border-bottom: 1px solid var(--lp-border);
    z-index: 25;
  }

  .cb-scenario-mobile-tab {
    flex: 1 1 0;
    min-width: 0;
    min-height: 40px;
    padding: 6px 4px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--lp-text-muted);
    font-family: var(--lp-font);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background var(--lp-transition), color var(--lp-transition);
  }

  .cb-scenario-mobile-tab.is-active {
    background: var(--lp-accent-soft);
    color: var(--lp-accent);
  }

  .cb-scenario-split {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .chatbot-flow-mount {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .chatbot-scenario-host[data-scenario-tab="preview"] .chatbot-flow-mount {
    display: none !important;
  }

  .cb-preview-aside {
    display: none !important;
    flex: 1 1 0;
    min-height: 0;
    max-height: none !important;
    width: 100% !important;
    border: none;
  }

  .chatbot-scenario-host[data-scenario-tab="preview"] .cb-preview-aside {
    display: flex !important;
  }

  .chatbot-scenario-host .cb-flow-layout {
    flex: 1 1 0;
    min-height: 0;
    flex-direction: column !important;
    overflow: hidden;
  }

  .chatbot-scenario-host .cb-flow-layout > .cb-flow-rail,
  .chatbot-scenario-host .cb-flow-layout > .cb-flow-stage {
    display: none !important;
    flex: 1 1 0;
    min-height: 0;
    width: 100% !important;
    max-width: none !important;
    border: none;
    overflow: hidden;
  }

  .chatbot-scenario-host[data-scenario-tab="canvas"] .cb-flow-layout > .cb-flow-stage {
    display: flex !important;
    flex-direction: column;
  }

  .chatbot-scenario-host[data-scenario-tab="blocks"] .cb-flow-layout > .cb-flow-rail--blocks {
    display: flex !important;
    flex-direction: column;
  }

  .chatbot-scenario-host[data-scenario-tab="props"] .cb-flow-layout > .cb-flow-rail--props {
    display: flex !important;
    flex-direction: column;
  }

  .chatbot-scenario-host .cb-flow-rail-head {
    flex-shrink: 0;
    padding: 10px 14px;
  }

  .chatbot-scenario-host .cb-flow-rail-toggle {
    display: none !important;
  }

  .chatbot-scenario-host .cb-flow-palette-list,
  .chatbot-scenario-host .cb-flow-props-inner {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .chatbot-scenario-host .cb-flow-palette-label {
    display: inline;
  }

  .chatbot-scenario-host .cb-flow-palette-item {
    min-height: 48px;
    padding: 12px 14px;
    justify-content: flex-start;
  }

  .chatbot-scenario-host .cb-flow-props-scroll {
    padding: 12px 14px 24px;
  }

  .chatbot-scenario-host .cb-flow-toolbar--slim {
    flex-shrink: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    padding: 6px 10px;
    scrollbar-width: none;
  }

  .chatbot-scenario-host .cb-flow-toolbar--slim .cb-flow-hint {
    display: none;
  }

  .chatbot-scenario-host .cb-flow-toolbar--slim .btn {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 36px;
    padding: 6px 10px;
    font-size: 12px;
  }

  .chatbot-scenario-host .cb-flow-canvas-wrap {
    flex: 1 1 0;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .chatbot-scenario-host .cb-flow-canvas {
    min-height: 100%;
    padding-bottom: 48px;
  }

  .chatbot-scenario-host .cb-flow-node {
    width: min(260px, calc(100vw - 32px));
  }

  .chatbot-scenario-host .cb-preview-aside .cb-preview-host {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 10px 12px;
  }

  .chatbot-scenario-host[data-scenario-tab="preview"] .cb-preview-aside {
    display: flex !important;
    flex: 1 1 0 !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
  }

  .chatbot-scenario-host .cb-preview-aside-head {
    display: none;
  }

  .chatbot-scenario-host .cb-device-preview {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
  }

  .chatbot-scenario-host .cb-preview-hint {
    flex-shrink: 0;
    font-size: 12px;
    line-height: 1.4;
    margin: 0 0 8px;
  }

  .chatbot-scenario-host .lp-device-tabs {
    flex-shrink: 0;
    display: flex;
    width: 100%;
    gap: 6px;
    margin-bottom: 10px;
  }

  .chatbot-scenario-host .lp-device-tab {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 8px;
    font-size: 13px;
    text-align: center;
    white-space: nowrap;
  }

  .chatbot-scenario-host .lp-device-stage.cb-preview-device-stage {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .chatbot-scenario-host .cb-device-preview .cb-preview-device-stage {
    min-height: 0;
  }

  .chatbot-scenario-host .lp-device-view.is-active {
    flex: 1 1 0;
    min-height: 0;
    display: flex !important;
    flex-direction: column;
    width: 100%;
  }

  .chatbot-scenario-host .cb-preview-stage {
    flex: 1 1 0;
    width: 100%;
    height: auto !important;
    min-height: 220px;
    max-height: none !important;
  }

  .chatbot-scenario-host .cb-preview-aside .cb-preview-stage {
    height: auto !important;
    min-height: 220px;
    max-height: none !important;
  }

  .chatbot-scenario-host .cb-preview-mobile-wrap {
    width: 100%;
    max-width: min(300px, 100%);
    margin: 0 auto;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .chatbot-scenario-host .cb-preview-phone.lp-phone-frame {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-height: 0;
  }

  .chatbot-scenario-host .cb-preview-phone .lp-phone-screen {
    flex: 1 1 0;
    min-height: 260px;
    max-height: none;
    display: flex;
    flex-direction: column;
  }

  .chatbot-scenario-host .cb-preview-stage--mobile {
    flex: 1 1 0;
    height: 100% !important;
    min-height: 240px !important;
    max-height: none !important;
  }

  .chatbot-scenario-host .cb-preview-toolbar {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
  }

  .chatbot-scenario-host .cb-preview-toolbar .btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  #panel-edit-chatbot.is-scenario-step .editor-wizard-footer {
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    padding: 6px 8px max(6px, env(safe-area-inset-bottom, 0px));
    margin: 0;
    border-top: 1px solid var(--lp-border);
    background: var(--lp-surface);
  }

  #panel-edit-chatbot.is-scenario-step #chatbot-wizard-back {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 6px 10px;
    font-size: 12px;
  }

  #panel-edit-chatbot.is-scenario-step .editor-wizard-footer-right {
    flex: 1 1 0;
    display: flex;
    flex-direction: row;
    gap: 6px;
    min-width: 0;
  }

  #panel-edit-chatbot.is-scenario-step .editor-wizard-footer-right .btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 38px;
    padding: 6px 8px;
    font-size: 12px;
    justify-content: center;
  }

  #panel-edit-chatbot.is-scenario-step #chatbot-wizard-next {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .cabinet-app.is-flow-editor .lp-help-fab {
    display: none;
  }
}

/* --- 404 page --- */

.page-404 {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--lp-bg-subtle) !important;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37, 99, 235, 0.1), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(6, 182, 212, 0.06), transparent),
    linear-gradient(var(--lp-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--lp-border) 1px, transparent 1px) !important;
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
}

.page-404 .site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
}

.page-404 .site-header-spacer {
  display: none;
}

.not-found-main {
  flex: 1;
  padding: calc(var(--site-header-h) + env(safe-area-inset-top, 0) + 32px) 0 48px;
}

.not-found-container {
  max-width: 920px;
}

.not-found-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  margin-bottom: 8px;
}

.not-found-code {
  position: relative;
  z-index: 2;
  font-size: clamp(5rem, 18vw, 8.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  background: linear-gradient(135deg, var(--lp-accent) 0%, var(--lp-cyan) 55%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  user-select: none;
}

.not-found-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(37, 99, 235, 0.18);
  animation: not-found-spin 24s linear infinite;
}

.not-found-orbit--1 {
  width: 280px;
  height: 280px;
}

.not-found-orbit--2 {
  width: 200px;
  height: 200px;
  animation-direction: reverse;
  animation-duration: 18s;
}

.not-found-popup {
  position: absolute;
  top: 18%;
  right: clamp(4%, 12vw, 18%);
  z-index: 3;
  width: 148px;
  padding: 14px;
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-lg);
  box-shadow: var(--lp-shadow-md);
  animation: not-found-float 4s ease-in-out infinite;
}

.not-found-popup-dot {
  display: block;
  width: 8px;
  height: 8px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--lp-danger);
  opacity: 0.7;
}

.not-found-popup-line {
  display: block;
  height: 8px;
  margin-bottom: 8px;
  border-radius: 4px;
  background: var(--lp-bg-subtle);
}

.not-found-popup-line--lg {
  width: 72%;
}

.not-found-popup-btn {
  display: block;
  height: 28px;
  margin-top: 4px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--lp-accent), #3b82f6);
  opacity: 0.85;
}

.not-found-content {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 28px;
}

.not-found-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--lp-accent-soft);
  color: var(--lp-accent);
  font-size: 13px;
  font-weight: 600;
}

.not-found-content h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.not-found-lead {
  margin: 0 0 16px;
  color: var(--lp-text-muted);
  font-size: 1.05rem;
}

.not-found-path {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--lp-text-muted);
}

.not-found-path code {
  display: block;
  margin-top: 6px;
  padding: 10px 14px;
  border-radius: var(--lp-radius);
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  font-family: var(--lp-font-mono);
  font-size: 13px;
  color: var(--lp-text);
  word-break: break-all;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.not-found-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.not-found-card {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius-lg);
  box-shadow: var(--lp-shadow-sm);
  padding: 20px;
}

.not-found-card h2 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.not-found-card a {
  display: block;
  margin-bottom: 8px;
  color: var(--lp-text-muted);
  text-decoration: none;
}

.not-found-card a:hover {
  color: var(--lp-accent);
}

.not-found-card-desc {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--lp-text-muted);
  line-height: 1.5;
}

@keyframes not-found-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes not-found-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .not-found-popup {
    display: none;
  }

  .not-found-orbit--1 {
    width: 200px;
    height: 200px;
  }

  .not-found-orbit--2 {
    width: 140px;
    height: 140px;
  }

  .not-found-links {
    grid-template-columns: 1fr;
  }

  .not-found-main {
    padding: calc(var(--site-header-h) + env(safe-area-inset-top, 0) + 20px) 0 40px;
  }

  .not-found-visual {
    min-height: 140px;
  }

  .not-found-code {
    font-size: clamp(3.5rem, 24vw, 5.5rem);
  }
}

@media (max-width: 480px) {
  .not-found-orbit {
    display: none;
  }

  .not-found-visual {
    min-height: 96px;
    margin-bottom: 0;
  }

  .not-found-code {
    font-size: clamp(3rem, 22vw, 4rem);
  }

  .not-found-content h1 {
    font-size: 1.45rem;
  }

  .not-found-lead {
    font-size: 0.9375rem;
    margin-bottom: 18px;
  }

  .not-found-badge {
    font-size: 12px;
    padding: 5px 10px;
    margin-bottom: 8px;
  }

  .not-found-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .not-found-actions .btn {
    width: 100%;
    text-align: center;
  }

  .not-found-container.container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .not-found-card {
    padding: 16px;
  }
}
