:root {
  --bg: #070b14;
  --bg-2: #0b111f;
  --card: #0e1523;
  --card-2: #111a2c;
  --line: rgba(96, 165, 250, .14);
  --text: #eef2fa;
  --muted: #7c8aa8;
  --accent-a: #22d3ee;
  --accent-b: #2563eb;
  --accent: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  --ok-bg: #0d2f22;
  --ok-text: #34e39a;
  --ok-dot: #22c55e;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  margin: 0; color: var(--text);
  background:
    radial-gradient(60% 40% at 15% 0%, rgba(37,99,235,.16), transparent 60%),
    radial-gradient(50% 30% at 100% 0%, rgba(34,211,238,.10), transparent 60%),
    var(--bg);
  font: 15px/1.5 -apple-system, system-ui, "SF Pro", Roboto, sans-serif;
}
.wrap { max-width: 560px; margin: 0 auto; padding: 18px 16px 40px; }

/* бренд-шапка */
.brand { display: flex; align-items: center; gap: 10px; margin: 4px 0 22px; }
.brand img { width: 34px; height: 34px; object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(37,99,235,.45)); }
.brand span { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }

/* заголовок */
.head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.head .eyebrow { color: var(--accent-a); letter-spacing: .16em; font-size: 11px; font-weight: 600; }
.head h1 { margin: 6px 0 0; font-size: 30px; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.head h1 .grad { background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-inline { background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }

button.ghost {
  flex: none; width: 44px; height: 44px; border-radius: 14px;
  background: var(--card-2); color: var(--text); font-size: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 0 0 1px rgba(37,99,235,.08), 0 6px 18px rgba(37,99,235,.16);
}
button.ghost:active { transform: scale(.95); }

/* карточки */
.card {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: 20px; padding: 18px;
  box-shadow: 0 10px 30px rgba(2,6,20,.35), inset 0 1px 0 rgba(255,255,255,.03);
  margin-bottom: 14px;
}
.intro-row { display: flex; gap: 14px; align-items: flex-start; }
.glow-icon {
  flex: none; width: 46px; height: 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  background: radial-gradient(60% 60% at 30% 20%, rgba(34,211,238,.28), rgba(37,99,235,.10));
  border: 1px solid rgba(96,165,250,.3);
  box-shadow: 0 0 24px rgba(37,99,235,.25);
}
.intro p { margin: 0; color: var(--muted); }
.divider { height: 1px; background: var(--line); margin: 14px 0; }
.muted { color: var(--muted); }

/* площадки */
.p-card {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line); border-radius: 18px; padding: 14px;
  margin-bottom: 12px; box-shadow: 0 8px 22px rgba(2,6,20,.3);
}
.p-row { display: flex; align-items: center; gap: 12px; }
.p-avatar {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 6px 16px rgba(0,0,0,.35);
}
.p-avatar svg { width: 22px; height: 22px; }
.p-avatar.tg { background: radial-gradient(65% 65% at 30% 25%, #4fc3f7, #229ED9); }
.p-avatar.vk { background: radial-gradient(65% 65% at 30% 25%, #4a9dff, #2787F5); }
.p-avatar.max { background: radial-gradient(65% 65% at 30% 25%, #a78bfa, #7C3AED); }
.p-avatar.whatsapp { background: radial-gradient(65% 65% at 30% 25%, #34e39a, #22C35E); }
.p-info { flex: 1; min-width: 0; }
.p-title { font-weight: 700; font-size: 15.5px; }
.p-sub { color: var(--muted); font-size: 13px; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.p-badge {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  white-space: nowrap;
}
.p-badge.ok { background: var(--ok-bg); color: var(--ok-text);
  box-shadow: inset 0 0 0 1px rgba(52,227,154,.25); }
.p-badge.ok .dot { width: 16px; height: 16px; border-radius: 50%; background: var(--ok-dot);
  display: inline-flex; align-items: center; justify-content: center; color: #06210f; font-size: 11px; }
.p-badge.idle { background: rgba(96,165,250,.10); color: #8fb4ff;
  box-shadow: inset 0 0 0 1px rgba(96,165,250,.25); }

.howto { margin: 12px 0 0; font-size: 13.5px; }
.inp {
  width: 100%; margin-top: 10px; padding: 13px 14px; border-radius: 13px;
  border: 1px solid var(--line); background: #0a0f1a; color: var(--text); font: inherit;
}
.inp:focus { outline: none; border-color: var(--accent-b); }
.row { margin-top: 10px; }
button.primary {
  width: 100%; padding: 13px 14px; border: 0; border-radius: 13px;
  font: inherit; font-weight: 700; cursor: pointer; color: #051021;
  background: var(--accent); box-shadow: 0 8px 22px rgba(37,99,235,.35);
}
button.primary:disabled { opacity: .5; }
button.ghost-btn {
  width: 100%; padding: 11px 14px; border-radius: 13px; font: inherit; font-weight: 600;
  cursor: pointer; background: transparent; color: #f87171; border: 1px solid rgba(248,113,113,.28);
}

.err { color: #f87171; text-align: center; min-height: 18px; font-size: 13.5px; }

/* футер */
.foot {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--muted); font-size: 12.5px; text-align: center; margin-top: 18px;
}
.foot svg { width: 15px; height: 15px; flex: none; opacity: .8; }
