/* ==========================================================================
   MCSunucular — Minecraft piksel teması
   ========================================================================== */

:root {
  --bg: #16171c;
  --panel: #25272e;
  --panel-2: #2d3038;
  --panel-hi: #3a3d47;
  --panel-lo: #15161a;
  --line: #000;
  --text: #e8e8e8;
  --muted: #a3a6ae;
  --dim: #6d717b;

  --grass: #6aaa3a;
  --grass-dark: #3d7a1f;
  --green: #55ff55;
  --gold: #ffaa00;
  --yellow: #ffff55;
  --aqua: #55ffff;
  --red: #ff5555;
  --purple: #ff55ff;
  --xp: #80ff20;

  --font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-title: 'Outfit', 'Inter', system-ui, sans-serif;
  --font-text: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --bevel: inset 3px 3px 0 var(--panel-hi), inset -3px -3px 0 var(--panel-lo);
  --tex-stone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' shape-rendering='crispEdges'%3E%3Crect width='16' height='16' fill='%2316171c'/%3E%3Cpath fill='%231c1e25' d='M0 0h2v1H0zM5 2h3v1H5zM11 1h2v2h-2zM2 6h2v1H2zM9 5h3v1H9zM14 7h2v1h-2zM4 10h3v1H4zM12 11h2v1h-2zM0 13h2v1H0zM7 14h3v1H7z'/%3E%3Cpath fill='%23121317' d='M3 3h1v1H3zM8 8h2v1H8zM13 4h1v1h-1zM1 9h1v2H1zM10 13h1v1h-1zM6 6h1v1H6zM15 14h1v1h-1z'/%3E%3C/svg%3E");
  --tex-dirt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' shape-rendering='crispEdges'%3E%3Crect width='16' height='16' fill='%233b2716'/%3E%3Cpath fill='%23473020' d='M1 1h2v1H1zM6 0h2v2H6zM12 2h3v1h-3zM3 5h2v1H3zM9 6h2v2H9zM14 9h2v1h-2zM1 11h3v1H1zM7 12h2v1H7zM11 14h3v1h-3z'/%3E%3Cpath fill='%23301f11' d='M4 2h1v1H4zM10 3h1v1h-1zM0 7h1v1H0zM6 9h1v1H6zM13 12h1v2h-1zM3 14h1v1H3zM15 4h1v1h-1z'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg) var(--tex-stone) repeat;
  background-size: 64px 64px;
  image-rendering: pixelated;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

img { image-rendering: auto; max-width: 100%; }
.px-icon, .favicon { image-rendering: pixelated; flex-shrink: 0; }

a { color: var(--aqua); text-decoration: none; }
a:hover { color: var(--yellow); }

h1, h2, h3 { font-family: var(--font-title); font-weight: 700; line-height: 1.25; margin: 0 0 .5em; text-shadow: 0 2px 0 rgba(0,0,0,.55); letter-spacing: -.01em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 760px; }
main { flex: 1; padding: 24px 0 48px; }

.muted { color: var(--muted); }
.small { font-size: 14px; }
.nowrap { white-space: nowrap; }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-gold { color: var(--gold); }
.text-aqua { color: var(--aqua); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------------------------------------------------------- header */

.site-header {
  background: #3b2716 var(--tex-dirt) repeat;
  background-size: 64px 64px;
  border-bottom: 4px solid #000;
  position: relative;
}
.site-header::before {
  content: '';
  display: block;
  height: 10px;
  background:
    linear-gradient(90deg, transparent 0 8px, #4d8a2a 8px 16px, transparent 16px 40px, #4d8a2a 40px 44px, transparent 44px) 0 6px / 56px 4px repeat-x,
    linear-gradient(#6aaa3a, #6aaa3a) 0 0 / 100% 6px no-repeat;
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }

.logo { display: flex; align-items: center; gap: 10px; color: #fff; }
.logo:hover { color: #fff; }
.logo-text {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 800;
  color: var(--yellow);
  text-shadow: 0 2px 0 #3f3f15;
  letter-spacing: .5px;
}
.logo-text span { color: #fff; text-shadow: 0 2px 0 #1a1a1a; }
.logo-big { font-family: var(--font-title); font-weight: 800; font-size: 34px; color: var(--yellow); text-shadow: 3px 3px 0 #3f3f15; text-align: center; margin-bottom: 24px; }
.logo-big span { color: #fff; text-shadow: 3px 3px 0 #3f3f3f; }

.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.nav a:not(.btn) { color: #fff; padding: 6px 10px; text-shadow: 0 1px 0 #000; font-size: 15px; font-weight: 600; }
.nav a:not(.btn):hover, .nav a.active { color: var(--yellow); }
.nav form { margin: 0; }
.btn.nav-toggle { display: none; margin-left: auto; }

.announcement {
  background: #1f2a14;
  border-bottom: 3px solid #000;
  color: var(--yellow);
  text-align: center;
  padding: 8px 16px;
  text-shadow: 2px 2px 0 #000;
}

/* ---------------------------------------------------------------- buttons */

.btn {
  --b-bg: #717171;
  --b-hi: #a8a8a8;
  --b-lo: #4a4a4a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0,0,0,.6);
  background: var(--b-bg);
  border: 3px solid #000;
  box-shadow: inset 3px 3px 0 var(--b-hi), inset -3px -4px 0 var(--b-lo);
  padding: 7px 16px 9px;
  cursor: pointer;
  line-height: 1.2;
  text-align: center;
  user-select: none;
  white-space: nowrap;
}
.btn:hover { --b-bg: #7e88c7; --b-hi: #b0b9ec; --b-lo: #545d96; color: var(--yellow); }
.btn:active { box-shadow: inset -3px -3px 0 var(--b-hi), inset 3px 4px 0 var(--b-lo); }
.btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.btn[disabled], .btn.disabled { --b-bg: #3a3a3a; --b-hi: #4a4a4a; --b-lo: #2a2a2a; color: #888; cursor: not-allowed; }

.btn-green { --b-bg: #3c8527; --b-hi: #62b94a; --b-lo: #245417; }
.btn-green:hover { --b-bg: #48a02f; --b-hi: #7bd65f; --b-lo: #2c661c; color: #fff; }
.btn-red { --b-bg: #a33030; --b-hi: #d65656; --b-lo: #6b1a1a; }
.btn-red:hover { --b-bg: #bf3a3a; --b-hi: #ea6d6d; --b-lo: #7d2020; color: #fff; }
.btn-gold { --b-bg: #b9780a; --b-hi: #f0ad33; --b-lo: #7a4f05; }
.btn-gold:hover { --b-bg: #d28a0e; --b-hi: #ffc24d; --b-lo: #8c5a06; color: #fff; }
.btn-sm { font-size: 13px; padding: 3px 10px 5px; border-width: 2px; box-shadow: inset 2px 2px 0 var(--b-hi), inset -2px -3px 0 var(--b-lo); }
.btn-lg { font-size: 18px; padding: 10px 26px 12px; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------- panels */

.panel {
  background: var(--panel);
  border: 3px solid #000;
  box-shadow: var(--bevel);
  padding: 20px;
  margin-bottom: 20px;
}
.panel-title { font-size: 26px; color: #fff; }
.section-title { font-size: 19px; color: var(--yellow); margin-top: 8px; }
.panel > :last-child { margin-bottom: 0; }

.slot {
  background: #8b8b8b;
  border: 3px solid;
  border-color: #373737 #fff #fff #373737;
  box-shadow: none;
}

/* ---------------------------------------------------------------- alerts */

.alert {
  border: 3px solid #000;
  padding: 10px 14px;
  margin-bottom: 14px;
  box-shadow: inset 3px 3px 0 rgba(255,255,255,.12), inset -3px -3px 0 rgba(0,0,0,.35);
  text-shadow: 1px 1px 0 #000;
}
.alert-success { background: #1f4d17; color: #c9ffbf; }
.alert-error { background: #5a1717; color: #ffd0d0; }
.alert-warning { background: #5a4310; color: #ffe7a8; }
.alert-info { background: #173a5a; color: #cfe8ff; }
.alert ul { margin: 0; padding-left: 20px; }

/* ---------------------------------------------------------------- hero */

.hero { text-align: center; padding: 28px 0 8px; }
.hero h1 {
  font-family: var(--font-title);
  font-size: clamp(28px, 4.6vw, 48px);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 3px 0 rgba(0,0,0,.6);
  line-height: 1.15;
  letter-spacing: -.005em;
  margin-bottom: 12px;
}
.hero h1 em { font-style: normal; color: var(--yellow); text-shadow: 0 3px 0 #3f3f15; }
.hero p { color: var(--muted); font-size: 17px; margin: 0 auto 22px; max-width: 640px; }

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 auto 24px; max-width: 820px; }
.stat {
  background: var(--panel);
  border: 3px solid #000;
  box-shadow: var(--bevel);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.stat b { font-family: var(--font-title); font-size: 26px; font-weight: 800; color: #fff; text-shadow: 0 2px 0 #000; }
.stat span { color: var(--muted); font-size: 13px; }

/* ---------------------------------------------------------------- filters */

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.search { display: flex; flex: 1 1 320px; }
.search input { flex: 1; min-width: 0; }
.search .btn { border-left: 0; }
.toggles { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--panel-2);
  border: 2px solid #000;
  box-shadow: inset 2px 2px 0 var(--panel-hi), inset -2px -2px 0 var(--panel-lo);
  color: var(--text);
  padding: 3px 10px 4px;
  font-size: 15px;
  white-space: nowrap;
}
a.chip:hover { color: var(--yellow); }
.chip.active { background: #2f5c1f; box-shadow: inset 2px 2px 0 #4f8f36, inset -2px -2px 0 #1b3a11; color: #fff; }
.chip-sm { font-size: 13px; padding: 1px 7px 2px; }

.categories { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }

.sortbar { display: flex; gap: 6px; align-items: center; margin-left: auto; }

/* ---------------------------------------------------------------- server list */

.list-head { display: flex; align-items: baseline; gap: 12px; margin: 22px 0 10px; flex-wrap: wrap; }
.list-head h2 { font-size: 22px; margin: 0; }
.list-head .muted { font-size: 15px; }

.server-list { display: flex; flex-direction: column; gap: 10px; }

.server-card {
  display: grid;
  grid-template-columns: 56px 64px minmax(0, 1fr) 280px 150px;
  gap: 14px;
  align-items: center;
  background: var(--panel);
  border: 3px solid #000;
  box-shadow: var(--bevel);
  padding: 12px 14px;
  position: relative;
}
.server-card:hover { background: var(--panel-2); }
.server-card.featured {
  background: #2c2717;
  box-shadow: inset 3px 3px 0 #5c4d1d, inset -3px -3px 0 #16130a;
}
.server-card.featured:hover { background: #342e1b; }

.rank {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: #3a3d47;
  border: 3px solid #000;
  box-shadow: inset 3px 3px 0 #555a67, inset -3px -3px 0 #22242a;
  text-shadow: 2px 2px 0 #000;
}
.rank.r1 { background: #d9a200; box-shadow: inset 3px 3px 0 #ffe066, inset -3px -3px 0 #8a6400; }
.rank.r2 { background: #9aa3ad; box-shadow: inset 3px 3px 0 #dfe6ee, inset -3px -3px 0 #5d646c; }
.rank.r3 { background: #b36b35; box-shadow: inset 3px 3px 0 #e39a61, inset -3px -3px 0 #6e3f1c; }
.rank.star { background: #3d3314; }

.favicon {
  width: 64px; height: 64px;
  border: 3px solid #000;
  background: #0e0f12;
  display: grid; place-items: center;
}
.favicon img { width: 100%; height: 100%; image-rendering: pixelated; display: block; }

.server-main { min-width: 0; }
.server-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.server-name a { color: #fff; font-family: var(--font-title); font-size: 21px; font-weight: 700; text-shadow: 0 1px 0 #000; overflow-wrap: anywhere; }
.server-name a:hover { color: var(--yellow); }
.badge {
  font-size: 11px;
  letter-spacing: .3px;
  padding: 1px 6px 2px;
  border: 2px solid #000;
  text-shadow: 1px 1px 0 #000;
  white-space: nowrap;
  font-weight: 600;
}
.badge-gold { background: #8a6400; color: var(--yellow); }
.badge-crack { background: #5a1f5a; color: #ffc9ff; }
.badge-bedrock { background: #1f3e5a; color: #cfe8ff; }
.badge-gray { background: #3a3d47; color: #ddd; }
.badge-pending { background: #5a4310; color: #ffe7a8; }
.badge-approved { background: #1f4d17; color: #c9ffbf; }
.badge-rejected, .badge-banned { background: #5a1717; color: #ffd0d0; }

.server-banner { display: block; margin: 6px 0; max-width: 468px; border: 2px solid #000; background: #000; }
.server-banner img { display: block; width: 100%; height: auto; aspect-ratio: 468 / 60; object-fit: cover; }
.server-desc { color: var(--muted); font-size: 15px; font-family: var(--font-text); margin: 2px 0 6px; overflow-wrap: anywhere; }
.server-tags { display: flex; gap: 4px; flex-wrap: wrap; }

.ip-box {
  display: flex;
  align-items: stretch;
  background: #000;
  border: 2px solid #a0a0a0;
  max-width: 100%;
}
.ip-box code {
  flex: 1;
  min-width: 0;
  padding: 5px 8px;
  font-family: var(--font-ui);
  font-size: 15px;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.copy-btn {
  background: #3a3d47;
  color: #fff;
  border: 0;
  border-left: 2px solid #a0a0a0;
  font-family: var(--font-ui);
  font-size: 14px;
  padding: 0 10px;
  cursor: pointer;
}
.copy-btn:hover { background: #4b4f5c; color: var(--yellow); }
.copy-btn.copied { background: #2f5c1f; }

.server-status { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.online-line { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.dot { width: 10px; height: 10px; border: 2px solid #000; display: inline-block; flex-shrink: 0; }
.dot.on { background: var(--green); animation: blink 1.6s steps(2, start) infinite; }
.dot.off { background: var(--red); }
@keyframes blink { 50% { background: #1d8a1d; } }

.xpbar {
  height: 12px;
  background: #1b1b1b;
  border: 2px solid #000;
  position: relative;
  overflow: hidden;
}
.xpbar > i {
  position: absolute; inset: 0 auto 0 0;
  background: var(--xp);
  box-shadow: inset 0 -3px 0 #3f8f00, inset 0 2px 0 #c9ff8a;
}
.xpbar::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 2px), #000 calc(10% - 2px) 10%);
  opacity: .55;
}

.vote-col { display: flex; flex-direction: column; align-items: stretch; gap: 6px; text-align: center; }
.vote-count { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 15px; color: var(--muted); }
.vote-count b { color: var(--aqua); font-family: var(--font-title); font-size: 21px; font-weight: 800; text-shadow: 0 1px 0 #000; }

.empty { text-align: center; padding: 40px 16px; color: var(--muted); }

/* ---------------------------------------------------------------- pagination */

.pagination { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.pagination .current { --b-bg: #3c8527; --b-hi: #62b94a; --b-lo: #245417; }

/* ---------------------------------------------------------------- server page */

.server-hero {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}
.server-hero .favicon { width: 96px; height: 96px; }
.server-hero h1 { font-size: 32px; margin: 0 0 6px; overflow-wrap: anywhere; }
.hero-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 270px; }

.motd {
  background: #000;
  border: 3px solid #373737;
  padding: 10px 14px;
  font-family: 'Inter', monospace;
  font-size: 17px;
  color: #aaa;
  white-space: pre-wrap;
  text-align: center;
  margin: 14px 0 0;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }

.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.info {
  background: var(--panel-2);
  border: 2px solid #000;
  box-shadow: inset 2px 2px 0 var(--panel-hi), inset -2px -2px 0 var(--panel-lo);
  padding: 8px 10px;
  min-width: 0;
}
.info > span { display: block; color: var(--muted); font-size: 13px; }
.info b { display: block; color: #fff; font-size: 17px; font-weight: 700; overflow-wrap: anywhere; text-shadow: 0 1px 0 #000; }

.description { font-family: var(--font-text); font-size: 16px; line-height: 1.65; color: #d6d8dd; white-space: pre-line; overflow-wrap: anywhere; }

.chart { display: flex; align-items: flex-end; gap: 3px; height: 130px; padding: 8px; background: #0e0f12; border: 3px solid #000; }
.chart .bar { flex: 1; min-width: 0; position: relative; display: flex; align-items: flex-end; height: 100%; }
.chart .bar i { display: block; width: 100%; background: var(--grass); box-shadow: inset 0 3px 0 #9be36b, inset -2px 0 0 #3d7a1f; min-height: 2px; }
.chart.aqua .bar i { background: #2cb5ad; box-shadow: inset 0 3px 0 #7ff5ef, inset -2px 0 0 #137a74; }
.chart .bar.none i { background: #2a2c33; box-shadow: none; }
.chart .bar:hover i { filter: brightness(1.3); }
.chart .bar[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #100010;
  border: 2px solid #2d0a63;
  color: #fff;
  font-size: 13px;
  padding: 2px 6px;
  white-space: nowrap;
  z-index: 3;
  pointer-events: none;
}
.chart-labels { display: flex; justify-content: space-between; color: var(--dim); font-size: 13px; margin-top: 4px; }

.voters { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.voters li { display: flex; align-items: center; gap: 10px; background: var(--panel-2); border: 2px solid #000; padding: 4px 8px; }
.voters img { width: 24px; height: 24px; image-rendering: pixelated; }
.voters .n { color: var(--dim); width: 24px; font-size: 14px; }
.voters .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.voters b { color: var(--aqua); }

/* ---------------------------------------------------------------- vote page */

.vote-box { max-width: 520px; margin: 0 auto; text-align: center; }
.vote-box .favicon { width: 80px; height: 80px; margin: 0 auto 10px; }
.vote-box h1 { font-size: 26px; }
.vote-box form { text-align: left; }
.big-count { font-family: var(--font-title); font-weight: 800; font-size: 40px; color: var(--aqua); text-shadow: 3px 3px 0 #0b4f4b; margin: 6px 0 16px; }
.countdown { font-family: var(--font-title); font-weight: 800; font-size: 30px; color: var(--yellow); text-shadow: 2px 2px 0 #3f3f15; margin: 8px 0; }
.cf-turnstile { margin: 12px 0; min-height: 65px; }

/* ---------------------------------------------------------------- forms */

.form label { display: block; margin-bottom: 14px; color: #ddd; font-size: 14px; font-weight: 600; }
.form label > input, .form label > textarea, .form label > select { margin-top: 4px; }
.form .hint { display: block; color: var(--dim); font-size: 13px; font-weight: 400; margin-top: 3px; }

input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=search], input:not([type]), textarea, select {
  width: 100%;
  background: #000;
  border: 2px solid #a0a0a0;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 15px;
  padding: 8px 10px;
  border-radius: 0;
  outline: none;
}
input:focus, textarea:focus, select:focus { border-color: #fff; box-shadow: 0 0 0 2px var(--yellow); }
input::placeholder, textarea::placeholder { color: #6d6d6d; }
textarea { min-height: 140px; resize: vertical; font-family: var(--font-text); font-size: 15px; line-height: 1.5; }
.form .mono { font-family: Consolas, monospace; font-size: 13px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 10px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 30px; }

.check { display: flex !important; align-items: center; gap: 10px; cursor: pointer; }
.check input { appearance: none; width: 22px; height: 22px; margin: 0; background: #8b8b8b; border: 2px solid; border-color: #373737 #fff #fff #373737; flex-shrink: 0; cursor: pointer; display: grid; place-items: center; }
.check input:checked::after { content: ''; width: 10px; height: 10px; background: #2f5c1f; box-shadow: 0 0 0 2px #55ff55 inset; }
.check input:focus-visible { outline: 3px solid var(--yellow); }

.tag-picker { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag-picker label { margin: 0; }
.tag-picker input { position: absolute; opacity: 0; pointer-events: none; }
.tag-picker span { cursor: pointer; }
.tag-picker input:checked + span { background: #2f5c1f; box-shadow: inset 2px 2px 0 #4f8f36, inset -2px -2px 0 #1b3a11; color: #fff; }
.tag-picker input:focus-visible + span { outline: 2px solid var(--yellow); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0 14px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.banner-preview { margin: 6px 0 10px; max-width: 468px; border: 2px solid #000; }
.banner-preview img { display: block; width: 100%; }

.code, pre.code {
  display: block;
  background: #000;
  border: 2px solid #373737;
  color: var(--green);
  font-family: Consolas, 'Courier New', monospace;
  font-size: 13px;
  padding: 10px 12px;
  overflow-x: auto;
  white-space: pre;
  margin: 6px 0 12px;
}
code.inline { background: #000; padding: 1px 6px; color: var(--yellow); font-family: Consolas, monospace; font-size: 14px; }

.steps { padding-left: 22px; }
.steps li { margin-bottom: 12px; }
.checklist { list-style: none; padding: 0; margin: 0 0 16px; }
.checklist li { padding: 3px 0; }
.checklist .ok { color: var(--green); }
.checklist .fail { color: var(--red); }

.auth-box { max-width: 460px; margin: 0 auto; }
.auth-box .panel-title { text-align: center; }
.auth-alt { text-align: center; margin-top: 14px; color: var(--muted); }

/* ---------------------------------------------------------------- tables */

.table-wrap { overflow-x: auto; border: 3px solid #000; background: var(--panel); }
table.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { padding: 8px 10px; text-align: left; border-bottom: 2px solid #000; vertical-align: middle; }
.table th { background: #1c1d22; color: var(--yellow); font-weight: 600; white-space: nowrap; text-shadow: 1px 1px 0 #000; }
.table tr:hover td { background: var(--panel-2); }
.table td .actions { display: flex; gap: 4px; flex-wrap: wrap; }
.table form { margin: 0; display: inline-flex; gap: 4px; align-items: center; }
.table input { font-size: 14px; padding: 3px 6px; width: auto; }

.admin-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }

.my-servers { display: flex; flex-direction: column; gap: 10px; }
.my-server { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; }

/* ---------------------------------------------------------------- footer */

.site-footer {
  background: #0e0f12;
  border-top: 4px solid #000;
  padding: 26px 0;
  color: var(--dim);
  font-size: 15px;
}
.footer-inner { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--yellow); }
.disclaimer { width: 100%; font-size: 13px; color: #555a63; margin-top: 6px; }

/* ---------------------------------------------------------------- error */

.error-page { text-align: center; padding: 40px 0; }
.error-page .code-big { font-family: var(--font-title); font-weight: 800; font-size: 80px; color: var(--red); text-shadow: 4px 4px 0 #3f1515; margin-bottom: 16px; }

/* ---------------------------------------------------------------- v1.0.1 eklemeleri */

.capacity { color: var(--dim); font-size: 13px; margin-top: -2px; }
.badge-java { background: #3a2a14; color: #ffd9a8; }
.badge-cross { background: #14415a; color: #bfeaff; }
.badge-live { background: #7a1010; color: #fff; animation: blink 1.2s steps(2, start) infinite; }
.pill { display: inline-block; background: #a33030; color: #fff; font-size: 12px; padding: 0 6px; border: 2px solid #000; margin-left: 4px; line-height: 1.4; }
.announcement.maint { background: #5a1717; color: #ffd0d0; }
.announcement a { color: #fff; text-decoration: underline; }

.bell { position: relative; font-size: 20px; text-shadow: none !important; padding: 4px 8px !important; }
.bell b { position: absolute; top: -2px; right: -4px; background: #d33; color: #fff; font-size: 11px; min-width: 18px; text-align: center; border: 2px solid #000; line-height: 14px; font-family: var(--font-ui); }
.bell-mobile { display: none; margin-left: auto; }

.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.stars i { width: 12px; height: 12px; background: #3a3d47; clip-path: polygon(50% 0, 62% 35%, 100% 38%, 70% 60%, 80% 100%, 50% 76%, 20% 100%, 30% 60%, 0 38%, 38% 35%); }
.stars i.on { background: var(--gold); }
.stars.lg i { width: 18px; height: 18px; }
.rating-mini { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.rating-line { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; color: #fff; }

.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; margin: 4px 0 10px; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { width: 30px; height: 30px; margin: 0; cursor: pointer; background: #3a3d47; clip-path: polygon(50% 0, 62% 35%, 100% 38%, 70% 60%, 80% 100%, 50% 76%, 20% 100%, 30% 60%, 0 38%, 38% 35%); }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { background: var(--gold); }
.star-input input:focus-visible + label { outline: 2px solid var(--yellow); }

.hero-mini { display: flex; gap: 6px; flex-wrap: wrap; }
.hero-mini form { margin: 0; flex: 1; }
.hero-mini .btn { width: 100%; }
.info-sub { display: block; color: var(--dim); font-style: normal; font-size: 13px; margin-top: 2px; }
.info-wipe b { color: var(--gold); }
.report-link { margin-left: auto; --b-bg: #3a2424; --b-hi: #5a3a3a; --b-lo: #1f1212; }

.video { position: relative; aspect-ratio: 16 / 9; border: 3px solid #000; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.event { display: flex; gap: 12px; background: var(--panel-2); border: 2px solid #000; padding: 8px 10px; box-shadow: inset 2px 2px 0 var(--panel-hi), inset -2px -2px 0 var(--panel-lo); }
.event.live { border-color: #a33030; }
.event-date { flex-shrink: 0; width: 52px; text-align: center; background: #1c1d22; border: 2px solid #000; padding: 2px 0; }
.event-date b { display: block; font-family: var(--font-title); font-weight: 800; font-size: 22px; color: var(--yellow); line-height: 1.6; }
.event-date span { font-size: 13px; color: var(--muted); }
.event-title { font-weight: 700; color: #fff; }
.event-body p { margin: 4px 0 0; color: #cfd1d6; }

.reviews { display: flex; flex-direction: column; gap: 10px; }
.review { display: flex; gap: 12px; align-items: flex-start; }
.review img { image-rendering: pixelated; border: 2px solid #000; flex-shrink: 0; }
.review p { margin: 4px 0 0; font-family: var(--font-text); font-size: 15px; color: #d6d8dd; overflow-wrap: anywhere; }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.review-form { margin-top: 16px; border-top: 2px solid #000; padding-top: 14px; }
.small-title { font-size: 17px; color: #fff; margin: 0 0 4px; }
.admin-review { margin-bottom: 0; }

.player-hero { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.player-hero h1 { font-size: 30px; margin: 0 0 4px; overflow-wrap: anywhere; }
.player-head { image-rendering: pixelated; }
.player-stats { display: flex; gap: 10px; }
.player-stats .stat { min-width: 110px; }

.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.vbadge { display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--panel-2); border: 3px solid #000; padding: 10px 6px; text-align: center; }
.vbadge i { width: 36px; height: 36px; border: 3px solid #000; box-shadow: inset 4px 4px 0 rgba(255,255,255,.35), inset -4px -4px 0 rgba(0,0,0,.35); margin-bottom: 4px; }
.vbadge b { color: #fff; }
.vbadge span { font-size: 13px; color: var(--muted); }
.vbadge.dirt i { background: #8b5a2b; }
.vbadge.stone i { background: #8a8a8a; }
.vbadge.iron i { background: #d8d8d8; }
.vbadge.gold i { background: #f5c518; }
.vbadge.diamond i { background: #4ae8e0; }
.vbadge.netherite i { background: #4a3f45; }
.vbadge.locked { opacity: .35; filter: grayscale(1); }

.mini-servers, .plain-list, .notif-list, .sources { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mini-servers li { display: flex; align-items: center; gap: 10px; background: var(--panel-2); border: 2px solid #000; padding: 4px 8px; }
.mini-servers a { flex: 1; min-width: 0; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.favicon.sm { width: 32px; height: 32px; border-width: 2px; }
.plain-list li { padding: 4px 0; border-bottom: 1px solid #1a1b20; }
.notif-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--panel-2); border: 2px solid #000; }
.notif-list li.unread { border-color: var(--grass); background: #25331f; }
.notif-list a { color: #fff; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.post-card { display: flex; flex-direction: column; background: var(--panel); border: 3px solid #000; box-shadow: var(--bevel); color: var(--text); }
.post-card:hover { background: var(--panel-2); color: var(--text); }
.post-card img, .post-cover-ph { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-bottom: 3px solid #000; }
.post-cover-ph { display: grid; place-items: center; background: #1c1d22; }
.post-card-body { padding: 14px; }
.post-card h2 { font-size: 20px; color: #fff; margin-bottom: 6px; }
.post-card p { margin: 0 0 8px; color: var(--muted); font-family: var(--font-text); font-size: 15px; }
.crumbs { margin-bottom: 10px; color: var(--muted); }
.post h1 { font-size: 30px; color: #fff; }
.post-cover { width: 100%; border: 3px solid #000; margin-bottom: 16px; }
.prose { font-family: var(--font-text); font-size: 17px; line-height: 1.75; color: #dadce1; overflow-wrap: anywhere; }
.prose h2, .prose h3, .prose h4 { font-family: var(--font-ui); color: var(--yellow); margin: 1.4em 0 .5em; }
.prose h2 { font-size: 24px; }
.prose h3 { font-size: 20px; }
.prose h4 { font-size: 18px; }
.prose a { text-decoration: underline; }
.prose img { border: 3px solid #000; margin: 8px 0; }
.prose blockquote { margin: 1em 0; padding: 10px 16px; background: #1c1d22; border-left: 4px solid var(--grass); color: #cfd1d6; }
.prose hr { border: 0; border-top: 3px solid #000; margin: 2em 0; }
.prose li { margin-bottom: 4px; }

.chat { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.msg { background: var(--panel); border: 3px solid #000; padding: 10px 14px; max-width: 88%; }
.msg.staff { align-self: flex-end; background: #1f3317; border-color: #0c1a07; }
.msg-head { margin-bottom: 4px; }
.msg-body { font-family: var(--font-text); font-size: 15px; overflow-wrap: anywhere; color: #e2e4e8; }
.tstatus-open { background: #5a4310; color: #ffe7a8; }
.tstatus-answered { background: #1f4d17; color: #c9ffbf; }
.tstatus-closed { background: #3a3d47; color: #ccc; }

.chart.dual .bar { position: relative; }
.chart .bar i.b2 { position: absolute; left: 25%; right: 25%; bottom: 0; width: auto; background: var(--aqua); box-shadow: inset 0 3px 0 #bfffff; }
.chart.gold .bar i { background: #d9a200; box-shadow: inset 0 3px 0 #ffe066, inset -2px 0 0 #8a6400; }
.legend { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border: 1px solid #000; }
.legend .lg1 { background: var(--grass); }
.legend .lg2 { background: var(--aqua); }
.chart-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.chart-grid .chart { height: 110px; }

.funnel { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.funnel-row { display: grid; grid-template-columns: 180px minmax(0, 1fr) 70px; gap: 10px; align-items: center; }
.funnel-row b { text-align: right; color: #fff; }
.hbar { height: 14px; background: #0e0f12; border: 2px solid #000; }
.hbar i { display: block; height: 100%; background: var(--grass); box-shadow: inset 0 -3px 0 #3d7a1f; }
.sources li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; font-size: 15px; }
.sources li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sources li .hbar { grid-column: 1 / -1; height: 8px; }

.fav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.fav { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px; color: #fff; }
.fav:hover { background: var(--panel-2); color: #fff; }
.radio-list { border: 0; padding: 0; margin: 0 0 14px; }
.radio-list legend { color: #ddd; margin-bottom: 6px; }
.radio-list .check { margin-bottom: 6px; }
a.stat { color: inherit; }
a.stat:hover { background: var(--panel-2); }

/* ---------------------------------------------------------------- v1.0.2 */

.addr-list { display: flex; flex-direction: column; gap: 6px; }
.ip-tag { display: grid; place-items: center; min-width: 40px; padding: 0 5px; font-size: 11px; font-weight: 700; border-right: 2px solid #a0a0a0; text-shadow: 1px 1px 0 #000; }
.ip-java { background: #3a2a14; color: #ffd9a8; }
.ip-bedrock { background: #1f3e5a; color: #cfe8ff; }
.addr-box { background: #1c1d22; border: 2px solid #000; padding: 12px 12px 8px; margin-bottom: 14px; }
.addr-title { display: flex; align-items: center; gap: 8px; color: #fff; margin-bottom: 8px; }
.grid-addr { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 0 12px; }
.grid-addr label { margin-bottom: 6px; }
.categories .more { display: none; }
.categories.open .more { display: inline-flex; }
.chip-toggle { cursor: pointer; font-family: var(--font-ui); background: #1c1d22; color: var(--yellow); }

/* ---------------------------------------------------------------- v1.0.3 istatistik grafikleri */

.stats-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.stats-note { background: #173a5a; border: 2px solid #000; color: #cfe8ff; padding: 6px 10px; font-size: 14px; margin: 0 0 14px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.kpi { background: var(--panel-2); border: 2px solid #000; box-shadow: inset 2px 2px 0 var(--panel-hi), inset -2px -2px 0 var(--panel-lo); padding: 8px 10px; }
.kpi span { display: block; color: var(--muted); font-size: 13px; }
.kpi b { font-family: var(--font-title); font-size: 22px; font-weight: 800; color: #fff; text-shadow: 0 1px 0 #000; margin-right: 6px; }
.delta { font-size: 13px; font-weight: 700; }
.delta.up { color: var(--green); }
.delta.down { color: var(--red); }
.delta.flat { color: var(--muted); }
.stat-chart { margin-bottom: 18px; }
.stat-chart:last-child { margin-bottom: 0; }
.stat-chart h3 { font-size: 17px; color: #fff; text-align: center; margin: 0 0 6px; }
.chart-scroll { background: #0e0f12; border: 3px solid #000; overflow-x: auto; }
.svgc { display: block; width: 100%; min-width: 620px; height: auto; font-family: 'Inter', sans-serif; }
.svgc-grid { stroke: #23252c; stroke-width: 1; shape-rendering: crispEdges; }
.svgc-axis { stroke: #4a4d57; stroke-width: 2; shape-rendering: crispEdges; }
.svgc-ylab, .svgc-xlab { fill: #8a8f99; font-size: 11px; }
.svgc-line { fill: none; stroke-width: 3; stroke-linejoin: round; }
.svgc-line.svgc-cur { stroke: var(--grass); }
.svgc-line.svgc-prev { stroke: #6d717b; stroke-dasharray: 6 4; stroke-width: 2; }
.svgc-pt { shape-rendering: crispEdges; stroke: #000; stroke-width: 1; }
.svgc-pt.svgc-cur { fill: #9be36b; }
.svgc-pt.svgc-prev { fill: #8a8f99; }
.svgc-pt:hover { fill: var(--yellow); }
.svgc-bar { shape-rendering: crispEdges; }
.svgc-bar.svgc-up { fill: #3c8527; }
.svgc-bar.svgc-down { fill: #a33030; }
.svgc-bar.svgc-vote { fill: #2cb5ad; }
.svgc-bar:hover { filter: brightness(1.35); }
.legend-row { display: flex; justify-content: center; gap: 18px; font-size: 13px; color: var(--muted); margin-top: 6px; flex-wrap: wrap; }
.legend-row i { display: inline-block; width: 14px; height: 10px; border: 2px solid #000; vertical-align: -1px; margin-right: 4px; }
.lg-cur { background: var(--grass); }
.lg-prev { background: #6d717b; }
.lg-up { background: #3c8527; }
.lg-down { background: #a33030; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1000px) {
  .server-card { grid-template-columns: 48px 56px minmax(0, 1fr) 150px; }
  .server-card .server-status { max-width: 340px; }
  .server-card .server-status { grid-column: 3 / 4; }
  .server-card .vote-col { grid-column: 4 / 5; grid-row: 1 / 3; }
  .server-card .favicon { width: 56px; height: 56px; }
  .rank { width: 46px; height: 46px; font-size: 19px; }
  .layout-2 { grid-template-columns: 1fr; }
  .chart-grid { grid-template-columns: 1fr; }
  .player-hero { grid-template-columns: 72px minmax(0, 1fr); }
  .player-hero .player-head { width: 72px; height: 72px; }
  .player-stats { grid-column: 1 / -1; }
  .player-stats .stat { flex: 1; min-width: 0; }
}

@media (max-width: 760px) {
  body { font-size: 15px; }
  .header-inner { flex-wrap: wrap; min-height: 60px; padding: 8px 0; }
  .logo-text { font-size: 19px; }
  .btn.nav-toggle { display: inline-flex; margin-left: 0; }
  .bell-mobile { display: inline-block; }
  .bell-desktop { display: none; }
  .funnel-row { grid-template-columns: 1fr 60px; }
  .funnel-row .hbar { grid-column: 1 / -1; grid-row: 2; }
  .msg { max-width: 100%; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding-bottom: 8px; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 8px 4px; }
  .nav .btn, .nav form, .nav form .btn { width: 100%; }

  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .categories { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
  .stat b { font-size: 21px; }

  .server-card { grid-template-columns: 40px 48px minmax(0, 1fr); gap: 10px; padding: 10px; }
  .server-card .favicon { width: 48px; height: 48px; }
  .rank { width: 40px; height: 40px; font-size: 17px; }
  .server-card .server-status, .server-card .vote-col { grid-column: 1 / -1; grid-row: auto; }
  .server-card .vote-col { flex-direction: row; align-items: center; justify-content: space-between; }
  .server-card .vote-col .btn { flex: 1; }
  .server-name a { font-size: 19px; }

  .server-hero { grid-template-columns: 64px minmax(0, 1fr); }
  .server-hero .favicon { width: 64px; height: 64px; }
  .server-hero h1 { font-size: 23px; }
  .hero-actions { grid-column: 1 / -1; min-width: 0; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-addr { grid-template-columns: minmax(0, 1fr) 96px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sortbar { margin-left: 0; }
  .panel { padding: 14px; }
  .my-server { grid-template-columns: 48px minmax(0, 1fr); }
  .my-server .favicon { width: 48px; height: 48px; }
  .my-server .actions { grid-column: 1 / -1; }
}
