:root {
  --bg: #07080c;
  --bg-2: #0d1018;
  --surface: #121722;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f4f6fb;
  --muted: #9aa3b5;
  --ice: #4cc9f0;
  --ice-2: #7b8cff;
  --mint: #3ee0b0;
  --warn: #f0c14c;
  --bad: #ff7a7a;
  --font: "Outfit", "Segoe UI", system-ui, sans-serif;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  background:
    radial-gradient(900px 520px at 88% -10%, rgba(123, 140, 255, 0.18), transparent 55%),
    radial-gradient(720px 480px at -10% 110%, rgba(76, 201, 240, 0.12), transparent 50%),
    var(--bg);
}
a { color: var(--ice); text-underline-offset: 3px; }
a:hover { color: #fff; }
button, input { font-family: inherit; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.page { min-height: 100%; display: flex; flex-direction: column; }

.header {
  height: 64px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 12, 0.72);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { color: var(--text); text-decoration: none; font-size: 20px; font-weight: 700; letter-spacing: -0.03em; }
.nav { display: flex; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; text-decoration: none; color: inherit; background: transparent; cursor: pointer;
}
.btn-primary { background: var(--text); color: #0a0c12; }
.btn-primary:hover { background: #fff; color: #0a0c12; }
.btn-ghost { border-color: var(--line-2); }
.btn-ghost:hover { border-color: #fff; }
.btn-sm { height: 32px; padding: 0 10px; font-size: 13px; }

.shell { flex: 1; padding: 28px 0 40px; }

.hero-card, .card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
}
.hero-card { max-width: 520px; }
.kicker { margin: 0 0 8px; color: var(--ice); font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
h1 { margin: 0 0 8px; font-size: 32px; font-weight: 800; letter-spacing: -0.04em; }
h2 { margin: 0 0 12px; font-size: 16px; font-weight: 700; }
.lead, .muted { color: var(--muted); }
.lead { margin: 0 0 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.banner { padding: 10px 12px; border-radius: 10px; font-size: 14px; margin: 0 0 14px; }
.banner.bad { background: rgba(255, 122, 122, 0.12); color: var(--bad); }
.banner.warn { background: rgba(240, 193, 76, 0.1); color: var(--warn); }

.dash { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px; align-items: start; }
.side { display: grid; gap: 16px; }
.row-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.plan { font-weight: 700; }
.badge {
  display: inline-flex; height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
}
.badge.ok { background: rgba(62, 224, 176, 0.14); color: var(--mint); }
.badge.warn { background: rgba(240, 193, 76, 0.14); color: var(--warn); }
.badge.bad { background: rgba(255, 122, 122, 0.14); color: var(--bad); }
.badge.muted { background: rgba(255,255,255,0.06); color: var(--muted); }

.meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.meta dt { color: var(--muted); font-size: 12px; }
.meta dd { margin: 2px 0 0; font-weight: 600; }

.traffic { margin: 8px 0 16px; }
.traffic-head { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ice); }

.sub-url label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.copy-row { display: flex; gap: 8px; }
.copy-row input {
  flex: 1; height: 40px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--text); padding: 0 12px; font-size: 13px;
}

.devices { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.devices li {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 0; border-top: 1px solid var(--line);
}
.devices li:first-child { border-top: 0; padding-top: 0; }
.devices b { display: block; font-size: 14px; }
.devices .muted { font-size: 12px; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #fff; color: #0a0c12; padding: 10px 16px; border-radius: 10px;
  font-weight: 700; font-size: 14px; z-index: 50;
}

@media (max-width: 880px) {
  .dash, .meta { grid-template-columns: 1fr; }
  .copy-row { flex-direction: column; }
}
