:root {
  color-scheme: dark;
  --bg: #070b12;
  --panel: #0d1420;
  --panel-2: #111b2a;
  --text: #eef6ff;
  --muted: #9fb0c5;
  --line: rgba(125, 190, 255, 0.18);
  --accent: #20b8ff;
  --accent-2: #63e6be;
  --brand-orange: #ff8a00;
  --brand-orange-rgb: 255, 138, 0;
  --danger: #ff5d73;
  --warning: #ffd166;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(32, 184, 255, 0.18), transparent 28rem),
    linear-gradient(180deg, #08101a 0%, var(--bg) 42%, #05080d 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 18, 0.88);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 2rem));
  min-height: 72px;
  margin: 0 auto;
}

.top-info-bar {
  border-top: 1px solid rgba(125, 190, 255, 0.10);
  background: rgba(5, 9, 15, 0.76);
}

.top-info-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 2rem));
  min-height: 40px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.92rem;
}

.top-server-strip,
.top-visitor-strip,
.top-server-pills {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.top-server-strip > span:first-child,
.top-visitor-strip span {
  font-weight: 700;
}

.top-visitor-strip {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.8rem;
}

.top-visitor-strip strong {
  color: var(--text);
  margin-left: 0.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 132px;
  min-width: 132px;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 132px;
  height: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-links a {
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.94rem;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(32, 184, 255, 0.12);
  color: var(--text);
}

.search {
  position: relative;
  min-width: 220px;
}

.search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #07101a;
  color: var(--text);
  padding: 0.65rem 0.8rem;
}

.search-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  display: none;
  width: min(420px, 85vw);
  max-height: 55vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #09111d;
  box-shadow: var(--shadow);
}

.search-panel.is-open {
  display: block;
}

.search-result {
  display: block;
  padding: 0.85rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.search-result:last-child {
  border-bottom: 0;
}

.search-result strong {
  display: block;
}

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

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(440px, calc(100vh - 340px), 560px);
  display: grid;
  align-items: center;
  padding: 2.2rem 0 1.8rem;
}


.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../img/hero/pcb-hero.webp") center right / cover no-repeat;
  opacity: 0.78;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 11, 18, 0.92) 0%, rgba(7, 11, 18, 0.70) 38%, rgba(7, 11, 18, 0.34) 70%, rgba(7, 11, 18, 0.48) 100%),
    linear-gradient(180deg, rgba(7, 11, 18, 0.12) 0%, rgba(7, 11, 18, 0.76) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 1.25rem;
  align-items: center;
}

.eyebrow {
  color: var(--accent-2);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.4rem, 8vw, 5.6rem);
}

h2 {
  font-size: clamp(1.65rem, 4vw, 2.5rem);
}

h3 {
  font-size: 1.12rem;
}

.article-body h3 {
  margin-top: 1.75rem;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.lead {
  max-width: 740px;
  color: #c8d6e8;
  font-size: 1.1rem;
}

.hero-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(32, 184, 255, 0.16), rgba(13, 20, 32, 0.92));
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

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

.signal {
  min-height: 105px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 10, 17, 0.55);
  padding: 1rem;
}

.signal strong {
  display: block;
  color: var(--accent);
  font-size: 1.8rem;
}

.signal span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: 3rem 0;
}

.section + .section {
  padding-top: 1.5rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.section-head p {
  max-width: 680px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 20, 32, 0.78);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
  padding: 1.15rem;
}

.card.clickable {
  display: block;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.card.clickable:hover {
  transform: translateY(-3px);
  border-color: rgba(32, 184, 255, 0.58);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.75rem 0;
}

.pill,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #c9d8ea;
  font-size: 0.82rem;
  padding: 0.18rem 0.6rem;
}

.pill.accent {
  border-color: rgba(32, 184, 255, 0.55);
  color: var(--accent);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(32, 184, 255, 0.55);
  border-radius: var(--radius);
  background: rgba(32, 184, 255, 0.13);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  padding: 0.55rem 0.9rem;
}

.button.secondary {
  border-color: var(--line);
  background: transparent;
  color: #cbd8e8;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.2rem;
}

.filter-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0.45rem 0.75rem;
}

.filter-button.is-active {
  border-color: rgba(32, 184, 255, 0.6);
  background: rgba(32, 184, 255, 0.13);
  color: var(--text);
}

.status-list,
.weather-box {
  display: grid;
  gap: 0.75rem;
}

.status-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.8rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 14, 24, 0.72);
  padding: 0.85rem;
}

.status-badge {
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  text-transform: uppercase;
}

.status-online {
  background: rgba(99, 230, 190, 0.16);
  color: var(--accent-2);
}

.status-offline {
  background: rgba(255, 93, 115, 0.16);
  color: var(--danger);
}

.weather-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.weather-value {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem;
}

.weather-value strong {
  display: block;
  color: var(--accent);
  font-size: 1.5rem;
}

.page-title {
  padding: 3.4rem 0 1rem;
}

main > .page-title + .section {
  padding-top: 1.1rem;
}

.page-title .meta {
  margin-top: 1.15rem;
}
.content {
  max-width: 860px;
}

.article-body h2 {
  margin: 2.4rem 0 1rem;
  border-top: 1px solid rgba(125, 190, 255, 0.18);
  border-bottom: 1px solid rgba(125, 190, 255, 0.12);
  background: linear-gradient(90deg, rgba(32, 184, 255, 0.14), rgba(13, 20, 32, 0.72) 44%, rgba(13, 20, 32, 0));
  color: #eef6ff;
  font-size: clamp(1.45rem, 2.3vw, 2.15rem);
  line-height: 1.2;
  padding: 0.72rem 0.95rem;
}

.article-body h2:first-child {
  margin-top: 0;
}
.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0 1.7rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 20, 32, 0.58);
}

.article-table th,
.article-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0.9rem;
  text-align: left;
  vertical-align: top;
}

.article-table tr:last-child th,
.article-table tr:last-child td {
  border-bottom: 0;
}

.article-table th {
  width: 32%;
  color: #d9f4ff;
  font-weight: 700;
}
.article-table-compact th,
.article-table-compact td {
  text-align: center;
}

.article-table-compact th:first-child,
.article-table-compact td:first-child {
  text-align: left;
}

.article-table-compact th {
  width: auto;
}

.article-table-descriptive th,
.article-table-descriptive td {
  text-align: left;
}

.article-table-descriptive th {
  width: 26%;
}

.article-table-descriptive td {
  width: 74%;
}

.article-table-narrow {
  max-width: 520px;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  margin: 1.2rem 0 1.7rem;
}

.table-scroll .article-table {
  margin: 0;
}

.article-table-wide {
  min-width: 760px;
}

.article-table-code td,
.article-table-code th {
  font-variant-numeric: tabular-nums;
}

.article-table-code code {
  white-space: nowrap;
}

.article-table-pinout th:nth-child(1),
.article-table-pinout td:nth-child(1),
.article-table-pinout th:nth-child(2),
.article-table-pinout td:nth-child(2),
.article-table-pinout th:nth-child(3),
.article-table-pinout td:nth-child(3),
.article-table-pinout th:nth-child(5),
.article-table-pinout td:nth-child(5) {
  width: 11%;
  white-space: nowrap;
}

.article-table-pinout th:nth-child(4),
.article-table-pinout td:nth-child(4) {
  width: 56%;
}

.article-table-numbered th:first-child,
.article-table-numbered td:first-child {
  width: 4rem;
  min-width: 4rem;
  white-space: nowrap;
}

.article-table-numbered th:last-child,
.article-table-numbered td:last-child {
  width: auto;
}

.article-table-bom th:nth-child(1),
.article-table-bom td:nth-child(1) {
  width: 22%;
}

.article-table-bom th:nth-child(2),
.article-table-bom td:nth-child(2) {
  width: 4.5rem;
  min-width: 4.5rem;
  white-space: nowrap;
}

.article-table-bom th:nth-child(3),
.article-table-bom td:nth-child(3) {
  width: 34%;
}

.article-table-bom th:nth-child(4),
.article-table-bom td:nth-child(4) {
  width: 36%;
}

.link-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.2rem 0 1.7rem;
}

.link-list a {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 20, 32, 0.58);
  color: var(--text);
  text-decoration: none;
}

.link-list a:hover,
.link-list a:focus-visible {
  border-color: rgba(47, 181, 255, 0.72);
  background: rgba(8, 43, 64, 0.58);
}

.link-list strong {
  color: #d9f4ff;
  font-weight: 800;
}

.link-list span {
  color: var(--muted);
}

.command-list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 1.6rem;
}

.command-list p,
.resource-list a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 20, 32, 0.58);
  margin: 0;
  padding: 0.9rem 1rem;
}

.resource-list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 1.6rem;
}

.resource-list a {
  display: grid;
  gap: 0.15rem;
  color: var(--text);
  text-decoration: none;
}

.resource-list a:hover {
  border-color: rgba(32, 184, 255, 0.55);
  background: rgba(32, 184, 255, 0.1);
}

.resource-list span {
  color: var(--muted);
  font-size: 0.94rem;
}

@media (max-width: 620px) {
  .article-table:not(.article-table-wide) th,
  .article-table:not(.article-table-wide) td {
    display: block;
    width: 100%;
  }

  .article-table:not(.article-table-wide) th {
    border-bottom: 0;
    padding-bottom: 0.2rem;
  }
}
.article-video {
  margin: 0 0 1.5rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 20, 32, 0.72);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #05080d;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.article-video figcaption {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0.75rem 0.9rem;
}
.card-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  background: #07101a;
}

.article-figure {
  margin: 1.5rem 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 20, 32, 0.72);
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.article-figure-light {
  background: #f7f9fb;
  border-color: rgba(125, 190, 255, 0.26);
}

.article-figure-light img {
  background: #ffffff;
  padding: 0;
}

.article-figure-light figcaption {
  background: rgba(13, 20, 32, 0.86);
}

.article-figure-hero img {
  max-height: 430px;
  object-fit: contain;
  background: #05080d;
}

.article-figure figcaption {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0.75rem 0.9rem;
}

.article-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (max-width: 700px) {
  .article-gallery {
    grid-template-columns: 1fr;
  }
}
.article-body {
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}

.article-body ul {
  margin: 1rem 0 1.4rem;
  padding-left: 1.25rem;
}

.article-body li {
  margin: 0.35rem 0;
}

.article-body code {
  border: 1px solid rgba(32, 184, 255, 0.22);
  border-radius: 6px;
  background: rgba(32, 184, 255, 0.08);
  color: #d9f4ff;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92em;
  padding: 0.08rem 0.32rem;
}
.article-figure img {
  cursor: zoom-in;
  transition: transform 160ms ease, filter 160ms ease;
}

.article-figure img:hover,
.article-figure img:focus-visible {
  filter: brightness(1.08);
  transform: scale(1.01);
  outline: none;
}

.lightbox-open {
  overflow: hidden;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(3, 7, 12, 0.92);
  backdrop-filter: blur(10px);
  padding: 2rem 4.6rem;
}

.lightbox-figure {
  display: grid;
  max-width: min(1120px, 100%);
  max-height: calc(100vh - 4rem);
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 11, 18, 0.96);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.lightbox-figure img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 9rem);
  object-fit: contain;
  background: #02050a;
}

.lightbox-figure figcaption {
  border-top: 1px solid var(--line);
  color: #cbd8e8;
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 20, 32, 0.92);
  color: var(--text);
  cursor: pointer;
  line-height: 1;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  border-color: rgba(32, 184, 255, 0.6);
  background: rgba(32, 184, 255, 0.16);
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  font-size: 2rem;
}

.lightbox-nav {
  top: 50%;
  width: 48px;
  height: 64px;
  font-size: 3rem;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.lightbox-count {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(13, 20, 32, 0.92);
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0.35rem 0.8rem;
}

@media (max-width: 700px) {
  .lightbox {
    padding: 4rem 0.75rem 3rem;
  }

  .lightbox-nav {
    top: auto;
    bottom: 0.75rem;
    width: 44px;
    height: 44px;
    font-size: 2.2rem;
    transform: none;
  }

  .lightbox-prev {
    left: 0.75rem;
  }

  .lightbox-next {
    right: 0.75rem;
  }

  .lightbox-count {
    bottom: 1rem;
  }
}
.placeholder-media {
  display: grid;
  min-height: 230px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(32, 184, 255, 0.16), transparent),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.035) 0 8px, transparent 8px 16px);
  color: var(--muted);
}

.footer-link-button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.footer-link-button:hover {
  color: var(--text);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent {
  position: fixed;
  inset: auto 1rem 1rem;
  z-index: 120;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.cookie-card {
  position: relative;
  width: min(760px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 11, 18, 0.96);
  box-shadow: var(--shadow);
  padding: 1.15rem;
  pointer-events: auto;
}

.cookie-card h2 {
  font-size: 1.25rem;
  margin-right: 2rem;
}

.cookie-card p {
  margin-bottom: 0.9rem;
}

.cookie-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 20, 32, 0.92);
  color: var(--text);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.cookie-options {
  display: grid;
  gap: 0.65rem;
  margin: 0.9rem 0;
}

.cookie-option {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 20, 32, 0.58);
  padding: 0.8rem;
}

.cookie-option input {
  margin-top: 0.25rem;
}

.cookie-option small {
  display: block;
  color: var(--muted);
  margin-top: 0.15rem;
}

.cookie-option.is-disabled {
  opacity: 0.86;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cookie-media {
  position: relative;
}

.cookie-media.is-blocked iframe {
  display: none;
}

.cookie-media.is-blocked .cookie-media-placeholder {
  position: absolute;
  inset: 0;
  min-height: 0;
}

.cookie-media-placeholder {
  min-height: 260px;
  display: grid;
  place-items: center;
  gap: 0.8rem;
  border: 1px dashed rgba(125, 190, 255, 0.28);
  background: #05080d;
  padding: 1rem;
  text-align: center;
}

.cookie-media-placeholder p {
  margin: 0;
}

@media (max-width: 560px) {
  .cookie-consent {
    inset: auto 0.7rem 0.7rem;
  }

  .cookie-card {
    padding: 1rem;
  }

  .cookie-actions .button {
    width: 100%;
  }
}
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
  padding: 1.6rem 0;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.error {
  color: var(--warning);
}

@media (max-width: 900px) {
  .nav {
    flex-wrap: wrap;
    padding: 0.8rem 0;
  }

  .nav-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    width: 100%;
  }

  .nav-links.is-open {
    display: grid;
  }

  .nav-links a {
    padding: 0.75rem 0;
  }

  .hero {
    min-height: auto;
    padding: 1.6rem 0 2rem;
  }

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

@media (max-width: 560px) {
  .brand {
    width: 112px;
    min-width: 112px;
  }

  .brand img {
    width: 112px;
  }

  .section {
    padding: 3rem 0;
  }

  .section-head,
  .footer-grid {
    display: grid;
  }

  .signal-grid,
  .weather-values,
  .status-item {
    grid-template-columns: 1fr;
  }
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.2rem;
  background: rgba(7, 16, 26, 0.72);
}

.lang-switch a {
  min-width: 34px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.45rem 0.5rem;
  text-align: center;
  text-decoration: none;
}

.lang-switch a.active,
.lang-switch a:hover {
  background: rgba(32, 184, 255, 0.16);
  color: var(--text);
}

@media (max-width: 900px) {
  .lang-switch {
    order: 3;
  }
}


.global-search {
  min-width: 0;
}

.search-toggle {
  width: 38px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 20, 32, 0.78);
  color: var(--text);
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
}

.search-toggle:hover,
.global-search.is-expanded .search-toggle {
  border-color: rgba(32, 184, 255, 0.55);
  background: rgba(32, 184, 255, 0.13);
}

.search-popover {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  display: none;
  width: min(360px, calc(100vw - 2rem));
  z-index: 35;
}

.global-search.is-expanded .search-popover {
  display: block;
}

.global-search .search-panel {
  width: 100%;
  max-height: 60vh;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.auth-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.auth-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.45rem 0.65rem;
  text-decoration: none;
}

.auth-links a:hover,
.auth-links .auth-primary {
  border-color: rgba(32, 184, 255, 0.55);
  background: rgba(32, 184, 255, 0.13);
  color: var(--text);
}

.hero-search {
  width: min(560px, 100%);
  margin: 0.9rem 0 0;
}

.hero-search input {
  min-height: 48px;
  font-size: 1rem;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.25);
}

.hero-search .search-panel {
  left: 0;
  right: auto;
}

.auth-form {
  display: grid;
  gap: 1rem;
  max-width: 560px;
}

.auth-form label {
  display: grid;
  gap: 0.35rem;
  color: #d7e4f4;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #07101a;
  color: var(--text);
  padding: 0.65rem 0.8rem;
}

.admin-table {
  margin-top: 1rem;
  overflow-x: auto;
}

.admin-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.75rem;
  text-align: left;
}

.admin-table th {
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .nav-actions {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .auth-links {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 560px) {
  .nav-actions {
    display: grid;
    gap: 0.6rem;
  }

  .auth-links {
    justify-content: flex-start;
  }
}
/* Mobile global search popover */
@media (max-width: 560px) {
  .search-popover {
    right: auto;
    left: 0;
  }
}

.support-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 2.6rem 0 1.4rem;
  border: 1px solid rgba(32, 184, 255, 0.28);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(32, 184, 255, 0.14), rgba(13, 20, 32, 0.78));
  padding: 1.1rem;
}

.article-body .support-cta h2 {
  margin: 0 0 0.45rem;
  border: 0;
  background: transparent;
  font-size: 1.35rem;
  padding: 0;
}

.support-cta p {
  margin: 0;
}

.support-cta .button {
  flex: 0 0 auto;
}

.support-card {
  display: flex;
  flex-direction: column;
}

.support-card .btn-row {
  margin-top: auto;
}

.support-value {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(32, 184, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(7, 16, 26, 0.7);
  color: #d9f4ff;
  font-weight: 700;
  overflow-wrap: anywhere;
  padding: 0.55rem 0.7rem;
}

.support-qr-section {
  background: rgba(13, 20, 32, 0.32);
}

.support-qr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 1.5rem;
  align-items: center;
}

.support-qr-image {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 0.8rem;
}

.support-qr-image img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 760px) {
  .support-cta,
  .support-qr {
    display: grid;
  }

  .support-cta .button {
    width: 100%;
  }
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.contact-card,
.support-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 20, 32, 0.78);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
  padding: 1.15rem;
}

.contact-card h2 {
  font-size: 1.35rem;
}

.contact-list {
  display: grid;
  gap: 0.75rem;
}

.contact-item {
  display: grid;
  gap: 0.25rem;
  border: 1px solid rgba(125, 190, 255, 0.15);
  border-radius: var(--radius);
  background: rgba(7, 16, 26, 0.58);
  padding: 0.8rem;
}

.contact-label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-value {
  color: #d9f4ff;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.contact-value:hover {
  color: var(--accent);
}

.contact-help-section {
  background: rgba(13, 20, 32, 0.32);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.support-item h3 {
  color: #d9f4ff;
}

@media (max-width: 980px) {
  .contact-grid,
  .support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .contact-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }
}
.software-list {
  display: grid;
  gap: 1.1rem;
}

.software-item {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 20, 32, 0.78);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.software-image {
  display: grid;
  place-items: center;
  min-height: 220px;
  border-right: 1px solid var(--line);
  background: #07101a;
  padding: 1rem;
}

.software-image img {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: contain;
}

.software-content {
  padding: 1.2rem;
}

.software-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.software-heading .eyebrow {
  margin-bottom: 0.25rem;
}

.software-content ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 1rem;
  margin: 1rem 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.button.disabled,
.button.disabled:hover {
  border-color: var(--line);
  background: rgba(125, 190, 255, 0.06);
  color: var(--muted);
  cursor: not-allowed;
}

.software-note-section {
  background: rgba(13, 20, 32, 0.32);
}

@media (max-width: 780px) {
  .software-item {
    grid-template-columns: 1fr;
  }

  .software-image {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .software-heading,
  .software-content ul {
    display: grid;
    grid-template-columns: 1fr;
  }
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 20, 32, 0.78);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
  padding: 1.15rem;
}

.service-card h2 {
  font-size: 1.35rem;
}

.service-card ul {
  display: grid;
  gap: 0.4rem;
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.service-card li::marker {
  color: var(--accent);
}

.service-process-section {
  background: rgba(13, 20, 32, 0.32);
}

@media (max-width: 980px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}
.list-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px);
  gap: 0.8rem;
  align-items: end;
  margin-bottom: 1rem;
}

.list-search,
.list-sort {
  display: grid;
  gap: 0.35rem;
  color: #d7e4f4;
  font-weight: 700;
}

.list-search span,
.list-sort span {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.list-search input,
.list-sort select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #07101a;
  color: var(--text);
  padding: 0.65rem 0.8rem;
}

.list-count {
  min-height: 1.4rem;
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}


.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 1rem 0 1.4rem;
}

.pagination[hidden] {
  display: none;
}

.pagination + .grid {
  margin-top: 0.4rem;
}

.pagination-button {
  min-width: 2.35rem;
  min-height: 2.35rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: rgba(9, 16, 26, 0.72);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}

.pagination-button:hover,
.pagination-button:focus-visible {
  border-color: rgba(32, 184, 255, 0.55);
  background: rgba(32, 184, 255, 0.12);
  outline: none;
}

.pagination-button.is-active {
  border-color: rgba(32, 184, 255, 0.72);
  background: rgba(32, 184, 255, 0.18);
  color: var(--text);
}

.pagination-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
[data-content-card][hidden] {
  display: none;
}

@media (max-width: 700px) {
  .list-tools {
    grid-template-columns: 1fr;
  }
}
.home-hub-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 1rem;
}

.home-links-card {
  grid-row: span 2;
}

.external-link-grid,
.stats-grid,
.server-pills {
  display: grid;
  gap: 0.75rem;
}

.external-site-link {
  display: grid;
  gap: 0.18rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(125, 190, 255, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(7, 12, 20, 0.42);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.external-site-link:hover {
  transform: translateY(-2px);
  border-color: rgba(32, 184, 255, 0.55);
  background: rgba(14, 34, 51, 0.62);
}

.external-site-link span {
  color: var(--accent);
  font-size: 0.92rem;
}

.external-site-link small,
.visitor-card p {
  color: var(--muted);
}

.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1rem 0;
}

.stat-box {
  display: grid;
  gap: 0.3rem;
  padding: 0.9rem;
  border: 1px solid rgba(125, 190, 255, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(7, 12, 20, 0.42);
}

.stat-box span {
  color: var(--muted);
  font-size: 0.82rem;
}

.stat-box strong {
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1.1;
}

.stat-box.accent strong {
  color: var(--accent-2);
}

.server-monitor {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.server-monitor > span {
  color: var(--muted);
  font-weight: 700;
}

.server-pills {
  grid-template-columns: repeat(4, auto);
  gap: 0.35rem;
}

.server-pill {
  display: inline-flex;
  min-width: 2.8rem;
  justify-content: center;
  padding: 0.28rem 0.45rem;
  border-radius: 0.3rem;
  border: 1px solid rgba(125, 190, 255, 0.18);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
}

.status-unknown {
  background: rgba(125, 190, 255, 0.13);
  color: #b9c7d8;
}

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

  .home-links-card {
    grid-row: auto;
  }
}

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

  .server-pills {
    grid-template-columns: repeat(2, auto);
  }
}
body[data-theme="light"] .brand {
  width: auto;
  min-width: auto;
  background: #06111f;
  border: 1px solid rgba(21, 74, 116, 0.18);
  border-radius: 8px;
  padding: 0.32rem 0.42rem;
  box-shadow: 0 10px 24px rgba(16, 32, 51, 0.12);
}

body[data-theme="light"] .brand img {
  width: 132px;
}

body[data-theme="light"] .pill,
body[data-theme="light"] .tag {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(21, 74, 116, 0.28);
  color: #31475e;
}

body[data-theme="light"] .pill.accent {
  background: rgba(0, 120, 184, 0.1);
  border-color: rgba(0, 120, 184, 0.46);
  color: #006da7;
}

body[data-theme="light"] .server-monitor > span,
body[data-theme="light"] .list-sort span,
body[data-theme="light"] .section-kicker,
body[data-theme="light"] .top-visitor-strip,
body[data-theme="light"] .top-server-strip > span {
  color: #425a72;
}

body[data-theme="light"] .card p,
body[data-theme="light"] .lead,
body[data-theme="light"] .section-head p,
body[data-theme="light"] .external-site-link small,
body[data-theme="light"] .visitor-card p {
  color: #40566e;
}

body[data-theme="light"] .status-online,
body[data-theme="light"] .server-pill.status-online {
  background: rgba(0, 143, 114, 0.14);
  border-color: rgba(0, 143, 114, 0.42);
  color: #00745e;
}

body[data-theme="light"] .status-offline,
body[data-theme="light"] .server-pill.status-offline {
  background: rgba(191, 41, 69, 0.12);
  border-color: rgba(191, 41, 69, 0.42);
  color: #a91732;
}
@media (max-width: 720px) {
  .top-info-inner {
    display: grid;
    justify-items: start;
    gap: 0.55rem;
    padding: 0.65rem 0;
  }

  .top-visitor-strip {
    justify-content: flex-start;
  }
}
/* Server administration */
.admin-panel {
  margin-top: 1.5rem;
}

.admin-panel .section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.admin-form {
  display: grid;
  gap: 1rem;
}

.admin-server-form {
  grid-template-columns: minmax(5.5rem, 0.55fr) minmax(13rem, 1.35fr) minmax(12rem, 1.25fr) minmax(5rem, 0.55fr) minmax(6rem, 0.6fr) minmax(5rem, 0.55fr);
  align-items: end;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 14, 24, 0.64);
}

.admin-form label {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-form input,
.admin-form select {
  width: 100%;
  min-height: 2.55rem;
  border: 1px solid rgba(125, 190, 255, 0.22);
  border-radius: 0.45rem;
  background: rgba(2, 7, 13, 0.86);
  color: var(--text);
  padding: 0.55rem 0.7rem;
}

.admin-check {
  align-self: center;
  display: flex !important;
  align-items: center;
  gap: 0.5rem !important;
  padding-bottom: 0.6rem;
  text-transform: none !important;
}

.admin-check input {
  width: auto;
  min-height: auto;
}

.admin-server-form .btn-row {
  grid-column: 1 / -1;
}

.admin-user-form {
  grid-template-columns: minmax(10rem, 1fr) minmax(14rem, 1.3fr) minmax(7rem, 0.6fr) minmax(12rem, 1fr);
  align-items: start;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 14, 24, 0.64);
}

.admin-user-form .btn-row {
  grid-column: 1 / -1;
}

.admin-form small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: none;
}

.admin-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.admin-list-head h3 {
  margin: 0;
}

.admin-per-page label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-per-page select {
  min-height: 2.35rem;
  border: 1px solid rgba(125, 190, 255, 0.22);
  border-radius: 0.45rem;
  background: rgba(2, 7, 13, 0.86);
  color: var(--text);
  padding: 0.45rem 0.7rem;
}

.admin-pagination {
  margin: 0.7rem 0 1rem;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-actions form {
  margin: 0;
}

.notice {
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-weight: 700;
}

.notice-ok {
  border-color: rgba(99, 230, 190, 0.38);
  background: rgba(99, 230, 190, 0.12);
  color: var(--accent-2);
}

.notice-error {
  border-color: rgba(255, 93, 115, 0.38);
  background: rgba(255, 93, 115, 0.12);
  color: #ff9aaa;
}

.button.danger {
  border-color: rgba(255, 93, 115, 0.38);
  color: #ff9aaa;
}

.button.danger:hover {
  border-color: rgba(255, 93, 115, 0.7);
  background: rgba(255, 93, 115, 0.12);
}

.server-pill.status-online {
  border-color: rgba(99, 230, 190, 0.55);
  background: rgba(99, 230, 190, 0.24);
  color: var(--accent-2);
}

.server-pill.status-offline {
  border-color: rgba(255, 93, 115, 0.55);
  background: rgba(255, 93, 115, 0.24);
  color: #ff9aaa;
}

@media (max-width: 980px) {
  .admin-server-form,
  .admin-user-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .admin-panel .section-head,
  .admin-actions {
    display: grid;
  }

  .admin-server-form,
  .admin-user-form {
    grid-template-columns: 1fr;
  }

  .admin-list-head,
  .admin-per-page label {
    display: grid;
    align-items: stretch;
  }
}
.admin-settings-form {
  grid-template-columns: minmax(12rem, 16rem) 1fr auto;
  align-items: end;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 14, 24, 0.5);
}

.admin-settings-form p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 820px) {
  .admin-settings-form {
    grid-template-columns: 1fr;
  }
}
.hero-link-panel {
  padding: 1rem;
}

.hero-link-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.hero-site-tile {
  min-height: 66px;
  display: grid;
  align-content: center;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.hero-site-tile:hover {
  border-color: rgba(32, 184, 255, 0.55);
  background: rgba(32, 184, 255, 0.12);
  transform: translateY(-1px);
}

.hero-site-tile strong {
  font-size: 1.08rem;
  line-height: 1.2;
}

.hero-site-tile span {
  overflow-wrap: anywhere;
}

.admin-link-form {
  grid-template-columns: repeat(2, minmax(12rem, 1fr));
  align-items: end;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 14, 24, 0.64);
}

.admin-link-form .btn-row {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .hero-link-grid,
  .admin-link-form {
    grid-template-columns: 1fr;
  }
}
.top-right-strip {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  margin-left: auto;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 28px;
  border: 1px solid rgba(125, 190, 255, 0.28);
  border-radius: 999px;
  background: rgba(7, 14, 24, 0.78);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.28rem 0.6rem;
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: rgba(32, 184, 255, 0.58);
  background: rgba(32, 184, 255, 0.14);
}

.theme-toggle-icon {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0 50%, var(--text) 50% 100%);
  box-shadow: 0 0 0 1px rgba(125, 190, 255, 0.25);
}

/* Light theme */
body[data-theme="light"] {
  color-scheme: light;
  --bg: #eef4fa;
  --panel: #ffffff;
  --panel-2: #f5f9fd;
  --text: #102033;
  --muted: #53677d;
  --line: rgba(21, 74, 116, 0.18);
  --accent: #0078b8;
  --accent-2: #008f72;
  --brand-orange: #f47f00;
  --brand-orange-rgb: 244, 127, 0;
  --danger: #bf2945;
  --warning: #9a6b00;
  --shadow: 0 14px 34px rgba(31, 58, 85, 0.15);
  background:
    radial-gradient(circle at 20% 0%, rgba(32, 184, 255, 0.16), transparent 26rem),
    linear-gradient(180deg, #f7fbff 0%, var(--bg) 48%, #e8f0f8 100%);
}

body[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(21, 74, 116, 0.16);
}

body[data-theme="light"] .top-info-bar {
  background: rgba(245, 250, 255, 0.9);
  border-top-color: rgba(21, 74, 116, 0.12);
}

body[data-theme="light"] .nav-links a,
body[data-theme="light"] .auth-links a,
body[data-theme="light"] .lang-switch,
body[data-theme="light"] .search-toggle,
body[data-theme="light"] .theme-toggle,
body[data-theme="light"] .button.secondary {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(21, 74, 116, 0.18);
  color: var(--text);
}

body[data-theme="light"] .nav-links a:hover,
body[data-theme="light"] .nav-links a.active,
body[data-theme="light"] .auth-links .auth-primary,
body[data-theme="light"] .lang-switch a.active,
body[data-theme="light"] .theme-toggle:hover {
  background: rgba(0, 120, 184, 0.12);
  border-color: rgba(0, 120, 184, 0.34);
  color: var(--text);
}

body[data-theme="light"] .card,
body[data-theme="light"] .service-card,
body[data-theme="light"] .article-callout,
body[data-theme="light"] .admin-server-form,
body[data-theme="light"] .admin-link-form,
body[data-theme="light"] .admin-settings-form,
body[data-theme="light"] .status-item,
body[data-theme="light"] .weather-value,
body[data-theme="light"] .stat-box,
body[data-theme="light"] .search-popover,
body[data-theme="light"] .search-panel {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(21, 74, 116, 0.16);
  box-shadow: var(--shadow);
}

body[data-theme="light"] .hero::after {
  background:
    linear-gradient(90deg, rgba(245, 250, 255, 0.88) 0%, rgba(245, 250, 255, 0.70) 38%, rgba(245, 250, 255, 0.34) 70%, rgba(245, 250, 255, 0.50) 100%),
    linear-gradient(180deg, rgba(245, 250, 255, 0.16) 0%, rgba(238, 244, 250, 0.82) 100%);
}

body[data-theme="light"] .hero-panel,
body[data-theme="light"] .signal,
body[data-theme="light"] .hero-site-tile {
  background: rgba(255, 255, 255, 0.66);
  border-color: rgba(21, 74, 116, 0.16);
}

body[data-theme="light"] .lead,
body[data-theme="light"] .section-head p,
body[data-theme="light"] .card p,
body[data-theme="light"] .signal span,
body[data-theme="light"] .top-info-inner,
body[data-theme="light"] .footer-grid,
body[data-theme="light"] .article-body,
body[data-theme="light"] .muted {
  color: var(--muted);
}

body[data-theme="light"] input,
body[data-theme="light"] select,
body[data-theme="light"] textarea,
body[data-theme="light"] .admin-form input,
body[data-theme="light"] .admin-form select {
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  border-color: rgba(21, 74, 116, 0.22);
}

body[data-theme="light"] .article-section-title,
body[data-theme="light"] .article-table,
body[data-theme="light"] .admin-table table {
  background: rgba(255, 255, 255, 0.7);
}

body[data-theme="light"] .site-footer {
  background: rgba(245, 250, 255, 0.72);
}

body[data-theme="light"] .brand {
  width: auto;
  min-width: auto;
  background: #06111f;
  border: 1px solid rgba(21, 74, 116, 0.18);
  border-radius: 8px;
  padding: 0.32rem 0.42rem;
  box-shadow: 0 10px 24px rgba(16, 32, 51, 0.12);
}

body[data-theme="light"] .brand img {
  width: 132px;
}

body[data-theme="light"] .pill,
body[data-theme="light"] .tag {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(21, 74, 116, 0.28);
  color: #31475e;
}

body[data-theme="light"] .pill.accent {
  background: rgba(0, 120, 184, 0.1);
  border-color: rgba(0, 120, 184, 0.46);
  color: #006da7;
}

body[data-theme="light"] .server-monitor > span,
body[data-theme="light"] .list-sort span,
body[data-theme="light"] .section-kicker,
body[data-theme="light"] .top-visitor-strip,
body[data-theme="light"] .top-server-strip > span {
  color: #425a72;
}

body[data-theme="light"] .card p,
body[data-theme="light"] .lead,
body[data-theme="light"] .section-head p,
body[data-theme="light"] .external-site-link small,
body[data-theme="light"] .visitor-card p {
  color: #40566e;
}

body[data-theme="light"] .status-online,
body[data-theme="light"] .server-pill.status-online {
  background: rgba(0, 143, 114, 0.14);
  border-color: rgba(0, 143, 114, 0.42);
  color: #00745e;
}

body[data-theme="light"] .status-offline,
body[data-theme="light"] .server-pill.status-offline {
  background: rgba(191, 41, 69, 0.12);
  border-color: rgba(191, 41, 69, 0.42);
  color: #a91732;
}
body[data-theme="light"] .article-body {
  color: #2f455d;
}

body[data-theme="light"] .article-body h2 {
  background: linear-gradient(90deg, rgba(0, 120, 184, 0.14), rgba(255, 255, 255, 0.9) 54%, rgba(255, 255, 255, 0));
  border-top-color: rgba(21, 74, 116, 0.18);
  border-bottom-color: rgba(21, 74, 116, 0.14);
  color: #102033;
}

body[data-theme="light"] .article-table {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(21, 74, 116, 0.2);
}

body[data-theme="light"] .article-table th,
body[data-theme="light"] .article-table td {
  border-bottom-color: rgba(21, 74, 116, 0.16);
  color: #2f455d;
}

body[data-theme="light"] .article-table th {
  color: #0f2b44;
}

body[data-theme="light"] .article-body code {
  background: rgba(0, 120, 184, 0.1);
  border-color: rgba(0, 120, 184, 0.32);
  color: #0e5278;
}

body[data-theme="light"] .article-figure,
body[data-theme="light"] .article-video {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(21, 74, 116, 0.2);
}

body[data-theme="light"] .article-figure figcaption,
body[data-theme="light"] .article-video figcaption,
body[data-theme="light"] .article-figure-light figcaption {
  background: rgba(245, 250, 255, 0.96);
  border-top-color: rgba(21, 74, 116, 0.16);
  color: #40566e;
}

body[data-theme="light"] .article-figure-hero img {
  background: #ffffff;
}

body[data-theme="light"] .article-callout,
body[data-theme="light"] .support-cta {
  background: linear-gradient(90deg, rgba(0, 120, 184, 0.12), rgba(255, 255, 255, 0.9));
  border-color: rgba(0, 120, 184, 0.28);
  color: #2f455d;
}

body[data-theme="light"] .article-callout h2,
body[data-theme="light"] .support-cta h2 {
  color: #102033;
}

body[data-theme="light"] .article-callout p,
body[data-theme="light"] .support-cta p {
  color: #40566e;
}

body[data-theme="light"] .article-body .support-cta h2 {
  margin: 0 0 0.45rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #102033;
}
@media (max-width: 720px) {
  .top-right-strip {
    width: 100%;
    justify-content: space-between;
  }
}
/* Sakul brand orange accents */
.button {
  border-color: rgba(var(--brand-orange-rgb), 0.62);
  background: rgba(var(--brand-orange-rgb), 0.16);
}

.button:hover,
.button:focus-visible {
  border-color: rgba(var(--brand-orange-rgb), 0.82);
  background: rgba(var(--brand-orange-rgb), 0.24);
}

.eyebrow,
.section-kicker {
  color: var(--brand-orange);
}

.pill.accent {
  border-color: rgba(var(--brand-orange-rgb), 0.62);
  background: rgba(var(--brand-orange-rgb), 0.12);
  color: var(--brand-orange);
}

.article-body h2 {
  border-left: 4px solid var(--brand-orange);
}

.command-list p {
  border-left: 4px solid rgba(var(--brand-orange-rgb), 0.76);
}

.theme-toggle-icon {
  background: linear-gradient(90deg, var(--brand-orange) 0 50%, var(--text) 50% 100%);
}

body[data-theme="light"] .command-list p {
  background: #fff8f0;
  border-color: rgba(var(--brand-orange-rgb), 0.34);
  border-left-color: rgba(var(--brand-orange-rgb), 0.78);
  color: #30465e;
}

body[data-theme="light"] .command-list p code {
  background: rgba(var(--brand-orange-rgb), 0.12);
  border-color: rgba(var(--brand-orange-rgb), 0.34);
  color: #914c00;
}

body[data-theme="light"] .button {
  border-color: rgba(var(--brand-orange-rgb), 0.5);
  background: rgba(var(--brand-orange-rgb), 0.12);
  color: #102033;
}

body[data-theme="light"] .button:hover,
body[data-theme="light"] .button:focus-visible {
  border-color: rgba(var(--brand-orange-rgb), 0.72);
  background: rgba(var(--brand-orange-rgb), 0.2);
}

body[data-theme="light"] .pill.accent {
  background: rgba(var(--brand-orange-rgb), 0.1);
  border-color: rgba(var(--brand-orange-rgb), 0.44);
  color: #9a5200;
}

body[data-theme="light"] .article-body h2 {
  background: linear-gradient(90deg, rgba(var(--brand-orange-rgb), 0.18), rgba(255, 255, 255, 0.92) 54%, rgba(255, 255, 255, 0));
}

body[data-theme="light"] .article-callout,
body[data-theme="light"] .support-cta {
  background: linear-gradient(90deg, rgba(var(--brand-orange-rgb), 0.12), rgba(255, 255, 255, 0.92));
  border-color: rgba(var(--brand-orange-rgb), 0.28);
}
/* Light theme page polish */
body[data-theme="light"] .contact-help-section,
body[data-theme="light"] .support-qr-section,
body[data-theme="light"] .software-note-section,
body[data-theme="light"] .service-process-section {
  background: transparent;
  border-top: 1px solid rgba(var(--brand-orange-rgb), 0.14);
  border-bottom: 1px solid rgba(21, 74, 116, 0.08);
}

body[data-theme="light"] .contact-card,
body[data-theme="light"] .support-item,
body[data-theme="light"] .software-item,
body[data-theme="light"] .service-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(21, 74, 116, 0.16);
  box-shadow: 0 14px 34px rgba(31, 58, 85, 0.12);
  color: #2f455d;
}

body[data-theme="light"] .contact-card h2,
body[data-theme="light"] .support-item h3,
body[data-theme="light"] .software-item h2,
body[data-theme="light"] .service-card h2 {
  color: #102033;
}

body[data-theme="light"] .contact-card p,
body[data-theme="light"] .support-item p,
body[data-theme="light"] .software-content p,
body[data-theme="light"] .service-card p,
body[data-theme="light"] .software-content ul,
body[data-theme="light"] .service-card ul {
  color: #40566e;
}

body[data-theme="light"] .contact-item {
  background: #f7fbff;
  border-color: rgba(21, 74, 116, 0.16);
}

body[data-theme="light"] .contact-label {
  color: #5b6f84;
}

body[data-theme="light"] .contact-value {
  color: #102033;
}

body[data-theme="light"] .contact-value:hover {
  color: #9a5200;
}

body[data-theme="light"] .software-image {
  background: #f7fbff;
  border-right-color: rgba(21, 74, 116, 0.14);
}

body[data-theme="light"] .service-card li::marker,
body[data-theme="light"] .software-content li::marker {
  color: var(--brand-orange);
}

body[data-theme="light"] .pagination-button {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(21, 74, 116, 0.18);
  color: #102033;
}

body[data-theme="light"] .pagination-button:hover,
body[data-theme="light"] .pagination-button:focus-visible,
body[data-theme="light"] .pagination-button.is-active {
  background: rgba(var(--brand-orange-rgb), 0.14);
  border-color: rgba(var(--brand-orange-rgb), 0.48);
  color: #102033;
}

body[data-theme="light"] .pagination-button:disabled {
  background: rgba(21, 74, 116, 0.08);
  border-color: rgba(21, 74, 116, 0.12);
  color: #8a9aab;
}
body[data-theme="light"] .support-value {
  background: #fff8f0;
  border-color: rgba(var(--brand-orange-rgb), 0.38);
  color: #7a4100;
  box-shadow: inset 4px 0 0 rgba(var(--brand-orange-rgb), 0.48);
}
/* Split administration */
.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.2rem;
}

.admin-nav a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 700;
  padding: 0.55rem 0.85rem;
  text-decoration: none;
}

.admin-nav a:hover,
.admin-nav a.active {
  border-color: rgba(var(--brand-orange-rgb), 0.58);
  background: rgba(var(--brand-orange-rgb), 0.14);
  color: var(--text);
}

.admin-dashboard-grid {
  align-items: stretch;
}

.admin-dashboard-card {
  display: flex;
  flex-direction: column;
}

.admin-dashboard-card .btn-row {
  margin-top: auto;
}

body[data-theme="light"] .admin-nav a {
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(21, 74, 116, 0.18);
  color: #40566e;
}

body[data-theme="light"] .admin-nav a:hover,
body[data-theme="light"] .admin-nav a.active {
  background: rgba(var(--brand-orange-rgb), 0.14);
  border-color: rgba(var(--brand-orange-rgb), 0.46);
  color: #102033;
}
.admin-ads-form {
  grid-template-columns: minmax(14rem, 1fr) minmax(12rem, 0.8fr) minmax(18rem, 1.5fr);
  align-items: start;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 14, 24, 0.64);
}

.admin-ads-form .btn-row {
  grid-column: 1 / -1;
}

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