:root {
  --bg: #171c24;
  --bg-soft: #1d232d;
  --card: #1b2028;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f1f5ff;
  --muted: #9aa6bb;
  --cyan: #2fd8ff;
  --green: #37d996;
  --red: #ff7b83;
  --yellow: #f4c045;
  --shadow: 0 30px 70px rgba(8, 12, 18, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, #171c24 0%, #171b23 100%);
  background-size: 48px 48px, 48px 48px, auto;
}

.page-shell {
  width: min(980px, calc(100% - 28px));
  margin: 0 auto;
  padding: 14px 0 40px;
}

.topbar,
.card {
  background: rgba(27, 32, 40, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 0 0 28px 28px;
  margin-bottom: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 20px;
  font-weight: 800;
  color: var(--cyan);
}

.brand-mark {
  width: 34px;
  height: 24px;
  border-radius: 10px;
  background:
    linear-gradient(90deg, transparent 0 8%, var(--cyan) 8% 16%, transparent 16% 28%, var(--cyan) 28% 38%, transparent 38% 52%, var(--cyan) 52% 64%, transparent 64% 76%, var(--cyan) 76% 88%, transparent 88% 100%);
  opacity: 0.95;
}

.top-actions {
  display: flex;
  gap: 12px;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #1b2028;
  color: var(--cyan);
  text-decoration: none;
  font-size: 24px;
}

.stack {
  display: grid;
  gap: 22px;
}

.card {
  border-radius: 30px;
  padding: 28px;
}

.status-head,
.section-head,
.info-panel,
.stat-grid {
  display: grid;
}

.status-head {
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.status-bullet,
.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 28px;
}

.status-bullet {
  color: #ff9c42;
  background: rgba(255, 156, 66, 0.12);
  border: 1px solid rgba(255, 156, 66, 0.3);
}

.info-icon {
  color: var(--cyan);
  background: rgba(47, 216, 255, 0.1);
  border: 1px solid rgba(47, 216, 255, 0.25);
}

.info-icon.ok {
  color: var(--green);
  background: rgba(55, 217, 150, 0.1);
  border-color: rgba(55, 217, 150, 0.25);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
}

h2 {
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.05;
}

h3 {
  font-size: 28px;
  margin-bottom: 10px;
}

.muted {
  color: var(--muted);
}

.danger-text {
  color: var(--red);
  font-size: 18px;
  margin-top: 8px;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.stat-box {
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.stat-box strong {
  display: block;
  font-size: 18px;
}

.stat-label {
  display: block;
  color: var(--muted);
  margin-bottom: 12px;
}

.stat-box.blue {
  background: rgba(34, 69, 108, 0.42);
  border-color: rgba(82, 163, 255, 0.25);
}

.stat-box.green {
  background: rgba(34, 85, 60, 0.34);
  border-color: rgba(55, 217, 150, 0.24);
}

.stat-box.red {
  background: rgba(94, 44, 56, 0.28);
  border-color: rgba(255, 123, 131, 0.22);
}

.stat-box.yellow {
  background: rgba(91, 70, 28, 0.24);
  border-color: rgba(244, 192, 69, 0.22);
}

.section-head {
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.device-pill {
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: #202631;
  font-weight: 700;
}

.tab-highlight {
  margin-bottom: 18px;
  padding: 18px 22px;
  border-radius: 16px;
  border: 1px solid rgba(47, 216, 255, 0.35);
  background: linear-gradient(180deg, rgba(29, 66, 84, 0.65), rgba(24, 48, 62, 0.65));
  color: var(--cyan);
  font-size: 28px;
  font-weight: 800;
}

.info-panel,
.simple-block {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #20252d;
}

.info-panel {
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
}

.info-copy p,
.simple-block p {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.65;
}

.link-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.simple-block {
  display: grid;
  gap: 18px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  width: fit-content;
}

.primary-button {
  color: #071218;
  background: linear-gradient(135deg, var(--cyan), #64f0ff);
}

.secondary-button {
  color: var(--cyan);
  background: rgba(38, 82, 100, 0.55);
  border: 1px solid rgba(47, 216, 255, 0.18);
}

@media (max-width: 840px) {
  .stat-grid,
  .section-head,
  .info-panel {
    grid-template-columns: 1fr;
  }

  .device-pill,
  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .icon-link {
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 16px, 980px);
    padding-top: 10px;
  }

  .topbar {
    padding: 16px;
    border-radius: 0 0 22px 22px;
    margin-bottom: 18px;
  }

  .card {
    padding: 20px;
    border-radius: 22px;
  }

  .info-copy p,
  .simple-block p {
    font-size: 18px;
  }
}
