﻿:root {
  --bg: #0b1220;
  --bg-soft: #121b2c;
  --surface: #f5f7fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #52607a;
  --accent: #d98a2a;
  --accent-strong: #b86d15;
  --cyan: #2e8fb0;
  --cyan-soft: #78bcd4;
  --success: #0b9c6f;
  --danger: #c13838;
  --radius: 16px;
  --shadow: 0 16px 36px rgba(2, 10, 24, 0.12);
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
  background:
    radial-gradient(circle at 8% 10%, rgba(120, 188, 212, 0.22), transparent 35%),
    radial-gradient(circle at 92% 4%, rgba(217, 138, 42, 0.2), transparent 32%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg-soft) 48%, #0d1627 100%);
  color: var(--text);
  min-height: 100vh;
  padding: 30px 18px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: rgba(245, 247, 251, 0.95);
  border: 1px solid rgba(82, 96, 122, 0.2);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}

.site-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.site-sub {
  color: var(--muted);
  font-size: 13px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.nav a:hover {
  border-color: rgba(46, 143, 176, 0.28);
  color: var(--text);
}

.nav a.active {
  color: #ffffff;
  background: linear-gradient(120deg, var(--cyan), var(--accent));
}

.nav a.primary {
  color: #ffffff;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  margin-bottom: 18px;
}

.panel {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(82, 96, 122, 0.22);
  box-shadow: var(--shadow);
  padding: 20px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text);
}

h1 {
  font-size: 34px;
  line-height: 1.1;
}

.p-muted {
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.5;
}

.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 11px;
  padding: 10px 15px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
}

.btn-main {
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #fff;
}

.btn-alt {
  background: linear-gradient(120deg, var(--cyan), #1d7390);
  color: #fff;
}

.btn-ghost {
  color: var(--text);
  border: 1px solid rgba(82, 96, 122, 0.28);
  background: #fff;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.status-box {
  background: #fff;
  border: 1px solid rgba(82, 96, 122, 0.22);
  border-radius: 14px;
  padding: 16px;
}

.status-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
}

.status-value {
  font-size: 24px;
  font-weight: 800;
  margin-top: 6px;
}

.status-ok {
  color: var(--success);
}

.status-down {
  color: var(--danger);
}

.status-info {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

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

.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid rgba(82, 96, 122, 0.2);
  box-shadow: var(--shadow);
  padding: 18px;
}

.realm-card img {
  width: min(220px, 100%);
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  display: block;
  margin: 0 auto 12px;
}

.list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
}

.list li + li {
  margin-top: 6px;
}

.owners-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.owner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(82, 96, 122, 0.2);
  border-radius: 12px;
}

.owner img {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.kpi {
  background: #fff;
  border: 1px solid rgba(82, 96, 122, 0.2);
  border-radius: 12px;
  padding: 12px;
}

.kpi .label {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.kpi .value {
  margin-top: 4px;
  font-size: 22px;
  font-weight: 800;
}

.footer {
  margin-top: 18px;
  text-align: center;
  color: #dbe6ff;
  font-size: 13px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 20, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 99;
}

.modal-card {
  width: 100%;
  max-width: 520px;
  border-radius: 14px;
  background: #ffffff;
  padding: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  body {
    padding: 14px;
  }

  .header {
    padding: 12px;
  }

  h1 {
    font-size: 28px;
  }

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

a:focus,
button:focus {
  outline: 3px solid rgba(46, 143, 176, 0.35);
  outline-offset: 2px;
}



