:root {
  --bg: #cfd3dc;
  --paper: #ffffff;
  --ink: #212529;
  --muted: #6d6d6d;
  --line: #e6e8ee;
  --vip: #fff4c2;
  --vip-2: #ffe9a0;
  --arena: #3498db;
  --arena-2: #258cd1;
  --arena-3: #1e7bb8;
  --blue: #3498db;
  --blue-2: #258cd1;
  --blue-deep: #1e7bb8;
  --top: #161616;
  --ok: #059669;
  --warn: #b45309;
  --red: #dc2626;
  --max: 1200px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --display: Oswald, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 13px;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  position: relative;
}
body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  width: min(22vw, 340px);
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.55;
}
body::before {
  left: 0;
  background-image: url("../img/side-left.png");
  background-position: left center;
  mask-image: linear-gradient(to right, #000 35%, transparent);
}
body::after {
  right: 0;
  background-image: url("../img/side-right.png");
  background-position: right center;
  mask-image: linear-gradient(to left, #000 35%, transparent);
}
a { color: var(--blue-2); text-decoration: none; }
a:hover { color: var(--blue-deep); text-decoration: underline; }
img { max-width: 100%; }

.site { position: relative; z-index: 1; }
.wrap { width: min(var(--max), calc(100% - 24px)); margin: 0 auto; }

.site-head {
  width: min(var(--max), calc(100% - 24px));
  margin: 0 auto;
}

.utilbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 49px;
  padding: 0 16px;
  background: #2f2f2f;
  color: #a3a3a3;
  font-size: 13px;
  line-height: 1.5;
  text-transform: uppercase;
}
.utilbar a {
  color: #fff;
  font-size: 10.4px;
  line-height: 1.5;
  text-decoration: none;
  font-weight: 400;
}
.utilbar a:hover { color: #fff; text-decoration: underline; }
.util-left, .util-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.utilbar .pipe { color: #fff; opacity: 0.45; font-size: 10.4px; }
.util-muted { opacity: 0.7; font-weight: 400; }

.header-main {
  background-color: #f8f8f8;
  background-image: url("../img/header-banner.png?v=2");
  background-repeat: no-repeat;
  background-position: right top;
  background-size: auto 176px;
  box-shadow: 0 6.5px 13px rgba(0, 0, 0, 0.15);
}

.brandbar {
  display: flex;
  align-items: center;
  min-height: 104px;
  padding: 8px 16px;
}
.logo { display: block; text-decoration: none; flex: 0 0 auto; }
.logo img {
  height: 94px;
  width: auto;
  max-width: 240px;
  display: block;
}
.logo:hover { text-decoration: none; }

.navbar {
  display: flex;
  align-items: stretch;
  min-height: 72px;
  background-color: #2f2f2f;
  background-image: linear-gradient(#ffffff, #ececec);
  border-top: 1px solid #d8d8d8;
  border-bottom: 1px solid #d8d8d8;
}
.navbar a, .navbar .drop > span {
  display: flex; align-items: center;
  height: 70px;
  padding: 12px 20px;
  color: #656464;
  font-family: var(--display);
  font-weight: 400; font-size: 16px;
  line-height: 1.5;
  letter-spacing: normal;
  text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  border-left: 1px solid #d8d8d8;
  position: relative;
  white-space: nowrap;
}
.navbar a:hover, .navbar .drop:hover > span {
  color: #2f2f2f; text-decoration: none; background: rgba(255,255,255,.55);
}
.navbar a.active {
  background: #fff;
  color: #2f2f2f;
}
.navbar a.active::before {
  content: " ";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: #3498db;
}
.navbar > :last-child {
  border-right: 1px solid #d8d8d8;
}
.drop { position: relative; }
.drop-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid #e5e7eb;
  min-width: 220px; box-shadow: 0 12px 30px rgba(0,0,0,.12); z-index: 20;
  padding: 8px 0;
}
.drop:hover .drop-menu { display: block; }
.drop-menu a {
  display: block; height: auto; padding: 8px 14px; font-size: 13px; letter-spacing: 0;
  text-transform: none; font-weight: 600; color: #111;
  border: 0; font-family: var(--font);
}
.drop-menu a:hover { background: #eff6ff; color: #111; }

.sheet {
  background: #fff;
  margin: 18px auto 40px;
  padding: 22px 22px 28px;
  box-shadow: 0 10px 40px rgba(17, 24, 39, 0.08);
  border: 1px solid #e7e9ef;
}
.sheet .wrap { width: 100%; max-width: none; margin: 0; }

.page-head { text-align: center; margin: 6px 0 22px; }
.page-head h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 30px; font-weight: 400; line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink);
}
.page-head p {
  margin: 8px 0 0;
  font-family: var(--display);
  font-size: 18px; font-weight: 400; line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink);
}

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; }
.main-list { min-width: 0; }

.rank-head, .rank-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 150px;
  gap: 8px;
  align-items: center;
}
.rank-head {
  padding: 8px 12px;
  font-family: var(--display);
  color: #9ca3af; font-size: 13px; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.rank-row {
  padding: 16px 12px;
  border-bottom: 1px solid #f0f1f5;
  background: #fff;
  align-items: start;
}
.rank-row > div:nth-child(2) { min-width: 0; overflow: hidden; }
.rank-num {
  font-family: var(--display);
  font-size: 22px; font-weight: 400; color: var(--ink);
  text-align: center; padding-top: 12px;
}
.vote-col { padding-top: 8px; }
.rank-row:hover { background: #fafafa; }
.rank-row.vip {
  background: var(--vip);
  border-bottom-color: #f3e2a6;
}
.rank-row.vip:hover { background: var(--vip-2); }
.rank-row.vip .rank-num { color: var(--ink); }

.s-name {
  display: inline-block;
  font-family: var(--display);
  font-size: 24px; font-weight: 700; line-height: 1.2;
  color: #6d6d6d;
  text-decoration: none; margin: 3px 8px 3px 0;
}
.s-name:hover { color: var(--arena); text-decoration: none; }
.s-desc { margin: 6px 0 0; color: #6d6d6d; font-size: 15px; line-height: 1.5; }
.s-tags { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tag, .discord {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 3px;
}
.tag { background: #f3f4f6; color: #4b5563; }
.discord { background: #5865f2; color: #fff; text-decoration: none; }
.discord:hover { color: #fff; filter: brightness(1.08); text-decoration: none; }
.badge {
  display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 900;
  background: #f59e0b; color: #111; padding: 2px 7px; border-radius: 3px;
  letter-spacing: 0.06em; vertical-align: middle;
}
.banner728 {
  display: block; margin: 0 0 10px;
  width: 100%; max-width: 100%; height: auto;
  border: 1px solid #ead9a0;
}

.vote-col { text-align: right; }
.btn-vote {
  display: inline-block;
  min-width: 120px;
  padding: 12px 24px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #fff !important;
  background-color: var(--arena-2);
  background-image: linear-gradient(#3498db, #258cd1);
  border: 1px solid #258cd1;
  border-bottom-color: transparent;
  border-radius: 0.25rem;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.06);
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-image .15s ease, box-shadow .15s ease, transform .15s ease;
}
.btn-vote:hover {
  color: #fff !important;
  background-image: linear-gradient(#4aa3e0, #2b93d6);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.08), 0 6px 14px rgba(37, 140, 209, 0.28);
  transform: translateY(-1px);
}
.btn-vote:active {
  transform: translateY(1px);
  background-image: linear-gradient(#258cd1, #1e7bb8);
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.12);
}
.vote-col .join {
  display: block; margin-top: 6px; font-size: 12px; color: #6d6d6d; font-weight: 600;
}

.side h3 {
  margin: 0; padding: 10px 12px;
  font-family: var(--display);
  font-size: 14px; font-weight: 400; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line);
  background: #fafafa;
}

.side .box {
  background: #fff; border: 1px solid var(--line); margin-bottom: 14px;
}
.side-card { padding: 12px; border-bottom: 1px solid #f3f4f6; }
.vip-mini { display: flex; gap: 10px; align-items: center; }
.vip-mini b a {
  font-family: var(--display); font-weight: 700; font-size: 16px;
  color: #6d6d6d; text-decoration: none;
}
.vip-mini b a:hover { color: var(--arena); }
.cat-list a {
  display: block; padding: 9px 12px; color: #212529; font-weight: 600; font-size: 13px;
  border-bottom: 1px solid #f3f4f6; text-decoration: none;
}
.cat-list a:hover { background: #eaf6fc; color: var(--arena); }

.ad-slot {
  display: grid; place-items: center; overflow: hidden;
  border: 1px dashed #d1d5db; background: #fafafa; margin-bottom: 14px;
  min-height: 90px; position: relative;
}
.ad-slot.side { min-height: 250px; }
.ad-label {
  position: absolute; top: 4px; left: 6px; font-size: 10px; color: #9ca3af; letter-spacing: 0.08em;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; cursor: pointer;
  font-family: var(--display);
  font-weight: 400; font-size: 14px;
  padding: 10px 20px; border-radius: 0.25rem; text-decoration: none;
}
.btn-gold, .btn-cyan {
  color: #fff;
  background-color: var(--arena-2);
  background-image: linear-gradient(#3498db, #258cd1);
  border: 1px solid #258cd1;
  border-bottom-color: transparent;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.06);
}
.btn-gold:hover, .btn-cyan:hover {
  color: #fff; text-decoration: none;
  background-image: linear-gradient(#4aa3e0, #2b93d6);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.08), 0 6px 14px rgba(37, 140, 209, 0.28);
}
.btn-ghost { background: #fff; color: #111; border: 1px solid #d1d5db; }
.btn-ghost:hover { background: #f3f4f6; text-decoration: none; color: #111; }
.btn-danger { background: #991b1b; color: #fff; }
.btn-sm { padding: 6px 10px; font-size: 12px; }
.btn-block { width: 100%; }

.flash { width: min(var(--max), calc(100% - 24px)); margin: 12px auto 0; position: relative; z-index: 2; }
.flash .item { padding: 10px 14px; margin-bottom: 8px; font-weight: 700; background: #fff; border: 1px solid var(--line); }
.flash .ok { color: var(--ok); border-color: #a7f3d0; background: #ecfdf5; }
.flash .warn { color: var(--red); border-color: #fecaca; background: #fef2f2; }

.page { padding: 8px 0 8px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.pack, .slot-card, .form-card, .server-hero, .panel {
  background: #fff; border: 1px solid var(--line); padding: 18px;
}
.pack.featured { border-color: #f59e0b; background: #fffbeb; }
.pack h3, .slot-card h3, .form-card h3, .server-hero h1, .docs h1, .docs h2, .price {
  font-family: var(--display); font-weight: 400;
}
.pack h3 { margin: 0 0 6px; font-size: 22px; text-transform: uppercase; }
.price { font-size: 2rem; color: var(--arena-2); margin: 10px 0; }
label {
  display: block; font-family: var(--display); font-size: 13px; color: var(--muted);
  margin: 12px 0 6px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.04em;
}
.table th {
  font-family: var(--display); color: var(--muted); font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 400;
}
.price span { font-size: 0.9rem; color: var(--muted); font-weight: 700; }
.pack ul { padding-left: 18px; color: var(--muted); }
.help { color: var(--muted); font-size: 13px; }
.search {
  display: flex; gap: 8px; max-width: 520px; margin: 0 auto 18px;
  border: 1px solid #d1d5db; background: #fff; padding: 4px;
}
.search input {
  flex: 1; border: 0; padding: 10px 12px; font-size: 15px; outline: none; background: transparent; color: #111;
}

input[type=text], input[type=password], input[type=email], input[type=url], input[type=number], select, textarea {
  width: 100%; background: #fff; border: 1px solid #d1d5db; color: #111;
  border-radius: 3px; padding: 10px 12px; font-family: inherit; font-size: 14px;
}
textarea { min-height: 120px; resize: vertical; }
code, .mono {
  font-family: Consolas, "Courier New", monospace; font-size: 12px;
  background: #f3f4f6; padding: 2px 6px; color: #1d4ed8;
}
pre {
  background: #111827; color: #e5e7eb; padding: 14px; overflow: auto; font-size: 12px;
  border-radius: 4px;
}

.table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }

.footer {
  position: relative; z-index: 1;
  text-align: center; color: #6b7280; font-size: 13px;
  padding: 10px 0 36px;
}
.footer a { color: #4b5563; margin: 0 8px; }
.credits-pill {
  color: #fbbf24; font-weight: 800; font-size: 11px;
}

.status { font-size: 11px; font-weight: 900; text-transform: uppercase; }
.status.approved, .status.active, .status.paid { color: var(--ok); }
.status.pending { color: var(--warn); }
.status.rejected, .status.ended { color: var(--red); }

.docs h2 { margin-top: 28px; }
.docs li { margin: 8px 0; color: var(--muted); }

.banner88 { width: 88px; height: 31px; overflow: hidden; background: #111; display: inline-block; vertical-align: middle; margin-right: 8px; }
.banner88 img { width: 88px; height: 31px; object-fit: cover; display: block; }

.stat-row { display: none; }

@media (max-width: 1100px) {
  body::before, body::after { display: none; }
  .layout, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .header-main { background-size: auto 140px; }
  .navbar { flex-wrap: wrap; min-height: 0; }
  .navbar a, .navbar .drop > span { height: 48px; padding: 8px 14px; font-size: 14px; }
}
@media (max-width: 720px) {
  .rank-head { display: none; }
  .rank-row, .rank-head { grid-template-columns: 48px 1fr; }
  .vote-col { grid-column: 1 / -1; text-align: left; margin-top: 8px; }
  .util-left { display: none; }
  .header-main { background-image: none; }
  .logo img { width: 132px; height: 80px; }
  .brandbar { min-height: 90px; }
}
