/* ONIX CLOUD — Личный кабинет
 * Палитра и типографика синхронизированы с лендингом cloud.0n1x.ru
 */

@keyframes lk-spin { to { transform: rotate(360deg); } }
.lk-spinner { animation: lk-spin 0.8s linear infinite; }

:root {
  --grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  --grad-soft: linear-gradient(135deg, rgba(99,102,241,.18), rgba(139,92,246,.14), rgba(236,72,153,.18));
  --bg: #050510;
  --bg-2: #0a0a18;
  --card: rgba(20, 20, 32, 0.72);
  --card-hover: rgba(28, 28, 44, 0.85);
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text: #f5f5fa;
  --muted: #8a8aa0;
  --muted-2: #b6b6c8;
  --ok: #10b981;
  --warn: #f59e0b;
  --err: #ef4444;
  --primary: #8b5cf6;
  --primary-2: #6366f1;
  --pink: #ec4899;
  --shadow-glow: 0 0 40px rgba(139, 92, 246, .25);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body {
  background-image:
    radial-gradient(1200px 700px at 20% 0%, rgba(99,102,241,.15), transparent 60%),
    radial-gradient(900px 600px at 80% 10%, rgba(236,72,153,.12), transparent 60%),
    radial-gradient(1000px 700px at 50% 100%, rgba(139,92,246,.12), transparent 60%);
}

a { color: #c4b5fd; text-decoration: none; transition: color .15s ease; }
a:hover { color: #f0abfc; }

.lk-container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Шапка */
.lk-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 5, 16, 0.78);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid var(--border);
}
.lk-nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.lk-logo {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 19px; color: var(--text);
}
.lk-logo img { width: 34px; height: 34px; border-radius: 50%; }
.lk-logo span {
  background: var(--grad); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.lk-nav-links { display: flex; gap: 4px; align-items: center; }
.lk-nav-links a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 10px; font-size: 14px; font-weight: 500;
  color: var(--muted-2);
}
.lk-nav-links a:hover { background: rgba(255,255,255,.04); color: var(--text); }
.lk-nav-links a.active {
  background: rgba(139, 92, 246, .12);
  color: #ddd6fe;
  border: 1px solid rgba(139, 92, 246, .25);
}
.lk-nav-links a i { font-size: 13px; opacity: .85; }
.lk-nav-actions { display: flex; align-items: center; gap: 10px; }

.lk-burger {
  display: none; background: none; border: 0; padding: 8px; color: var(--text); cursor: pointer;
  font-size: 22px;
}

@media (max-width: 880px) {
  .lk-nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0;
    background: rgba(5,5,16,.96); backdrop-filter: blur(18px); flex-direction: column;
    padding: 12px; gap: 4px; border-bottom: 1px solid var(--border);
  }
  .lk-nav-links.open { display: flex; }
  .lk-nav-links a { width: 100%; }
  .lk-burger { display: inline-flex; }
}

/* Контент */
.lk-main { padding: 28px 0 60px; min-height: calc(100vh - 70px); }
.lk-page-title { font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.lk-page-subtitle { color: var(--muted); font-size: 14px; margin-bottom: 24px; }

/* Карточки */
.card {
  background: var(--card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow-card);
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--border-strong); }
.card-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.card-title i { color: var(--primary); font-size: 14px; }
.card-subtitle { color: var(--muted); font-size: 13px; margin-bottom: 14px; }

/* Сетки */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* Хиро-плитки */
.tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.tile::before {
  content: ''; position: absolute; inset: 0;
  background: var(--grad-soft);
  opacity: .6;
  pointer-events: none;
}
.tile > * { position: relative; z-index: 1; }
.tile-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--muted); }
.tile-value { font-size: 26px; font-weight: 800; margin-top: 6px; line-height: 1.1; }
.tile-value.small { font-size: 18px; word-break: break-all; }
.tile-meta { font-size: 12px; color: var(--muted-2); margin-top: 8px; }

/* Прогрессбар */
.progress {
  width: 100%; height: 8px; background: rgba(255,255,255,.06);
  border-radius: 999px; overflow: hidden; margin-top: 10px;
}
.progress > span {
  display: block; height: 100%; background: var(--grad);
  border-radius: 999px; transition: width .4s ease;
}

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; font-weight: 600; font-size: 14px;
  border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  text-decoration: none; line-height: 1; white-space: nowrap;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px rgba(139, 92, 246, .35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(139, 92, 246, .45); }
.btn-secondary {
  background: rgba(255,255,255,.04);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: rgba(255,255,255,.08); }
.btn-ghost { background: transparent; color: var(--muted-2); }
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,.04); }
.btn-danger { background: rgba(239,68,68,.14); color: #fca5a5; border-color: rgba(239,68,68,.4); }
.btn-danger:hover { background: rgba(239,68,68,.22); color: #fff; }
.btn-sm { padding: 8px 12px; font-size: 13px; border-radius: 10px; }
.btn-block { display: flex; width: 100%; }

/* Формы */
.form-row { margin-bottom: 14px; }
.form-label {
  display: block; font-size: 12px; text-transform: uppercase;
  letter-spacing: 1.2px; color: var(--muted); margin-bottom: 6px; font-weight: 600;
}
.form-input, .form-select {
  width: 100%; background: rgba(5,5,16,.72);
  border: 1px solid var(--border-strong);
  color: var(--text); padding: 12px 14px; font-size: 14px;
  border-radius: 12px; outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
  font-family: inherit;
}
.form-input:focus, .form-select:focus {
  border-color: rgba(139,92,246,.6);
  box-shadow: 0 0 0 4px rgba(139,92,246,.18);
}
.form-input::placeholder { color: rgba(138,138,160,.7); }
.form-help { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* Чипы / Бейджи */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: rgba(255,255,255,.05); border: 1px solid var(--border-strong); color: var(--muted-2);
}
.chip-ok { background: rgba(16,185,129,.13); color: #6ee7b7; border-color: rgba(16,185,129,.4); }
.chip-warn { background: rgba(245,158,11,.13); color: #fcd34d; border-color: rgba(245,158,11,.4); }
.chip-err { background: rgba(239,68,68,.13); color: #fca5a5; border-color: rgba(239,68,68,.4); }
.chip-purple { background: rgba(139,92,246,.16); color: #c4b5fd; border-color: rgba(139,92,246,.4); }

/* Таблицы */
.lk-table { width: 100%; border-collapse: collapse; }
.lk-table th, .lk-table td {
  text-align: left; padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.lk-table th {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--muted); font-weight: 700;
}
.lk-table tr:last-child td { border-bottom: 0; }

/* Toasts */
.toast-stack { position: fixed; top: 80px; right: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 1000; max-width: 380px; }
.toast {
  background: rgba(20,20,32,.95);
  border: 1px solid var(--border-strong);
  border-radius: 12px; padding: 12px 14px; color: var(--text);
  font-size: 13px; box-shadow: 0 12px 24px rgba(0,0,0,.4);
  display: flex; align-items: flex-start; gap: 10px;
  animation: toastIn .25s ease;
}
.toast.success { border-color: rgba(16,185,129,.5); }
.toast.error { border-color: rgba(239,68,68,.5); }
.toast i { margin-top: 2px; opacity: .85; }
@keyframes toastIn { from { transform: translateX(40px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Tabs */
.tabs { display: flex; gap: 6px; padding: 6px; background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.tab-btn {
  flex: 1 1 auto; min-width: 100px; padding: 10px 14px; border: 0; background: transparent; border-radius: 10px;
  color: var(--muted-2); font-weight: 600; font-size: 13px; cursor: pointer;
  transition: all .15s ease;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(139,92,246,.35); }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* Code box */
.code-box {
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  background: rgba(5,5,16,.72); border: 1px solid var(--border-strong);
  border-radius: 12px; padding: 12px 14px; font-size: 13px;
  word-break: break-all; line-height: 1.6; color: var(--text);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.code-box .copy-btn { flex: none; }

/* Алерты */
.alert {
  padding: 12px 14px; border-radius: 12px; margin-bottom: 14px;
  font-size: 14px; line-height: 1.55; border: 1px solid var(--border-strong);
  display: flex; align-items: flex-start; gap: 10px;
}
.alert i { margin-top: 2px; font-size: 14px; }
.alert.success { background: rgba(16,185,129,.1); border-color: rgba(16,185,129,.4); color: #d1fae5; }
.alert.error { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.4); color: #fecaca; }
.alert.info { background: rgba(99,102,241,.1); border-color: rgba(99,102,241,.4); color: #e0e7ff; }
.alert.warn { background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.4); color: #fde68a; }

/* Hero */
.hero-tile {
  background: var(--card); border: 1px solid var(--border); border-radius: 22px;
  padding: 22px; position: relative; overflow: hidden;
}
.hero-tile::before {
  content: ''; position: absolute; inset: -1px;
  background: var(--grad); opacity: .12; z-index: 0; filter: blur(40px);
}
.hero-tile > * { position: relative; z-index: 1; }

/* QR */
.qr-card { display: flex; align-items: center; gap: 18px; }
.qr-card img { width: 160px; height: 160px; border-radius: 14px; background: #fff; padding: 8px; }
@media (max-width: 640px) {
  .qr-card { flex-direction: column; }
  .qr-card img { width: 200px; height: 200px; }
}

/* Footer-ish summary */
.lk-footer-note { text-align: center; color: var(--muted); font-size: 12px; margin-top: 30px; padding: 20px 0; }

/* Avatar */
.avatar {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(139,92,246,.4);
}

/* Утилиты */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 6px; } .gap-2 { gap: 10px; } .gap-3 { gap: 16px; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 14px; } .mt-3 { margin-top: 20px; } .mt-4 { margin-top: 30px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 14px; } .mb-3 { margin-bottom: 20px; }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.text-xs { font-size: 12px; }
.text-sm { font-size: 13px; }
.text-lg { font-size: 18px; }
.font-bold { font-weight: 700; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* Рекавери коды */
.recovery-codes {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px;
  font-family: 'JetBrains Mono', monospace; font-size: 14px;
}
.recovery-codes div {
  background: rgba(5,5,16,.72); border: 1px solid var(--border-strong);
  border-radius: 8px; padding: 8px 10px; text-align: center;
}

/* =============================================================
 * Landing (LK-style) — крупная типографика, секции, hero, тарифы,
 * отзывы, FAQ-аккордеон, табы установки, рефералка.
 * Совместимы с темой LK (dark + glass + Inter + grad).
 * ============================================================= */

/* Большой hero на главной */
.lkx-hero {
  position: relative;
  padding: 60px 0 40px;
  overflow: hidden;
}
.lkx-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(800px 500px at 12% 20%, rgba(99,102,241,.18), transparent 60%),
    radial-gradient(700px 500px at 88% 30%, rgba(236,72,153,.16), transparent 60%);
  pointer-events: none; z-index: 0;
}
.lkx-hero > * { position: relative; z-index: 1; }

.lkx-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 920px) { .lkx-hero-grid { grid-template-columns: 1fr; gap: 32px; } }

.lkx-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(139,92,246,.12); border: 1px solid rgba(139,92,246,.4);
  color: #c4b5fd; font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: 1.5px;
}
.lkx-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #10b981; box-shadow: 0 0 10px rgba(16,185,129,.7);
  animation: lkxPulse 2s ease infinite;
}
@keyframes lkxPulse { 0%,100% { transform: scale(1); opacity: 1 } 50% { transform: scale(1.25); opacity: .7 } }

.lkx-h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800; line-height: 1.05; letter-spacing: -1px;
  margin: 18px 0 14px;
  background: linear-gradient(135deg, #ffffff 0%, #c4b5fd 60%, #f0abfc 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lkx-lead {
  font-size: 17px; color: var(--muted-2);
  max-width: 540px; line-height: 1.6;
}

.lkx-hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.lkx-hero-chips .chip { font-size: 13px; padding: 7px 14px; }

.lkx-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.btn-lg { padding: 14px 24px; font-size: 15px; border-radius: 14px; }

.lkx-hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-top: 28px;
}
.lkx-hero-stat {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.lkx-hero-stat .v {
  font-size: 22px; font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lkx-hero-stat .l { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.2px; }

/* Hero визуал — плавающая карточка статуса */
.lkx-hero-visual {
  position: relative; min-height: 380px;
  display: flex; align-items: center; justify-content: center;
}
.lkx-hero-visual::before {
  content: ''; position: absolute; inset: 0;
  background: var(--grad); filter: blur(80px); opacity: .25; border-radius: 50%;
}
.lkx-status-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 360px;
  background: var(--card); backdrop-filter: blur(28px);
  border: 1px solid var(--border-strong);
  border-radius: 22px; padding: 22px;
  box-shadow: var(--shadow-glow), var(--shadow-card);
}
.lkx-status-card__head {
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 700; font-size: 14px;
  padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.lkx-status-card__title { display: flex; align-items: center; gap: 8px; }
.lkx-status-card__title i { color: #10b981; }
.lkx-status-card__chip { font-size: 11px; padding: 3px 10px; border-radius: 999px;
  background: rgba(16,185,129,.18); color: #6ee7b7; font-weight: 700; }

.lkx-status-card__country {
  display: flex; align-items: center; gap: 12px;
  margin: 16px 0; font-size: 16px; font-weight: 600;
}
.lkx-status-card__country span:first-child {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.lkx-status-card__metrics {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  margin-top: 14px;
}
.lkx-status-card__metric {
  background: rgba(5,5,16,.55); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px;
}
.lkx-status-card__metric .l { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.lkx-status-card__metric .v { font-size: 16px; font-weight: 800; margin-top: 4px; }

/* Заголовки секций */
.lkx-section { padding: 70px 0; }
.lkx-section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.lkx-section-title {
  font-size: clamp(28px, 4vw, 40px); font-weight: 800;
  margin-bottom: 12px; letter-spacing: -0.5px;
}
.lkx-section-subtitle { color: var(--muted-2); font-size: 16px; }

/* "Как это работает" */
.lkx-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px) { .lkx-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .lkx-steps { grid-template-columns: 1fr; } }
.lkx-step { position: relative; }
.lkx-step__num {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--grad); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px;
  box-shadow: 0 6px 18px rgba(139,92,246,.35);
  margin-bottom: 14px;
}
.lkx-step h3 { font-size: 17px; margin-bottom: 6px; }
.lkx-step p { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* "Почему ONIX" — фичи */
.lkx-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 980px) { .lkx-features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .lkx-features { grid-template-columns: 1fr; } }
.lkx-feature {
  position: relative; padding: 22px;
}
.lkx-feature__icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(99,102,241,.2), rgba(236,72,153,.18));
  border: 1px solid var(--border-strong);
}
.lkx-feature__icon i {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lkx-feature h3 { font-size: 17px; margin-bottom: 6px; }
.lkx-feature p { color: var(--muted-2); font-size: 14px; line-height: 1.6; }

/* Тарифы */
.lkx-pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 980px) { .lkx-pricing { grid-template-columns: 1fr; } }

.lkx-plan {
  position: relative; padding: 26px;
  display: flex; flex-direction: column;
  border-radius: 20px;
}
.lkx-plan.popular {
  border-color: rgba(139,92,246,.55);
  box-shadow: 0 20px 60px rgba(139,92,246,.25);
  transform: translateY(-4px);
}
.lkx-plan.popular::after {
  content: ''; position: absolute; inset: -1px;
  border-radius: 20px;
  background: var(--grad);
  z-index: -1; opacity: .35; filter: blur(20px);
}
.lkx-plan__badge {
  position: absolute; top: -12px; right: 22px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--grad); color: #fff; font-weight: 700; font-size: 11px;
  letter-spacing: 1px; text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(139,92,246,.35);
}
.lkx-plan__icon { font-size: 32px; margin-bottom: 12px; }
.lkx-plan__name { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.lkx-plan__sub { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.lkx-plan__devices {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  font-size: 12px; color: var(--muted-2); margin-bottom: 16px;
}
.lkx-plan__price {
  font-size: 28px; font-weight: 800; margin: 8px 0 4px;
}
.lkx-plan__price .ccy { font-size: 18px; opacity: .8; }
.lkx-plan__price-note { color: var(--muted); font-size: 12px; margin-bottom: 18px; }
.lkx-plan__features { list-style: none; padding: 0; margin: 0 0 18px; flex: 1; }
.lkx-plan__features li {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0; font-size: 13px; color: var(--muted-2);
}
.lkx-plan__features li i { color: #10b981; font-size: 12px; }

.lkx-plan__buys { display: flex; flex-direction: column; gap: 8px; }
.lkx-plan__buy {
  position: relative;
}
.lkx-plan__save {
  position: absolute; top: -8px; right: -4px;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(16,185,129,.18); color: #6ee7b7; font-size: 10px; font-weight: 700;
  border: 1px solid rgba(16,185,129,.4);
}

/* Команда */
.lkx-team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 760px; margin: 0 auto; }
@media (max-width: 640px) { .lkx-team { grid-template-columns: 1fr; } }
.lkx-team-card { padding: 24px; text-align: center; }
.lkx-team__avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--grad); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 26px; margin-bottom: 14px;
  box-shadow: 0 10px 30px rgba(139,92,246,.4);
}
.lkx-team__name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.lkx-team__role { color: var(--primary); font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.lkx-team__bio { color: var(--muted-2); font-size: 13px; line-height: 1.6; }

/* Отзывы */
.lkx-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 980px) { .lkx-reviews { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .lkx-reviews { grid-template-columns: 1fr; } }
.lkx-review { padding: 22px; }
.lkx-review__stars { color: #fbbf24; font-size: 14px; letter-spacing: 2px; margin-bottom: 10px; }
.lkx-review__text { color: var(--muted-2); font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.lkx-review__author { display: flex; align-items: center; gap: 10px; }
.lkx-review__avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--grad); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}
.lkx-review__name { font-size: 13px; font-weight: 700; }
.lkx-review__city { font-size: 12px; color: var(--muted); }

/* FAQ — аккордеон */
.lkx-faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.lkx-faq-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; transition: border-color .2s ease;
}
.lkx-faq-item.open { border-color: rgba(139,92,246,.35); }
.lkx-faq-q {
  width: 100%; background: none; border: 0; color: var(--text);
  text-align: left; padding: 18px 22px; font: inherit; font-weight: 600; font-size: 15px;
  cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; transition: background .15s ease;
}
.lkx-faq-q:hover { background: rgba(255,255,255,.03); }
.lkx-faq-q i { color: var(--primary); transition: transform .2s ease; }
.lkx-faq-item.open .lkx-faq-q i { transform: rotate(180deg); }
.lkx-faq-a {
  max-height: 0; overflow: hidden; transition: max-height .35s ease;
}
.lkx-faq-a-inner {
  padding: 0 22px 22px; color: var(--muted-2); font-size: 14px; line-height: 1.65;
}

/* Установка — табы и контент */
.lkx-install { max-width: 920px; margin: 0 auto; }
.lkx-install .tabs { justify-content: center; }
.lkx-install-body { padding: 26px; }
.lkx-install-body h3 { margin-bottom: 6px; font-size: 20px; }
.lkx-install-body .lkx-install-sub { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.lkx-install-step { display: flex; gap: 16px; margin-top: 22px; }
.lkx-install-step__num {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.lkx-install-step__body h4 { font-size: 15px; margin-bottom: 6px; }
.lkx-install-step__body p { color: var(--muted-2); font-size: 14px; line-height: 1.6; }
.lkx-install-step__body .btn { margin-top: 10px; }

/* Реферал mini-блок */
.lkx-cta {
  position: relative;
  background: var(--card); border: 1px solid var(--border-strong);
  border-radius: 22px; padding: 40px;
  text-align: center; overflow: hidden;
}
.lkx-cta::before {
  content: ''; position: absolute; inset: 0;
  background: var(--grad-soft); opacity: .9; pointer-events: none;
}
.lkx-cta > * { position: relative; }
.lkx-cta h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 12px; }
.lkx-cta p { color: var(--muted-2); margin-bottom: 22px; max-width: 520px; margin-left: auto; margin-right: auto; }
.lkx-cta .lkx-bonus-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 24px; }
.lkx-cta .lkx-bonus {
  background: rgba(5,5,16,.55); border: 1px solid var(--border-strong);
  border-radius: 14px; padding: 12px 18px; min-width: 160px;
}
.lkx-cta .lkx-bonus .num {
  font-size: 22px; font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lkx-cta .lkx-bonus .lbl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

/* Footer landing */
.lkx-foot {
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
  margin-top: 50px;
  color: var(--muted);
  font-size: 13px;
}
.lkx-foot-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 30px; margin-bottom: 30px;
}
@media (max-width: 880px) { .lkx-foot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .lkx-foot-grid { grid-template-columns: 1fr; } }
.lkx-foot h4 { color: var(--text); font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 14px; }
.lkx-foot ul { list-style: none; padding: 0; margin: 0; }
.lkx-foot li { padding: 5px 0; }
.lkx-foot a { color: var(--muted-2); }
.lkx-foot a:hover { color: var(--text); }
.lkx-foot-bottom {
  border-top: 1px solid var(--border); padding-top: 18px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; font-size: 12px;
}

/* ===================================================================
 * МОБИЛЬНАЯ АДАПТАЦИЯ — единый раздел для всего ЛК и лендинга
 * Подход: tablet ≤ 880px (узкая ширина и burger), phone ≤ 560px (компакт),
 *         narrow phone ≤ 420px (минимальные паддинги, перенос всего).
 * =================================================================== */

/* tablet */
@media (max-width: 880px) {
  .lk-container { padding: 0 16px; }
  .lk-header { padding: 0; }
  .lk-nav { padding: 12px 0; }
  .lk-logo span { font-size: 15px; }
  .lk-main { padding: 18px 0 40px; }
  .card { padding: 16px; border-radius: 16px; }
  .lk-page-title { font-size: 22px; }
  .lk-page-subtitle { font-size: 13px; margin-bottom: 18px; }
  .grid-4, .grid-3, .grid-2 { gap: 12px; }
  .toast-stack { top: 70px; right: 10px; left: 10px; max-width: none; }

  /* Таблицы (payments, sessions, devices) — горизонтальный скролл вместо обрезания */
  .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-scroll table { min-width: 640px; }

  /* Кнопки в формах login/register/security — на всю ширину */
  form .btn:not(.btn-sm) { width: 100%; justify-content: center; }
  form .btn + .btn { margin-top: 8px; }

  /* Длинные code-block / referral-link — переносим */
  code, pre { word-break: break-all; white-space: pre-wrap; }

  /* «Подписка одним кликом» CTA — крупнее тач-таргет */
  .lk-onesub-cta { padding: 22px 18px; font-size: 17px; }
  .lk-onesub-grid { gap: 6px; }
  .lk-onesub-mini { padding: 14px 6px; }
}

/* phone */
@media (max-width: 560px) {
  html, body { font-size: 14.5px; }
  .lk-container { padding: 0 12px; }
  .lk-main { padding: 14px 0 30px; }
  .lk-page-title { font-size: 20px; line-height: 1.25; }
  .lk-page-subtitle { font-size: 13px; margin-bottom: 16px; }
  .card { padding: 14px; border-radius: 14px; }
  .card-title { font-size: 15px; }
  .btn { padding: 10px 14px; font-size: 14px; }
  .btn-sm { padding: 8px 11px; font-size: 12.5px; }
  .form-input, .form-select { padding: 11px 12px; font-size: 15px; /* избегаем zoom на iOS */ }

  /* Заголовки h2 в шаблонах (billing, settings) */
  h2 { font-size: 18px; }

  /* Чипы Привязан/Активна на мобильном чуть мельче, но не чтобы рассыпались */
  .chip { font-size: 11px; padding: 4px 8px; }

  /* Tabs (если используется внутри ЛК) — гибкий wrap */
  .tabs { padding: 4px; gap: 4px; }
  .tab-btn { min-width: 0; padding: 8px 10px; font-size: 12.5px; }

  /* Карточки в Security/Billing с inline‑формами — даём перенос */
  form[style*="display:flex"] { flex-wrap: wrap; }

  /* Footer-note — вертикально, компактно */
  .lk-footer-note { font-size: 11px; padding: 14px 12px; }
  .lk-footer-note a { display: inline-block; padding: 2px 4px; }

  /* QR в Configs / Index */
  .qr-card img { width: 220px; height: 220px; }

  /* Билинг карточки — Sticky CTA cards меньше */
  .tplan-icon { font-size: 28px; }
  .tplan-name { font-size: 16px; }
  .tplan-price { font-size: 19px; }

  /* «Подписка одним кликом» */
  .lk-onesub-cta { font-size: 16px; padding: 20px 14px; gap: 2px; }
  .lk-onesub-cta i { font-size: 20px; }
  .lk-onesub-cta small { font-size: 11px; }
  .lk-onesub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Логотип в шапке: иконка + узкий текст */
  .lk-logo img { width: 26px; height: 26px; }
  .lk-logo span { font-size: 14px; }

  /* Алёрты — компактнее */
  .alert { padding: 10px 12px; font-size: 13px; gap: 8px; }
  .alert .btn { width: auto; }
}

/* very narrow */
@media (max-width: 420px) {
  .lk-container { padding: 0 10px; }
  .lk-page-title { font-size: 18px; }
  .card { padding: 12px; }
  .btn { padding: 9px 12px; font-size: 13px; }
  .btn i { font-size: 12px; }
  /* В шапке убираем текст лого, оставляем только иконку */
  .lk-logo span { display: none; }

  /* Footer-bottom — в столбик */
  .lkx-foot-bottom { flex-direction: column; align-items: flex-start; }
}

/* Touch-устройства: убираем hover-translate, чтоб не «дёргалось» при тапе */
@media (hover: none) {
  .btn-primary:hover, .lk-onesub-cta:hover, .tplan:hover { transform: none; }
}

/* Принудительно избегаем горизонтального скролла страницы */
html, body { max-width: 100%; overflow-x: hidden; }

/* ═════════════════════════════════════════════════════════════════
   LEGAL pages (privacy / terms / refund / disclaimer / cookie)
   ═════════════════════════════════════════════════════════════════ */
.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 24px;
}
.legal-toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 22px;
  position: sticky;
  top: 88px;
  backdrop-filter: blur(14px);
}
.legal-toc h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.legal-toc ul { list-style: none; padding: 0; margin: 0; }
.legal-toc li { margin-bottom: 6px; }
.legal-toc a {
  color: var(--muted-2);
  font-size: 13px;
  text-decoration: none;
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all .15s ease;
}
.legal-toc a:hover {
  color: #c4b5fd;
  background: rgba(139,92,246,0.08);
}
.legal-toc a.active {
  color: #fff;
  background: var(--grad-soft);
}
.legal-toc-mobile { display: contents; }
.legal-toc-mobile > summary { display: none; cursor: pointer; }

.legal-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 36px;
  backdrop-filter: blur(14px);
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted-2);
}
.legal-content h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin: 36px 0 14px;
  padding-top: 8px;
  scroll-margin-top: 100px;
}
.legal-content h2:first-of-type { margin-top: 8px; }
.legal-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 22px 0 10px;
}
.legal-content p { margin: 0 0 14px; line-height: 1.8; }
.legal-content ul, .legal-content ol {
  padding-left: 22px;
  margin: 0 0 14px;
}
.legal-content li { margin-bottom: 6px; line-height: 1.75; }
.legal-content a {
  color: #c4b5fd;
  text-decoration: none;
  border-bottom: 1px dashed rgba(196,181,253,0.4);
}
.legal-content a:hover { color: #fff; border-bottom-color: #fff; }
.legal-content strong { color: var(--text); font-weight: 700; }
.legal-content code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 13px;
  color: #c4b5fd;
}

.legal-intro {
  padding: 18px 22px;
  background: rgba(139,92,246,0.06);
  border: 1px solid rgba(139,92,246,0.2);
  border-left: 3px solid #8b5cf6;
  border-radius: 12px;
  margin-bottom: 28px;
  color: var(--muted-2);
  font-size: 14px;
}

.highlight-box,
.warning-box,
.details-box {
  border-radius: 14px;
  padding: 18px 22px;
  margin: 18px 0;
}
.highlight-box {
  background: rgba(139,92,246,0.07);
  border: 1px solid rgba(139,92,246,0.22);
}
.highlight-box.highlight-success {
  background: rgba(16,185,129,0.07);
  border-color: rgba(16,185,129,0.25);
}
.highlight-box.highlight-warning {
  background: rgba(245,158,11,0.07);
  border-color: rgba(245,158,11,0.28);
}
.warning-box {
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.25);
}
.warning-box strong, .warning-box p:first-child {
  color: #fca5a5;
}
.details-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
}
.details-box p { margin-bottom: 8px; }
.details-box p:last-child { margin-bottom: 0; }

.cookie-table-wrap { overflow-x: auto; margin: 14px 0 18px; }
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.cookie-table th, .cookie-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.cookie-table th { color: var(--muted); font-weight: 600; }
.cookie-table td { color: var(--muted-2); }

.refund-steps { margin: 14px 0 18px; }
.refund-step {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.refund-step:last-child { border-bottom: none; }
.step-num {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #fff;
}
.step-body strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  color: var(--text);
}
.step-body p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--muted-2); }

.contact-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
}
.contact-item > i {
  font-size: 22px;
  color: #c4b5fd;
  margin-top: 2px;
  flex-shrink: 0;
}
.contact-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}
.contact-item p { margin: 0; font-size: 13px; color: var(--muted); }

.legal-footer-note {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  margin-top: 32px;
}
.legal-footer-note p { color: var(--muted-2); margin: 0; }

.legal-nav-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ═════════════════════════════════════════════════════════════════
   FOOTER (теперь общий через _footer.html)
   ═════════════════════════════════════════════════════════════════ */
.lkx-foot {
  margin-top: 48px;
  padding: 40px 0 32px;
  background: linear-gradient(180deg, rgba(10,10,24,0.0), rgba(10,10,24,0.6));
  border-top: 1px solid var(--border);
}
.lkx-foot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 0 0 28px;
}
.lkx-foot-grid h4 {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 0 14px;
}
.lkx-foot-grid ul { list-style: none; padding: 0; margin: 0; }
.lkx-foot-grid li {
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--muted-2);
  line-height: 1.7;
}
.lkx-foot-grid a {
  color: var(--muted-2);
  text-decoration: none;
  transition: color .15s ease;
  padding: 4px 0;
  display: inline-block;
}
.lkx-foot-grid a:hover { color: #c4b5fd; }

.lkx-foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
.lkx-foot-bottom a {
  color: var(--muted);
  text-decoration: none;
  transition: color .15s ease;
}
.lkx-foot-bottom a:hover { color: #c4b5fd; }

/* ═════════════════════════════════════════════════════════════════
   MOBILE responsiveness for new sections
   ═════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .legal-layout { grid-template-columns: 220px 1fr; gap: 22px; }
  .legal-content { padding: 24px 26px; }
}

@media (max-width: 880px) {
  .lkx-foot-grid { grid-template-columns: 1fr 1fr; gap: 22px; }

  .legal-layout { grid-template-columns: 1fr; gap: 16px; }
  .legal-toc { position: static; padding: 0; background: transparent; border: none; backdrop-filter: none; }
  .legal-toc-mobile { display: block; }
  .legal-toc-mobile > summary {
    display: block;
    padding: 14px 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-weight: 600;
    list-style: none;
  }
  .legal-toc-mobile > summary::-webkit-details-marker { display: none; }
  .legal-toc-mobile > summary::after {
    content: "▾";
    float: right;
    color: var(--muted);
    transition: transform .2s ease;
  }
  .legal-toc-mobile[open] > summary::after { transform: rotate(180deg); }
  .legal-toc-mobile > h3 { display: none; }
  .legal-toc-mobile > ul {
    margin-top: 8px;
    padding: 12px 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
  }
  .legal-content { padding: 20px 18px; font-size: 14.5px; }
  .legal-content h2 { font-size: 19px; margin-top: 28px; }
}

@media (max-width: 560px) {
  .lkx-foot-grid { grid-template-columns: 1fr; gap: 18px; padding-bottom: 22px; }
  .lkx-foot-bottom { font-size: 12px; flex-direction: column; align-items: flex-start; gap: 6px; }

  .legal-content { padding: 18px 14px; font-size: 14px; }
  .legal-content h2 { font-size: 17px; }
  .legal-content h3 { font-size: 15px; }
  .legal-intro { padding: 14px 16px; font-size: 13.5px; }
  .legal-nav-buttons .btn { width: 100%; }
}

/* ═════════════════════════════════════════════════════════════════
   GUEST mobile burger (расширили шапку для гостей)
   ═════════════════════════════════════════════════════════════════ */
/* На больших экранах кнопка-бургер не показывается у гостя */
@media (min-width: 881px) {
  .lk-nav .lk-burger { display: none; }
}
@media (max-width: 880px) {
  /* Guest nav links прячутся в мобильное меню (через .open-class из lk.js) */
  .lk-nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    background: rgba(10,10,24,0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
    z-index: 50;
  }
  .lk-nav-links.open { display: flex; }
  .lk-nav-links a {
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    color: var(--text);
  }
  .lk-burger { display: inline-flex; }
}

/* На очень узких экранах в шапке прячем кнопку «Регистрация» — её
   видно через бургер-меню. Кнопка «Войти» остаётся. */
@media (max-width: 480px) {
  .lk-nav-actions .btn-primary { display: none; }
}
