﻿/* ================================================
   Р’РёР·РёС‚РєР°NFC вЂ” design system: Linear.app
   Source: design-md/linear.app/DESIGN.md
   Canvas: #010102 | Accent: #5e6ad2 | Inter в†’ Linear Display fallback
   ================================================ */

/* ---- Design Tokens (warm orange brand) ---- */
:root {
  /* Colors */
  --primary:        #ff6a00;
  --primary-hover:  #ff8533;
  --primary-focus:  #e65f00;
  --on-primary:     #ffffff;
  --brand-warm:     #fff4eb;
  --brand-deep:     #1a120c;

  --canvas:         #f7f7f9;
  --surface-1:      #ffffff;
  --surface-2:      #f2f3f6;
  --surface-3:      #e9ebf0;
  --surface-4:      #dfe2e8;

  --hairline:        #e5e7eb;
  --hairline-strong: #d1d5db;
  --hairline-3:      #b8bec8;

  --ink:            #111318;
  --ink-muted:      #2b2f36;
  --ink-subtle:     #6b7280;
  --ink-tertiary:   #9aa0aa;
  --topbar-bg:      rgba(247,247,249,.82);
  --field-bg:       #ffffff;
  --overlay:        rgba(17,19,24,.45);
  --shadow-soft:    0 1px 2px rgba(17,19,24,.04), 0 8px 24px -12px rgba(17,19,24,.12);

  /* Landing */
  --lp-bg:      #f7f7f9;
  --lp-ink:     #111318;
  --lp-muted:   #5b6170;
  --lp-subtle:  #8a909c;
  --lp-card:    #ffffff;
  --lp-card-h:  #ffffff;
  --lp-border:  rgba(17,19,24,.09);
  --lp-border-h: rgba(17,19,24,.18);
  --lp-chip:    rgba(17,19,24,.04);
  --lp-topbar:  rgba(247,247,249,.8);
  --lp-glow1:   rgba(255,106,0,.20);
  --lp-glow2:   rgba(219,39,119,.12);
  --lp-tag-bg:  rgba(255,106,0,.10);
  --lp-tag:     #e05600;
  --lp-eyebrow: #a0430b;
  --lp-shadow:  0 1px 2px rgba(17,19,24,.04), 0 10px 30px -18px rgba(17,19,24,.18);

  --success:        #27a644;
  --danger:         #e53e3e;

  /* Spacing (4px base) */
  --sp-xxs: 4px;
  --sp-xs:  8px;
  --sp-sm:  12px;
  --sp-md:  16px;
  --sp-lg:  24px;
  --sp-xl:  32px;
  --sp-xxl: 48px;
  --sp-sec: 96px;

  /* Border radius */
  --r-xs:   4px;
  --r-sm:   6px;
  --r-md:   8px;
  --r-lg:   12px;
  --r-xl:   16px;
  --r-xxl:  24px;
  --r-pill: 9999px;

  /* Shadows вЂ” Linear uses surface ladder, minimal shadows */
  --shadow-card: 0 0 0 1px var(--hairline);
  --shadow-elevated: 0 0 0 1px var(--hairline-strong);
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --brand-warm:     #2a1a0e;
  --canvas:         #0c0a09;
  --surface-1:      #141110;
  --surface-2:      #1a1614;
  --surface-3:      #221c18;
  --surface-4:      #2a221c;
  --hairline:        #2e2620;
  --hairline-strong: #3d342c;
  --hairline-3:      #4a3f36;
  --ink:            #faf7f5;
  --ink-muted:      #e8ddd4;
  --ink-subtle:     #a8988a;
  --ink-tertiary:   #7a6c60;
  --topbar-bg:      rgba(12,10,9,.82);
  --field-bg:       #1a1614;
  --overlay:        rgba(0,0,0,.6);
  --shadow-soft:    none;

  --lp-bg:      #0f1012;
  --lp-ink:     #f5f5f7;
  --lp-muted:   #a9adb6;
  --lp-subtle:  #71757d;
  --lp-card:    rgba(255,255,255,.04);
  --lp-card-h:  rgba(255,255,255,.06);
  --lp-border:  rgba(255,255,255,.08);
  --lp-border-h: rgba(255,255,255,.3);
  --lp-chip:    rgba(255,255,255,.06);
  --lp-topbar:  rgba(15,16,18,.72);
  --lp-glow1:   rgba(255,106,0,.35);
  --lp-glow2:   rgba(219,39,119,.28);
  --lp-tag-bg:  rgba(255,122,26,.14);
  --lp-tag:     #ff9a5a;
  --lp-eyebrow: #e7c9b4;
  --lp-shadow:  none;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

html, body {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.landing-page, body.dash-page, body.auth-bg {
  font-family: 'Manrope', system-ui, sans-serif;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

/* ---- Layout ---- */
.wrap      { max-width: 560px;  margin: 0 auto; padding: var(--sp-lg) var(--sp-md) 80px; }
.wrap-wide { max-width: 1280px; margin: 0 auto; padding: var(--sp-lg) var(--sp-lg) 80px; }

/* ---- Topbar Navigation ---- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-xl);
  height: 56px;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.3px;
  text-decoration: none;
}
.brand b { color: var(--primary); font-weight: 700; }
.logo { display: inline-flex; width: 26px; height: 26px; color: var(--primary); }
.logo svg { width: 100%; height: 100%; }

.topbar nav {
  display: flex;
  gap: var(--sp-xxs);
  align-items: center;
}
.topbar nav a {
  color: var(--ink-subtle);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--r-md);
  transition: color 0.15s, background 0.15s;
}
.topbar nav a:hover { color: var(--ink); background: var(--surface-2); }
.topbar nav a.nav-logout {
  border: 1px solid var(--border, rgba(0,0,0,.12));
  color: var(--ink);
  background: var(--surface-1, #fff);
}
.topbar nav a.nav-logout:hover { border-color: #ff7a1a; color: #ff7a1a; }
body.landing-page .topbar nav a.nav-logout {
  color: var(--lp-ink, #1a120c) !important;
  background: var(--lp-card, #fff);
  border: 1px solid var(--lp-border-h, rgba(0,0,0,.12));
}
body.landing-page .topbar nav a.nav-logout:hover {
  color: #ff7a1a !important;
  border-color: #ff7a1a;
  background: rgba(255,106,0,.08);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-xs);
  background: var(--primary);
  color: var(--on-primary) !important;
  border: none;
  border-radius: var(--r-md);
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}
.btn:hover  { background: var(--primary-hover); color: var(--on-primary) !important; }
.btn:active { background: var(--primary-focus); transform: translateY(1px); }

/* Secondary: surface-1 charcoal button */
.btn-ghost {
  background: var(--surface-1) !important;
  color: var(--ink) !important;
  border: 1px solid var(--hairline) !important;
  box-shadow: none !important;
}
.btn-ghost:hover { background: var(--surface-2) !important; }

/* Inverse: white button */
.btn-inverse {
  background: #ffffff !important;
  color: #000000 !important;
  border: none !important;
}
.btn-inverse:hover { background: #f5f6f6 !important; }

.btn-lg  { padding: 10px 20px; font-size: 15px; border-radius: var(--r-md); }
.btn-sm  { padding: 5px 10px; font-size: 13px; border-radius: var(--r-sm); }
.btn-danger { background: var(--danger) !important; color: #fff !important; border: none !important; }

/* ---- Eyebrow pill tag ---- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-subtle);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.pill svg { width: 14px; height: 14px; color: var(--primary); }

/* ---- Gradient text (accent) ---- */
.grad {
  background: linear-gradient(90deg, var(--primary), var(--primary-hover));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Landing Hero ---- */
.hero-l {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  padding: var(--sp-sec) 0 var(--sp-xxl);
}

.hero-l h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: clamp(-1.5px, -0.04em, -3px);
  color: var(--ink);
  margin: var(--sp-md) 0;
}

.lead {
  font-size: 18px;
  color: var(--ink-muted);
  line-height: 1.55;
  letter-spacing: -0.1px;
  max-width: 38ch;
}

.cta { display: flex; gap: var(--sp-sm); flex-wrap: wrap; margin: var(--sp-xl) 0; }

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 0;
  list-style: none;
  color: var(--ink-subtle);
  font-size: 14px;
}
.checks li::before { content: "вњ“ "; color: var(--primary); font-weight: 600; }

/* Phone mockup cluster */
.phones { display: flex; justify-content: center; position: relative; height: 520px; }
.phone {
  width: 220px;
  height: 460px;
  background: var(--surface-1);
  border-radius: 28px;
  padding: 10px;
  box-shadow: 0 0 0 1px var(--hairline), 0 32px 64px rgba(0,0,0,.5);
  position: absolute;
  overflow: hidden;
  border: 1px solid var(--hairline-strong);
}
.phone iframe { width: 100%; height: 100%; border: 0; border-radius: 20px; background: var(--canvas); }
.p0 { left: 10%; transform: rotate(-8deg); z-index: 1; }
.p1 { left: 50%; transform: translateX(-50%); z-index: 3; }
.p2 { right: 10%; transform: rotate(8deg); z-index: 2; }

/* ---- Section steps / features ---- */
.steps { padding: var(--sp-sec) 0 var(--sp-xxl); }
.steps h2 {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.6px;
  color: var(--ink);
  margin: 0 0 var(--sp-xl);
}

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-md); }

/* Feature card: surface-1 + hairline border */
.step {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--sp-lg);
  transition: background 0.15s, border-color 0.15s;
}
.step:hover { background: var(--surface-2); border-color: var(--hairline-strong); }
.step b {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--r-sm);
  margin-bottom: var(--sp-sm);
  font-size: 14px;
  font-weight: 700;
}
.step h3 { font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: -0.3px; margin: var(--sp-xxs) 0; }
.step p  { color: var(--ink-subtle); font-size: 14px; line-height: 1.5; margin: 0; }

/* ---- Theme switcher grid (landing) ---- */
.themes-l { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-sm); }
.th-l {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--sp-md);
  display: flex;
  flex-direction: column;
  gap: var(--sp-xxs);
  transition: border-color 0.15s;
}
.th-l:hover { border-color: var(--hairline-strong); }
.th-l b    { font-size: 13px; font-weight: 600; color: var(--ink); }
.th-l small { font-size: 12px; color: var(--ink-subtle); }

/* theme swatches */
.sw { display: block; width: 100%; height: 44px; border-radius: var(--r-md); margin-bottom: var(--sp-xs); }
.sw-sm { display: inline-block; width: 16px; height: 16px; border-radius: var(--r-xs); vertical-align: middle; }
.sw-light    { background: linear-gradient(135deg, #ffffff, #e8e8e8); border: 1px solid var(--hairline-strong); }
.sw-orange   { background: linear-gradient(135deg, #ff6a00, #ffb347); }
.sw-purple   { background: linear-gradient(135deg, #7c3aed, #2563eb); }
.sw-dark     { background: linear-gradient(135deg, #1a1a1f, #3f3f46); }
.sw-burgundy { background: linear-gradient(135deg, #7f1d1d, #be123c); }
.sw-glass    { background: linear-gradient(135deg, #667eea, #764ba2); }
.sw-ocean    { background: linear-gradient(135deg, #0ea5e9, #14b8a6); }
.sw-forest   { background: linear-gradient(135deg, #166534, #84cc16); }

/* ---- Auth pages ---- */
.auth-bg { background: var(--canvas); }

.auth {
  max-width: 420px;
  margin: 60px auto;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: var(--sp-xl);
}
.auth h1 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin: 0 0 var(--sp-lg);
}
.auth label {
  display: block;
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-muted);
  margin: var(--sp-md) 0 var(--sp-xxs);
  letter-spacing: 0;
}
.auth input {
  width: 100%;
  padding: 8px 12px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.15s, outline 0.15s;
}
.auth input:focus {
  outline: 2px solid rgba(94,105,209,.45);
  outline-offset: 0;
  border-color: var(--primary-focus);
}
.auth .btn { width: 100%; margin-top: var(--sp-lg); justify-content: center; }

.muted  { color: var(--ink-subtle); font-size: 13px; margin-top: var(--sp-sm); }
.alert  {
  background: rgba(229,62,62,.12);
  color: #fc8181;
  border: 1px solid rgba(229,62,62,.25);
  padding: 10px var(--sp-sm);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-md);
  font-size: 14px;
}

/* ---- Dashboard ---- */
.dash {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--sp-lg);
  align-items: start;
}

/* Panel = surface-1 card with hairline border */
.panel {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: var(--sp-lg);
}
.panel-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-lg);
}
.panel-h h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: var(--ink);
}
.stats { display: flex; gap: var(--sp-md); color: var(--ink-subtle); font-size: 13px; }

fieldset {
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--sp-md);
  margin: var(--sp-lg) 0 0;
}
fieldset legend {
  padding: 0 var(--sp-xs);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--ink-subtle);
}

label {
  display: block;
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-muted);
  margin: var(--sp-sm) 0 var(--sp-xxs);
}
input, textarea, select {
  width: 100%;
  padding: 8px 12px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.15s, outline 0.15s;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid rgba(94,105,209,.4);
  outline-offset: 0;
  border-color: var(--primary-focus);
}
textarea { resize: vertical; min-height: 80px; }
select { appearance: auto; cursor: pointer; }

/* Grid layouts */
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-sm); }

/* Slug input */
.slug {
  display: flex;
  align-items: center;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-2);
}
.slug span {
  padding: 8px 10px;
  background: var(--surface-3);
  color: var(--ink-subtle);
  font-size: 14px;
  white-space: nowrap;
  border-right: 1px solid var(--hairline);
}
.slug input { border: 0; border-radius: 0; background: transparent; flex: 1; }

/* Link box */
.linkbox {
  display: flex;
  gap: var(--sp-sm);
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  padding: var(--sp-sm);
  border-radius: var(--r-lg);
  margin: var(--sp-md) 0;
  flex-wrap: wrap;
}
.linkbox input {
  flex: 1;
  min-width: 180px;
  border: 0;
  background: transparent;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 13px;
  color: var(--ink-muted);
}
.linkbox svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; }

/* Avatar */
.av-row { display: flex; align-items: center; gap: var(--sp-md); flex-wrap: wrap; margin-bottom: var(--sp-sm); }
.avatar, .avatar-edit, .av-sm, .avatar-ph {
  border-radius: var(--r-pill);
  object-fit: cover;
  background: var(--surface-3);
}
.avatar-edit { width: 72px; height: 72px; }
.av-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.av-hint { flex: 1 1 100%; margin: 0; font-size: 12px; }
label.btn.is-busy { opacity: .7; pointer-events: none; }
.av-sm  { width: 36px; height: 36px; }
.avatar-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--ink-subtle);
  background: var(--surface-2);
}

/* Icon input */
.ico-in { position: relative; }
.ico-in > span:first-child {
  position: absolute; left: 10px; top: 34px;
  width: 18px; height: 18px;
  color: var(--ink-subtle);
  pointer-events: none;
}
.ico-in > span:first-child svg { width: 100%; height: 100%; }
.ico-in input { padding-left: 34px; }

/* Theme selector */
.themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-sm); }
.th {
  cursor: pointer;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--sp-sm);
  display: block;
  background: var(--surface-1);
  transition: border-color 0.15s, background 0.15s;
}
.th input { display: none; }
.th:has(input:checked) {
  border-color: var(--primary);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px rgba(94,105,209,.18);
}
.th b { font-size: 12px; font-weight: 500; color: var(--ink-muted); }

/* Save bar */
.savebar {
  display: flex;
  gap: var(--sp-sm);
  flex-wrap: wrap;
  margin-top: var(--sp-lg);
  position: sticky;
  bottom: var(--sp-sm);
  background: rgba(15,16,17,.85);
  backdrop-filter: blur(12px);
  padding: var(--sp-sm) var(--sp-md);
  border-radius: var(--r-xl);
  border: 1px solid var(--hairline-strong);
}

/* Preview sidebar */
.preview { position: sticky; top: 72px; }
.preview-h { font-size: 12px; font-weight: 500; color: var(--ink-subtle); letter-spacing: 0.4px; text-transform: uppercase; margin-bottom: var(--sp-sm); }
.phone.big {
  position: relative; width: 100%; height: 620px;
  left: auto; right: auto; transform: none; margin: 0 auto;
}
.phone.big iframe { background: var(--canvas); }

.qrbox {
  display: flex;
  gap: var(--sp-md);
  align-items: center;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--sp-sm);
  margin-top: var(--sp-md);
}
.qrbox img { width: 80px; height: 80px; border-radius: var(--r-md); }
.qrbox b { font-size: 13px; font-weight: 600; color: var(--ink); }
.qrbox p { font-size: 12px; color: var(--ink-subtle); margin: 2px 0 8px; }

/* ---- Tables ---- */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; color: var(--ink-muted); }
.tbl th, .tbl td { padding: 10px var(--sp-sm); border-bottom: 1px solid var(--hairline); text-align: left; vertical-align: middle; }
.tbl th {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--ink-subtle);
  cursor: pointer;
  user-select: none;
}
.tbl td { color: var(--ink-muted); }
.tbl tr:hover td { background: var(--surface-2); }
.tbl-wrap { overflow: auto; background: var(--surface-1); border: 1px solid var(--hairline); border-radius: var(--r-lg); }

/* ---- Status badges ---- */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  color: var(--ink-muted);
}
.b-new       { background: rgba(94,105,209,.15);  color: #a5adfd; border-color: rgba(94,105,209,.3); }
.b-work      { background: rgba(251,191,36,.1);   color: #f6c745; border-color: rgba(251,191,36,.25); }
.b-printed   { background: rgba(168,85,247,.1);   color: #c084fc; border-color: rgba(168,85,247,.25); }
.b-delivered { background: rgba(39,166,68,.12);   color: #4ade80; border-color: rgba(39,166,68,.3); }
.b-canceled  { background: rgba(229,62,62,.1);    color: #fc8181; border-color: rgba(229,62,62,.25); }

/* ---- Order modal ---- */
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: var(--sp-md);
}
.modal.open { display: flex; }
.modal-in {
  background: var(--surface-1);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-xl);
  padding: var(--sp-xl);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  position: relative;
}
.modal-in h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.4px; color: var(--ink); margin: 0 0 var(--sp-md); }
.modal-in .x {
  position: absolute; right: var(--sp-md); top: var(--sp-md);
  border: 0; background: var(--surface-2); color: var(--ink-subtle);
  width: 28px; height: 28px; border-radius: var(--r-sm);
  font-size: 18px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.modal-in .x:hover { background: var(--surface-3); color: var(--ink); }
.ok-big { font-size: 2.5rem; text-align: center; margin: var(--sp-sm) 0; }

/* Card type selector */
.cardtypes { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: var(--sp-sm); margin: var(--sp-md) 0; }
.ct {
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--sp-sm);
  text-align: center;
  cursor: pointer;
  display: block;
  background: var(--surface-2);
  transition: border-color 0.15s, background 0.15s;
}
.ct input { display: none; }
.ct:has(input:checked) { border-color: var(--primary); background: var(--surface-3); box-shadow: 0 0 0 2px rgba(94,105,209,.2); }
.ct span  { font-size: 1.4rem; display: block; margin-bottom: 4px; }
.ct b     { display: block; font-size: 12px; font-weight: 500; color: var(--ink); }
.ct small { color: var(--ink-subtle); font-size: 11px; }

/* ---- Admin Panel ---- */
.admin {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
}
.side {
  background: var(--surface-1);
  padding: var(--sp-lg) var(--sp-md);
  display: flex;
  flex-direction: column;
  gap: var(--sp-xxs);
  border-right: 1px solid var(--hairline);
}
.side .brand { color: var(--ink); margin-bottom: var(--sp-lg); }
.side a {
  color: var(--ink-subtle);
  padding: 8px var(--sp-sm);
  border-radius: var(--r-md);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.12s, color 0.12s;
}
.side a:hover, .side a.on { background: var(--surface-2); color: var(--ink); }

.adm { padding: var(--sp-xl); background: var(--canvas); color: var(--ink); min-height: 100vh; }

/* KPI Cards */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-sm); margin-bottom: var(--sp-lg); }
.kpis > div {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--sp-md);
}
.kpis b { display: block; font-size: 26px; font-weight: 600; letter-spacing: -1px; color: var(--ink); margin-bottom: 2px; }
.kpis > div > :not(b) { font-size: 13px; color: var(--ink-subtle); }

.adm-h { display: flex; gap: var(--sp-sm); align-items: center; flex-wrap: wrap; margin-bottom: var(--sp-md); }
.adm-h h1 { margin: 0; flex: 1; font-size: 22px; font-weight: 600; letter-spacing: -0.4px; }
.search {
  max-width: 340px; flex: 1;
  padding: 7px 12px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  font: inherit; font-size: 14px;
  color: var(--ink);
}
.search:focus { outline: 2px solid rgba(94,105,209,.4); border-color: var(--primary-focus); }

.nfclink { display: flex; gap: var(--sp-xs); align-items: center; flex-wrap: wrap; }
.nfclink code {
  font-size: 12px;
  background: var(--surface-2);
  color: var(--ink-subtle);
  border: 1px solid var(--hairline);
  padding: 3px var(--sp-xs);
  border-radius: var(--r-xs);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, 'SF Mono', monospace;
}

.acts { display: flex; gap: var(--sp-xxs); align-items: center; }
.acts form { display: inline; }
.blocked { opacity: .45; }

/* Order status select */
.st {
  border-radius: var(--r-md);
  padding: 5px var(--sp-xs);
  font-weight: 500;
  font-size: 13px;
  border: 1px solid var(--hairline);
  background: var(--surface-2);
  color: var(--ink-muted);
  cursor: pointer;
}
.st-new       { background: rgba(94,105,209,.12); color: #a5adfd; }
.st-work      { background: rgba(251,191,36,.1);  color: #f6c745; }
.st-printed   { background: rgba(168,85,247,.1);  color: #c084fc; }
.st-delivered { background: rgba(39,166,68,.12);  color: #4ade80; }
.st-canceled  { background: rgba(229,62,62,.1);   color: #fc8181; }

/* ---- Toast ---- */
#toast {
  opacity: 0;
  visibility: hidden;
  position: fixed;
  bottom: var(--sp-xl);
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--surface-2);
  border: 1px solid var(--hairline-strong);
  color: var(--ink);
  padding: var(--sp-sm) var(--sp-md);
  border-radius: var(--r-pill);
  z-index: 200;
  transition: .25s;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  white-space: nowrap;
}
#toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* ---- Misc ---- */
.chk { display: flex; align-items: center; gap: var(--sp-xs); font-weight: 500; font-size: 13px; color: var(--ink-muted); }
.chk input { width: auto; }

.order { color: var(--ink-muted); }
.st-form { display: inline; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .hero-l      { grid-template-columns: 1fr; gap: var(--sp-xxl); padding: var(--sp-xxl) 0; }
  .phones      { height: 420px; }
  .phone       { width: 180px; height: 380px; }
  .dash        { grid-template-columns: 1fr; }
  .preview     { order: -1; }
  .phone.big   { height: 520px; max-width: 300px; }
  .grid3, .themes-l, .themes, .kpis { grid-template-columns: 1fr 1fr; }
  .admin       { grid-template-columns: 1fr; }
  .side        { flex-direction: row; flex-wrap: wrap; padding: var(--sp-sm); }
  .topbar      { padding: 0 var(--sp-md); }
}
@media (max-width: 560px) {
  .g2, .grid3, .themes-l, .themes, .kpis { grid-template-columns: 1fr; }
  .phones { display: none; }
  .p1 { display: block; }
  .wrap-wide { padding: var(--sp-md) var(--sp-sm) 80px; }
  .auth { margin: var(--sp-xl) var(--sp-md); }
}

/* iframe scaling in phone mockup */
.phones .phone iframe {
  width: 390px; height: 858px;
  transform: scale(.513);
  transform-origin: 0 0;
  border-radius: 38px;
}
.phone.big { overflow: hidden; }
.phone.big iframe {
  width: 390px; height: 732px;
  transform: scale(.82);
  transform-origin: 0 0;
  border-radius: 24px;
}
@media (max-width: 960px) {
  .phones .phone iframe { transform: scale(.41); }
}

/* ============================================================
   LANDING PAGE вЂ” Bright Premium Design
   Logo palette: Deep Purple #5B21B6 В· Violet #7C3AED В· Cyan #06B6D4
   Base: White В· Rich В· Cultural В· Attention-Grabbing
   ============================================================ */

/* ---- Landing tokens ---- */
html.landing-page,
body.landing-page {
  --lp-dp:      #5B21B6;   /* deep purple вЂ” logo left */
  --lp-vio:     #7C3AED;   /* violet вЂ” logo body */
  --lp-lav:     #9F67FF;   /* lavender вЂ” hover state */
  --lp-cyan:    #06B6D4;   /* cyan вЂ” logo dots */
  --lp-cyan2:   #22D3EE;   /* cyan lighter */
  --lp-white:   #FFFFFF;
  --lp-border2: rgba(91,33,182,.22);
  --lp-glow:    rgba(91,33,182,.18);

  background: var(--lp-bg) !important;
  color: var(--lp-ink) !important;
}

/* ---- Landing topbar override ---- */
.landing-page .topbar {
  background: rgba(255,255,255,.92) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(91,33,182,.12) !important;
}
.landing-page .topbar .brand,
.landing-page .brand { color: var(--lp-dp); }
.landing-page .brand b { color: var(--lp-cyan); }
.landing-page .logo   { color: var(--lp-vio); }
.landing-page .topbar nav a {
  color: var(--lp-muted);
  transition: color 0.15s, background 0.15s;
}
.landing-page .topbar nav a:hover {
  color: var(--lp-dp);
  background: rgba(91,33,182,.06);
}

/* ---- Landing CTA buttons ---- */
.landing-page .btn {
  background: linear-gradient(135deg, var(--lp-dp), var(--lp-vio));
  box-shadow: 0 4px 24px rgba(91,33,182,.35);
  border-radius: 10px;
  padding: 11px 22px;
  font-weight: 600;
  font-size: 15px;
}
.landing-page .btn:hover {
  background: linear-gradient(135deg, var(--lp-vio), var(--lp-lav));
  box-shadow: 0 8px 32px rgba(91,33,182,.45);
  transform: translateY(-2px);
}
.landing-page .btn-ghost {
  background: transparent !important;
  color: var(--lp-dp) !important;
  border: 2px solid var(--lp-border2) !important;
  box-shadow: none !important;
}
.landing-page .btn-ghost:hover {
  background: rgba(91,33,182,.06) !important;
  border-color: var(--lp-vio) !important;
  transform: translateY(-2px);
}

/* ---- Hero section ---- */
.hero-l {
  position: relative;
  overflow: visible;
}

/* Animated background orbs */
.landing-page .hero-l::before {
  content: '';
  position: absolute;
  top: -120px; left: -80px;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(124,58,237,.18) 0%, transparent 70%);
  border-radius: 50%;
  animation: orbFloat 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.landing-page .hero-l::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -60px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(6,182,212,.14) 0%, transparent 70%);
  border-radius: 50%;
  animation: orbFloat 10s ease-in-out infinite reverse;
  pointer-events: none;
  z-index: 0;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(20px, -20px) scale(1.05); }
}

.landing-page .hero-l > * { position: relative; z-index: 1; }
.landing-page .hero-l { padding: 80px 0 60px; }

/* Eyebrow pill вЂ” white/purple */
.landing-page .pill {
  background: linear-gradient(135deg, rgba(91,33,182,.1), rgba(6,182,212,.08));
  border: 1px solid rgba(91,33,182,.2);
  color: var(--lp-dp);
  font-weight: 600;
  letter-spacing: 0.3px;
  font-size: 13px;
}
.landing-page .pill svg { color: var(--lp-cyan); }

/* Hero headline */
.landing-page .hero-l h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--lp-ink);
  margin: 16px 0;
}

/* Gradient text вЂ” logo gradient */
.landing-page .grad {
  background: linear-gradient(135deg, var(--lp-dp) 0%, var(--lp-vio) 40%, var(--lp-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* Lead text */
.landing-page .lead {
  font-size: 18px;
  color: var(--lp-muted);
  line-height: 1.6;
  letter-spacing: -0.1px;
  max-width: 40ch;
}

/* Checks */
.landing-page .checks { color: var(--lp-muted); }
.landing-page .checks li::before { color: var(--lp-cyan); }

/* ---- Phone cluster ---- */
.landing-page .phone {
  background: #ffffff;
  border: none;
  box-shadow:
    0 0 0 2px rgba(91,33,182,.15),
    0 40px 80px rgba(91,33,182,.2),
    0 8px 24px rgba(0,0,0,.1);
}
.landing-page .phone iframe { background: #fff; }

/* ---- Feature sections ---- */
.landing-page .steps {
  padding: 80px 0 48px;
}
.landing-page .steps h2 {
  color: var(--lp-ink);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 40px;
}
.landing-page .steps h2 .accent-text {
  background: linear-gradient(135deg, var(--lp-dp), var(--lp-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Step/feature cards */
.landing-page .step {
  background: var(--lp-card);
  border: 1px solid var(--lp-border);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 4px 24px var(--lp-glow), 0 1px 4px rgba(0,0,0,.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
  position: relative;
  overflow: hidden;
}
.landing-page .step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lp-dp), var(--lp-vio), var(--lp-cyan));
  border-radius: 16px 16px 0 0;
  opacity: 0;
  transition: opacity 0.2s;
}
.landing-page .step:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px var(--lp-glow), 0 4px 12px rgba(0,0,0,.06);
  border-color: rgba(91,33,182,.25);
}
.landing-page .step:hover::before { opacity: 1; }

.landing-page .step b {
  background: linear-gradient(135deg, var(--lp-dp), var(--lp-vio));
  box-shadow: 0 4px 12px rgba(91,33,182,.4);
  width: 36px; height: 36px;
  border-radius: 10px;
}

.landing-page .step h3 {
  color: var(--lp-ink);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 12px 0 6px;
}
.landing-page .step p { color: var(--lp-muted); font-size: 14px; line-height: 1.6; }

/* Benefit cards вЂ” icon hero */
.landing-page .benefit-card {
  background: var(--lp-card);
  border: 1px solid var(--lp-border);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 4px 24px var(--lp-glow);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.landing-page .benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px var(--lp-glow);
  border-color: rgba(91,33,182,.25);
}
.landing-page .benefit-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
}
.landing-page .benefit-icon.purple {
  background: linear-gradient(135deg, rgba(91,33,182,.15), rgba(124,58,237,.12));
  border: 1px solid rgba(91,33,182,.2);
}
.landing-page .benefit-icon.cyan {
  background: linear-gradient(135deg, rgba(6,182,212,.15), rgba(34,211,238,.1));
  border: 1px solid rgba(6,182,212,.2);
}
.landing-page .benefit-icon.violet {
  background: linear-gradient(135deg, rgba(124,58,237,.15), rgba(159,103,255,.12));
  border: 1px solid rgba(124,58,237,.2);
}
.landing-page .benefit-card h3 { color: var(--lp-ink); font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.landing-page .benefit-card p  { color: var(--lp-muted); font-size: 14px; line-height: 1.6; }

/* ---- Theme palette grid ---- */
.landing-page .th-l {
  background: var(--lp-card);
  border: 1px solid var(--lp-border);
  border-radius: 16px;
  padding: 16px;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  box-shadow: 0 2px 12px rgba(91,33,182,.06);
}
.landing-page .th-l:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px var(--lp-glow);
  border-color: rgba(91,33,182,.22);
}
.landing-page .th-l b     { color: var(--lp-ink); font-size: 13px; font-weight: 600; }
.landing-page .th-l small { color: var(--lp-subtle); }

/* ---- Stats strip ---- */
.lp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 48px 40px;
  background: linear-gradient(135deg, var(--lp-dp) 0%, var(--lp-vio) 55%, var(--lp-cyan) 100%);
  border-radius: 24px;
  margin: 0 0 0 0;
  position: relative;
  overflow: hidden;
}
.lp-stats::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(6,182,212,.2) 0%, transparent 40%);
  pointer-events: none;
}
.lp-stat {
  text-align: center;
  position: relative;
  z-index: 1;
}
.lp-stat-num {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -2px;
  color: #fff;
  line-height: 1;
  display: block;
  margin-bottom: 4px;
}
.lp-stat-label {
  font-size: 14px;
  color: rgba(255,255,255,.75);
  font-weight: 500;
}

/* ---- CTA Banner ---- */
.lp-cta-banner {
  background: linear-gradient(135deg, var(--lp-dp) 0%, var(--lp-vio) 60%, var(--lp-cyan) 100%);
  border-radius: 24px;
  padding: 60px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 0;
}
.lp-cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 10% 90%, rgba(255,255,255,.1) 0%, transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(6,182,212,.25) 0%, transparent 45%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.lp-cta-banner > * { position: relative; z-index: 1; }
.lp-cta-banner h2 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1.5px;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.1;
}
.lp-cta-banner p {
  font-size: 17px;
  color: rgba(255,255,255,.8);
  margin-bottom: 32px;
  line-height: 1.55;
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
}
.lp-cta-banner .btn {
  background: #fff !important;
  color: var(--lp-dp) !important;
  font-weight: 700;
  padding: 14px 32px;
  font-size: 16px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
}
.lp-cta-banner .btn:hover {
  background: #f0e9ff !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}

/* ---- Section headers ---- */
.lp-section-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--lp-cyan);
  margin-bottom: 8px;
}

/* ---- Divider strip between sections ---- */
.lp-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(91,33,182,.15), rgba(6,182,212,.15), transparent);
  margin: 0;
  border: none;
}

/* ---- Feature highlight row (icon left, text right) ---- */
.lp-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 64px 0;
}
.lp-feature-row.reverse { direction: rtl; }
.lp-feature-row.reverse > * { direction: ltr; }
.lp-feature-text { }
.lp-feature-text .eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--lp-cyan);
  display: block;
  margin-bottom: 12px;
}
.lp-feature-text h3 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: var(--lp-ink);
  margin-bottom: 14px;
  line-height: 1.2;
}
.lp-feature-text p {
  font-size: 16px;
  color: var(--lp-muted);
  line-height: 1.65;
}
.lp-feature-visual {
  background: linear-gradient(135deg, rgba(91,33,182,.07), rgba(6,182,212,.07));
  border: 1px solid rgba(91,33,182,.12);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  font-size: 80px;
  position: relative;
  overflow: hidden;
}
.lp-feature-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(91,33,182,.08), transparent 70%);
}

/* ---- Responsive landing overrides ---- */
@media (max-width: 960px) {
  .landing-page .hero-l { padding: 60px 0 40px; }
  .lp-stats { grid-template-columns: 1fr; padding: 32px 24px; }
  .lp-cta-banner { padding: 40px 24px; }
  .lp-cta-banner h2 { font-size: 28px; }
  .lp-feature-row { grid-template-columns: 1fr; gap: 32px; }
  .lp-feature-row.reverse { direction: ltr; }
}
@media (max-width: 560px) {
  .landing-page .hero-l h1 { font-size: 2rem; letter-spacing: -1px; }
  .lp-stats .lp-stat-num { font-size: 36px; }
  .lp-cta-banner h2 { font-size: 24px; }
}

/* ---- Landing Links & Footer ---- */
.landing-page a {
  color: var(--lp-dp);
}
.landing-page a:hover {
  color: var(--lp-vio);
}
.landing-page .lp-footer {
  margin-top: 80px;
  padding: 48px 0 32px;
  border-top: 1px solid var(--lp-border);
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: var(--lp-muted);
}
.landing-page .lp-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.landing-page .lp-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 17px;
  color: var(--lp-dp);
  text-decoration: none;
}
.landing-page .lp-footer-brand b {
  color: var(--lp-cyan);
}
.landing-page .lp-footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.landing-page .lp-footer-links a {
  color: var(--lp-muted);
  font-size: 14px;
  transition: color 0.15s;
}
.landing-page .lp-footer-links a:hover {
  color: var(--lp-dp);
}
.landing-page .lp-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--lp-subtle);
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid rgba(91,33,182,.06);
  padding-top: 20px;
}

/* ============================================================
   REDESIGN v5 вЂ” landing, device frame, constructor
   ============================================================ */

/* Device frame */
.device {
  position: relative;
  width: 260px;
  max-width: 100%;
  aspect-ratio: 9 / 19.2;
  margin: 0 auto;
}
.device-big { width: 300px; }
.device-screen {
  position: absolute;
  inset: 2.8% 5.5% 3.2%;
  border-radius: 22px;
  overflow: hidden;
  background: #111;
  z-index: 1;
}
.device.has-frame .device-screen { inset: 2.8% 5.2% 3%; border-radius: 22px; }
.device-bezel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  z-index: 2;
}
.device-chrome {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: 36px;
  border: 11px solid #1a1614;
  box-shadow: 0 24px 60px rgba(0,0,0,.35), inset 0 0 0 1px #3a322c;
  background: transparent;
}
.device.fallback-frame {
  background: #111;
  border-radius: 36px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.device.fallback-frame .device-screen {
  /* symmetric insets — content stays centered in the bezel */
  inset: 14px 12px 16px;
  border-radius: 26px;
  z-index: 1;
}
.device-notch {
  position: absolute;
  top: 20px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 16px;
  background: #0a0807;
  border-radius: 12px;
  z-index: 3;
}
.device-bar {
  position: absolute;
  bottom: 10px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 4px;
  background: rgba(255,255,255,.22);
  border-radius: 4px;
  z-index: 3;
}
/* Fill the screen exactly — no transform scale (avoids left/right shift) */
.device-screen iframe,
.device-screen iframe.landing-card-frame {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  margin: 0;
  padding: 0;
  background: #fff;
  pointer-events: none;
  overflow: hidden;
}

/* Inline landing card (no iframe) */
.landing-screen-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 14px 16px;
  overflow: auto;
  background: linear-gradient(165deg, #fff8f2 0%, #ffffff 45%, #f3f0ff 100%);
  color: #1a120c;
  font-family: Manrope, system-ui, sans-serif;
  box-sizing: border-box;
}
.landing-screen-card .lsc-top {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  margin-bottom: 10px;
}
.landing-screen-card .lsc-brand {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #ff7a1a;
}
.landing-screen-card .lsc-brand svg { width: 14px; height: 14px; }
.landing-screen-card .lsc-av {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, #ff7a1a, #ff5e3a);
  color: #fff; font-weight: 800; font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  margin: 6px 0 10px; overflow: hidden;
  box-shadow: 0 8px 20px rgba(255,106,0,.35);
}
.landing-screen-card .lsc-av img { width: 100%; height: 100%; object-fit: cover; }
.landing-screen-card .lsc-name {
  font-family: Fraunces, Georgia, serif;
  font-size: 18px; font-weight: 700; line-height: 1.2;
}
.landing-screen-card .lsc-meta {
  font-size: 12px; color: #7a6558; margin-top: 4px;
}
.landing-screen-card .lsc-bio {
  font-size: 11px; line-height: 1.4; color: #5c4a3f;
  margin: 10px 0 12px; max-width: 22ch;
}
.landing-screen-card .lsc-chips {
  width: 100%; display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px;
}
.landing-screen-card .lsc-chips span {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid rgba(26,18,12,.08);
  border-radius: 12px; padding: 8px 10px; font-size: 11px; font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.landing-screen-card .lsc-chips svg { width: 14px; height: 14px; color: #ff7a1a; flex-shrink: 0; }
.landing-screen-card .lsc-btn {
  margin-top: auto; width: 100%;
  background: linear-gradient(135deg, #ff7a1a, #ff5e3a);
  color: #fff; font-weight: 700; font-size: 12px;
  padding: 10px; border-radius: 12px;
}
.landing-screen-card.theme-corporate { background: linear-gradient(165deg, #eef2ff, #fff 50%, #e8eefc); }
.landing-screen-card.theme-corporate .lsc-av { background: linear-gradient(135deg, #3b5bdb, #4c6ef5); }
.landing-screen-card.theme-corporate .lsc-brand,
.landing-screen-card.theme-corporate .lsc-chips svg { color: #3b5bdb; }
.landing-screen-card.theme-corporate .lsc-btn { background: linear-gradient(135deg, #3b5bdb, #4c6ef5); }
.landing-screen-card.theme-creative { background: linear-gradient(165deg, #fff0f6, #fff 45%, #f3e8ff); }
.landing-screen-card.theme-creative .lsc-av { background: linear-gradient(135deg, #e64980, #be4bdb); }
.landing-screen-card.theme-creative .lsc-brand,
.landing-screen-card.theme-creative .lsc-chips svg { color: #e64980; }
.landing-screen-card.theme-creative .lsc-btn { background: linear-gradient(135deg, #e64980, #be4bdb); }
.device-screen { background: #fff; }

/* Theme mini cards */
.themes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.themes-grid.compact { grid-template-columns: repeat(4, 1fr); }
@media (min-width: 900px) {
  .themes-grid.compact { grid-template-columns: repeat(5, 1fr); }
}
.th-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 6px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: var(--surface-1);
  cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.th-card:hover { border-color: var(--primary); transform: translateY(-1px); }
.th-card.on, .th-card:has(input:checked) {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}
.th-card input { position: absolute; opacity: 0; pointer-events: none; }
.th-name { font-size: 11px; font-weight: 600; color: var(--ink-muted); text-align: center; }
.th-mini {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 8px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  overflow: hidden;
}
.th-mini-av {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,.35); flex-shrink: 0;
}
.th-mini-lines { display: flex; flex-direction: column; gap: 3px; width: 70%; }
.th-mini-lines i { display: block; height: 3px; border-radius: 2px; background: rgba(255,255,255,.45); }
.th-mini-lines i:last-child { width: 55%; opacity: .6; }
.th-mini-btn {
  margin-top: auto;
  width: 70%; height: 8px; border-radius: 4px;
  background: rgba(255,255,255,.55);
}

.th-mini-light { background: #f3f4f6; }
.th-mini-light .th-mini-av { background: #d1d5db; }
.th-mini-light .th-mini-lines i { background: #9ca3af; }
.th-mini-light .th-mini-btn { background: #111827; }
.th-mini-orange { background: linear-gradient(180deg,#fff7ed,#ffedd5); }
.th-mini-orange .th-mini-av { background: #ff6a00; }
.th-mini-orange .th-mini-lines i { background: #fdba74; }
.th-mini-orange .th-mini-btn { background: #ff6a00; }
.th-mini-purple { background: linear-gradient(160deg,#5b21b6,#7c3aed); }
.th-mini-dark { background: #0c0c0f; }
.th-mini-dark .th-mini-av { background: #c9a227; }
.th-mini-dark .th-mini-btn { background: #c9a227; }
.th-mini-burgundy { background: linear-gradient(180deg,#7f1d1d,#be123c); }
.th-mini-glass { background: linear-gradient(135deg,#667eea,#f093fb); }
.th-mini-ocean { background: linear-gradient(160deg,#0c4a6e,#0ea5e9); }
.th-mini-forest { background: linear-gradient(180deg,#14532d,#4d7c0f); }
.th-mini-sand { background: linear-gradient(180deg,#faf6f0,#e8d5b5); }
.th-mini-sand .th-mini-av { background: #b45309; }
.th-mini-sand .th-mini-lines i { background: #d6b896; }
.th-mini-sand .th-mini-btn { background: #b45309; }
.th-mini-rose { background: linear-gradient(180deg,#fff1f2,#fecdd3); }
.th-mini-rose .th-mini-av { background: #e11d48; }
.th-mini-rose .th-mini-btn { background: #e11d48; }
.th-mini-midnight { background: linear-gradient(180deg,#020617,#1e3a5f); }
.th-mini-mint { background: linear-gradient(180deg,#f0fdfa,#99f6e4); }
.th-mini-mint .th-mini-av { background: #0d9488; }
.th-mini-mint .th-mini-lines i { background: #5eead4; }
.th-mini-mint .th-mini-btn { background: #0d9488; }
.th-mini-slate { background: linear-gradient(180deg,#f1f5f9,#cbd5e1); }
.th-mini-slate .th-mini-av { background: #475569; }
.th-mini-slate .th-mini-lines i { background: #94a3b8; }
.th-mini-slate .th-mini-btn { background: #0f172a; }
.th-mini-coral { background: linear-gradient(135deg,#fff7ed,#fda4af); }
.th-mini-coral .th-mini-btn { background: #f97316; }
.th-mini-ink { background: linear-gradient(180deg,#e2e8f0,#0f172a); }
.th-mini-ink .th-mini-btn { background: #f8fafc; }
.th-mini-aurora { background: linear-gradient(135deg,#0f172a,#22d3ee 50%,#a78bfa); }

/* Swatches for admin */
.sw-sand { background: linear-gradient(135deg,#faf6f0,#b45309); }
.sw-rose { background: linear-gradient(135deg,#fff1f2,#e11d48); }
.sw-midnight { background: linear-gradient(135deg,#020617,#38bdf8); }
.sw-mint { background: linear-gradient(135deg,#f0fdfa,#0d9488); }
.sw-slate { background: linear-gradient(135deg,#f1f5f9,#475569); }
.sw-coral { background: linear-gradient(135deg,#fff7ed,#f97316); }
.sw-ink { background: linear-gradient(135deg,#e2e8f0,#0f172a); }
.sw-aurora { background: linear-gradient(135deg,#22d3ee,#a78bfa); }

/* ---- Landing warm redesign ---- */
html.landing-page, body.landing-page {
  background: #fffaf5 !important;
  color: #1a120c !important;
}
body.landing-page .topbar {
  background: rgba(255,250,245,.88) !important;
  border-bottom-color: rgba(255,106,0,.12) !important;
}
body.landing-page .brand { color: #1a120c !important; }
body.landing-page .brand b { color: #ff6a00 !important; }
body.landing-page .topbar nav a { color: #6b5344 !important; }
body.landing-page .topbar nav a:hover { color: #ff6a00 !important; background: rgba(255,106,0,.08); }
body.landing-page .btn {
  background: #ff6a00;
  color: #fff;
  border: none;
  box-shadow: 0 8px 24px rgba(255,106,0,.28);
}
body.landing-page .btn:hover { background: #ff8533; color: #fff; }
body.landing-page .btn-ghost {
  background: transparent;
  color: #1a120c;
  border: 1px solid rgba(26,18,12,.15);
  box-shadow: none;
}
body.landing-page .btn-ghost:hover { background: rgba(255,106,0,.08); color: #ff6a00; border-color: #ff6a00; }

body.landing-page .hero-l {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 48px 0 64px;
  position: relative;
  overflow: hidden;
}
body.landing-page .hero-deco { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
body.landing-page .deco-orb {
  position: absolute;
  width: 280px;
  opacity: .9;
  animation: floaty 8s ease-in-out infinite;
  color: #ff6a00;
  filter: none;
}
body.landing-page .deco-orb.o1 { top: -40px; right: 10%; width: 320px; }
body.landing-page .deco-orb.o2 { bottom: 10%; left: -60px; width: 220px; animation-delay: -3s; color: #ffb347; }
body.landing-page .deco-wave {
  position: absolute;
  bottom: 0; left: 0; width: 100%; height: 120px;
  object-fit: cover;
  color: #ff6a00;
  opacity: .5;
}
body.landing-page .deco-spark {
  position: absolute;
  color: #ff6a00;
  opacity: .35;
  animation: sparkle 3.5s ease-in-out infinite;
}
body.landing-page .deco-spark.s1 { top: 18%; left: 42%; }
body.landing-page .deco-spark.s2 { top: 55%; right: 38%; animation-delay: -1.5s; }
@keyframes floaty {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes sparkle {
  0%,100% { opacity: .2; transform: scale(.9); }
  50% { opacity: .55; transform: scale(1.1); }
}

body.landing-page .hero-copy, body.landing-page .hero-device { position: relative; z-index: 1; }
body.landing-page .brand-hero {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #1a120c;
  margin: 0 0 12px;
}
body.landing-page .brand-hero span { color: #ff6a00; }
body.landing-page .hero-l h1 {
  font-family: Manrope, sans-serif;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #3d2e24;
  margin: 0 0 14px;
  max-width: 28ch;
}
body.landing-page .hero-l .lead {
  color: #6b5344;
  font-size: 16px;
  max-width: 36ch;
  margin: 0;
}
body.landing-page .hero-l .cta { margin: 28px 0 0; }
body.landing-page .hero-device { display: flex; justify-content: center; }
body.landing-page .hero-phone {
  animation: phoneIn .8s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes phoneIn {
  from { opacity: 0; transform: translateY(28px) scale(.96); }
  to { opacity: 1; transform: none; }
}

body.landing-page .lp-section {
  padding: 72px 0 24px;
  text-align: center;
}
body.landing-page .lp-section h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: #1a120c;
  margin: 0 0 8px;
}
body.landing-page .section-lead {
  color: #8a7464;
  margin: 0 0 36px;
  font-size: 15px;
}
body.landing-page .step {
  background: #fff;
  border: 1px solid rgba(255,106,0,.12);
  border-radius: 16px;
  text-align: left;
  position: relative;
  box-shadow: 0 8px 28px rgba(26,18,12,.04);
}
body.landing-page .step:hover { border-color: rgba(255,106,0,.35); background: #fff; }
body.landing-page .step h3 { color: #1a120c; }
body.landing-page .step p { color: #6b5344; }
body.landing-page .step-ico {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: #fff4eb;
  border-radius: 12px;
  color: #ff6a00;
  margin-bottom: 12px;
}
body.landing-page .step-ico img, body.landing-page .step-ico svg { width: 28px; height: 28px; }
body.landing-page .step-n {
  position: absolute; top: 16px; right: 16px;
  font-weight: 700; color: rgba(255,106,0,.35); font-size: 20px;
}
body.landing-page .benefit-card {
  background: #fff;
  border: 1px solid rgba(255,106,0,.12);
  border-radius: 16px;
  padding: 24px;
  text-align: left;
}
body.landing-page .benefit-card h3 { color: #1a120c; margin: 12px 0 8px; font-size: 16px; }
body.landing-page .benefit-card p { color: #6b5344; font-size: 14px; margin: 0; }
body.landing-page .benefit-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,#ff6a00,#ffb347);
  color: #fff;
  border-radius: 12px;
}
body.landing-page .benefit-icon svg { width: 22px; height: 22px; }

body.landing-page .themes-l {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 32px;
}
body.landing-page .th-l {
  background: #fff;
  border: 1px solid rgba(255,106,0,.12);
  border-radius: 14px;
  padding: 10px;
  cursor: pointer;
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: border-color .15s, transform .15s;
  color: #1a120c;
}
body.landing-page .th-l:hover, body.landing-page .th-l.on {
  border-color: #ff6a00;
  transform: translateY(-2px);
}
body.landing-page .th-l b { font-size: 12px; font-weight: 600; }
body.landing-page .th-l .th-mini { width: 72px; }
body.landing-page .themes-demo { display: flex; justify-content: center; margin-top: 8px; }
body.landing-page .themes-phone { width: 280px; }

body.landing-page .lp-cta-banner {
  margin: 64px 0 0;
  padding: 48px 32px;
  border-radius: 24px;
  background: linear-gradient(135deg, #ff6a00, #ff8533 50%, #ffb347);
  color: #fff;
  text-align: center;
  box-shadow: 0 20px 50px rgba(255,106,0,.25);
}
body.landing-page .lp-cta-banner h2 {
  font-family: Fraunces, Georgia, serif;
  color: #fff;
  margin: 0 0 8px;
}
body.landing-page .lp-cta-banner p { color: rgba(255,255,255,.9); margin: 0 0 24px; }
body.landing-page .lp-cta-banner .btn {
  background: #fff;
  color: #ff6a00;
  box-shadow: none;
}
body.landing-page .lp-cta-banner .btn:hover { background: #fff4eb; color: #e65f00; }

body.landing-page .lp-footer {
  border-top-color: rgba(255,106,0,.12) !important;
  color: #8a7464 !important;
}
body.landing-page .lp-footer-brand { color: #1a120c !important; }
body.landing-page .lp-footer-brand b { color: #ff6a00 !important; }
body.landing-page .lp-footer-links a { color: #8a7464 !important; }
body.landing-page .lp-footer-links a:hover { color: #ff6a00 !important; }
body.landing-page .lp-footer-bottom { border-top-color: rgba(255,106,0,.08) !important; color: #a8988a !important; }
body.landing-page a { color: #ff6a00; }
body.landing-page .lp-stats,
body.landing-page .lp-feature-row { display: none !important; }

@media (max-width: 900px) {
  body.landing-page .hero-l {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
    padding: 32px 0 48px;
  }
  body.landing-page .hero-l .lead { margin: 0 auto; }
  body.landing-page .hero-l .cta { justify-content: center; }
  body.landing-page .hero-device { order: -1; }
  body.landing-page .hero-phone, body.landing-page .device-big { width: 220px; }
  body.landing-page .themes-l { grid-template-columns: repeat(3, 1fr); }
  body.landing-page .grid3 { grid-template-columns: 1fr; }
}

/* ---- Constructor / dashboard ---- */
.dash-page .panel-sub { margin: 4px 0 0; font-size: 13px; }
.tabs {
  display: flex;
  gap: 4px;
  margin: 16px 0;
  padding: 4px;
  background: var(--surface-2);
  border-radius: 12px;
  border: 1px solid var(--hairline);
}
.tab {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--ink-subtle);
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 9px;
  cursor: pointer;
  transition: .15s;
}
.tab:hover { color: var(--ink); }
.tab.on { background: var(--surface-1); color: var(--ink); box-shadow: 0 0 0 1px var(--hairline-strong); }
.tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.tab-panel { display: none; }
.tab-panel.on { display: block; }
.fs-clean {
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 16px;
  margin: 0 0 14px;
  background: var(--surface-1);
}
.fs-clean legend {
  padding: 0 8px;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-muted);
}

.contacts-builder { display: flex; flex-direction: column; gap: 12px; }
.contact-row {
  display: grid;
  grid-template-columns: 24px 28px 1fr auto;
  gap: 8px;
  align-items: start;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: var(--surface-2);
}
.contact-row.dragging { opacity: .5; }
.contact-row .drag { cursor: grab; color: var(--ink-tertiary); display: flex; align-items: center; padding-top: 28px; }
.contact-row .ico { color: var(--primary); display: flex; align-items: center; padding-top: 26px; }
.contact-row .ico svg, .contact-row .ico img { width: 20px; height: 20px; }
.contact-row label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ink-subtle); }
.contact-row input { font-size: 14px; }
.contact-row .sub-label { grid-column: 3; font-size: 12px; }
.contact-row .icon-x {
  border: 0; background: transparent; color: var(--ink-tertiary);
  cursor: pointer; padding: 8px; margin-top: 20px; border-radius: 8px;
}
.contact-row .icon-x:hover { color: var(--danger); background: rgba(229,62,62,.1); }
.add-contacts { display: flex; flex-direction: column; gap: 8px; }
.add-label { font-size: 13px; font-weight: 600; color: var(--ink-muted); display: inline-flex; align-items: center; gap: 6px; }
.add-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px dashed var(--hairline-strong);
  background: transparent;
  color: var(--ink-muted);
  font: inherit; font-size: 12px; font-weight: 600;
  cursor: pointer;
}
.chip:hover { border-color: var(--primary); color: var(--primary); background: rgba(255,106,0,.08); }
.chip svg, .chip img { width: 16px; height: 16px; }

.style-opts { display: grid; gap: 16px; }
.opt-block h3 { font-size: 13px; margin: 0 0 8px; color: var(--ink-muted); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg-item { cursor: pointer; }
.seg-item input { position: absolute; opacity: 0; }
.seg-item span {
  display: block;
  padding: 8px 12px;
  border-radius: 9px;
  border: 1px solid var(--hairline);
  font-size: 12px; font-weight: 600;
  color: var(--ink-subtle);
  background: var(--surface-2);
}
.seg-item:has(input:checked) span,
.seg-item input:checked + span {
  border-color: var(--primary);
  color: var(--ink);
  background: rgba(255,106,0,.12);
}
.accent-row { display: flex; align-items: center; gap: 12px; }
.accent-row input[type=color] {
  width: 48px; height: 36px; border: 0; padding: 0;
  background: transparent; cursor: pointer;
}

.onboard {
  background: linear-gradient(135deg, rgba(255,106,0,.12), rgba(255,179,71,.08));
  border: 1px solid rgba(255,106,0,.25);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.onboard-bar { height: 4px; background: var(--hairline); border-radius: 4px; overflow: hidden; margin-bottom: 10px; }
.onboard-bar i { display: block; height: 100%; background: var(--primary); border-radius: 4px; transition: width .3s; }
.onboard-steps { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; font-weight: 600; color: var(--ink-tertiary); margin-bottom: 6px; }
.onboard-steps .on { color: var(--primary); }
.onboard-tip { margin: 0; font-size: 13px; color: var(--ink-muted); }

.preview-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.preview-live { font-size: 11px; color: var(--success); font-weight: 700; letter-spacing: .04em; }
.preview-live.busy { color: var(--ink-tertiary); }
.preview-skel {
  position: absolute; inset: 40px 20px;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2));
  background-size: 200% 100%;
  animation: skel 1s linear infinite;
  z-index: 5;
}
@keyframes skel { to { background-position: -200% 0; } }
.preview { position: sticky; top: 72px; }
.preview .device { margin-bottom: 16px; }
.preview .phone { display: none; }

.empty-panel { padding: 24px; text-align: center; }

.linkbox .btn svg { width: 14px; height: 14px; vertical-align: -2px; }
.ct-ico { display: flex; justify-content: center; color: var(--primary); margin-bottom: 4px; }
.ct-ico svg { width: 28px; height: 28px; }
.ok-big { font-size: 0; width: 56px; height: 56px; margin: 0 auto 12px; color: var(--primary); }
.ok-big svg { width: 48px; height: 48px; }

body.auth-bg .auth-sub { margin: -8px 0 16px; }

@media (max-width: 1100px) {
  .themes-grid.compact { grid-template-columns: repeat(4, 1fr); }
}



/* ============================================================
   v6 — modern landing + card-type previews
   ============================================================ */

/* Reset warm landing to a cleaner, more premium base */
html.landing-page, body.landing-page {
  background: var(--lp-bg) !important;
  color: var(--lp-ink) !important;
}
body.landing-page .topbar {
  background: var(--lp-topbar) !important;
  border-bottom-color: var(--lp-border) !important;
}
body.landing-page .brand { color: var(--lp-ink) !important; }
body.landing-page .brand b { color: #ff7a1a !important; }
body.landing-page .topbar nav a { color: var(--lp-muted) !important; }
body.landing-page .topbar nav a:hover { color: var(--lp-ink) !important; background: var(--lp-chip); }
body.landing-page .btn {
  background: linear-gradient(135deg,#ff7a1a,#ff5e3a); color: #fff; border: none;
  box-shadow: 0 10px 30px -12px rgba(255,106,0,.65);
}
body.landing-page .topbar nav a.btn:not(.btn-ghost) { color: #fff !important; }
body.landing-page .btn:hover { filter: brightness(1.06); color: #fff; }
body.landing-page .btn-ghost {
  background: var(--lp-card); color: var(--lp-ink) !important; border: 1px solid var(--lp-border-h); box-shadow: none;
}
body.landing-page .topbar nav a.btn-ghost { color: var(--lp-ink) !important; }
body.landing-page .btn-ghost:hover { background: var(--lp-card-h); color: var(--lp-ink) !important; border-color: #ff7a1a; }
body.landing-page a { color: var(--lp-tag); }
.wrap-wide { max-width: 1160px; }

/* HERO */
.hero6 {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 48px;
  padding: 64px 0 72px;
  min-height: calc(100vh - 56px);
}
.hero6-glow {
  position: absolute; inset: -20% -10% auto -10%; height: 70%;
  background: radial-gradient(60% 80% at 25% 20%, var(--lp-glow1), transparent 60%),
             radial-gradient(50% 70% at 85% 10%, var(--lp-glow2), transparent 60%);
  filter: blur(20px); z-index: 0; pointer-events: none;
}
.hero6-copy, .hero6-device { position: relative; z-index: 1; }
.hero6 .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--lp-card); border: 1px solid var(--lp-border);
  font-size: 13px; font-weight: 600; color: var(--lp-eyebrow);
}
.hero6 .eyebrow svg { width: 16px; height: 16px; color: #ff7a1a; }
.hero6 h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 600; line-height: 1.04; letter-spacing: -0.02em;
  margin: 20px 0 16px; color: var(--lp-ink);
}
.hero6 .lead { font-size: 18px; line-height: 1.55; color: var(--lp-muted); max-width: 40ch; margin: 0; }
.hero6 .cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 22px; }
.hero6-trust { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--lp-muted); }
.hero6-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero6-trust svg { width: 15px; height: 15px; color: #35c26a; }
.hero6-device { display: flex; justify-content: center; }
.hero-phone { width: 300px; animation: phoneIn .8s cubic-bezier(.2,.8,.2,1) both; }
@keyframes phoneIn { from { opacity: 0; transform: translateY(26px) scale(.96); } to { opacity: 1; transform: none; } }

/* Generic section */
.lp6 { padding: 80px 0 24px; }
.lp6-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.lp6-tag {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: var(--lp-tag-bg); color: var(--lp-tag); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px;
}
.lp6-head h2 { font-family: 'Fraunces', Georgia, serif; font-size: clamp(1.8rem,3.2vw,2.6rem); font-weight: 600; letter-spacing: -0.02em; color: var(--lp-ink); margin: 0 0 10px; }
.lp6-lead { color: var(--lp-muted); font-size: 16px; margin: 0; }

/* TYPES showcase */
.types6-wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: start; }
.types6-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.type6 {
  display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 10px; border-radius: 16px; cursor: pointer; font: inherit;
  background: var(--lp-card); border: 1px solid var(--lp-border); box-shadow: var(--lp-shadow);
  color: var(--lp-ink); transition: border-color .15s, background .15s, transform .12s;
}
.type6:hover { border-color: rgba(255,122,26,.5); transform: translateY(-2px); }
.type6.on { border-color: #ff7a1a; background: var(--lp-tag-bg); box-shadow: 0 0 0 1px #ff7a1a inset; }
.type6 .tpl-mini { width: 54px; flex-shrink: 0; }
.type6-meta b { display: block; font-size: 14px; font-weight: 700; }
.type6-meta small { display: block; font-size: 12px; color: var(--lp-muted); margin-top: 2px; }
.types6-demo { position: sticky; top: 72px; display: flex; justify-content: center; }
.types6-demo .device,
.types6-demo .device-big,
.types6-demo .themes-phone { width: 280px !important; }

/* STEPS */
.steps6 .grid3, .bene6 .grid3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.step6 {
  position: relative; padding: 26px 22px; border-radius: 18px;
  background: var(--lp-card); border: 1px solid var(--lp-border); box-shadow: var(--lp-shadow);
}
.step6-n { font-family: 'Fraunces', serif; font-size: 14px; color: #ff7a1a; font-weight: 600; }
.step6-ic { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 13px; background: var(--lp-tag-bg); color: var(--lp-tag); margin: 12px 0; }
.step6-ic svg { width: 24px; height: 24px; }
.step6 h3 { font-size: 17px; color: var(--lp-ink); margin: 0 0 6px; }
.step6 p { color: var(--lp-muted); font-size: 14px; margin: 0; line-height: 1.5; }

/* BENEFITS */
.bene6-card { padding: 26px 22px; border-radius: 18px; background: var(--lp-card); border: 1px solid var(--lp-border); box-shadow: var(--lp-shadow); }
.bene6-ic { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 13px; background: linear-gradient(135deg,#ff7a1a,#ff5e3a); color: #fff; margin-bottom: 14px; }
.bene6-ic svg { width: 23px; height: 23px; }
.bene6-card h3 { font-size: 17px; color: var(--lp-ink); margin: 0 0 6px; }
.bene6-card p { color: var(--lp-muted); font-size: 14px; margin: 0; line-height: 1.5; }

/* CTA */
.cta6 {
  margin: 72px 0 0; padding: 56px 32px; border-radius: 28px; text-align: center;
  background: linear-gradient(135deg,#ff7a1a,#ff5e3a 55%,#db2777);
  box-shadow: 0 30px 70px -30px rgba(255,94,58,.6);
}
.cta6 h2 { font-family: 'Fraunces', serif; font-size: clamp(1.6rem,3vw,2.3rem); color: #fff; margin: 0 0 10px; }
.cta6 p { color: rgba(255,255,255,.9); margin: 0 0 24px; }
.cta6 .btn { background: #fff; color: #db2777; box-shadow: none; }
.cta6 .btn:hover { background: #fff4fa; color: #be185d; }

/* FOOTER */
.foot6 { margin-top: 72px; padding: 40px 0; border-top: 1px solid var(--lp-border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
body.landing-page .foot6-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--lp-ink); }
.foot6-brand b { color: #ff7a1a; }
.foot6-links { display: flex; gap: 20px; }
body.landing-page .foot6-links a { color: var(--lp-muted); font-size: 14px; }
body.landing-page .foot6-links a:hover { color: var(--lp-ink); }
.foot6-copy { color: var(--lp-subtle); font-size: 13px; }

@media (max-width: 900px) {
  .hero6 { grid-template-columns: 1fr; text-align: center; min-height: auto; padding: 40px 0 56px; }
  .hero6 .lead { margin: 0 auto; }
  .hero6 .cta, .hero6-trust { justify-content: center; }
  .hero6-device { order: -1; }
  .hero-phone { width: 230px; }
  .types6-wrap { grid-template-columns: 1fr; }
  .types6-demo { order: -1; position: static; }
  .steps6 .grid3, .bene6 .grid3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .types6-list { grid-template-columns: 1fr; }
}

/* ============================================================
   CARD-TYPE MINI PREVIEWS (shared: landing + dashboard)
   ============================================================ */
.tpl-mini {
  --m-bg: #f4f5f8; --m-ac: #ff6a00; --m-bar: #c7ccd4; --m-tile: #fff;
  position: relative; display: block; width: 100%; aspect-ratio: 4/5;
  border-radius: 10px; overflow: hidden; background: var(--m-bg);
  padding: 9px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.tpl-mini .tm-av { display: block; width: 26%; aspect-ratio: 1; border-radius: 50%; background: var(--m-ac); margin: 2px auto 5px; }
.tpl-mini .tm-name { display: block; width: 56%; height: 5px; border-radius: 3px; background: var(--m-bar); margin: 0 auto 3px; }
.tpl-mini .tm-sub { display: block; width: 38%; height: 4px; border-radius: 3px; background: var(--m-ac); opacity: .8; margin: 0 auto 8px; }
.tpl-mini .tm-body { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.tpl-mini .tm-body i { display: block; height: 14px; border-radius: 4px; background: var(--m-tile); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.tpl-mini .tm-bg { display: none; }

/* layout-specific arrangement */
.tpl-mini.lay-stack .tm-body { grid-template-columns: 1fr; gap: 4px; }
.tpl-mini.lay-stack .tm-body i { height: 10px; border-radius: 999px; }
.tpl-mini.lay-side { }
.tpl-mini.lay-side .tm-av { width: 22%; margin: 2px 0 6px 2px; }
.tpl-mini.lay-side .tm-name, .tpl-mini.lay-side .tm-sub { margin-left: 0; }
.tpl-mini.lay-side .tm-body { grid-template-columns: 1fr; }
.tpl-mini.lay-side .tm-body i { height: 9px; }
.tpl-mini.lay-cover { padding-top: 0; }
.tpl-mini.lay-cover .tm-bg { display: block; position: absolute; top: 0; left: 0; right: 0; height: 42%; background: var(--m-ac); }
.tpl-mini.lay-cover .tm-av { position: relative; margin-top: 28%; width: 30%; box-shadow: 0 0 0 2px var(--m-bg); }
.tpl-mini.lay-cover .tm-body { padding: 0 9px 9px; }
.tpl-mini.lay-icons .tm-body { display: flex; justify-content: center; gap: 5px; padding-top: 2px; }
.tpl-mini.lay-icons .tm-body i { width: 15px; height: 15px; border-radius: 50%; }

/* palettes */
.tpl-mini-classic   { --m-bg:#f4f5f8; --m-ac:#ff6a00; --m-bar:#c7ccd4; --m-tile:#fff; }
.tpl-mini-stack     { --m-bg:linear-gradient(180deg,#fff6ed,#ffe8d6); --m-ac:#f97316; --m-bar:#e9c6a8; --m-tile:#fff; }
.tpl-mini-corporate { --m-bg:#ffffff; --m-ac:#2563eb; --m-bar:#cdd5e2; --m-tile:#eef3ff; box-shadow: inset 0 0 0 1px #e2e7ef; }
.tpl-mini-corporate .tm-bg { display:block; position:absolute; top:0; left:0; right:0; height:5px; background:#2563eb; }
.tpl-mini-creative  { --m-bg:#ffffff; --m-ac:#db2777; --m-bar:#f3c9de; --m-tile:#ffe6f1; }
.tpl-mini-creative.lay-cover .tm-bg { background: linear-gradient(135deg,#db2777,#f97316); }
.tpl-mini-elegant   { --m-bg:#0e0d0c; --m-ac:#c9a227; --m-bar:#4a4332; --m-tile:rgba(201,162,39,.16); box-shadow: inset 0 0 0 1px rgba(201,162,39,.25); }
.tpl-mini-minimal   { --m-bg:#ffffff; --m-ac:#111827; --m-bar:#e5e7eb; --m-tile:#f5f6f8; box-shadow: inset 0 0 0 1px #ececf0; }
.tpl-mini-neon      { --m-bg:#07080f; --m-ac:#22d3ee; --m-bar:#2a3350; --m-tile:rgba(34,211,238,.16); box-shadow: inset 0 0 0 1px rgba(34,211,238,.3); }
.tpl-mini-vibrant   { --m-bg:linear-gradient(140deg,#ff6a00,#f43f5e 55%,#a21caf); --m-ac:#fff; --m-bar:rgba(255,255,255,.55); --m-tile:rgba(255,255,255,.22); }

/* ============================================================
   DASHBOARD template picker
   ============================================================ */
.tpl-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.tpl-card {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  padding: 10px; border-radius: 14px; cursor: pointer;
  background: var(--surface-1); border: 1px solid var(--hairline);
  transition: border-color .15s, transform .12s;
}
.tpl-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.tpl-card.on, .tpl-card:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.tpl-card input { position: absolute; opacity: 0; pointer-events: none; }
.tpl-meta b { display: block; font-size: 13px; font-weight: 700; color: var(--ink); }
.tpl-meta small { display: block; font-size: 11px; color: var(--ink-subtle); margin-top: 1px; }
.opt-hint { font-weight: 500; color: var(--ink-tertiary); font-size: 12px; }

@media (max-width: 1100px) { .tpl-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 640px) { .tpl-grid { grid-template-columns: repeat(2,1fr); } }

/* admin swatches for template ids */
.sw-classic{background:#ff6a00}.sw-stack{background:linear-gradient(135deg,#fff6ed,#f97316)}
.sw-corporate{background:#2563eb}.sw-creative{background:linear-gradient(135deg,#db2777,#f97316)}
.sw-elegant{background:linear-gradient(135deg,#0e0d0c,#c9a227)}.sw-minimal{background:#111827}
.sw-neon{background:linear-gradient(135deg,#07080f,#22d3ee)}.sw-vibrant{background:linear-gradient(140deg,#ff6a00,#a21caf)}

/* mini + swatches for ticket & poster */
.tpl-mini.lay-ticket .tm-av { width: 20%; border-radius: 4px; margin: 4px 0 6px 2px; }
.tpl-mini.lay-ticket .tm-name, .tpl-mini.lay-ticket .tm-sub { margin-left: 0; }
.tpl-mini.lay-ticket .tm-body { grid-template-columns: 1fr; gap: 3px; }
.tpl-mini.lay-ticket .tm-body i { height: 7px; border-style: dashed; }
.tpl-mini.lay-poster .tm-av { width: 34%; margin: 2px 2px 6px auto; border-radius: 3px; box-shadow: 3px 3px 0 var(--m-ac); }
.tpl-mini.lay-poster .tm-name { width: 70%; height: 7px; margin-left: 0; }
.tpl-mini.lay-poster .tm-body { grid-template-columns: 1fr; }
.tpl-mini.lay-poster .tm-body i { height: 9px; border-radius: 0; border-left: 3px solid var(--m-ac); }

.tpl-mini-ticket { --m-bg:#e2e8f0; --m-ac:#0f172a; --m-bar:#94a3b8; --m-tile:#fff; box-shadow: inset 0 0 0 1px #cbd5e1; }
.tpl-mini-poster { --m-bg:#fff7ed; --m-ac:#ea580c; --m-bar:#d6d3d1; --m-tile:#fff; }

.sw-ticket{background:linear-gradient(135deg,#e2e8f0,#0f172a)}
.sw-poster{background:linear-gradient(135deg,#fff7ed,#ea580c)}

/* landing type grid: 10 items look better in denser grid */
.types6-list { grid-template-columns: 1fr 1fr; }
@media (min-width: 1100px) {
  .tpl-grid { grid-template-columns: repeat(5, 1fr); }
}

/* mini + swatches: academic & coder */
.tpl-mini.lay-academic .tm-av { margin: 6px auto 5px; box-shadow: 0 0 0 2px var(--m-ac); }
.tpl-mini.lay-academic .tm-name { height: 5px; }
.tpl-mini.lay-academic .tm-sub { width: 28%; height: 2px; margin: 4px auto 8px; }
.tpl-mini.lay-coder .tm-bg { display:block; position:absolute; top:0; left:0; right:0; height:10px; background:rgba(255,255,255,.06); }
.tpl-mini.lay-coder .tm-av { width: 18%; border-radius: 3px; margin: 14px 0 5px 4px; }
.tpl-mini.lay-coder .tm-name, .tpl-mini.lay-coder .tm-sub { margin-left: 4px; }
.tpl-mini.lay-coder .tm-body { grid-template-columns: 1fr; gap: 2px; padding: 0 4px; }
.tpl-mini.lay-coder .tm-body i { height: 6px; border-radius: 2px; }

.tpl-mini-academic { --m-bg:#f7f1e5; --m-ac:#7f1d1d; --m-bar:#a8a29e; --m-tile:#faf6ee; box-shadow: inset 0 0 0 1px #d6d3d1; }
.tpl-mini-coder { --m-bg:#0d1117; --m-ac:#3fb950; --m-bar:#6e7681; --m-tile:#21262d; box-shadow: inset 0 0 0 1px #30363d; }

.sw-academic{background:linear-gradient(135deg,#f7f1e5,#7f1d1d)}
.sw-coder{background:linear-gradient(135deg,#0d1117,#3fb950)}

/* ============================================================
   v7 — site light/dark theme, language switcher, theme toggle
   ============================================================ */
.topbar { background: var(--topbar-bg); }
.topbar nav { gap: 6px; }
.site-tools { display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; padding-left: 12px; border-left: 1px solid var(--hairline); }
.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--hairline); }
.topbar nav .lang-switch a, .lang-switch a {
  padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em;
  color: var(--ink-subtle) !important; background: transparent; line-height: 1.3;
}
.topbar nav .lang-switch a:hover { color: var(--ink) !important; background: transparent; }
.topbar nav .lang-switch a.on, .lang-switch a.on { background: var(--surface-1); color: var(--ink) !important; box-shadow: 0 1px 2px rgba(17,19,24,.12); }
html[data-theme="dark"] .lang-switch a.on { background: var(--surface-4); box-shadow: none; }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 999px; cursor: pointer; padding: 0;
  background: var(--surface-2); border: 1px solid var(--hairline); color: var(--ink);
  transition: background .15s, border-color .15s, transform .2s;
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); }
.theme-toggle:active { transform: rotate(-20deg) scale(.94); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .ic-sun { display: none; }
html[data-theme="dark"] .theme-toggle .ic-sun { display: block; }
html[data-theme="dark"] .theme-toggle .ic-moon { display: none; }

body.landing-page .lang-switch { background: var(--lp-chip); border-color: var(--lp-border); }
body.landing-page .topbar nav .lang-switch a { color: var(--lp-muted) !important; }
body.landing-page .topbar nav .lang-switch a.on { color: var(--lp-ink) !important; background: var(--lp-card); }
html[data-theme="dark"] body.landing-page .topbar nav .lang-switch a.on { background: rgba(255,255,255,.12); }
body.landing-page .theme-toggle { background: var(--lp-chip); border-color: var(--lp-border); color: var(--lp-ink); }
body.landing-page .site-tools { border-left-color: var(--lp-border); }

.side-tools { margin-top: auto; padding: 12px 4px 4px; }

/* light theme surfaces */
.auth, .panel, .modal-in { box-shadow: var(--shadow-soft); }
.modal { background: var(--overlay) !important; }
.alert { color: #b42318; background: rgba(229,62,62,.08); border-color: rgba(229,62,62,.25); }
html[data-theme="dark"] .alert { color: #fc8181; background: rgba(229,62,62,.12); }
.auth input, input, textarea, select { background: var(--field-bg); }

.b-new, .st-new             { color: #4338ca; }
.b-work, .st-work           { color: #a16207; }
.b-printed, .st-printed     { color: #7e22ce; }
.b-delivered, .st-delivered { color: #15803d; }
.b-canceled, .st-canceled   { color: #b91c1c; }
html[data-theme="dark"] .b-new, html[data-theme="dark"] .st-new             { color: #a5adfd; }
html[data-theme="dark"] .b-work, html[data-theme="dark"] .st-work           { color: #f6c745; }
html[data-theme="dark"] .b-printed, html[data-theme="dark"] .st-printed     { color: #c084fc; }
html[data-theme="dark"] .b-delivered, html[data-theme="dark"] .st-delivered { color: #4ade80; }
html[data-theme="dark"] .b-canceled, html[data-theme="dark"] .st-canceled   { color: #fc8181; }

html, body, .topbar, .panel, .auth, input, textarea, select { transition: background-color .2s, color .2s, border-color .2s; }

@media (max-width: 720px) {
  .topbar { padding: 0 12px; }
  .site-tools { margin-left: 2px; padding-left: 6px; gap: 4px; }
  .topbar nav .lang-switch a { padding: 3px 6px; font-size: 11px; }
  .theme-toggle { width: 30px; height: 30px; }
}

/* ============================================================
   v8 — DARK INDIGO LANDING (шаблон-стиль)
   Palette: #020817 bg · indigo #6366f1 · cyan #06b6d4 · emerald #10b981
   ============================================================ */

body.landing-dark {
  background: #020817 !important;
  color: #f1f5f9 !important;
}
body.landing-dark .topbar {
  background: rgba(2,8,23,.88) !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
body.landing-dark .brand { color: #f1f5f9 !important; }
body.landing-dark .brand b { color: #6366f1 !important; }
body.landing-dark .logo { color: #6366f1 !important; }
body.landing-dark .topbar nav a { color: #94a3b8 !important; }
body.landing-dark .topbar nav a:hover { color: #f1f5f9 !important; background: rgba(255,255,255,.06) !important; }
body.landing-dark .topbar nav a.btn:not(.btn-ghost) { color: #fff !important; }
body.landing-dark .btn {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff; border: none;
  box-shadow: 0 8px 24px rgba(99,102,241,.35); border-radius: 12px;
}
body.landing-dark .btn:hover {
  background: linear-gradient(135deg, #6366f1, #818cf8);
  box-shadow: 0 12px 32px rgba(99,102,241,.5); color: #fff; filter: none;
}
body.landing-dark .btn-ghost {
  background: transparent !important; color: #cbd5e1 !important;
  border: 1px solid rgba(255,255,255,.15) !important; box-shadow: none !important;
}
body.landing-dark .btn-ghost:hover {
  background: rgba(255,255,255,.06) !important; color: #f1f5f9 !important;
  border-color: rgba(255,255,255,.3) !important;
}
body.landing-dark a { color: #818cf8; }
body.landing-dark a:hover { color: #a5b4fc; }

/* Promo ribbon */
.lp-promo-ribbon {
  background: linear-gradient(90deg, #4f46e5, #6366f1 50%, #06b6d4);
  color: #fff; font-size: 13px; font-weight: 600;
  padding: 9px 16px; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  position: relative; z-index: 60;
}
.lp-promo-ribbon .promo-badge {
  background: rgba(255,255,255,.2); padding: 2px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.lp-promo-ribbon a { color: #fff !important; font-weight: 700; text-decoration: underline; opacity: .9; }
.lp-promo-ribbon a:hover { opacity: 1; }

/* Hero dark overrides */
body.landing-dark .hero6 { min-height: calc(100vh - 94px); }
body.landing-dark .hero6-glow {
  background:
    radial-gradient(60% 80% at 15% 20%, rgba(99,102,241,.25), transparent 60%),
    radial-gradient(50% 70% at 85% 10%, rgba(6,182,212,.15), transparent 60%);
}
body.landing-dark .hero6 h1 { color: #f1f5f9; }
body.landing-dark .hero6 .lead { color: #94a3b8; }
body.landing-dark .hero6 .eyebrow {
  background: rgba(255,255,255,.05); border-color: rgba(99,102,241,.3); color: #a5b4fc;
}
body.landing-dark .hero6 .eyebrow svg { color: #10b981; }
body.landing-dark .hero6-trust { color: #64748b; }
body.landing-dark .hero6-trust svg { color: #10b981; }
body.landing-dark .grad {
  background: linear-gradient(135deg, #6366f1 0%, #06b6d4 50%, #10b981 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; display: inline;
}

/* Hero metrics */
.hero6-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  padding: 24px 0 0; border-top: 1px solid rgba(255,255,255,.08); margin-top: 16px;
}
.hero6-metric-num { font-size: 26px; font-weight: 800; color: #f1f5f9; letter-spacing: -1px; line-height: 1; }
.hero6-metric-label { font-size: 12px; color: #64748b; margin-top: 4px; }

/* Section heading dark */
body.landing-dark .lp6-tag { background: rgba(99,102,241,.15); color: #818cf8; }
body.landing-dark .lp6-head h2 { color: #f1f5f9; }
body.landing-dark .lp6-lead { color: #94a3b8; }

/* Steps dark */
body.landing-dark .step6 { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07); }
body.landing-dark .step6:hover { border-color: rgba(99,102,241,.4); background: rgba(99,102,241,.05); }
body.landing-dark .step6-n { color: #6366f1; }
body.landing-dark .step6-ic { background: rgba(99,102,241,.15); color: #818cf8; }
body.landing-dark .step6 h3 { color: #f1f5f9; }
body.landing-dark .step6 p { color: #94a3b8; }

/* Benefits dark */
body.landing-dark .bene6-card { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07); }
body.landing-dark .bene6-card h3 { color: #f1f5f9; }
body.landing-dark .bene6-card p { color: #94a3b8; }
body.landing-dark .bene6-ic { background: linear-gradient(135deg,#4f46e5,#6366f1); }

/* Types dark */
body.landing-dark .type6 { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.07); color: #f1f5f9; }
body.landing-dark .type6:hover { border-color: rgba(99,102,241,.5); background: rgba(99,102,241,.06); }
body.landing-dark .type6.on { border-color: #6366f1; background: rgba(99,102,241,.12); }
body.landing-dark .type6-meta small { color: #64748b; }

/* CTA dark */
body.landing-dark .cta6 {
  background: linear-gradient(135deg, #4338ca, #4f46e5 45%, #06b6d4);
  box-shadow: 0 30px 70px -30px rgba(99,102,241,.55);
}
body.landing-dark .cta6 .btn { background: #fff; color: #4338ca; }
body.landing-dark .cta6 .btn:hover { background: #e0e7ff; color: #3730a3; }

/* Footer dark */
body.landing-dark .foot6 { border-top-color: rgba(255,255,255,.08) !important; }
body.landing-dark .foot6-brand { color: #f1f5f9 !important; }
body.landing-dark .foot6-brand b { color: #6366f1 !important; }
body.landing-dark .foot6-links a { color: #64748b !important; }
body.landing-dark .foot6-links a:hover { color: #f1f5f9 !important; }
body.landing-dark .foot6-copy { color: #475569 !important; }

/* Tool toggles dark */
body.landing-dark .lang-switch { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); }
body.landing-dark .topbar nav .lang-switch a { color: #64748b !important; }
body.landing-dark .topbar nav .lang-switch a.on { color: #f1f5f9 !important; background: rgba(255,255,255,.1); }
body.landing-dark .theme-toggle { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); color: #94a3b8; }
body.landing-dark .site-tools { border-left-color: rgba(255,255,255,.08); }

/* ---- Comparison section ---- */
.lp-compare { padding: 72px 0; border-top: 1px solid rgba(255,255,255,.07); border-bottom: 1px solid rgba(255,255,255,.07); }
.lp-compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 860px; margin: 40px auto 0; }
.lp-compare-card { padding: 32px 28px; border-radius: 24px; position: relative; overflow: hidden; }
.lp-compare-card.bad  { background: rgba(244,63,94,.04); border: 1px solid rgba(244,63,94,.18); }
.lp-compare-card.good { background: rgba(16,185,129,.04); border: 1px solid rgba(16,185,129,.25); box-shadow: 0 8px 40px rgba(16,185,129,.06); }
.lp-compare-card .glow-blob { position: absolute; top: 0; right: 0; width: 96px; height: 96px; border-radius: 50%; filter: blur(24px); pointer-events: none; }
.lp-compare-card.bad  .glow-blob { background: rgba(244,63,94,.14); }
.lp-compare-card.good .glow-blob { background: rgba(16,185,129,.2); }
.lp-compare-title { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 700; margin-bottom: 24px; }
.lp-compare-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.bad  .lp-compare-icon { background: rgba(244,63,94,.12); }
.good .lp-compare-icon { background: rgba(16,185,129,.12); }
.bad  .lp-compare-title { color: #f43f5e; }
.good .lp-compare-title { color: #10b981; }
.lp-compare-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.lp-compare-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; }
.lp-compare-list li .ic { flex-shrink: 0; margin-top: 1px; font-size: 16px; }
.bad  .lp-compare-list li { color: #94a3b8; }
.good .lp-compare-list li { color: #cbd5e1; }
.bad  .lp-compare-list li .ic { color: #f43f5e; }
.good .lp-compare-list li .ic { color: #10b981; }

/* ---- Calculator section ---- */
.lp-calc { padding: 72px 0; }
.lp-calc-box {
  max-width: 900px; margin: 0 auto;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  border-radius: 28px; padding: 48px; position: relative; overflow: hidden;
}
.lp-calc-box::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 10% 50%, rgba(99,102,241,.08), transparent 50%),
              radial-gradient(circle at 90% 50%, rgba(6,182,212,.06), transparent 50%);
  pointer-events: none;
}
.lp-calc-box > * { position: relative; z-index: 1; }
.lp-calc-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.lp-calc-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #06b6d4; margin-bottom: 8px; }
.lp-calc-title { font-size: clamp(1.3rem, 2.5vw, 1.7rem); font-weight: 700; color: #f1f5f9; margin: 0 0 24px; letter-spacing: -0.4px; line-height: 1.2; }
.lp-range-group { margin-bottom: 20px; }
.lp-range-header { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 10px; color: #cbd5e1; }
.lp-range-header .val { font-weight: 800; color: #818cf8; }
.lp-range-header .val.em { color: #10b981; }
input[type=range].lp-range {
  width: 100%; height: 6px; border-radius: 6px;
  background: rgba(255,255,255,.12); border: 0; padding: 0;
  appearance: none; -webkit-appearance: none; cursor: pointer; outline: none;
  transition: none;
}
input[type=range].lp-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.3); transition: box-shadow .15s;
}
input[type=range].lp-range:hover::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(99,102,241,.4); }
.lp-calc-result {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09);
  border-radius: 20px; padding: 28px; text-align: center;
}
.lp-calc-result-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #64748b; margin-bottom: 8px; }
.lp-calc-result-val { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; color: #f43f5e; letter-spacing: -1.5px; line-height: 1; margin-bottom: 4px; }
.lp-calc-divider { border: 0; border-top: 1px solid rgba(255,255,255,.07); margin: 16px 0; }
.lp-calc-nfc-price { font-size: 18px; font-weight: 800; color: #f1f5f9; }
.lp-calc-nfc-note { font-size: 12px; color: #64748b; margin-top: 4px; }
.lp-calc-cta { margin-top: 16px; }
.lp-calc-cta .btn { width: 100%; font-size: 13px; padding: 10px 16px; border-radius: 10px; }

/* ---- NFC Cards showcase ---- */
.lp-nfc-cards { padding: 72px 0; border-top: 1px solid rgba(255,255,255,.07); }
.lp-nfc-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.lp-nfc-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #06b6d4; margin-bottom: 10px; }
.lp-nfc-title { font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 700; color: #f1f5f9; margin: 0 0 12px; letter-spacing: -0.4px; line-height: 1.2; }
.lp-nfc-desc { font-size: 15px; color: #94a3b8; line-height: 1.6; margin: 0 0 28px; }
.lp-material-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.lp-material-item {
  padding: 14px 18px; border-radius: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  transition: border-color .15s, background .15s;
}
.lp-material-item.active { background: rgba(255,255,255,.05); border: 2px solid #6366f1; }
.lp-material-item.inactive { background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.07); }
.lp-material-item.inactive:hover { border-color: rgba(255,255,255,.2); }
.lp-material-left { display: flex; align-items: center; gap: 14px; }
.lp-material-icon { font-size: 22px; }
.lp-material-name { font-size: 14px; font-weight: 700; color: #f1f5f9; }
.lp-material-desc { font-size: 12px; color: #64748b; margin-top: 2px; }
.lp-material-price { font-size: 14px; font-weight: 800; color: #f1f5f9; white-space: nowrap; }
.lp-card-render-wrap { display: flex; justify-content: center; align-items: center; }
.lp-card-render {
  width: 100%; max-width: 420px;
  background: linear-gradient(135deg, #020817 0%, #0f172a 50%, #1e293b 100%);
  border: 1px solid rgba(255,255,255,.15); border-radius: 20px;
  padding: 28px 32px; height: 210px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 32px 64px rgba(0,0,0,.5); transition: all .5s ease;
  position: relative; overflow: hidden;
}
.lp-card-render::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(99,102,241,.08), transparent);
  pointer-events: none;
}
.lp-card-render-top { display: flex; justify-content: space-between; align-items: flex-start; }
.lp-card-brand-text { font-weight: 800; letter-spacing: .1em; font-size: 13px; color: #94a3b8; }
.lp-card-wifi { font-size: 28px; color: #06b6d4; transform: rotate(90deg); display: inline-block; }
.lp-card-name { font-size: 20px; font-weight: 900; letter-spacing: .05em; color: #f1f5f9; text-transform: uppercase; }
.lp-card-subrole { font-size: 12px; color: #64748b; margin-top: 2px; }
.lp-card-foot { display: flex; justify-content: space-between; font-size: 10px; color: #475569; letter-spacing: .08em; }

/* ---- Reviews section ---- */
.lp-reviews { padding: 72px 0; border-top: 1px solid rgba(255,255,255,.07); }
.lp-reviews-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 40px; }
.lp-review-card {
  padding: 24px; border-radius: 20px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color .2s, background .2s;
}
.lp-review-card:hover { border-color: rgba(99,102,241,.3); background: rgba(99,102,241,.04); }
.lp-review-stars { color: #f59e0b; font-size: 13px; letter-spacing: 2px; }
.lp-review-text { font-size: 14px; color: #94a3b8; line-height: 1.6; font-style: italic; flex: 1; }
.lp-review-author { display: flex; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.07); }
.lp-review-avatar {
  width: 38px; height: 38px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: #fff; flex-shrink: 0;
}
.lp-review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.lp-review-name { font-size: 13px; font-weight: 700; color: #f1f5f9; }
.lp-review-role { font-size: 11px; color: #64748b; }

/* Responsive new sections */
@media (max-width: 900px) {
  .lp-compare-grid { grid-template-columns: 1fr; }
  .lp-calc-inner { grid-template-columns: 1fr; }
  .lp-nfc-inner { grid-template-columns: 1fr; }
  .lp-reviews-grid { grid-template-columns: 1fr 1fr; }
  .lp-calc-box { padding: 28px 20px; }
}
@media (max-width: 560px) {
  .lp-reviews-grid { grid-template-columns: 1fr; }
  .hero6-metrics { gap: 10px; }
  .hero6-metric-num { font-size: 20px; }
}

/* ---- Landing main container (lp-main) ---- */
.lp-main {
  max-width: 100%;
  padding: 0;
  margin: 0;
}
.lp-main > .hero6 {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.lp-main > .lp6,
.lp-main > .steps6,
.lp-main > .bene6 {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
.lp-main > .cta6 {
  max-width: 1160px;
  margin: 72px auto 0;
  padding-left: 0;
  padding-right: 0;
}
.lp-main > .foot6 {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ===== Landing overhaul: solo hero, types sides, carousel, light theme ===== */
.hero6.hero6-solo {
  grid-template-columns: 1fr !important;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  min-height: auto !important;
  padding: 48px 0 64px;
}
.hero6.hero6-solo .hero6-copy { max-width: 720px; margin: 0 auto; }
.hero6.hero6-solo .cta { justify-content: center; }
.hero6.hero6-solo .hero6-trust { justify-content: center; }
.hero6.hero6-solo .hero6-metrics { justify-content: center; }

.types6-wrap.types6-sides {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 300px) 1fr;
  gap: 20px 24px;
  align-items: center;
}
.types6-sides .types6-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.types6-sides .type6 {
  width: 100%;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--lp-card, rgba(255,255,255,.04));
  border: 1px solid var(--lp-border, rgba(255,255,255,.08));
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.types6-sides .type6 .tpl-mini { width: 58px; height: 72px; }
.types6-sides .type6.on {
  border-color: #818cf8;
  box-shadow: 0 0 0 1px #818cf8 inset, 0 12px 28px rgba(99,102,241,.2);
  transform: translateY(-2px);
}
.types6-sides .types6-demo { display: flex; justify-content: center; }
.types6-sides .themes-phone { width: 280px !important; }

.lp-reviews-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  gap: 12px;
  align-items: center;
  margin: 32px 0 40px;
}
.lp-reviews-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 0;
  scrollbar-width: none;
}
.lp-reviews-track::-webkit-scrollbar { display: none; }
.lp-reviews-track .lp-review-card,
.lp-reviews-track .lp-reviews-empty {
  flex: 0 0 100%;
  scroll-snap-align: center;
  min-height: 200px;
  box-sizing: border-box;
}
.lp-reviews-nav {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: #f1f5f9; font-size: 22px; cursor: pointer;
}
.lp-reviews-nav:hover { background: rgba(99,102,241,.25); }
.lp-review-form {
  max-width: 640px; margin: 0 auto;
  padding: 24px; border-radius: 20px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  display: flex; flex-direction: column; gap: 12px;
}
.lp-review-form h3 { margin: 0 0 4px; font-size: 1.15rem; }
.lp-review-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lp-review-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.lp-review-form input, .lp-review-form textarea {
  border-radius: 12px; border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25); color: inherit; padding: 10px 12px; font: inherit;
}
.lp-review-thanks { margin-bottom: 16px; }
.lp-calc-payback { font-size: 13px; font-weight: 400; opacity: .7; }

.adm-form { max-width: 720px; display: flex; flex-direction: column; gap: 14px; }
.adm-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.adm-form input, .adm-form textarea {
  font: inherit; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--border, #ddd); background: var(--surface-1, #fff);
}
.adm-grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

/* Light landing */
body.landing-light {
  --lp-bg: #f6f7fb;
  --lp-ink: #0f172a;
  --lp-muted: #64748b;
  --lp-card: #ffffff;
  --lp-border: rgba(15,23,42,.08);
  --lp-tag: #4f46e5;
  --lp-tag-bg: rgba(79,70,229,.1);
  background: var(--lp-bg) !important;
  color: var(--lp-ink) !important;
}
body.landing-light .topbar {
  background: rgba(255,255,255,.86) !important;
  border-bottom-color: rgba(15,23,42,.08) !important;
}
body.landing-light .brand { color: #0f172a !important; }
body.landing-light .brand b { color: #4f46e5 !important; }
body.landing-light .topbar nav a { color: #64748b !important; }
body.landing-light .topbar nav a:hover { color: #0f172a !important; background: rgba(79,70,229,.08) !important; }
body.landing-light .btn {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff; border: none;
}
body.landing-light .btn-ghost {
  background: #fff; color: #0f172a !important;
  border: 1px solid rgba(15,23,42,.12); box-shadow: none;
}
body.landing-light .hero6 h1 { color: #0f172a; }
body.landing-light .hero6 .lead,
body.landing-light .hero6-trust,
body.landing-light .lp6-lead { color: #64748b; }
body.landing-light .lp6-head h2,
body.landing-light .lp-calc-title,
body.landing-light .lp-nfc-title { color: #0f172a; }
body.landing-light .lp6-tag { background: var(--lp-tag-bg); color: var(--lp-tag); }
body.landing-light .lp-compare-card,
body.landing-light .lp-calc-box,
body.landing-light .type6,
body.landing-light .lp-review-card,
body.landing-light .lp-review-form,
body.landing-light .step6,
body.landing-light .bene6-card {
  background: #fff;
  border-color: rgba(15,23,42,.08);
  color: #0f172a;
}
body.landing-light .lp-review-text { color: #475569; }
body.landing-light .lp-review-name { color: #0f172a; }
body.landing-light .lp-reviews-nav {
  background: #fff; color: #0f172a; border-color: rgba(15,23,42,.12);
}
body.landing-light .lp-promo-ribbon {
  background: linear-gradient(90deg, #4f46e5, #06b6d4);
  color: #fff;
}
body.landing-light .lp-review-form input,
body.landing-light .lp-review-form textarea {
  background: #f8fafc; border-color: rgba(15,23,42,.12); color: #0f172a;
}
body.landing-light .cta6 { background: linear-gradient(135deg, #eef2ff, #ecfeff); }
body.landing-light .foot6 { color: #64748b; border-top-color: rgba(15,23,42,.08); }

@media (max-width: 1020px) {
  .types6-wrap.types6-sides {
    grid-template-columns: 1fr;
  }
  .types6-sides .types6-demo { order: -1; margin-bottom: 8px; }
  .types6-sides .types6-left,
  .types6-sides .types6-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}
@media (max-width: 640px) {
  .types6-sides .types6-left,
  .types6-sides .types6-right { grid-template-columns: 1fr; }
  .lp-review-form-grid { grid-template-columns: 1fr; }
  .adm-grid3 { grid-template-columns: 1fr; }
  .lp-reviews-carousel { grid-template-columns: 32px 1fr 32px; }
}

/* Fix: light metrics contrast + solo hero height + types phone */
.hero6-metric-num { color: #0f172a; }
body.landing-dark .hero6-metric-num { color: #f1f5f9; }
body.landing-light .hero6-metric-num { color: #0f172a; }
body.landing-light .hero6-metric-label { color: #64748b; }

body.landing-dark .hero6.hero6-solo,
body.landing-light .hero6.hero6-solo {
  min-height: auto !important;
  padding: 40px 0 56px !important;
}

body.landing-light .hero6-glow {
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(99,102,241,.18), transparent 70%);
}

.types6-wrap.types6-sides .themes-phone,
.types6-wrap.types6-sides .device-big {
  width: min(280px, 100%) !important;
  margin: 0 auto;
}
.types6-wrap.types6-sides .device-screen {
  background: #fff;
  min-height: 420px;
}

main.lp-main {
  max-width: none;
  width: 100%;
  padding: 0;
}
main.wrap.lp-main { max-width: none; }

/* ===== From шаблон/landing_page_nfc_cards.html ===== */
html { scroll-behavior: smooth; }

@keyframes lp-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}
@keyframes lp-glow {
  0% { box-shadow: 0 0 20px rgba(99,102,241,.3); }
  100% { box-shadow: 0 0 40px rgba(6,182,212,.6); }
}
@keyframes lp-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(.85); }
}
@keyframes lp-fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

.lp-float { animation: lp-float 4s ease-in-out infinite; }
.lp-glow-ring { animation: lp-glow 2.4s ease-in-out infinite alternate; border-radius: 36px; }

.gradient-text,
body.landing-page .grad {
  background: linear-gradient(135deg, #6366f1 0%, #06b6d4 50%, #10b981 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lp-pulse-dot { display: inline-flex; align-items: center; gap: 8px; }
.lp-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16,185,129,.25);
  animation: lp-dot-pulse 1.6s ease-in-out infinite;
}

.lp-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--d, 0s);
}
.lp-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Section bands — чёткое разделение как в шаблоне */
body.landing-page .lp-band {
  position: relative;
  padding: 72px 0;
  border-top: 1px solid transparent;
}
body.landing-dark .lp-band {
  border-top-color: rgba(255,255,255,.06);
}
body.landing-light .lp-band {
  border-top-color: rgba(15,23,42,.06);
}
body.landing-dark .lp-band-alt {
  background: rgba(15, 23, 42, .55);
  border-top-color: rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
body.landing-light .lp-band-alt {
  background: rgba(241, 245, 249, .9);
  border-top-color: rgba(15,23,42,.08);
  border-bottom: 1px solid rgba(15,23,42,.06);
}

.glass-panel {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
body.landing-dark .glass-panel {
  background: rgba(15, 23, 42, .72) !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
body.landing-light .glass-panel {
  background: rgba(255,255,255,.82) !important;
  border: 1px solid rgba(15,23,42,.08) !important;
  box-shadow: 0 20px 50px rgba(15,23,42,.08);
}

body.landing-page .topbar {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
body.landing-dark .topbar {
  background: rgba(2, 6, 23, .78) !important;
}

body.landing-dark .hero6-glow {
  background: radial-gradient(circle at 50% 20%, rgba(99,102,241,.22) 0%, rgba(6,182,212,.1) 40%, transparent 70%) !important;
}

body.landing-page .btn.btn-lg {
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}
body.landing-page .btn.btn-lg:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}
body.landing-page .type6,
body.landing-page .step6,
body.landing-page .bene6-card,
body.landing-page .lp-compare-card {
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}
body.landing-page .type6:hover,
body.landing-page .step6:hover,
body.landing-page .bene6-card:hover {
  transform: translateY(-3px);
}
body.landing-dark .lp-compare-card.good {
  box-shadow: 0 20px 50px rgba(16,185,129,.08);
  border-color: rgba(16,185,129,.35);
}
body.landing-dark .lp-compare-card.bad {
  border-color: rgba(244,63,94,.25);
}

body.landing-page .cta6 {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  margin: 48px auto 32px;
  padding: 56px 32px;
}
body.landing-dark .cta6 {
  background: linear-gradient(135deg, rgba(79,70,229,.35), rgba(6,182,212,.2)) !important;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 24px 60px rgba(99,102,241,.15);
}

@media (prefers-reduced-motion: reduce) {
  .lp-float, .lp-glow-ring, .lp-dot { animation: none !important; }
  .lp-reveal { opacity: 1; transform: none; transition: none; }
}
