:root {
  --bg: #f1efe8;
  --bg2: #e6ddc9;
  --panel: #fffdf8;
  --panel-soft: #f8f3e7;
  --text: #1f1a13;
  --muted: #6a5f50;
  --line: #d6cab5;
  --accent: #c7851a;
  --accent-ink: #4d3303;
  --link: #7a4b00;
  --chip: #f3e5c6;
  --shadow: 0 16px 32px rgba(92, 63, 16, 0.12);
}

html[data-theme="dark"] {
  --bg: #0e1115;
  --bg2: #1c232d;
  --panel: #141b24;
  --panel-soft: #19212b;
  --text: #ebeff5;
  --muted: #a6b3c3;
  --line: #27374b;
  --accent: #f0b349;
  --accent-ink: #1f1200;
  --link: #ffc971;
  --chip: #203042;
  --shadow: 0 18px 34px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Trebuchet MS", "Verdana", "Tahoma", sans-serif;
  background:
    radial-gradient(circle at 14% 0%, color-mix(in srgb, var(--bg2) 80%, #0000) 0%, transparent 44%),
    radial-gradient(circle at 90% 2%, color-mix(in srgb, var(--bg2) 80%, #0000) 0%, transparent 36%),
    repeating-linear-gradient(130deg, color-mix(in srgb, var(--bg) 92%, var(--line)) 0 18px, color-mix(in srgb, var(--bg) 96%, #0000) 18px 36px),
    var(--bg);
  min-height: 100vh;
}

a {
  color: var(--link);
}

h1,
h2,
h3,
.brand,
.nav-link,
.menu-link,
.kicker {
  font-family: "Bahnschrift", "Franklin Gothic Medium", "Segoe UI", sans-serif;
  letter-spacing: 0.02em;
}

.shell {
  width: min(1240px, calc(100% - 28px));
  margin: 14px auto 34px;
}

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 11px 13px;
  background: color-mix(in srgb, var(--panel) 88%, #ffffff11);
  box-shadow: var(--shadow);
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-badge {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 24%, transparent);
}

.nav-links {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.nav-link,
.theme-toggle,
.menu-link,
.menu-action,
.button-like {
  border: 1px solid var(--line);
  border-radius: 11px;
  text-decoration: none;
  color: var(--text);
  background: color-mix(in srgb, var(--panel) 88%, #ffffff08);
  padding: 8px 11px;
  font-size: 0.92rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav-link:hover,
.theme-toggle:hover,
.menu-link:hover,
.menu-action:hover,
.button-like:hover {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
}

.nav-link.active,
.menu-link.active {
  background: color-mix(in srgb, var(--accent) 22%, var(--panel));
  border-color: color-mix(in srgb, var(--accent) 76%, var(--line));
  color: var(--text);
  font-weight: 800;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--accent) 44%, transparent),
    0 0 0 2px color-mix(in srgb, var(--accent) 24%, transparent);
}

.nav-link.portal,
.menu-action {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
  font-weight: 800;
}

.nav-link.portal.active {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, #ffffff);
  border-color: color-mix(in srgb, var(--accent) 74%, var(--line));
}

.theme-toggle {
  font-weight: 700;
}

.home-layout {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 262px minmax(0, 1fr);
  gap: 14px;
}

.page-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(170deg, var(--panel) 0%, color-mix(in srgb, var(--panel) 84%, var(--panel-soft)) 100%);
  box-shadow: var(--shadow);
}

.side-menu {
  position: sticky;
  top: 14px;
  align-self: start;
  display: grid;
  gap: 10px;
}

.side-menu .menu-link,
.side-menu .menu-action {
  width: 100%;
  justify-content: center;
}

.side-note {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
  margin: 4px 0 0;
}

.main-area {
  display: grid;
  gap: 14px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.9fr 1fr;
  gap: 14px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.83rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lead {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.social-chip {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: color-mix(in srgb, var(--panel-soft) 80%, var(--panel));
  text-decoration: none;
}

.social-chip strong {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
}

.social-chip span {
  color: var(--muted);
  font-size: 0.88rem;
}

.quick-list {
  margin: 10px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.returning-card {
  display: grid;
  gap: 10px;
  align-content: start;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}

.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--accent) 70%, #8b5e11);
}

.status-pill.online::before {
  background: #15a34a;
}

.status-pill.offline::before {
  background: #dc2626;
}

.status-pill.checking::before {
  background: color-mix(in srgb, var(--accent) 74%, #8b5e11);
}

.network-card {
  overflow: hidden;
}

.network-map {
  margin-top: 10px;
  position: relative;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(155deg, color-mix(in srgb, var(--panel) 72%, var(--panel-soft)) 0%, color-mix(in srgb, var(--panel-soft) 76%, var(--bg2)) 100%);
}

.network-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.network-lines line {
  stroke: color-mix(in srgb, var(--accent) 55%, var(--line));
  stroke-width: 2;
}

.map-node {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 88%, var(--chip));
  text-decoration: none;
  color: var(--text);
  padding: 8px 11px;
  text-align: center;
  min-width: 108px;
}

.map-node strong {
  display: block;
  font-size: 0.9rem;
}

.map-node span {
  font-size: 0.75rem;
  color: var(--muted);
}

.map-node.center {
  min-width: 170px;
  border-radius: 50%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 0;
  border-color: color-mix(in srgb, var(--accent) 70%, var(--line));
  background: color-mix(in srgb, var(--accent) 14%, var(--panel));
  box-shadow: inset 0 0 0 4px color-mix(in srgb, var(--accent) 24%, transparent);
}

.map-node.center strong {
  font-size: 1.02rem;
}

.map-node.center span {
  font-size: 0.8rem;
}

.node-portfolio { top: 18%; left: 17%; }
.node-prices { top: 24%; left: 80%; }
.node-tos { top: 76%; left: 18%; }
.node-socials { top: 78%; left: 80%; }
.node-portal { top: 50%; left: 86%; }
.node-center { top: 50%; left: 47%; }

.page-stack {
  margin-top: 14px;
  display: grid;
  gap: 14px;
}

.info-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  line-height: 1.55;
  color: var(--muted);
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 420px;
}

.price-table th,
.price-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  font-size: 0.92rem;
}

.price-table th {
  color: var(--muted);
  font-weight: 700;
  background: color-mix(in srgb, var(--panel) 86%, var(--chip));
}

.price-table tr:last-child td {
  border-bottom: none;
}

.grid-cards {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.mini-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px;
  background: color-mix(in srgb, var(--panel-soft) 80%, var(--panel));
}

.mini-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.mini-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.footer-note {
  color: var(--muted);
  font-size: 0.86rem;
}

@media (max-width: 1060px) {
  .home-layout {
    grid-template-columns: 1fr;
  }

  .side-menu {
    position: static;
  }

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

@media (max-width: 860px) {
  .network-map {
    min-height: 520px;
  }

  .node-center { top: 24%; left: 50%; }
  .node-portfolio { top: 58%; left: 24%; }
  .node-prices { top: 58%; left: 76%; }
  .node-tos { top: 76%; left: 24%; }
  .node-socials { top: 76%; left: 76%; }
  .node-portal { top: 92%; left: 50%; }
}

@media (max-width: 700px) {
  .shell {
    width: calc(100% - 20px);
    margin-top: 10px;
  }

  .site-nav {
    padding: 10px;
  }

  .brand {
    width: 100%;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }
}

