:root {
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-soft: #eef2f7;
  --text: #111827;
  --muted: #6b7280;
  --line: #dfe5ee;
  --green: #10b981;
  --green-dark: #047857;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --amber: #f59e0b;
  --red: #ef4444;
  --violet: #7c3aed;
  --shadow: 0 12px 30px rgba(15, 23, 42, .08);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(16px, 4vw, 42px);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 20px;
  font-weight: 850;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--blue));
  font-size: 12px;
  font-weight: 900;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topnav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 750;
  font-size: 14px;
}

.topnav a:hover,
.topnav a.is-active {
  color: var(--text);
  background: var(--surface-soft);
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.button,
.icon-button,
.copy-ip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 16px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.button:hover,
.icon-button:hover,
.copy-ip:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(37, 99, 235, .18);
}

.button-primary:hover {
  background: var(--blue-dark);
}

.button-ghost {
  color: var(--text);
  background: #fff;
  border-color: var(--line);
}

.button-ghost:hover {
  border-color: #bcc7d6;
}

.button-wide {
  width: 100%;
}

.button-small {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}

.icon-button {
  width: 42px;
  padding: 0;
  color: var(--muted);
  background: var(--surface);
  border-color: var(--line);
}

.balance-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(245, 158, 11, .35);
  border-radius: 8px;
  color: #92400e;
  background: #fffbeb;
  text-decoration: none;
  font-weight: 850;
}

.flash-stack,
.toast-stack {
  position: fixed;
  top: 84px;
  right: 18px;
  z-index: 50;
  display: grid;
  gap: 8px;
  max-width: min(420px, calc(100vw - 36px));
}

.flash,
.toast {
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-weight: 750;
  font-size: 14px;
}

.flash-success,
.toast-success {
  border-left: 4px solid var(--green);
}

.flash-error,
.toast-error {
  border-left: 4px solid var(--red);
}

.shell {
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 560px);
  gap: 24px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.intro-panel h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.02;
  letter-spacing: 0;
}

.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stat-strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 11px;
  border-radius: 8px;
  color: #334155;
  background: var(--surface-soft);
  font-weight: 780;
  font-size: 14px;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.search-form label {
  position: relative;
  display: flex;
  align-items: center;
}

.search-form .icon {
  position: absolute;
  left: 14px;
  color: var(--muted);
}

.search-form input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: #fff;
}

.search-form input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.filter-panel {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px;
  scrollbar-width: thin;
}

.chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #475569;
  background: #fff;
  text-decoration: none;
  font-weight: 760;
  font-size: 14px;
}

.chip:hover,
.chip.is-active {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.content-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.side-panel,
.panel,
.auth-card,
.owner-server {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
}

.side-panel {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 18px;
}

.side-panel h2,
.panel h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 18px;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field span {
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  outline: none;
  background: #fff;
}

.field textarea {
  resize: vertical;
}

.server-list {
  min-width: 0;
}

.list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.list-head h2 {
  margin: 0;
  font-size: 22px;
}

.list-head span {
  color: var(--muted);
  font-weight: 760;
}

.server-card {
  display: grid;
  grid-template-columns: 44px 62px minmax(240px, 1fr) minmax(240px, 360px) 190px;
  gap: 14px;
  align-items: center;
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
}

.server-card-vip {
  background: linear-gradient(90deg, #fff7ed, #fff, #eff6ff);
  border-color: rgba(245, 158, 11, .45);
}

.rank {
  display: grid;
  place-items: center;
  width: 36px;
  height: 72px;
  border-radius: 8px;
  color: #64748b;
  background: var(--surface-soft);
  font-weight: 900;
}

.rank-top {
  color: #92400e;
  background: #fef3c7;
}

.server-logo {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--violet));
  text-decoration: none;
  font-size: 24px;
  font-weight: 900;
}

.server-logo.large {
  width: 78px;
  height: 78px;
}

.server-logo img,
.server-banner img,
.detail-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.server-main {
  min-width: 0;
}

.server-title-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.server-title {
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 900;
}

.server-title:hover {
  color: var(--blue);
}

.badge,
.status,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.badge-gold {
  color: #92400e;
  background: #fef3c7;
}

.badge-vip {
  color: #6d28d9;
  background: #ede9fe;
}

.status.online {
  color: #047857;
  background: #d1fae5;
}

.status.offline,
.status.unknown {
  color: #991b1b;
  background: #fee2e2;
}

.server-description {
  margin: 8px 0 0;
  color: #4b5563;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag {
  color: #1f2937;
  background: #eef2ff;
  border: 1px solid #dbe4ff;
}

.copy-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
}

.copy-ip {
  min-height: 34px;
  padding: 0 10px;
  color: var(--blue);
  background: #eff6ff;
  border-color: #bfdbfe;
  font-size: 14px;
}

.small-muted {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.server-banner {
  display: grid;
  place-items: center;
  height: 74px;
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, .88), rgba(37, 99, 235, .62)),
    repeating-linear-gradient(45deg, #293548 0 12px, #1f2937 12px 24px);
  text-decoration: none;
  font-weight: 900;
  text-align: center;
}

.server-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: #475569;
  font-size: 13px;
}

.metric strong {
  color: var(--text);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
}

.pagination a,
.pagination span {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #475569;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 800;
}

.pagination a.is-active {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 180px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .65);
}

.empty-state .icon {
  width: 42px;
  height: 42px;
}

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

.detail-main {
  min-width: 0;
}

.detail-hero,
.panel {
  padding: 18px;
  margin-bottom: 14px;
}

.detail-hero {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.detail-banner {
  display: grid;
  place-items: center;
  height: 170px;
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, .9), rgba(16, 185, 129, .68)),
    repeating-linear-gradient(45deg, #1f2937 0 16px, #334155 16px 32px);
  font-size: 28px;
  font-weight: 900;
}

.detail-title {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
}

.detail-title h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.05;
}

.detail-title p {
  margin: 8px 0 0;
  color: #4b5563;
  line-height: 1.5;
}

.detail-side {
  min-width: 0;
}

.sticky {
  position: sticky;
  top: 92px;
}

.big-stat {
  display: grid;
  place-items: center;
  padding: 18px;
  border-radius: 8px;
  color: #92400e;
  background: #fef3c7;
}

.big-stat span {
  font-size: 44px;
  font-weight: 950;
}

.big-stat small {
  font-weight: 800;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}

.metric-grid div {
  display: grid;
  gap: 3px;
  min-height: 70px;
  align-content: center;
  padding: 10px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.metric-grid strong {
  font-size: 20px;
}

.metric-grid span {
  color: var(--muted);
  font-weight: 750;
  font-size: 12px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  min-height: 180px;
  padding: 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.chart-bar {
  flex: 1;
  min-width: 3px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--green), var(--blue));
}

.chart-bar.is-offline {
  background: linear-gradient(180deg, #fca5a5, #ef4444);
}

.review-form {
  display: grid;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.review {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.review strong {
  margin-right: 8px;
}

.review span {
  color: #92400e;
  font-weight: 850;
}

.review p {
  margin: 8px 0 0;
  color: #4b5563;
  line-height: 1.5;
}

.auth-shell {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.auth-card {
  width: min(440px, 100%);
  padding: 24px;
}

.auth-card h1 {
  margin: 0 0 18px;
}

.auth-switch {
  margin: 16px 0 0;
  text-align: center;
  font-weight: 800;
}

.auth-switch a {
  color: var(--blue);
  text-decoration: none;
}

.dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.dashboard-head h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
}

.dashboard-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.balance-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 70px;
  padding: 0 18px;
  border-radius: 8px;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid rgba(245, 158, 11, .35);
}

.balance-card strong {
  font-size: 28px;
}

.balance-card span {
  font-weight: 800;
}

.dev-topup {
  margin-bottom: 14px;
}

.server-form {
  display: grid;
  gap: 14px;
}

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

.field-wide {
  grid-column: span 2;
}

.check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-weight: 760;
  font-size: 14px;
}

.owner-server {
  margin-bottom: 10px;
  overflow: hidden;
}

.owner-server summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  cursor: pointer;
  font-weight: 900;
}

.owner-server summary small {
  color: var(--muted);
  font-weight: 750;
}

.owner-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
}

.promotion-box {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 14px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.promotion-box h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, .52);
}

.modal.is-open {
  display: flex;
}

.modal-panel {
  position: relative;
  width: min(420px, 100%);
  padding: 22px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .35);
}

.modal-panel h2 {
  margin: 0 0 16px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: var(--surface-soft);
  cursor: pointer;
  font-size: 22px;
}

.premium-strip {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid rgba(245, 158, 11, .35);
  border-radius: 8px;
  background: linear-gradient(90deg, #fff7ed, #ffffff 46%, #eef6ff);
  box-shadow: var(--shadow);
}

.premium-title {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px;
  border-radius: 8px;
  color: #92400e;
  background: #fffbeb;
  font-weight: 900;
}

.premium-title small {
  color: #a16207;
  font-size: 12px;
}

.premium-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 10px;
}

.premium-item {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 76px;
  overflow: hidden;
  padding: 10px;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, .88), rgba(37, 99, 235, .68)),
    repeating-linear-gradient(45deg, #1e293b 0 12px, #334155 12px 24px);
}

.premium-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.premium-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, .76));
}

.premium-item span,
.premium-item strong {
  position: relative;
  z-index: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.premium-item span {
  font-weight: 900;
}

.premium-item strong {
  color: #fde68a;
  font-size: 13px;
}

.server-card-highlight {
  border-color: rgba(245, 158, 11, .65);
  box-shadow: 0 12px 34px rgba(245, 158, 11, .16);
}

.highlight-gold {
  background: linear-gradient(90deg, #fff7ed, #ffffff 55%, #fef3c7);
}

.badge-wipe {
  color: #7c2d12;
  background: #ffedd5;
}

.platform-badge,
.social-link,
.core-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.platform-badge.java {
  color: #047857;
  background: #d1fae5;
  border: 1px solid #a7f3d0;
}

.platform-badge.bedrock {
  color: #1d4ed8;
  background: #dbeafe;
  border: 1px solid #bfdbfe;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.social-link {
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  text-decoration: none;
}

.social-link:hover {
  color: #fff;
  background: #2563eb;
}

.core-pill {
  background: #f8fafc;
  border: 1px solid var(--line);
}

.copy-ip.is-copied {
  color: #047857;
  background: #d1fae5;
  border-color: #86efac;
}

.filter-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.filter-group summary {
  cursor: pointer;
  padding: 10px 12px;
  font-weight: 900;
}

.filter-check-list {
  display: grid;
  gap: 7px;
  max-height: 260px;
  overflow: auto;
  padding: 0 10px 10px;
}

.filter-check-list.small-list {
  grid-template-columns: 1fr 1fr;
  max-height: 190px;
}

.filter-check-list .check {
  justify-content: flex-start;
  border-radius: 8px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.admin-stats div {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
}

.admin-stats strong {
  font-size: 28px;
}

.admin-stats span {
  color: var(--muted);
  font-weight: 800;
}

.admin-table-wrap {
  overflow: hidden;
}

.admin-table {
  display: grid;
  gap: 8px;
}

.admin-row {
  display: grid;
  grid-template-columns: 70px minmax(280px, 1fr) 110px 120px minmax(360px, 1.4fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-row-head {
  color: #475569;
  background: #f8fafc;
  font-weight: 900;
}

.admin-row small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 750;
}

.admin-actions,
.admin-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.admin-inline-form {
  margin-top: 8px;
}

.admin-inline-form input,
.pin-form input {
  min-height: 34px;
  width: 130px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
}

.pin-form input {
  width: 56px;
}

@media (max-width: 1180px) {
  .server-card {
    grid-template-columns: 40px 58px minmax(0, 1fr) 170px;
  }

  .server-banner {
    display: none;
  }
}

@media (max-width: 900px) {
  .topbar {
    height: auto;
    min-height: 72px;
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .topnav,
  .top-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .intro-panel,
  .content-grid,
  .detail-layout,
  .owner-grid,
  .premium-strip {
    grid-template-columns: 1fr;
  }

  .premium-list,
  .admin-stats {
    grid-template-columns: 1fr 1fr;
  }

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

  .side-panel,
  .sticky {
    position: static;
  }

  .server-card {
    grid-template-columns: 36px 56px minmax(0, 1fr);
  }

  .server-metrics {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (max-width: 620px) {
  .shell {
    width: min(100% - 20px, 1480px);
    padding-top: 14px;
  }

  .intro-panel,
  .filter-panel,
  .panel,
  .detail-hero,
  .auth-card {
    padding: 14px;
  }

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

  .server-card {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
  }

  .server-logo {
    display: none;
  }

  .rank {
    height: 100%;
    min-height: 92px;
  }

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

  .metric {
    justify-content: flex-start;
  }

  .detail-title {
    align-items: flex-start;
  }

  .form-grid,
  .field-wide,
  .metric-grid {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .premium-list,
  .admin-stats,
  .filter-check-list.small-list {
    grid-template-columns: 1fr;
  }

  .owner-server summary {
    display: grid;
  }
}

/* McStatus studio skin */
:root {
  --bg: #f9f9f9;
  --surface: #ffffff;
  --surface-soft: #f4f6f5;
  --text: #383838;
  --muted: #8b9090;
  --line: #e9eeee;
  --green: #32c560;
  --green-dark: #24994a;
  --blue: #32c560;
  --blue-dark: #24994a;
  --amber: #d89a23;
  --red: #f16363;
  --violet: #8b5cf6;
  --shadow: 0 18px 44px rgba(56, 56, 56, .08);
}

body {
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(50, 197, 96, .035) 0 1px, transparent 1px 84px),
    linear-gradient(0deg, rgba(50, 197, 96, .035) 0 1px, transparent 1px 84px),
    var(--bg);
}

.topbar {
  position: sticky;
  height: 82px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .08) 0 12%, transparent 12% 19%, rgba(255, 255, 255, .07) 19% 27%, transparent 27% 44%, rgba(255, 255, 255, .06) 44% 50%, transparent 50% 66%, rgba(255, 255, 255, .07) 66% 74%, transparent 74%),
    linear-gradient(135deg, #32c560, #2abf58);
  border-bottom: 0;
  box-shadow: 0 14px 30px rgba(50, 197, 96, .16);
}

.brand,
.topnav a,
.top-actions .button-ghost {
  color: #fff;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 7px;
  color: #32c560;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .09);
}

.topnav {
  justify-content: center;
}

.topnav a {
  border-radius: 7px;
  opacity: .86;
}

.topnav a:hover,
.topnav a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, .16);
  opacity: 1;
}

.top-actions .button-ghost,
.top-actions .icon-button {
  background: rgba(56, 56, 56, .20);
  border-color: rgba(255, 255, 255, .24);
  color: #fff;
}

.top-actions .button-primary {
  color: #fff;
  background: #383838;
  border-color: #383838;
  box-shadow: 0 12px 22px rgba(0, 0, 0, .14);
}

.button-primary,
.copy-ip,
.pagination a.is-active {
  background: var(--green);
  border-color: var(--green);
}

.button-primary:hover,
.copy-ip:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.button-ghost,
.icon-button {
  border-color: var(--line);
  background: #fff;
}

.shell {
  width: min(100% - 48px, 1340px);
}

.intro-panel,
.filter-panel,
.panel,
.side-panel,
.auth-card,
.detail-hero,
.premium-strip {
  border-color: var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}

.intro-panel {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: clamp(24px, 4vw, 42px);
}

.intro-panel::after {
  content: "";
  position: absolute;
  inset: auto 22px 18px auto;
  width: 220px;
  height: 140px;
  opacity: .08;
  background:
    linear-gradient(90deg, var(--green) 0 34%, transparent 34% 48%, var(--green) 48% 68%, transparent 68%),
    linear-gradient(0deg, var(--green) 0 34%, transparent 34% 48%, var(--green) 48% 68%, transparent 68%);
  border-radius: 8px;
  pointer-events: none;
}

.intro-panel h1 {
  color: #202020;
  font-size: clamp(38px, 6vw, 68px);
  line-height: .98;
}

.stat-strip span {
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  color: #3f4d4a;
  background: #f0f6f2;
}

.search-form label,
.field input,
.field select,
.field textarea,
.admin-inline-form input,
.pin-form input {
  border-color: #e1e8e5;
  border-radius: 7px;
  background: #fff;
}

.search-form label:focus-within,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(50, 197, 96, .65);
  box-shadow: 0 0 0 4px rgba(50, 197, 96, .11);
}

.filter-panel {
  padding: 18px 20px;
}

.chip-row {
  scrollbar-color: #cfd9d5 transparent;
}

.chip {
  min-height: 42px;
  border-radius: 7px;
  background: #fff;
  color: #57615e;
}

.chip:hover,
.chip.is-active {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 10px 22px rgba(50, 197, 96, .18);
}

.content-grid {
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
}

.side-panel {
  padding: 20px;
}

.side-panel h2,
.panel h2,
.list-head h2 {
  color: #303434;
}

.filter-check-list {
  gap: 7px;
}

.check {
  border-radius: 7px;
  background: #f8faf9;
}

.check:hover {
  border-color: rgba(50, 197, 96, .55);
}

.list-head {
  margin-bottom: 14px;
}

.server-card {
  position: relative;
  grid-template-columns: 46px minmax(250px, 360px) minmax(260px, 1fr) 198px;
  gap: 18px;
  min-height: 122px;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(56, 56, 56, .055);
}

.server-card:hover {
  transform: translateY(-1px);
  border-color: rgba(50, 197, 96, .36);
  box-shadow: 0 18px 38px rgba(56, 56, 56, .09);
}

.server-card-vip {
  background: linear-gradient(90deg, rgba(50, 197, 96, .10), #fff 34%, #fff);
  border-color: rgba(50, 197, 96, .38);
}

.server-card-highlight {
  background: linear-gradient(90deg, rgba(255, 236, 169, .45), #fff 42%, #fff);
  border-color: rgba(216, 154, 35, .38);
}

.rank {
  width: 31px;
  height: 31px;
  min-height: 31px;
  justify-self: center;
  border-radius: 5px;
  color: #fff;
  background: #b9bebe;
  transform: rotate(45deg);
  box-shadow: 0 8px 14px rgba(0, 0, 0, .08);
}

.rank::first-line {
  transform: rotate(-45deg);
}

.rank {
  font-size: 0;
}

.rank::after {
  content: attr(class);
  display: none;
}

.rank {
  color: transparent;
}

.rank-top {
  background: linear-gradient(135deg, #e3b04b, #a56a28);
}

.rank-top,
.rank {
  overflow: hidden;
}

.rank-top::before,
.rank::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .18);
}

.rank {
  position: relative;
}

.rank + .server-logo {
  display: none;
}

.server-main {
  grid-column: 3;
  min-width: 0;
}

.server-banner {
  grid-column: 2;
  grid-row: 1;
  height: 74px;
  align-self: center;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(20, 28, 24, .72), rgba(50, 197, 96, .22)),
    repeating-linear-gradient(45deg, #23332c 0 12px, #19251f 12px 24px);
  box-shadow: inset 0 -5px 0 rgba(50, 197, 96, .85);
}

.server-banner span {
  font-size: 20px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}

.server-title {
  color: #303434;
  font-size: 17px;
}

.server-title:hover {
  color: var(--green-dark);
}

.server-description {
  max-width: 680px;
  color: #7a8280;
}

.badge,
.status,
.tag {
  border-radius: 6px;
}

.status.online {
  color: #1f9b4b;
  background: rgba(50, 197, 96, .14);
}

.badge-gold {
  color: #8a5b11;
  background: #fff4d2;
}

.badge-wipe {
  color: #9f3b38;
  background: #fff1f0;
}

.badge-vip {
  color: #1d8d46;
  background: #e8f8ee;
}

.tag {
  border-color: #eef1f0;
  color: #757d7a;
  background: #fafafa;
}

.copy-line {
  gap: 7px;
}

.copy-ip {
  min-height: 36px;
  color: #fff;
  box-shadow: 0 9px 18px rgba(50, 197, 96, .18);
}

.copy-ip.is-copied,
.copy-ip.copied {
  color: #fff;
  background: #25a84f;
}

.platform-badges .platform,
.platform-badge,
.core-pill {
  border-radius: 6px;
  background: #f4f8f5;
}

.server-metrics {
  grid-column: 4;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.metric {
  min-height: 36px;
  border-radius: 7px;
  color: #737d79;
  background: #f5f7f6;
}

.metric strong {
  color: #303434;
}

.server-metrics .button-primary {
  min-height: 42px;
  border-radius: 7px;
}

.premium-strip {
  grid-template-columns: 240px 1fr;
  padding: 16px;
  background:
    linear-gradient(90deg, rgba(50, 197, 96, .12), #fff 36%),
    #fff;
}

.premium-title {
  border-radius: 7px;
  background: #383838;
}

.premium-item {
  border-radius: 7px;
  background: #fff;
}

.premium-item:hover {
  border-color: rgba(50, 197, 96, .45);
}

.detail-layout {
  grid-template-columns: minmax(0, 1fr) 340px;
}

.detail-hero {
  overflow: hidden;
}

.detail-banner {
  border-radius: 7px;
  box-shadow: inset 0 -6px 0 rgba(50, 197, 96, .85);
}

.detail-title h1,
.dashboard-head h1,
.auth-card h1,
.panel h1 {
  color: #303434;
}

.detail-side .panel,
.panel.sticky {
  border-radius: 10px;
}

.auth-shell {
  min-height: calc(100vh - 82px);
  background:
    radial-gradient(circle at top, rgba(50, 197, 96, .16), transparent 36%),
    #202020;
}

.auth-card {
  width: min(100%, 540px);
  padding: clamp(30px, 5vw, 58px);
}

.dashboard-head {
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .08) 0 16%, transparent 16% 34%, rgba(255, 255, 255, .07) 34% 48%, transparent 48% 68%, rgba(255, 255, 255, .06) 68% 78%, transparent 78%),
    var(--green);
  color: #fff;
}

.dashboard-head h1,
.dashboard-head p {
  color: #fff;
}

.balance-card {
  background: rgba(255, 255, 255, .15);
  border-color: rgba(255, 255, 255, .28);
}

.server-form {
  gap: 20px;
}

.form-grid {
  gap: 14px;
}

.field span {
  color: #7a8280;
}

.check-grid {
  max-height: 250px;
  overflow: auto;
  padding-right: 6px;
}

.admin-stats div,
.admin-row {
  border-radius: 8px;
  background: #fff;
}

.admin-row-head {
  background: #f5f7f6;
}

.modal {
  backdrop-filter: blur(3px);
}

.modal-panel {
  border-radius: 10px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .22);
}

@media (max-width: 1180px) {
  .server-card {
    grid-template-columns: 42px minmax(220px, 330px) minmax(0, 1fr);
  }

  .server-main {
    grid-column: 3;
  }

  .server-banner {
    display: grid;
  }

  .server-metrics {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .topbar {
    height: auto;
    min-height: 82px;
    padding-top: 12px;
    padding-bottom: 12px;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, .08) 0 18%, transparent 18% 38%, rgba(255, 255, 255, .07) 38% 62%, transparent 62%),
      var(--green);
  }

  .content-grid,
  .detail-layout,
  .premium-strip {
    grid-template-columns: 1fr;
  }

  .server-card {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .server-banner {
    grid-column: 2;
    grid-row: 1;
  }

  .server-main {
    grid-column: 1 / -1;
  }

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

@media (max-width: 620px) {
  .shell {
    width: min(100% - 18px, 1340px);
  }

  .intro-panel h1 {
    font-size: 38px;
  }

  .server-card {
    padding: 14px;
  }

  .rank {
    width: 28px;
    height: 28px;
    min-height: 28px;
  }

  .server-banner {
    height: 66px;
  }

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

.rank {
  color: #fff;
  font-size: 14px;
  transform: none;
}

.rank::before,
.rank::after {
  display: none;
}
