:root {
  --primary: #2f80ff;
  --primary-light: #8ec5ff;
  --danger: #ff2f4f;
  --green: #22c55e;
  --text: #f5f9ff;
  --muted: #9aa8bc;
  --panel: rgba(4, 10, 22, 0.82);
  --card: rgba(3, 10, 20, 0.46);
  --border: rgba(47, 128, 255, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(rgba(1, 8, 20, 0.46), rgba(1, 8, 20, 0.84)),
    url("../background.jpg") center / cover no-repeat fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding: max(22px, env(safe-area-inset-top)) 18px max(92px, env(safe-area-inset-bottom));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(47, 128, 255, 0.18), transparent 38%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: auto, 58px 58px, 58px 58px;
  animation: gridMove 70s linear infinite;
  pointer-events: none;
}

@keyframes gridMove {
  from {
    background-position: center, 0 0, 0 0;
  }

  to {
    background-position: center, 0 58px, 58px 0;
  }
}

.panel {
  width: min(1180px, 96vw);
  padding: clamp(28px, 4vw, 50px);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 26px;
  backdrop-filter: blur(18px);
  box-shadow:
    0 0 90px rgba(47, 128, 255, 0.18),
    inset 0 0 36px rgba(255, 255, 255, 0.025);
}

.hero {
  display: grid;
  grid-template-columns: 190px 1fr;
  align-items: center;
  gap: 38px;
  margin-bottom: 36px;
}

.hero-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  width: clamp(130px, 12vw, 178px);
  filter: drop-shadow(0 0 24px rgba(47, 128, 255, 0.52));
}

.hero-copy {
  text-align: left;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.46rem;
  margin-bottom: 18px;
}

.brand span {
  width: 90px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

h1 {
  margin: 0;
  text-align: left;
  font-size: clamp(3.4rem, 4vw, 5.8rem);
  line-height: 0.9;
  font-weight: 950;
  letter-spacing: 0.035em;
}

.subtitle {
  margin-top: 12px;
  margin-bottom: 22px;
  text-align: left;
  color: var(--primary);
  font-size: clamp(1.3rem, 2.4vw, 2.1rem);
  font-weight: 900;
  letter-spacing: 0.62rem;
}

.message {
  max-width: 780px;
  margin: 0;
  color: #d8e2f0;
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  line-height: 1.65;
 text-align: center;
}

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

.data-card {
  min-width: 0;
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  background: var(--card);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 13px;
  transition: 0.22s ease;
}

.data-card:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 128, 255, 0.7);
  box-shadow: 0 0 22px rgba(47, 128, 255, 0.16);
}

.card-icon {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 27px;
  border: 1px solid rgba(47, 128, 255, 0.45);
  border-radius: 13px;
  background: rgba(47, 128, 255, 0.045);
  box-shadow:
    inset 0 0 20px rgba(47, 128, 255, 0.08),
    0 0 16px rgba(47, 128, 255, 0.08);
}

.card-icon.danger {
  color: var(--danger);
  border-color: rgba(255, 47, 79, 0.48);
}

.card-icon i {
  filter: drop-shadow(0 0 10px currentColor);
}

.label {
  color: var(--primary-light);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.22rem;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.value {
  color: var(--text);
  font-size: clamp(0.98rem, 1.5vw, 1.1rem);
  overflow-wrap: anywhere;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 760px;
  margin: 28px auto 0;
}

.button {
  display: block;
  padding: 17px 20px;
  text-align: center;
  color: white;
  text-decoration: none;
  font-weight: 900;
  border-radius: 10px;
  background: linear-gradient(180deg, #2f80ff, #246ce4);
  border: 1px solid rgba(47, 128, 255, 0.9);
  box-shadow: 0 0 28px rgba(47, 128, 255, 0.28);
  transition: 0.22s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 38px rgba(47, 128, 255, 0.5);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(47, 128, 255, 0.58);
  box-shadow: none;
}

.footer {
  margin-top: 28px;
  color: var(--muted);
  text-align: center;
  font-size: 0.96rem;
  line-height: 1.5;
}

.status-bar {
  width: min(1180px, 96vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 28px;
  color: var(--muted);
  background: rgba(4, 10, 22, 0.74);
  border: 1px solid var(--border);
  border-radius: 13px;
  backdrop-filter: blur(16px);
}

.online-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.85);
}

.status-bar strong {
  color: var(--green);
}

@media (max-width: 900px) {
  body {
    background-attachment: scroll;
  }

  .panel {
    width: 100%;
    border-radius: 22px;
  }

  .hero {
    display: block;
    margin-bottom: 28px;
    text-align: center;
  }

  .hero-logo {
    margin-bottom: 14px;
  }

  .logo {
    width: 78px;
  }

  .hero-copy,
  .brand,
  h1,
  .subtitle,
  .message {
    text-align: center;
    justify-content: center;
  }

  .brand {
    letter-spacing: 0.28rem;
  }

  .brand span {
    width: 46px;
  }

  .subtitle {
    letter-spacing: 0.32rem;
  }

  .message {
    margin: 0 auto;
  }

  .data-grid {
    grid-template-columns: 1fr;
  }

  .actions {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .status-bar {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 520px) {
  body {
    padding-left: 12px;
    padding-right: 12px;
  }

  .panel {
    padding: 22px 16px;
    border-radius: 18px;
  }

  h1 {
    font-size: clamp(2.6rem, 12vw, 3.6rem);
  }

  .subtitle {
    font-size: 1.05rem;
  }

  .message {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .data-card {
    min-height: 78px;
    padding: 14px;
    gap: 14px;
  }

  .card-icon {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
    font-size: 21px;
  }

  .label {
    letter-spacing: 0.14rem;
  }

  .optional-mobile {
    display: none;
  }
}