:root {
  --bg: #07120f;
  --panel: #101b18;
  --panel-strong: #152721;
  --text: #f3fff8;
  --muted: #a9bbb2;
  --green: #4ade80;
  --green-dark: #178a48;
  --gold: #f5bd4f;
  --blue: #60a5fa;
  --red: #fb7185;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(7, 18, 15, 0.82), var(--bg) 620px),
    #07120f;
}

body.theme-modern {
  --bg: #06110d;
  --panel: rgba(12, 28, 22, 0.78);
  --panel-strong: rgba(18, 42, 32, 0.88);
  --text: #f2fff7;
  --muted: #adc4b8;
  --green: #49e88c;
  --green-dark: #159254;
  --gold: #ffd166;
  --blue: #72d6b0;
  --red: #ff7a90;
  --border: rgba(116, 214, 176, 0.18);
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
  background:
    radial-gradient(circle at 18% -8%, rgba(73, 232, 140, 0.16), transparent 32%),
    radial-gradient(circle at 86% 4%, rgba(255, 209, 102, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(6, 17, 13, 0.86), #06110d 720px),
    #06110d;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--border);
  background: rgba(7, 18, 15, 0.82);
  backdrop-filter: blur(18px);
  max-width: 100%;
  overflow: hidden;
}

.brand,
.main-nav,
.hero-actions,
.admin-toolbar,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #06140f;
  box-shadow: 0 10px 30px rgba(74, 222, 128, 0.24);
}

.brand-mark.has-image {
  overflow: hidden;
  padding: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}

.main-nav {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

.main-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.reveal-item {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition:
    opacity 620ms ease,
    transform 620ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.announcement-bar {
  position: sticky;
  top: 75px;
  z-index: 19;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 10px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(74, 222, 128, 0.18);
  background: rgba(10, 28, 22, 0.92);
  backdrop-filter: blur(16px);
}

.announcement-label {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.announcement-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.announcement-pill {
  --announcement-color: var(--green);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  max-width: min(680px, 82vw);
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--announcement-color), transparent 58%);
  border-radius: 8px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--announcement-color), transparent 86%), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.055);
  color: var(--muted);
  box-shadow: inset 3px 0 0 var(--announcement-color);
}

.announcement-pill strong {
  color: color-mix(in srgb, var(--announcement-color), var(--text) 32%);
}

.announcement-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: min(720px, calc(100vh - 20px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  align-items: end;
  gap: clamp(22px, 4vw, 44px);
  padding: clamp(72px, 11vw, 140px) clamp(18px, 4vw, 56px) clamp(48px, 7vw, 84px);
  overflow: hidden;
  background-image: url("assets/hero-minecraft-server.png");
  background-position: center;
  background-size: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 18, 15, 0.92), rgba(7, 18, 15, 0.55) 46%, rgba(7, 18, 15, 0.2)),
    linear-gradient(0deg, var(--bg), rgba(7, 18, 15, 0.08) 42%);
}

.hero-content,
.server-panel {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  max-width: 780px;
  font-size: clamp(52px, 9vw, 112px);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.hero-copy {
  max-width: 620px;
  color: #d7e9df;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.primary-button {
  background: var(--green);
  color: #06140f;
}

.secondary-button,
.ghost-button {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.server-panel {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(8, 19, 16, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.server-panel div,
.admin-toolbar {
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.panel-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.server-panel strong {
  display: block;
  margin-top: 5px;
  font-size: 24px;
}

.server-panel p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.hero-discord-box {
  display: grid;
  gap: 7px;
  border-color: rgba(96, 165, 250, 0.28) !important;
  background:
    linear-gradient(135deg, rgba(96, 165, 250, 0.14), rgba(74, 222, 128, 0.06)),
    rgba(255, 255, 255, 0.06) !important;
}

.hero-discord-box strong {
  margin-top: 0;
}

.hero-discord-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.discord-count {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(96, 165, 250, 0.12);
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 900;
}

.hero-discord-box a {
  display: inline-flex;
  width: fit-content;
  margin-top: 4px;
  border-radius: 6px;
  padding: 9px 12px;
  background: var(--blue);
  color: #06111f;
  font-weight: 900;
}

.online-dot {
  color: var(--green);
}

.offline-dot {
  color: var(--red);
}

.section,
.admin-shell {
  padding: clamp(54px, 8vw, 92px) clamp(18px, 4vw, 56px);
}

.section-heading {
  max-width: 1120px;
  margin: 0 auto 28px;
}

.mode-grid,
.shop-grid,
.staff-grid,
.admin-forms {
  display: grid;
  max-width: 1120px;
  margin: 0 auto;
  gap: 18px;
}

.mode-grid,
.shop-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.theme-modern .site-header,
body.theme-modern .admin-toolbar {
  border-bottom-color: rgba(73, 232, 140, 0.14);
  background: rgba(6, 17, 13, 0.78);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.28);
}

body.theme-modern .brand-mark {
  border-color: rgba(255, 255, 255, 0.34);
  border-radius: 10px;
  background: linear-gradient(135deg, #49e88c, #ffd166);
  box-shadow: 0 12px 34px rgba(73, 232, 140, 0.22), 0 0 38px rgba(255, 209, 102, 0.1);
}

body.theme-modern .main-nav a:hover {
  background: rgba(73, 232, 140, 0.1);
}

body.theme-uwu {
  --bg: #fff8fc;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: rgba(255, 255, 255, 0.94);
  --text: #30223a;
  --muted: #7d6079;
  --green: #ff6fb6;
  --gold: #b884ff;
  --blue: #80e6dc;
  --border: rgba(255, 130, 194, 0.34);
  --shadow: 0 22px 58px rgba(194, 116, 166, 0.16);
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 166, 214, 0.32), transparent 26%),
    radial-gradient(circle at 86% 16%, rgba(191, 156, 255, 0.24), transparent 30%),
    radial-gradient(circle at 50% 102%, rgba(128, 230, 220, 0.22), transparent 34%),
    linear-gradient(180deg, #fff8fc 0%, #fff1f9 44%, #f7efff 100%);
}

body.theme-uwu::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.9) 0 2px, transparent 3px),
    radial-gradient(circle at 75% 36%, rgba(255, 127, 190, 0.32) 0 2px, transparent 3px),
    radial-gradient(circle at 44% 72%, rgba(167, 108, 255, 0.22) 0 2px, transparent 3px);
  background-size: 180px 180px, 220px 220px, 260px 260px;
  opacity: 0.72;
}

body.theme-uwu .site-header,
body.theme-uwu .admin-toolbar {
  border-bottom-color: rgba(255, 130, 194, 0.28);
  background: rgba(255, 249, 253, 0.92);
  box-shadow: 0 14px 44px rgba(194, 116, 166, 0.12);
  backdrop-filter: blur(18px);
}

body.theme-uwu .hero {
  background:
    linear-gradient(90deg, rgba(255, 246, 252, 0.74) 0%, rgba(255, 246, 252, 0.36) 48%, rgba(255, 246, 252, 0.16) 100%),
    var(--hero-image, url("assets/hero-minecraft-server.png")) center / cover;
}

body.theme-uwu .hero::after {
  background: linear-gradient(180deg, transparent 0%, rgba(255, 248, 252, 0.84) 100%);
}

body.theme-uwu .hero h1,
body.theme-uwu .section-title h2,
body.theme-uwu .page-title h1,
body.theme-uwu .admin-hero h1 {
  color: #32243b;
  text-shadow: none;
}

body.theme-uwu .hero h1 {
  width: fit-content;
  color: transparent;
  background: linear-gradient(135deg, #ff57ad, #a96dff 62%, #55cfc5);
  background-clip: text;
  -webkit-background-clip: text;
  filter: drop-shadow(0 14px 28px rgba(255, 111, 182, 0.18));
}

body.theme-uwu .eyebrow,
body.theme-uwu .panel-label,
body.theme-uwu .staff-group-heading span {
  color: #d9469d;
}

body.theme-uwu .brand-mark {
  border-color: rgba(255, 255, 255, 0.75);
  border-radius: 14px;
  background: linear-gradient(135deg, #ff8fc9, #caa8ff 54%, #8df0df);
  color: #3b2442;
  box-shadow: 0 14px 34px rgba(255, 127, 190, 0.28);
}

body.theme-uwu .main-nav a,
body.theme-uwu .brand,
body.theme-uwu .server-panel span,
body.theme-uwu .mode-status,
body.theme-uwu .footer-socials strong {
  color: var(--text);
}

body.theme-uwu .main-nav a:hover {
  background: rgba(255, 127, 190, 0.14);
  color: #b83280;
}

body.theme-uwu .primary-button {
  border-color: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: linear-gradient(135deg, #ff83c2, #b794ff);
  color: #fff;
  box-shadow: 0 16px 36px rgba(255, 127, 190, 0.3);
}

body.theme-uwu .primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(255, 127, 190, 0.36);
}

body.theme-uwu .secondary-button,
body.theme-uwu .ghost-button,
body.theme-uwu .collapse-button,
body.theme-uwu .news-expand,
body.theme-uwu .popup-close {
  border-color: rgba(255, 127, 190, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: #55365e;
}

body.theme-uwu .server-panel,
body.theme-uwu .mode-card,
body.theme-uwu .shop-card,
body.theme-uwu .staff-card,
body.theme-uwu .news-item,
body.theme-uwu .admin-card,
body.theme-uwu .wide-panel,
body.theme-uwu .event-card,
body.theme-uwu .faq-item,
body.theme-uwu .management-row,
body.theme-uwu .punishment-row,
body.theme-uwu .punishment-stat,
body.theme-uwu .changelog-item,
body.theme-uwu .rank-card,
body.theme-uwu .feature-item,
body.theme-uwu .announcement-card,
body.theme-uwu .footer-socials,
body.theme-uwu .vote-panel {
  border-color: rgba(255, 127, 190, 0.24);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 236, 248, 0.7)),
    rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

body.theme-uwu .mode-card:hover,
body.theme-uwu .shop-card:hover,
body.theme-uwu .staff-card:hover,
body.theme-uwu .news-item:hover,
body.theme-uwu .admin-card:hover,
body.theme-uwu .event-card:hover,
body.theme-uwu .punishment-row:hover,
body.theme-uwu .changelog-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 127, 190, 0.44);
  box-shadow: 0 28px 84px rgba(177, 95, 147, 0.22), 0 0 34px rgba(255, 127, 190, 0.16);
}

body.theme-uwu .server-panel div,
body.theme-uwu input,
body.theme-uwu textarea,
body.theme-uwu select {
  border-color: rgba(255, 127, 190, 0.25);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

body.theme-uwu input::placeholder,
body.theme-uwu textarea::placeholder {
  color: rgba(127, 101, 127, 0.82);
}

body.theme-uwu .changelog-band,
body.theme-uwu .news-band,
body.theme-uwu .shop-band,
body.theme-uwu .extra-band,
body.theme-uwu .staff-band,
body.theme-uwu .admin-shell {
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 127, 190, 0.14), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(141, 240, 223, 0.14), transparent 34%),
    rgba(255, 248, 253, 0.7);
}

body.theme-uwu .glow-rank,
body.theme-uwu .staff-status,
body.theme-uwu .status-pill,
body.theme-uwu .shop-badge,
body.theme-uwu .category-tab,
body.theme-uwu .changelog-meta span,
body.theme-uwu .changelog-meta time {
  border-color: rgba(255, 127, 190, 0.28);
  background: rgba(255, 255, 255, 0.62);
  color: #b83280;
}

body.theme-uwu .staff-status.is-active,
body.theme-uwu .online-value,
body.theme-uwu .stat-number {
  color: #ff4fab;
}

body.theme-uwu .danger-button {
  border-color: rgba(251, 113, 133, 0.32);
  border-radius: 999px;
  background: rgba(255, 228, 235, 0.75);
  color: #be123c;
}

body.theme-uwu .announcement-bar {
  border-bottom-color: rgba(255, 130, 194, 0.24);
  background: rgba(255, 245, 252, 0.9);
  box-shadow: 0 18px 46px rgba(194, 116, 166, 0.12);
}

body.theme-uwu .announcement-pill {
  border-color: rgba(255, 130, 194, 0.3);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--announcement-color) 70%, #ff8fc9);
}

body.theme-uwu .announcement-pill strong {
  color: #d9469d;
}

body.theme-uwu .mode-image::after,
body.theme-uwu .mode-image-fallback::after {
  background: linear-gradient(180deg, rgba(47, 34, 58, 0.02), rgba(255, 111, 182, 0.34));
}

body.theme-uwu .mode-hero-overlay {
  background: linear-gradient(180deg, rgba(48, 34, 58, 0.06), rgba(48, 34, 58, 0.62));
}

body.theme-uwu .mode-hero-overlay h3 {
  color: #fff;
  text-shadow: 0 8px 24px rgba(48, 34, 58, 0.58);
}

body.theme-uwu .mode-status-pill {
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

body.theme-uwu .mini-status,
body.theme-uwu .shop-mode-card {
  border-color: rgba(255, 130, 194, 0.28);
  background: rgba(255, 255, 255, 0.7);
}

body.theme-uwu .site-footer {
  border-top-color: rgba(255, 130, 194, 0.2);
  background: rgba(255, 248, 253, 0.88);
  color: var(--muted);
}

body.theme-modern .announcement-bar {
  border-bottom-color: rgba(73, 232, 140, 0.12);
  background: rgba(6, 17, 13, 0.94);
}

body.theme-modern .announcement-pill {
  border-color: color-mix(in srgb, var(--announcement-color), transparent 76%);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--announcement-color), transparent 92%), rgba(255, 255, 255, 0.025)),
    rgba(10, 30, 22, 0.54);
  box-shadow: inset 2px 0 0 color-mix(in srgb, var(--announcement-color), transparent 25%);
}

body.theme-modern .announcement-pill strong {
  color: color-mix(in srgb, var(--announcement-color), white 24%);
}

body.theme-modern .changelog-band {
  background:
    radial-gradient(circle at 22% 0%, rgba(73, 232, 140, 0.09), transparent 34%),
    #06110d;
}

body.theme-modern .changelog-item {
  border-color: rgba(73, 232, 140, 0.18);
  background:
    linear-gradient(145deg, rgba(73, 232, 140, 0.07), rgba(255, 255, 255, 0.018)),
    rgba(10, 28, 21, 0.82);
}

body.theme-modern .changelog-item::before {
  background: linear-gradient(90deg, color-mix(in srgb, var(--change-accent) 10%, transparent), transparent 54%);
}

body.theme-modern .changelog-meta span,
body.theme-modern .changelog-meta time {
  border-color: rgba(73, 232, 140, 0.13);
  background: rgba(255, 255, 255, 0.025);
}

.staff-grid,
.admin-forms {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.staff-grid {
  grid-template-columns: 1fr;
  gap: 34px;
}

.staff-group {
  display: grid;
  gap: 14px;
}

.staff-group-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.staff-group-heading span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.staff-group-heading h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
}

.staff-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  justify-content: start;
  align-items: stretch;
}

.player-grid {
  display: flex;
  max-width: 1120px;
  margin: 0 auto;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.player-card {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(74, 222, 128, 0.07), rgba(255, 255, 255, 0.025)),
    var(--panel);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  cursor: default;
  transition: transform 160ms ease, border-color 160ms ease;
}

.player-card:hover,
.player-card:focus-visible {
  z-index: 5;
  transform: translateY(-4px);
  border-color: rgba(74, 222, 128, 0.42);
  outline: none;
}

.player-card img {
  width: 46px;
  height: 46px;
  border-radius: 6px;
  image-rendering: pixelated;
  background: rgba(255, 255, 255, 0.08);
}

.player-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  min-width: 170px;
  padding: 12px;
  border: 1px solid rgba(74, 222, 128, 0.24);
  border-radius: 8px;
  background: rgba(10, 24, 20, 0.98);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.38);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.player-card:hover .player-tooltip,
.player-card:focus-visible .player-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.player-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  border: 7px solid transparent;
  border-top-color: rgba(10, 24, 20, 0.98);
  transform: translateX(-50%);
}

.player-tooltip strong,
.player-tooltip span,
.player-tooltip small {
  display: block;
  overflow-wrap: anywhere;
}

.player-tooltip strong {
  font-size: 17px;
}

.player-tooltip span {
  margin-top: 4px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.player-tooltip small {
  margin-top: 5px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.online-strip-section {
  padding-top: 42px;
  padding-bottom: 42px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
}

.compact-heading {
  margin-bottom: 18px;
}

.mode-card,
.shop-card,
.staff-card,
.news-item,
.admin-card,
.admin-login,
.admin-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.mode-card,
.shop-card,
.staff-card,
.news-item,
.admin-card {
  padding: 22px;
}

.mode-card,
.shop-card,
.staff-card,
.news-item,
.admin-card,
.management-card,
.management-row,
.server-panel {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.mode-card:hover,
.shop-card:hover,
.staff-card:hover,
.news-item:hover,
.admin-card:hover,
.management-card:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 222, 128, 0.34);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)), var(--panel);
}

.mode-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mode-card-visual {
  overflow: hidden;
  padding: 0;
}

.mode-card-body {
  display: flex;
  min-height: 118px;
  flex: 1;
  flex-direction: column;
  justify-content: flex-start;
  padding: 22px;
}

.mode-card-body p {
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.mode-hero {
  position: relative;
  min-height: 190px;
  overflow: hidden;
}

.mode-image {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.mode-image-fallback {
  position: relative;
  background:
    linear-gradient(135deg, rgba(74, 222, 128, 0.18), rgba(96, 165, 250, 0.12)),
    url("assets/hero-minecraft-server.png");
  background-size: cover;
  background-position: center;
}

.mode-image-fallback::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 18, 15, 0.06), rgba(7, 18, 15, 0.48));
}

.mode-hero-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  gap: 9px;
  padding: 20px 22px;
  background: linear-gradient(180deg, rgba(7, 18, 15, 0.08), rgba(7, 18, 15, 0.82));
}

.mode-hero-overlay h3 {
  margin-bottom: 0;
  font-size: 30px;
  line-height: 1.05;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.72);
}

.mode-hero-overlay .mode-status-pill {
  width: fit-content;
}

.mode-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.mini-status {
  min-width: 92px;
  padding: 10px 12px;
  border: 1px solid rgba(74, 222, 128, 0.22);
  border-radius: 6px;
  background: rgba(74, 222, 128, 0.08);
  text-align: right;
}

.mode-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.mode-status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--muted);
}

.mode-status-pill.is-online {
  border-color: rgba(74, 222, 128, 0.34);
  color: var(--green);
  background: rgba(74, 222, 128, 0.08);
}

.mode-status-pill.is-online::before {
  background: var(--green);
  box-shadow: 0 0 14px rgba(74, 222, 128, 0.8);
}

.mode-status-pill.is-offline {
  border-color: rgba(251, 113, 133, 0.34);
  color: var(--red);
  background: rgba(251, 113, 133, 0.08);
}

.mode-status-pill.is-offline::before {
  background: var(--red);
}

.mini-status strong {
  display: block;
  margin-top: 3px;
  color: var(--green);
  font-size: 24px;
  line-height: 1;
}

.mode-topline,
.staff-role {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.mode-card p,
.staff-card p,
.news-item p,
.admin-login p {
  color: var(--muted);
  line-height: 1.6;
}

.mode-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 0 22px 22px;
  padding: 13px 14px;
  border: 1px solid rgba(74, 222, 128, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--green);
  font-weight: 800;
}

.mode-meta span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.mode-meta strong {
  color: var(--text);
  font-size: 24px;
  line-height: 1;
}

.news-band {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

.info-band {
  background: linear-gradient(180deg, rgba(74, 222, 128, 0.035), rgba(255, 255, 255, 0.01));
}

.wide-panel,
.discord-panel,
.feature-item,
.rank-card {
  max-width: 1120px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.wide-panel {
  padding: 26px;
}

.wide-panel p,
.discord-panel p,
.feature-item p,
.rank-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.custom-page-panel {
  display: grid;
  gap: 18px;
}

.custom-page-panel p {
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.custom-page-panel .secondary-button {
  width: fit-content;
}

.discord-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px;
}

.ranking-grid {
  display: grid;
  max-width: 1120px;
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.rank-card {
  padding: 22px;
}

.rank-card span,
.feature-item span,
.event-date {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.event-server {
  width: fit-content;
  border: 1px solid rgba(74, 222, 128, 0.24);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--green);
  background: rgba(74, 222, 128, 0.08);
  font-weight: 900;
  text-transform: uppercase;
}

.rank-card strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 24px;
}

.feature-list {
  display: grid;
  max-width: 1120px;
  margin: 0 auto;
  gap: 14px;
}

.faq-grid {
  display: grid;
  max-width: 1120px;
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  align-items: start;
}

.event-grid {
  display: grid;
  max-width: 1120px;
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.feature-item {
  padding: 22px;
}

.empty-state {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
}

.empty-state strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 20px;
}

.empty-state p {
  margin: 0;
}

.faq-item {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(74, 222, 128, 0.07), rgba(255, 255, 255, 0.025)),
    var(--panel);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.faq-item:hover {
  transform: translateY(-3px);
  border-color: rgba(74, 222, 128, 0.32);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.28);
}

.faq-item summary {
  position: relative;
  display: block;
  min-height: 78px;
  padding: 22px 58px 22px 22px;
  cursor: pointer;
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 22px;
  color: var(--green);
  font-size: 28px;
  line-height: 1;
  transform: translateY(-50%);
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.event-card {
  position: relative;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(74, 222, 128, 0.09), rgba(96, 165, 250, 0.035) 48%, rgba(255, 255, 255, 0.025)),
    var(--panel);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.2);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.event-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--gold));
  opacity: 0.9;
}

.event-card:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 222, 128, 0.34);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.event-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.event-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.event-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.changelog-band {
  background:
    radial-gradient(circle at 20% 0%, rgba(74, 222, 128, 0.08), transparent 32%),
    #081410;
}

.changelog-list {
  display: grid;
  max-width: 920px;
  margin: 0 auto;
  gap: 14px;
}

.changelog-item {
  --change-accent: var(--green);
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.changelog-item::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, color-mix(in srgb, var(--change-accent) 13%, transparent), transparent 48%);
}

.changelog-item:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--change-accent) 45%, transparent);
  background: rgba(255, 255, 255, 0.05);
}

.changelog-item.is-added {
  --change-accent: var(--green);
}

.changelog-item.is-fixed {
  --change-accent: #60a5fa;
}

.changelog-item.is-removed {
  --change-accent: #fb7185;
}

.changelog-item.is-changed {
  --change-accent: var(--gold);
}

.changelog-marker {
  position: relative;
  z-index: 1;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--change-accent) 50%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--change-accent) 14%, transparent);
  color: color-mix(in srgb, var(--change-accent) 82%, white);
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 0 28px color-mix(in srgb, var(--change-accent) 18%, transparent);
}

.changelog-content {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.changelog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.changelog-meta span,
.changelog-meta time {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.changelog-meta span:first-child {
  border-color: color-mix(in srgb, var(--change-accent) 50%, transparent);
  color: color-mix(in srgb, var(--change-accent) 76%, white);
}

.changelog-content h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.changelog-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.news-list {
  display: grid;
  max-width: 1120px;
  margin: 0 auto;
  gap: 14px;
}

.news-item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.news-item p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.news-item.is-long:not(.is-expanded) p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.news-expand {
  margin-top: 12px;
  border: 1px solid rgba(74, 222, 128, 0.28);
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  background: rgba(74, 222, 128, 0.1);
  color: var(--green);
  font-weight: 900;
}

.punishments-band {
  background: rgba(255, 255, 255, 0.018);
}

.full-punishments-page {
  min-height: calc(100vh - 160px);
}

.full-punishments-page .section-heading h1 {
  margin: 0;
  font-size: clamp(46px, 8vw, 92px);
  line-height: 0.95;
}

.punishment-shell {
  display: grid;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
}

.punishment-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.punishment-search {
  display: grid;
  padding: 16px;
  border: 1px solid rgba(74, 222, 128, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(74, 222, 128, 0.065), rgba(255, 255, 255, 0.02)),
    var(--panel);
}

.punishment-stat {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.punishment-stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.punishment-stat strong {
  font-size: 28px;
}

.punishment-stat:hover,
.punishment-stat.is-active {
  border-color: rgba(74, 222, 128, 0.36);
  background: rgba(74, 222, 128, 0.08);
}

.punishment-table {
  display: grid;
  gap: 10px;
}

.punishment-more-link {
  justify-self: center;
}

.punishment-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(251, 113, 133, 0.055), rgba(255, 255, 255, 0.025)),
    var(--panel);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.punishment-row:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 222, 128, 0.32);
  background:
    linear-gradient(135deg, rgba(74, 222, 128, 0.08), rgba(251, 113, 133, 0.05)),
    var(--panel);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.28);
}

.punishment-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.punishment-main strong {
  font-size: 20px;
}

.punishment-main p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.punishment-type,
.punishment-status {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid rgba(245, 189, 79, 0.34);
  border-radius: 999px;
  color: #ffd980;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.punishment-type.ban,
.punishment-type.tempban,
.punishment-status.failed {
  border-color: rgba(251, 113, 133, 0.42);
  color: #fecdd3;
}

.punishment-type.mute,
.punishment-type.tempmute {
  border-color: rgba(96, 165, 250, 0.42);
  color: #bfdbfe;
}

.punishment-status.done {
  border-color: rgba(74, 222, 128, 0.42);
  color: var(--green);
}

.punishment-status.active {
  border-color: rgba(245, 189, 79, 0.44);
  color: #ffd980;
}

.punishment-meta {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.punishment-details-card {
  position: relative;
  width: min(100%, 680px);
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(251, 113, 133, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(251, 113, 133, 0.09), rgba(74, 222, 128, 0.055)),
    var(--panel);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.45);
}

.punishment-details-card h2 {
  margin: 8px 0 18px;
  font-size: clamp(30px, 5vw, 48px);
}

.punishment-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.punishment-detail-grid div,
.punishment-reason {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.punishment-detail-grid span,
.punishment-reason span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.punishment-reason {
  margin-top: 10px;
}

.punishment-reason p {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.news-date {
  color: var(--blue);
  font-weight: 800;
}

.news-author {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.staff-avatar {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--gold), var(--green));
  color: #07120f;
  font-weight: 900;
  font-size: 22px;
}

.enhanced-staff-card {
  --staff-accent: var(--gold);
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  width: 100%;
  min-height: 236px;
  gap: 15px;
  align-items: start;
  align-content: start;
  overflow: hidden;
  padding: 24px;
}

.enhanced-staff-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 28%, color-mix(in srgb, var(--staff-accent) 20%, transparent), transparent 42%),
    linear-gradient(135deg, color-mix(in srgb, var(--staff-accent) 10%, transparent), transparent 50%);
  opacity: 0.78;
}

.enhanced-staff-card.owner {
  --staff-accent: #f5bd4f;
}

.enhanced-staff-card.admin {
  --staff-accent: #60a5fa;
}

.enhanced-staff-card.moderator {
  --staff-accent: #4ade80;
}

.enhanced-staff-card.support {
  --staff-accent: #67e8f9;
}

.enhanced-staff-card.builder {
  --staff-accent: #f0abfc;
}

.enhanced-staff-card > * {
  position: relative;
  z-index: 1;
}

.staff-skin-wrap {
  position: relative;
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
}

.staff-head {
  width: 62px;
  height: 62px;
  image-rendering: pixelated;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34);
}

.staff-glow {
  position: absolute;
  inset: 6px;
  z-index: -1;
  border-radius: 16px;
  background: color-mix(in srgb, var(--staff-accent) 42%, transparent);
  filter: blur(18px);
}

.glow-rank {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 0;
  padding: 5px 9px;
  border: 1px solid color-mix(in srgb, var(--staff-accent) 56%, transparent);
  border-radius: 6px;
  background: color-mix(in srgb, var(--staff-accent) 15%, transparent);
  color: color-mix(in srgb, var(--staff-accent) 78%, white);
  text-shadow: 0 0 18px color-mix(in srgb, var(--staff-accent) 62%, transparent);
  box-shadow: 0 0 26px color-mix(in srgb, var(--staff-accent) 12%, transparent);
  font-size: 12px;
  line-height: 1;
}

.staff-content {
  min-width: 0;
}

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

.staff-title-line .staff-role {
  margin-bottom: 0;
}

.staff-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.staff-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.staff-status.is-active {
  color: var(--green);
}

.staff-status.is-vacation {
  color: var(--gold);
}

.staff-status.is-inactive {
  color: #fda4af;
}

.staff-description {
  max-width: 28ch;
  margin: 6px 0 10px;
  color: var(--text);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.staff-details {
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 14px;
}

.staff-chips,
.staff-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.staff-chips span,
.staff-links a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
}

.staff-links a {
  min-width: 38px;
  justify-content: center;
  color: color-mix(in srgb, var(--staff-accent) 72%, white);
  text-decoration: none;
}

.staff-links a:hover {
  border-color: color-mix(in srgb, var(--staff-accent) 45%, transparent);
  background: color-mix(in srgb, var(--staff-accent) 12%, transparent);
}

.enhanced-staff-card h3 {
  margin-bottom: 8px;
}

.enhanced-staff-card p {
  margin-bottom: 4px;
}

.admin-shell {
  min-height: calc(100vh - 75px);
  background:
    radial-gradient(circle at 18% 8%, rgba(74, 222, 128, 0.1), transparent 28%),
    radial-gradient(circle at 82% 0%, rgba(96, 165, 250, 0.06), transparent 30%),
    #081410;
}

.admin-login,
.admin-panel {
  width: min(100%, 1320px);
  max-width: 1320px;
  margin: 0 auto;
  padding: 22px clamp(14px, 3vw, 28px) 36px;
}

.admin-login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 20px;
  align-items: center;
}

.inline-form {
  display: flex;
  gap: 10px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 13px 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: rgba(74, 222, 128, 0.72);
}

select:focus {
  border-color: rgba(74, 222, 128, 0.72);
}

select option {
  background: #101b18;
  color: var(--text);
}

input::placeholder,
textarea::placeholder {
  color: rgba(243, 255, 248, 0.48);
}

.admin-panel {
  display: grid;
  gap: 20px;
}

.admin-page .site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom-color: rgba(74, 222, 128, 0.16);
  background: rgba(5, 14, 11, 0.9);
}

.admin-page .main-nav {
  gap: 4px;
}

.admin-page .main-nav a {
  padding: 9px 10px;
  font-size: 13px;
}

.admin-workspace {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  min-width: 0;
  max-width: 100%;
}

.admin-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(74, 222, 128, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(16, 27, 24, 0.9);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
  min-width: 0;
}

.admin-sidebar a {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 12px 12px 12px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.admin-sidebar a:hover,
.admin-sidebar a.is-active {
  transform: translateX(3px);
  border-color: rgba(74, 222, 128, 0.22);
  background: rgba(74, 222, 128, 0.09);
  color: var(--text);
}

.admin-sidebar a.is-active::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 6px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--green), var(--gold));
}

.admin-sidebar span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-sidebar strong {
  font-size: 15px;
  overflow-wrap: anywhere;
}

.admin-content {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.admin-category {
  width: 100%;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018)),
    var(--panel);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.2);
}

.admin-category-grid {
  display: grid;
  max-width: none;
  margin: 0;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

.admin-category.is-active-section {
  box-shadow: 0 24px 78px rgba(0, 0, 0, 0.28);
}

.admin-category.is-collapsed {
  display: none;
}

.admin-category.is-active-section .collapse-button {
  pointer-events: none;
  opacity: 0.72;
}

.sections-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.sections-admin-grid .admin-card {
  align-self: start;
}

.sections-admin-grid .management-list {
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}

.sections-admin-grid .management-row {
  align-items: flex-start;
}

.sections-admin-grid .management-row strong {
  overflow-wrap: anywhere;
}

.toggle-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
}

.toggle-line input {
  width: auto;
}

.switch-line {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.switch-line input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-line span {
  position: relative;
  width: 48px;
  height: 26px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.switch-line span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--muted);
  transition: transform 160ms ease, background 160ms ease;
}

.switch-line input:checked + span {
  border-color: rgba(74, 222, 128, 0.52);
  background: rgba(74, 222, 128, 0.2);
  box-shadow: 0 0 22px rgba(74, 222, 128, 0.14);
}

.switch-line input:checked + span::after {
  transform: translateX(22px);
  background: var(--green);
}

.range-line {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-weight: 900;
}

.range-line span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.range-line strong {
  color: var(--green);
}

.range-line input[type="range"] {
  width: 100%;
  accent-color: var(--green);
}

.toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.permission-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.compact-row {
  padding: 11px 12px;
}

.category-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 0 20px 20px;
  min-width: 0;
}

.compact-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin: 0 20px 18px;
}

.login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.admin-message {
  max-width: none;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(74, 222, 128, 0.32);
  border-radius: 6px;
  background: rgba(74, 222, 128, 0.1);
  color: var(--text);
  font-weight: 800;
}

.admin-message.error {
  border-color: rgba(251, 113, 133, 0.46);
  background: rgba(251, 113, 133, 0.13);
  color: #fecdd3;
}

.admin-toolbar {
  position: relative;
  overflow: hidden;
  padding: 18px 20px;
  border: 1px solid rgba(74, 222, 128, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(74, 222, 128, 0.1), rgba(96, 165, 250, 0.055)),
    var(--panel);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.22);
}

.admin-toolbar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--green), var(--gold));
}

.admin-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018)),
    var(--panel-strong);
}

.admin-actions {
  display: flex;
  justify-content: flex-end;
}

.admin-title {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1;
}

.form-actions,
.row-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-management {
  display: grid;
  gap: 18px;
}

.management-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
}

.management-heading,
.management-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.management-heading {
  min-height: 104px;
  margin-bottom: 18px;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(74, 222, 128, 0.075), transparent 55%),
    rgba(255, 255, 255, 0.018);
}

.admin-category.is-collapsed .management-heading {
  margin-bottom: 0;
  border-bottom: 0;
}

.collapse-button {
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px 12px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 900;
}

.collapse-button:hover {
  border-color: rgba(74, 222, 128, 0.42);
}

.management-heading h2 {
  max-width: 220px;
  font-size: 24px;
  line-height: 1.08;
}

.management-heading span,
.management-row span {
  color: var(--muted);
}

.management-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.management-row {
  padding: 14px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
}

.management-row:hover {
  border-color: rgba(245, 189, 79, 0.24);
  background: rgba(255, 255, 255, 0.07);
}

.management-row strong,
.management-row span {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.management-row strong {
  margin-bottom: 5px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0 20px 20px;
}

.status-card {
  min-height: 138px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.status-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.status-card strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 22px;
  overflow-wrap: anywhere;
}

.status-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.status-card.is-ok {
  border-color: rgba(74, 222, 128, 0.32);
  background: rgba(74, 222, 128, 0.07);
}

.status-card.is-error {
  border-color: rgba(251, 113, 133, 0.32);
  background: rgba(251, 113, 133, 0.07);
}

.status-card-wide {
  grid-column: span 2;
}

.mode-rank-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mode-rank-list p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
}

.mode-rank-list strong {
  display: inline;
  margin: 0;
  font-size: 14px;
}

.mode-rank-list span {
  color: var(--muted);
  font-size: 13px;
  text-transform: none;
}

.status-chart-card {
  grid-column: 1 / -1;
  min-height: 250px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(74, 222, 128, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.04);
}

.status-chart-card > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.status-chart-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.status-chart-card strong {
  color: var(--text);
  font-size: 20px;
}

.online-chart {
  width: 100%;
  min-height: 180px;
  overflow: visible;
}

.online-chart line {
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 2;
}

.online-chart polygon {
  fill: rgba(74, 222, 128, 0.12);
}

.online-chart polyline {
  fill: none;
  stroke: var(--green);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
  filter: drop-shadow(0 8px 20px rgba(74, 222, 128, 0.22));
}

.empty-chart {
  display: grid;
  min-height: 180px;
  place-content: center;
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.empty-chart strong {
  color: var(--text);
  font-size: 20px;
}

.empty-chart p {
  margin: 8px 0 0;
  color: var(--muted);
}

.danger-button {
  min-height: 42px;
  border: 1px solid rgba(251, 113, 133, 0.36);
  border-radius: 6px;
  padding: 10px 14px;
  cursor: pointer;
  background: rgba(251, 113, 133, 0.12);
  color: #fecdd3;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.danger-button:hover {
  transform: translateY(-1px);
  border-color: rgba(251, 113, 133, 0.7);
  background: rgba(251, 113, 133, 0.2);
}

.hidden {
  display: none !important;
}

.site-footer {
  display: grid;
  gap: 12px;
  padding: 26px clamp(18px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.footer-vote,
.footer-socials {
  margin: 0 auto 10px;
  padding: 18px 22px;
  border: 1px solid rgba(74, 222, 128, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(74, 222, 128, 0.07), rgba(96, 165, 250, 0.045)),
    var(--panel);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.footer-vote:hover,
.footer-socials:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 222, 128, 0.34);
  background:
    linear-gradient(135deg, rgba(74, 222, 128, 0.1), rgba(96, 165, 250, 0.055)),
    var(--panel);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.3);
}

.footer-vote {
  width: min(100%, 1120px);
  text-align: center;
}

.footer-socials {
  width: min(100%, 520px);
}

.footer-vote strong,
.footer-socials strong {
  display: block;
  margin-bottom: 14px;
  color: var(--text);
  font-size: 17px;
}

.vote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.vote-card {
  position: relative;
  display: grid;
  gap: 10px;
  justify-items: start;
  min-height: 142px;
  padding: 16px;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  overflow: hidden;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.vote-card:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 222, 128, 0.34);
  background:
    linear-gradient(135deg, rgba(74, 222, 128, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.24);
}

.vote-card:has(.sponsor-star) {
  border-color: rgba(245, 189, 79, 0.48);
  background:
    linear-gradient(135deg, rgba(245, 189, 79, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 0 34px rgba(245, 189, 79, 0.1);
}

.vote-card:has(.sponsor-star)::before,
.vote-card:has(.sponsor-star)::after {
  content: "\2726";
  position: absolute;
  color: #ffe7a8;
  text-shadow: 0 0 16px rgba(245, 189, 79, 0.86);
  pointer-events: none;
}

.vote-card:has(.sponsor-star)::before {
  top: 12px;
  left: 14px;
  font-size: 17px;
  animation: sponsorSparkle 2.8s ease-in-out infinite;
}

.vote-card:has(.sponsor-star)::after {
  right: 52px;
  bottom: 48px;
  font-size: 13px;
  opacity: 0.72;
  animation: sponsorSparkle 3.4s ease-in-out 0.7s infinite;
}

.sponsor-star {
  position: absolute;
  top: 10px;
  right: 12px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(245, 189, 79, 0.5);
  border-radius: 999px;
  background: rgba(245, 189, 79, 0.14);
  color: #ffd980;
  font-size: 15px;
  text-shadow: 0 0 18px rgba(245, 189, 79, 0.8);
  animation: sponsorGlow 2.6s ease-in-out infinite;
}

.sponsor-star::before,
.sponsor-star::after {
  content: "\2727";
  position: absolute;
  color: #fff3c7;
  font-size: 10px;
  text-shadow: 0 0 14px rgba(245, 189, 79, 0.9);
}

.sponsor-star::before {
  top: -8px;
  right: -5px;
  animation: sponsorSparkle 2.2s ease-in-out 0.2s infinite;
}

.sponsor-star::after {
  left: -9px;
  bottom: -6px;
  animation: sponsorSparkle 3s ease-in-out 1s infinite;
}

@keyframes sponsorGlow {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(245, 189, 79, 0);
  }

  50% {
    transform: scale(1.08);
    box-shadow: 0 0 26px rgba(245, 189, 79, 0.28);
  }
}

@keyframes sponsorSparkle {
  0%,
  100% {
    opacity: 0.38;
    transform: translateY(0) scale(0.82) rotate(0deg);
  }

  45% {
    opacity: 1;
    transform: translateY(-4px) scale(1.18) rotate(18deg);
  }

  70% {
    opacity: 0.7;
    transform: translateY(1px) scale(0.94) rotate(-10deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sponsor-star,
  .sponsor-star::before,
  .sponsor-star::after,
  .vote-card:has(.sponsor-star)::before,
  .vote-card:has(.sponsor-star)::after {
    animation: none;
  }
}

.vote-card span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.vote-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
}

.vote-card h3 small {
  display: block;
  margin-top: 4px;
  color: #ffd980;
  font-size: 11px;
  text-transform: uppercase;
}

.vote-card .primary-button {
  align-self: end;
  width: 100%;
  justify-content: center;
  min-height: 40px;
}

.social-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.social-links a {
  display: grid;
  min-height: 48px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font-weight: 900;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.shop-band {
  border-top: 1px solid var(--border);
  background:
    radial-gradient(circle at 22% 12%, rgba(74, 222, 128, 0.08), transparent 30%),
    rgba(255, 255, 255, 0.018);
}

.shop-card {
  position: relative;
  display: flex;
  min-height: 260px;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.shop-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.1), transparent 44%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.shop-card:hover::before {
  opacity: 1;
}

.shop-card.is-highlighted {
  border-color: rgba(245, 189, 79, 0.46);
  box-shadow: 0 0 34px rgba(245, 189, 79, 0.09), 0 16px 48px rgba(0, 0, 0, 0.18);
}

.shop-card.is-highlighted::after {
  content: "\2726";
  position: absolute;
  top: 16px;
  right: 18px;
  color: #ffd980;
  font-size: 20px;
  text-shadow: 0 0 16px rgba(245, 189, 79, 0.75);
  animation: sponsorSparkle 3s ease-in-out infinite;
}

.shop-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.shop-card-top span {
  width: fit-content;
  border: 1px solid rgba(74, 222, 128, 0.28);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(74, 222, 128, 0.08);
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.shop-card-top strong {
  color: var(--gold);
  font-size: 18px;
  text-align: right;
}

.shop-card h3,
.shop-card p,
.shop-card a {
  position: relative;
  z-index: 1;
}

.shop-card h3 {
  margin: 4px 0 0;
  color: var(--text);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
}

.shop-card p {
  flex: 1;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.shop-card .primary-button,
.shop-card .secondary-button {
  justify-content: center;
  width: 100%;
  min-height: 44px;
}

.shop-card .is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.shop-page main {
  min-height: 100vh;
}

.shop-hero {
  padding: clamp(58px, 9vw, 112px) clamp(18px, 4vw, 56px) 36px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 70% 20%, rgba(96, 165, 250, 0.08), transparent 32%),
    radial-gradient(circle at 18% 8%, rgba(74, 222, 128, 0.08), transparent 34%);
}

.shop-hero .section-heading p:last-child {
  max-width: 760px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.shop-control-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px;
  border: 1px solid rgba(74, 222, 128, 0.22);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.24);
}

.shop-control-panel label {
  display: grid;
  gap: 8px;
}

.shop-control-panel label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.shop-player-preview {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.shop-player-preview img {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  image-rendering: pixelated;
}

.shop-mode-picker {
  display: grid;
  max-width: 1120px;
  margin: 16px auto 0;
  gap: 12px;
}

.shop-mode-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.shop-mode-heading strong {
  color: var(--text);
  font-size: 18px;
}

.shop-mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.shop-mode-card {
  position: relative;
  display: grid;
  min-height: 82px;
  gap: 8px;
  align-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(74, 222, 128, 0.08), transparent 52%),
    rgba(255, 255, 255, 0.045);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.shop-mode-card::after {
  content: "";
  position: absolute;
  inset: auto 14px 12px auto;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(201, 213, 204, 0.42);
  box-shadow: 0 0 0 5px rgba(201, 213, 204, 0.06);
}

.shop-mode-card span {
  color: var(--text);
  font-size: 20px;
  font-weight: 950;
  text-transform: lowercase;
}

.shop-mode-card strong {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.shop-mode-card:hover,
.shop-mode-card.is-active {
  transform: translateY(-3px);
  border-color: rgba(74, 222, 128, 0.42);
  background:
    linear-gradient(135deg, rgba(74, 222, 128, 0.16), transparent 55%),
    rgba(74, 222, 128, 0.06);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.shop-mode-card.is-active::after {
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(74, 222, 128, 0.12), 0 0 20px rgba(74, 222, 128, 0.35);
}

.shop-message {
  max-width: 1120px;
  margin: 14px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(74, 222, 128, 0.28);
  border-radius: 8px;
  background: rgba(74, 222, 128, 0.08);
  color: var(--green);
  font-weight: 800;
}

.shop-message.error {
  border-color: rgba(251, 113, 133, 0.3);
  background: rgba(251, 113, 133, 0.09);
  color: #fecdd3;
}

.shop-category-tabs {
  display: flex;
  max-width: 1120px;
  margin: 0 auto 18px;
  gap: 10px;
  flex-wrap: wrap;
}

.shop-category-tab {
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.shop-category-tab:hover,
.shop-category-tab.is-active {
  border-color: rgba(74, 222, 128, 0.38);
  background: rgba(74, 222, 128, 0.1);
  color: var(--green);
}

.shop-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1120px;
  margin: 0 auto;
  gap: 16px;
}

.mini-list {
  display: grid;
  gap: 10px;
}

.mini-list article {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

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

.mini-player-row {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.mini-player-row img {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  image-rendering: pixelated;
}

.shop-goals-card {
  border-color: rgba(251, 191, 36, 0.24);
  background:
    linear-gradient(135deg, rgba(251, 191, 36, 0.08), transparent 58%),
    var(--panel);
}

.shop-goal-bar {
  overflow: hidden;
  height: 12px;
  border: 1px solid rgba(251, 191, 36, 0.24);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
}

.shop-goal-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--green));
}

.form-block {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(74, 222, 128, 0.16);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.form-block + .form-block {
  margin-top: 14px;
}

.form-block h3 {
  margin: -4px 0 2px;
}

.form-help {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.shop-admin-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(74, 222, 128, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(74, 222, 128, 0.1), transparent 48%),
    rgba(255, 255, 255, 0.04);
}

.shop-admin-overview div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.12);
}

.shop-admin-overview strong {
  display: block;
  margin: 5px 0;
  font-size: 18px;
}

.shop-admin-overview p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.shop-list-header {
  border-color: rgba(251, 191, 36, 0.2);
  background: rgba(251, 191, 36, 0.055);
}

.shop-product-row {
  align-items: center;
}

.social-links a:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 222, 128, 0.38);
  background: rgba(74, 222, 128, 0.1);
  box-shadow: 0 14px 40px rgba(74, 222, 128, 0.12);
}

.social-links svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.footer-disclaimer {
  max-width: 1120px;
  margin: 0;
  color: rgba(169, 187, 178, 0.78);
  font-size: 13px;
  line-height: 1.6;
}

.announcement-popup {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.announcement-popup.is-toast {
  inset: auto 24px 24px auto;
  display: block;
  width: min(380px, calc(100vw - 32px));
  padding: 0;
}

.copy-ip-toast {
  position: relative;
  overflow: hidden;
  padding: 18px 18px 16px;
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(74, 222, 128, 0.12), rgba(245, 189, 79, 0.08)),
    rgba(12, 27, 23, 0.97);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  animation: toastIn 220ms ease both;
}

.copy-ip-toast span,
.copy-ip-toast p {
  display: block;
  padding-right: 34px;
  color: var(--muted);
}

.copy-ip-toast span {
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.copy-ip-toast strong {
  display: block;
  margin-bottom: 6px;
  padding-right: 34px;
  color: var(--text);
  font-size: 1.25rem;
}

.copy-ip-toast p {
  margin: 0 0 12px;
  font-size: 0.92rem;
}

.copy-ip-toast i {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--gold));
  transform-origin: left;
  animation: toastTimer 5s linear forwards;
}

.copy-ip-toast-value,
.copy-toast-close {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.copy-ip-toast-value {
  width: 100%;
  padding: 11px 12px;
  text-align: left;
}

.copy-toast-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
}

.copy-ip-toast-value:hover,
.copy-toast-close:hover {
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(74, 222, 128, 0.12);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastTimer {
  to {
    transform: scaleX(0);
  }
}

.popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 10, 7, 0.76);
  backdrop-filter: blur(8px);
}

.announcement-card {
  position: relative;
  width: min(100%, 560px);
  padding: clamp(24px, 5vw, 38px);
  overflow: hidden;
  border: 1px solid rgba(74, 222, 128, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(74, 222, 128, 0.12), rgba(96, 165, 250, 0.065)),
    var(--panel);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.45);
}

.announcement-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--gold), #60a5fa);
}

.announcement-card h2 {
  margin: 8px 0 12px;
  color: var(--text);
  font-size: clamp(30px, 6vw, 52px);
  line-height: 0.98;
}

.announcement-card p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.copy-ip-card {
  width: min(100%, 460px);
}

.copy-ip-value {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(74, 222, 128, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: clamp(22px, 5vw, 34px);
  font-weight: 900;
  cursor: pointer;
}

.copy-ip-value::after {
  content: "kliknij";
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.copy-ip-value:hover {
  border-color: rgba(74, 222, 128, 0.48);
  background: rgba(74, 222, 128, 0.1);
}

.popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}

.popup-close:hover {
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(74, 222, 128, 0.12);
}

@media (max-width: 880px) {
  .site-header,
  .admin-login,
  .news-item {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 760px;
  }

  .announcement-bar {
    top: auto;
    grid-template-columns: 1fr;
  }

  .mode-grid,
  .shop-grid,
  .staff-grid,
  .admin-forms,
  .ranking-grid,
  .event-grid,
  .status-grid,
  .admin-category-grid,
  .admin-workspace,
  .shop-control-panel,
  .shop-status-grid,
  .shop-admin-overview,
  .staff-group-grid,
  .punishment-stats,
  .punishment-row,
  .punishment-detail-grid,
  .sections-admin-grid,
  .toggle-grid {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .discord-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .status-card-wide,
  .status-chart-card {
    grid-column: 1;
  }

  .category-layout,
  .compact-form {
    grid-template-columns: 1fr;
  }

  .management-row,
  .management-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .inline-form {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .enhanced-staff-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .main-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .main-nav a {
    padding: 9px 8px;
    font-size: 13px;
  }

  .hero {
    padding-top: 58px;
  }

  .server-panel strong {
    font-size: 20px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

body.theme-modern .primary-button {
  border-radius: 10px;
  background: linear-gradient(135deg, #49e88c, #ffd166);
  box-shadow: 0 14px 42px rgba(73, 232, 140, 0.18);
}

body.theme-modern .secondary-button,
body.theme-modern .ghost-button,
body.theme-modern .collapse-button {
  border-color: rgba(73, 232, 140, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
}

body.theme-modern .hero {
  background:
    linear-gradient(90deg, rgba(6, 17, 13, 0.82), rgba(6, 17, 13, 0.42)),
    var(--hero-image, url("assets/hero-minecraft-server.png")) center / cover;
}

body.theme-modern .site-header,
body.theme-modern .admin-toolbar {
  border-bottom-color: rgba(73, 232, 140, 0.14);
  background: rgba(6, 17, 13, 0.78);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.28);
}

body.theme-modern .server-panel,
body.theme-modern .mode-card,
body.theme-modern .shop-card,
body.theme-modern .staff-card,
body.theme-modern .news-item,
body.theme-modern .admin-card,
body.theme-modern .wide-panel,
body.theme-modern .event-card,
body.theme-modern .faq-item,
body.theme-modern .management-row,
body.theme-modern .punishment-row,
body.theme-modern .punishment-stat,
body.theme-modern .changelog-item,
body.theme-modern .rank-card,
body.theme-modern .feature-item {
  border-color: rgba(73, 232, 140, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(73, 232, 140, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(10, 28, 21, 0.76);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
}

body.theme-modern .mode-card:hover,
body.theme-modern .shop-card:hover,
body.theme-modern .staff-card:hover,
body.theme-modern .news-item:hover,
body.theme-modern .admin-card:hover,
body.theme-modern .event-card:hover,
body.theme-modern .punishment-row:hover,
body.theme-modern .changelog-item:hover {
  border-color: rgba(73, 232, 140, 0.32);
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.44), 0 0 36px rgba(73, 232, 140, 0.07);
}

body.theme-modern .server-panel div {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.065);
}

body.theme-modern input,
body.theme-modern textarea,
body.theme-modern select {
  border-color: rgba(73, 232, 140, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
}

body.theme-modern .brand-mark {
  border-color: rgba(255, 255, 255, 0.34);
  border-radius: 10px;
  background: linear-gradient(135deg, #49e88c, #ffd166);
  box-shadow: 0 12px 34px rgba(73, 232, 140, 0.22), 0 0 38px rgba(255, 209, 102, 0.1);
}

body.theme-modern .main-nav a:hover {
  background: rgba(73, 232, 140, 0.1);
}
