/* Minecraft Server List template — visual recreation (original CSS) */

:root {
  --bg: #ecf0f1;
  --text: #505050;
  --header: #484e5b;
  --header-border: #373c46;
  --header-text: #e1e2e5;
  --header-hover: #515867;
  --green: #76b83d;
  --green-hover: #6aa537;
  --green-active: #83c34b;
  --online: #81c247;
  --offline: #de2f2f;
  --premium: #c18d50;
  --premium-bg: #fff7ec;
  --premium-border: #fbe3c3;
  --premium-ip: #f1d3aa;
  --premium-copy: #dcbf97;
  --premium-text: #4c300c;
  --premium-label: #563d09;
  --border: #e6e6e6;
  --border-soft: #e8e8e8;
  --border-row: #e4e4e7;
  --muted: #e6e6e6;
  --panel-header: #484e5b;
  --panel-bg: #fafafa;
  --panel-body-bg: #fff;
  --panel-footer-bg: #fafafa;
  --panel-footer-border: #f1f1f1;
  --surface: #fff;
  --surface-muted: #f9fafb;
  --white: #fff;
  --radius: 5px;
  --font: Montserrat, Outfit, "Open Sans", Arial, sans-serif;
  color-scheme: light;
}

html[data-theme="dark"],
html.theme-dark {
  --bg: #1e2128;
  --text: #d5d7db;
  --header: #2a2e36;
  --header-border: #1a1d23;
  --header-text: #e1e2e5;
  --header-hover: #353a44;
  --border: #3a3f4a;
  --border-soft: #3a3f4a;
  --border-row: #3a3f4a;
  --muted: #323742;
  --panel-header: #2a2e36;
  --panel-bg: #252830;
  --panel-body-bg: #2c3038;
  --panel-footer-bg: #252830;
  --panel-footer-border: #3a3f4a;
  --surface: #2c3038;
  --surface-muted: #323742;
  --white: #2c3038;
  --premium-bg: #3a3226;
  --premium-border: #6b5535;
  --premium-ip: #5a4a32;
  --premium-copy: #6b5535;
  --premium-text: #f1d3aa;
  --premium-label: #e2ac6b;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font);
  font-size: 1rem;
  overflow-x: hidden;
  overflow-y: scroll;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #76b83d;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.1s ease-in-out;
}

a:hover {
  color: var(--green-hover);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border: 0;
}

button,
input {
  font: inherit;
}

ul.reset,
ol.reset {
  margin: 0;
  padding: 0;
  list-style: none;
}

.p0 {
  margin: 0;
  padding: 0;
  list-style: none;
}

.clear {
  clear: both;
  display: block;
  position: relative;
  width: 100%;
}

.m0 { margin: 0; }
.mb-0 { margin-bottom: 0; }
.mb-5 { margin-bottom: 5px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mt-3 { margin-top: 0.75rem; }
.pb-5 { padding-bottom: 5px; }
.p10 { padding: 10px; }

.fw-bold,
.fw-bolder { font-weight: 700; }
.fs-5 { font-size: 0.9rem; }
.fs-6 { font-size: 0.85rem; }
.fs-7 { font-size: 0.75rem; }
.fs-8 { font-size: 0.7rem; }
.fs-10 { font-size: 0.5rem; }
.text--black { color: #505050 !important; }
.text--muted { color: #5c6570 !important; }
.text-center { text-align: center; }
.text-gray-400 { color: #6b7280; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.lh-7 { line-height: 1.75; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.uppercase { text-transform: uppercase; }
.text-red-500 { color: #ef4444; }
.ps-2 { padding-left: 0.5rem; }
.w-100 { width: 100%; }
.d-inline-block { display: inline-block; }
.d-none { display: none !important; }
.cursor-default { cursor: default; }
.cursor-pointer { cursor: pointer; }
.rounded { border-radius: 0.25rem; }
.right { margin-left: auto; }

.d-flex { display: flex !important; }
.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.flex-content-between { justify-content: space-between; }
.flex-content-end { justify-content: flex-end; }
.align-center { align-items: center; }

@media (min-width: 640px) {
  .d-block-sm { display: block !important; }
  .d-inline-sm { display: inline !important; }
}

/* Grid */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 12px;
  padding-right: 12px;
  box-sizing: border-box;
}

/* Use near-full viewport width at each breakpoint (was too narrow on tablet) */
@media (min-width: 640px) { .container { max-width: 640px; } }
@media (min-width: 768px) { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 992px; } }
@media (min-width: 1280px) { .container { max-width: 1200px; } }
@media (min-width: 1536px) { .container { max-width: 1320px; } }

/* Grid — match MCSL: flex row, full-width cols by default, xl 75/25 sidebar */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
  list-style: none;
}

.row--no-gutters,
.row--fill {
  margin-left: 0;
  margin-right: 0;
}

.row > * {
  flex-shrink: 0;
  width: 100%;
  min-width: 0;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  box-sizing: border-box;
}

[class*="col-"] {
  padding: 0.5rem;
  position: relative;
  min-width: 0;
  box-sizing: border-box;
}

.row--no-gutters > [class*="col-"],
.row--no-gutters > * {
  padding: 0;
}

.col-12 { flex: 0 0 100%; width: 100%; max-width: 100%; }
/* MCSL: col--fill only removes padding — do NOT change flex */
.col--fill { padding: 0; }

@media (min-width: 640px) {
  .col-6-sm { flex: 0 0 50%; width: 50%; max-width: 50%; }
}

@media (min-width: 768px) {
  .col-6-md { flex: 0 0 50%; width: 50%; max-width: 50%; }
}

@media (min-width: 1024px) {
  .col-2-lg { flex: 0 0 16.666%; width: 16.666%; max-width: 16.666%; }
  .col-3-lg { flex: 0 0 25%; width: 25%; max-width: 25%; }
  .col-3-md { flex: 0 0 25%; width: 25%; max-width: 25%; }
  .col-4-lg { flex: 0 0 33.333%; width: 33.333%; max-width: 33.333%; }
  .col-6-lg { flex: 0 0 50%; width: 50%; max-width: 50%; }
  .col-8-lg { flex: 0 0 66.6667%; width: 66.6667%; max-width: 66.6667%; }
  .col-9-lg { flex: 0 0 75%; width: 75%; max-width: 75%; }
  .col-9-md { flex: 0 0 75%; width: 75%; max-width: 75%; }
  .offset-2-lg { margin-left: 16.666%; }
}

@media (min-width: 1280px) {
  .col-3-xl { flex: 0 0 25%; width: 25%; max-width: 25%; }
  .col-9-xl { flex: 0 0 75%; width: 75%; max-width: 75%; }
}

/* Header */
.header {
  background: var(--header);
  border-bottom: 2px solid var(--header-border);
  margin-bottom: 30px;
}

.header::after {
  content: "";
  display: table;
  clear: both;
}

.header__wrapper {
  display: flex;
  align-items: center;
  min-height: 64px;
  position: relative;
}

.header__brand {
  margin-right: 16px;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.header__brand img {
  height: 48px;
  width: auto;
  max-width: 260px;
  max-height: 52px;
  display: block;
  object-fit: contain;
}

@media (max-width: 640px) {
  .header__brand img {
    height: 38px;
    max-width: 180px;
  }
}

.header__mobile {
  cursor: pointer;
  padding: 12px 15px;
  display: none;
  color: var(--header-text);
  border-radius: var(--radius);
  margin-left: auto;
  line-height: 1.35;
  background: var(--header-hover);
  transition: background 0.1s ease-in-out;
}

.header__mobile:hover {
  background: #5c6475;
}

.header__navigation {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  position: relative;
  overflow: visible;
}

.header__navigation #nav {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  width: auto;
  max-width: none;
}

#nav > ul {
  display: block;
  width: auto;
  height: 100%;
  overflow: visible;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

#nav > ul > li {
  display: inline-block;
  position: relative;
  text-align: center;
  vertical-align: middle;
  height: 100%;
}

#nav ul li a {
  height: 100%;
  display: block;
  padding: 15px 14px;
  font-size: 0.875rem;
  color: var(--header-text) !important;
  transition: color 0.1s ease-in-out;
  white-space: nowrap;
}

#nav ul li a:hover {
  color: #fcfcfd !important;
}

#nav ul li a:active {
  color: #c6c8cd !important;
}

#nav ul li a i {
  margin-right: 6px;
}

.nav__subitem > a {
  white-space: nowrap;
}

.nav__subitem-content,
.nav__subitem > ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--header-hover);
  padding: 10px 0 0;
  opacity: 0;
  visibility: hidden;
  z-index: 999;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
  border-top: 1px solid var(--header);
  transform: translateY(-0.5em);
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.nav__subitem:hover > .nav__subitem-content,
.nav__subitem:focus-within > .nav__subitem-content,
.nav__subitem:hover > ul,
.nav__subitem:focus-within > ul,
.nav__subitem.open > .nav__subitem-content,
.nav__subitem.open > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__subitem-content .d-flex.flex-row {
  gap: 8px;
  padding: 0 8px 10px;
  flex-wrap: nowrap;
}

.nav__subitem-content .d-flex.flex-column {
  min-width: 180px;
  background: #5c6475;
  border-radius: 3px;
  padding: 8px 0;
}

.nav__subitem-content .d-flex.flex-column:last-child {
  min-width: 0;
  flex: 0 0 auto;
}

.gap-versions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.35rem;
  padding: 0 4px 4px;
}

.gap-versions ul {
  min-width: 4.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gap-versions a {
  padding-left: 10px !important;
  padding-right: 10px !important;
}

.nav__subitem-content p {
  margin: 0 0 6px;
  padding: 4px 15px;
  color: #fff;
  font-size: 0.75rem;
}

.nav__subitem-content a,
.nav__subitem > ul a {
  padding: 10px 15px;
  color: var(--header-text);
  font-weight: 700;
  font-size: 0.75rem;
  white-space: nowrap;
}

.nav__subitem-content a:hover,
.nav__subitem > ul a:hover {
  background: rgba(0, 0, 0, 0.12);
  color: #fff;
}

.header__search {
  display: block;
  position: relative;
  flex: 0 0 auto;
  width: 200px;
  max-width: 220px;
  margin-top: 0;
  float: none;
}

.header__search-inner {
  width: 100%;
  display: block;
}

.header__search form {
  display: flex;
  width: 100%;
  align-items: stretch;
}

.header__search input[type="text"],
.header__search input[type="search"] {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  margin: 0;
  border: 0;
  border-radius: 3px 0 0 3px;
  font-size: 0.8125rem;
  padding: 10px 12px;
  outline: 0;
  color: var(--text);
  background: #fff;
  height: 40px;
}

.header__search button {
  flex: 0 0 auto;
  width: auto;
  min-width: 42px;
  min-height: 40px;
  padding: 10px;
  border: 0;
  border-radius: 0 3px 3px 0;
}

/* Keep logo | nav | search on one row from tablet landscape up */
@media (min-width: 1024px) and (max-width: 1279px) {
  .header__brand {
    margin-right: 8px;
  }

  .header__brand img {
    height: 42px;
    max-width: 200px;
  }

  .header__navigation {
    gap: 6px;
  }

  .header__search {
    width: 160px;
    max-width: 160px;
  }
}

@media (max-width: 1023px) {
  .header__mobile {
    display: block;
  }

  .header__navigation {
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    flex: 1 0 100%;
    padding-bottom: 12px;
    clear: both;
  }

  .header__navigation.open {
    display: flex;
  }

  .header__wrapper {
    flex-wrap: wrap;
  }

  .header__navigation #nav {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
  }

  #nav > ul {
    white-space: normal;
  }

  #nav > ul > li {
    display: block;
    width: 100%;
    text-align: left;
  }

  .nav__subitem-content,
  .nav__subitem > ul {
    position: relative;
    top: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    border-top: 0;
    min-width: 0;
  }

  .nav__subitem.open > .nav__subitem-content,
  .nav__subitem.open > ul {
    display: block;
  }

  .nav__subitem-content .d-flex.flex-row {
    flex-direction: column;
    flex-wrap: wrap;
  }

  .nav__subitem-content .d-flex.flex-column {
    min-width: 0;
    width: 100%;
  }

  .gap-versions {
    flex-wrap: wrap;
  }

  .header__search {
    max-width: 100%;
    width: 100%;
    margin: 10px 0 0;
    margin-left: 0;
    float: none;
  }
}

/* Buttons */
.button {
  position: relative;
  display: inline-block;
  padding: 13px 22px;
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  border-radius: 4px;
  appearance: none;
  border: 0;
  cursor: pointer;
  box-sizing: border-box;
  text-decoration: none;
  color: #505050;
  background: #e6e6e6;
  transition: background 0.1s ease-in-out;
}

a.button:hover {
  color: #505050;
}

.button--small {
  padding: 12px 15px;
  font-size: 0.75rem;
}

.button--small i {
  margin-right: 8px;
}

.button--smaller {
  padding: 6px 10px;
  font-size: 0.6875rem;
}

.button--smallest {
  padding: 5px 8px;
  font-size: 0.625rem;
}

.button--smaller i,
.button--smallest i {
  margin-right: 5px;
}

.button--full {
  width: 100%;
}

.button.w-full,
.button.justify-center {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button--green {
  background: #76b83d;
  color: #fff !important;
  box-shadow: 0 2px 0 #5f9430;
}

.button--green:hover {
  background: #70af3a;
  color: #fff !important;
  box-shadow: 0 2px 0 #56862c;
}

.button--green:active {
  background: #7dc042;
  box-shadow: 0 1px 0 #5f9430;
  transform: translateY(1px);
}

.button--dark-green {
  background: #6ca838;
  color: #fff !important;
  box-shadow: 0 2px 0 #56862c;
}

.button--dark-green:hover {
  background: #67a035;
  box-shadow: 0 2px 0 #4e7c28;
}

.button--darkest-green {
  background: #609532;
  color: #fff !important;
  box-shadow: 0 2px 0 #4a7326;
}

.button--darkest-green:hover {
  background: #5b8e30;
  box-shadow: 0 2px 0 #446c24;
}

.button--darkest-green:active {
  box-shadow: 0 1px 0 #4a7326;
  transform: translateY(1px);
}

.button--gray {
  background: #e6e6e6;
  color: #505050 !important;
}

.button--gray:hover {
  background: #dbdbdb;
}

.button--dark-gray {
  background: #989898;
  color: #fff !important;
}

.button--dark-gray:hover {
  background: #909090;
}

.button--brown {
  background: #b97e64;
  color: #fff !important;
  box-shadow: 0 2px 0 #9a6550;
}

.button--brown:hover {
  background: #b5765a;
  box-shadow: 0 2px 0 #8f5d49;
}

.button--brown:active {
  background: #bd846c;
  box-shadow: 0 1px 0 #9a6550;
  transform: translateY(1px);
}

.button--discord {
  background: #5865F2;
  color: #fff !important;
  box-shadow: 0 2px 0 #4752c4;
}

.button--discord:hover {
  background: #4752c4;
  color: #fff !important;
  box-shadow: 0 2px 0 #3c45a5;
}

.button--discord:active {
  background: #3c45a5;
  box-shadow: 0 1px 0 #2e3590;
  transform: translateY(1px);
}

.button--discord i {
  color: #fff;
}

.button--blue {
  background: #484e5b;
  color: #fff !important;
}

.button--blue:hover {
  background: #444a56;
  color: #fff !important;
}

.button--blue:active {
  background: #505665;
}

.button--light-blue {
  background: #586070;
  color: #fff !important;
}

.button--light-blue:hover {
  background: #545b6b;
  color: #fff !important;
}

.button--light-blue:active {
  background: #5f6779;
}

.text--danger {
  color: #de2f2f !important;
}

/* Compact btn aliases (MCSL edition/version chips) */
.btn {
  position: relative;
  display: inline-block;
  padding: 13px 22px;
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  border-radius: 4px;
  appearance: none;
  border: 0;
  cursor: pointer;
  box-sizing: border-box;
  text-decoration: none;
  color: #505050;
  background: #e6e6e6;
  transition: background 0.1s ease-in-out;
}

.btn-xs {
  padding: 6px 10px;
  font-size: 0.6875rem;
  line-height: 1.2;
}

.btn--gray {
  background: #e6e6e6;
  color: #505050 !important;
}

.btn--gray:hover {
  background: #dbdbdb;
}

.btn--dark-gray {
  background: #989898;
  color: #fff !important;
}

.btn--dark-gray:hover {
  background: #909090;
}

.button i {
  margin-right: 10px;
}

.button-icon i {
  margin: 0 !important;
}

.btn-group {
  display: block;
  position: relative;
}

.btn-group .button,
.btn-group .btn {
  margin: 2px 4px 2px 0;
  display: inline-block;
}

.btn-group--no-gutters {
  overflow: hidden;
  border-radius: 4px;
  display: inline-flex;
}

.btn-group--no-gutters .button,
.btn-group--no-gutters .btn {
  margin: 0 !important;
  border-radius: 0;
  white-space: nowrap;
}

.btn-group--no-gutters .button + .button {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-group--no-gutters .button:first-child {
  border-radius: 4px 0 0 4px;
}

.btn-group--no-gutters .button:last-child {
  border-radius: 0 4px 4px 0;
}

.btn-group--full .button,
.btn-group--full .btn {
  width: 100%;
}

.btn-group-fit {
  display: flex;
  flex-wrap: wrap;
  margin: -2px;
}

.btn-group-fit a,
.btn-group-fit button,
.btn-group-fit .label {
  flex: 1 0 auto;
  margin: 2px !important;
}

/* Labels */
.label {
  position: relative;
  display: inline-block;
  line-height: 13px;
  padding: 5px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.65625rem;
  margin-right: 4px;
  margin-bottom: 2px;
}

.label--blue {
  background: var(--header);
  color: var(--header-text);
}

.label--light-blue {
  background: #5c6475;
  color: var(--header-text);
}

.label--gray {
  background: #e6e6e6;
  color: #505050;
}

.label--dark-gray {
  background: #989898;
  color: #fff;
}

.label--gold {
  color: #fff;
  background: linear-gradient(315deg, #e2ac6b 0%, #cba36d 74%);
}

.label--gold-2 {
  color: #fff;
  background: #cba36d;
}

.label--brown {
  color: #fff;
  background: #b97e64;
}

.label--green {
  background: var(--green);
  color: #fff;
}

.label--small {
  padding: 3px 6px;
}

.label--larger {
  padding: 6px 10px;
  font-size: 0.6875rem;
  line-height: 14px;
}

.fs-9 {
  font-size: 0.625rem !important;
  line-height: 13px;
}

.pl-1 {
  padding-left: 0.25rem;
}

.my-0\.5,
.my-05 {
  margin-top: 0.125rem;
  margin-bottom: 0.125rem;
}

/* Overview / filter */
.overview-section__intro {
  margin-bottom: 16px;
  gap: 12px;
  align-items: flex-start;
}

.overview-section__intro h1 {
  margin: 4px 0 0;
  font-size: 1.75rem;
  font-weight: 800;
  float: none;
}

@media (max-width: 1023px) {
  .overview-section__intro {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .overview-section__intro .filter__buttons {
    margin-top: 10px;
  }

  .overview-section__intro h1 {
    font-size: calc(1rem + 1.5vw);
  }
}

@media (min-width: 1024px) {
  .overview-section__intro {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    text-align: left;
  }
}

.filter__inner {
  display: none;
  position: relative;
  background: var(--surface);
  border: 0;
  border-left: 1px solid var(--border-soft);
  border-right: 1px solid var(--border-soft);
  border-bottom: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 15px 0 20px;
  text-align: center;
  width: 100%;
}

.filter__inner.show {
  display: block;
}

.filter__notice {
  display: block;
  font-size: 0.75rem;
  color: #5c6570;
  font-weight: 700;
  margin-top: 10px;
  text-align: center;
}

.filter__inner p {
  font-size: 0.875rem;
}

.filter__item {
  text-align: left;
}

.filter__item .row {
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

.filter__item .row > [class*="col-"] {
  padding: 0.65rem 0.5rem;
}

.filter__item label {
  margin-left: 6px;
}

.filter__submit {
  margin-top: 16px;
}

/* Dropdowns */
.dropdown {
  position: relative;
  display: inline-block;
  width: 100%;
  margin-bottom: 10px;
}

.dropdown__selected {
  position: relative;
  width: 100%;
  min-height: 38px;
  line-height: 36px;
  padding: 0 32px 0 15px;
  color: rgba(0, 0, 0, 0.8);
  background-color: #f8f8f8;
  border-radius: 3px;
  border: 1px solid #ebebeb;
  box-sizing: border-box;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.875rem;
  outline: 0;
}

.dropdown__selected::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 0;
  height: 0;
  margin-top: -2px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #989898;
}

.dropdown__inner {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 50;
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 0 0 3px 3px;
  max-height: 220px;
  overflow: auto;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.dropdown.open .dropdown__inner {
  display: block;
}

.dropdown__search {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #ebebeb;
  padding: 8px 10px;
  outline: 0;
  font-size: 0.8125rem;
}

.dropdown__inner ul li {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.8125rem;
}

.dropdown__inner ul li:hover,
.dropdown__inner ul li.hidden-by-search {
  background: #f5f5f5;
}

.dropdown__inner ul li.hidden-by-search {
  display: none;
  background: transparent;
}

.dropdown__inner ul li[hidden],
.dropdown__inner ul li.is-hidden {
  display: none;
}

/* Server cards — matches minecraft-serverlist.com structure (2-col grid, banner on top) */
.servers {
  margin: 0 auto 10px;
  width: 100%;
}

.server-list__grid > .row--no-gutters > [class*="col-"],
.server-list > .row--no-gutters > [class*="col-"] {
  padding: 0 5px 10px;
}

.server {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 468px;
  border-radius: 5px;
  border-bottom: 2px solid var(--border);
  background: var(--white);
  margin: 0 auto;
  overflow: hidden;
}

.server-list .server {
  max-width: none;
  width: 100%;
  margin: 0;
}

.server-card__badges {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
  width: auto;
  max-width: 100%;
}

.server-card__badges .label {
  flex: 0 0 auto;
  white-space: nowrap;
  margin-bottom: 0;
}

.server__banner {
  background: #e2e2e2;
  width: 100%;
  position: relative;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.server__banner a {
  display: block;
  position: relative;
  width: 100%;
  line-height: 0;
}

.server__banner img,
.server__banner.banner img,
.server__banner video,
.server__banner.banner video {
  display: block;
  width: 100%;
  height: auto !important; /* reference: natural 468×60 scale; beat global img rules */
  min-height: 45px;
  max-height: none;
  margin: 0 auto;
  object-fit: unset;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  border-radius: 0;
  pointer-events: none;
}

.banner__overlay {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  pointer-events: none;
}

.server__details {
  background: var(--white);
  width: 100%;
  padding: 10px;
  border-top: 1px solid #f5f5f5;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  position: relative;
  flex: 1;
}

.server__details-inner {
  position: relative;
  padding-right: 60px;
  min-height: 52px;
}

.server__icon {
  position: absolute;
  width: 45px;
  height: 45px;
  top: 50%;
  transform: translateY(-50%);
  right: 12px;
  z-index: 5;
  border-radius: var(--radius);
  cursor: pointer;
  object-fit: cover;
}

.server__place {
  position: relative;
  display: inline-block;
  cursor: default;
  background: var(--muted);
  margin-right: 6px;
  padding: 5px 6px;
  font-size: 0.6875rem;
  border-radius: 3px;
  font-weight: 700;
  color: var(--text);
  vertical-align: middle;
}

.server__place--rank {
  min-width: 28px;
  text-align: center;
}

.server__name {
  font-weight: 700;
  margin: 0 6px -6px 0;
  font-size: 1.0625rem;
  color: #505050;
  transition: color 0.1s ease-in-out;
  vertical-align: middle;
}

.server__name a {
  color: #505050;
}

.server__name a:hover {
  color: var(--green);
}

.server__flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  vertical-align: middle;
  font-size: 0.9rem;
  line-height: 1;
  flex-shrink: 0;
}

.server__actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 28px;
}

.server__ip-group {
  display: inline-flex;
  align-items: stretch;
  vertical-align: middle;
  max-width: 100%;
}

.server__ip {
  padding: 5px 8px;
  text-align: center;
  min-width: 140px;
  border-radius: 3px 0 0 3px;
  background: var(--muted);
  transition: background 0.1s ease-in-out;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.server__details-inner .d-flex {
  align-items: stretch;
}

.server__ip:hover {
  background: #dcdcdc;
}

.server__ip-copy {
  cursor: pointer;
  color: #676767;
  width: 28px;
  min-width: 28px;
  height: auto;
  padding: 0;
  border-radius: 0 3px 3px 0;
  font-size: 0.75rem;
  background: #d7d7d7;
  transition: background 0.1s ease-in-out;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.server__ip-copy i {
  display: block;
  line-height: 1;
  width: 1em;
  text-align: center;
}

.server__ip-copy:hover {
  background: #c9c9c9;
}

.server__status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: #fff;
  border-radius: 4px;
  font-size: 0.625rem;
  padding: 5px 8px;
  cursor: default;
  margin-left: 0;
  vertical-align: middle;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
}

.server__status.online {
  background: var(--online);
  color: #fff;
}

.server__status.offline {
  background: var(--offline);
  color: #fff;
}

.server__details-categories {
  position: relative;
  display: block;
  border-top: 2px solid #f5f5f5;
  margin-top: 10px;
  padding-top: 8px;
}

.server__label {
  display: inline-block;
  margin-bottom: 2px;
  margin-right: 3px;
  padding: 3px 6px;
  font-size: 0.625rem;
  background: var(--muted);
  border-radius: 3px;
  font-weight: 600;
  color: var(--text);
  transition: background 0.1s ease;
}

.server__label:hover {
  background: #d9d9d9;
  color: var(--green);
}

/* Premium variant */
.server--premium {
  border-bottom: 2px solid #e9d4b8;
  position: relative;
}

.server--premium .server__details {
  background: var(--premium-bg);
  outline: 1px solid var(--premium-border);
  border: 1px solid var(--premium-border);
  border-top: 0;
}

.server--premium .server__details-categories {
  border-color: var(--premium-border);
}

.server--premium .server__details .label {
  background: var(--premium-label);
  color: #fff;
}

.server--premium .server__label,
.server--premium .server__place {
  color: #fff !important;
  background: var(--premium) !important;
}

.server--premium .server__ip {
  background: var(--premium-ip);
  color: var(--premium-text) !important;
}

.server--premium .server__ip-copy {
  background: var(--premium-copy);
  color: var(--premium-text) !important;
}

.server--premium .server__status.online {
  background: #5f9a2f;
  color: #fff;
}

.server--featured .server__place {
  color: #fff !important;
  background: #e9942a !important;
}

/* Premium promo banner */
.premium-banner {
  background: #fff;
  border-radius: var(--radius);
  text-align: center;
  width: 100%;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  border: 1px solid #e2ac6b;
  box-shadow: 0 1px #da9440;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.premium-banner__info {
  display: inline-block;
  vertical-align: middle;
  padding: 5px 0;
  text-align: left;
}

.premium-banner__info span {
  display: block;
  margin-right: 20px;
  font-weight: 700;
  line-height: 1.4;
  font-size: 0.875rem;
}

.premium-banner__info span:last-child {
  font-size: 80%;
  color: #9d9d9d;
  font-weight: 400;
}

/* Sidebar */
.sidebar .button {
  margin-bottom: 20px;
}

.panel {
  position: relative;
  background: var(--panel-bg);
  margin-bottom: 15px;
  border-radius: 0 0 var(--radius) var(--radius);
  border: 0;
  border-bottom: 2px solid var(--border);
  overflow: hidden;
}

.panel__header {
  background-color: var(--panel-header);
  border: 0;
  border-bottom: 2px solid var(--header-border);
  color: var(--header-text);
  padding: 14px 16px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.panel__header h2,
.panel__header h3 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
}

.panel__header a,
.panel__header a:link,
.panel__header a:visited,
.panel__header h2,
.panel__header h2 a,
.panel__header h2 a:link,
.panel__header h2 a:visited {
  color: #f1f2f4;
  text-decoration: none;
}

.panel__header a:hover,
.panel__header h2 a:hover {
  color: #fff;
}

.panel__header i {
  margin-right: 8px;
}

.panel--blue .panel__header {
  background-color: var(--header);
  border-bottom: 2px solid var(--header-border);
  color: var(--header-text);
}

.panel--green .panel__header {
  background-color: var(--green);
  border-bottom: 2px solid var(--green-hover);
  color: #fff;
}

.panel__body {
  position: relative;
  padding: 0;
  background: var(--panel-body-bg);
  border: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 0.875rem;
}

.panel__body--fill {
  padding: 0;
}

/* Side borders only when explicitly requested (MCSL panel--border) */
.panel--border > .panel__body {
  border-left: 1px solid var(--border-soft);
  border-right: 1px solid var(--border-soft);
}

.panel--bg-white {
  background: var(--panel-body-bg);
}

.panel__footer {
  color: #797979;
  background-color: var(--panel-footer-bg);
  border: 0;
  border-top: 1px solid var(--panel-footer-border);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 12px 8px;
  text-align: center;
  position: relative;
}

.panel:has(> .panel__footer) > .panel__body {
  border-radius: 0;
}

.panel__footer .label {
  margin: 0;
}

.panel__footer-link {
  display: inline-block;
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--green);
  text-decoration: none;
  padding: 2px 6px;
  transition: color 0.1s ease-in-out;
}

.panel__footer-link:hover,
.panel__footer-link:focus {
  color: var(--green-hover);
  text-decoration: underline;
}

.h-100 {
  height: 100%;
}

.sidebar-item,
.sidebar-item:link,
.sidebar-item:visited {
  display: flex;
  position: relative;
  padding: 6px 15px;
  align-items: center;
  border: 0;
  border-bottom: 2px solid var(--border-soft);
  color: var(--text);
  transition: background 0.1s ease-in-out, color 0.1s ease-in-out;
  gap: 8px;
  min-height: 42px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.sidebar-item:last-child {
  border-bottom: 0;
}

.sidebar-item:hover {
  background: #f8f9fa;
  color: var(--green);
}

.sidebar-item > img {
  width: 28px;
  height: 28px;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-item__name {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
  flex: 1;
  min-width: 0;
  color: var(--text);
}

.sidebar-item:hover .sidebar-item__name {
  color: var(--green);
}

.sidebar-item__info {
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  gap: 4px;
  align-items: center;
}

.sidebar-item--compact {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  min-height: 0;
}

.sidebar-item--compact .label--gray {
  flex-shrink: 0;
}

.sidebar-item--premium {
  border-bottom: 2px solid #fbede4 !important;
  background: #fdf6f1;
}

.sidebar-item--premium:hover {
  background: #fcf0e8;
}

.sidebar-item--premium .label {
  background: #cba36d;
  color: #fff;
}

.sidebar-item--premium .label:last-child {
  background: #563d09;
}

.sidebar-premium {
  width: 100%;
  max-width: 468px;
  height: auto;
  margin: 0 auto 15px;
}

.sidebar-premium .banner,
.sidebar-premium .server__banner img,
.sidebar-premium .server__banner video {
  min-height: 35px !important;
}

.sidebar-premium .server__banner img,
.sidebar-premium .server__banner video {
  width: 100%;
  height: auto !important;
  max-height: none;
  object-fit: unset;
  border-radius: 0;
}

.sidebar-premium .server__details {
  padding: 12px;
}

.sidebar-premium .server__icon {
  top: 4px;
  right: 0;
  transform: none;
  width: 40px;
  height: 40px;
}

.sidebar-premium .server__details-inner {
  padding-right: 0;
  min-height: 0;
}

.sidebar-premium__heading {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-right: 48px;
  margin-bottom: 8px;
  min-width: 0;
}

.sidebar-premium .server__place {
  flex-shrink: 0;
  margin: 0;
  padding: 4px 5px;
}

.sidebar-premium .server__name {
  min-width: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.sidebar-premium .server__actions-row {
  padding-right: 48px;
  margin-bottom: 10px;
  min-width: 0;
}

.sidebar-premium .server__ip-group {
  min-width: 0;
  max-width: 100%;
}

.sidebar-premium .server__ip {
  min-width: 0;
  max-width: none;
  display: block;
  padding: 6px;
  font-size: 11px;
  line-height: 16px;
}

.sidebar-premium .server__ip-copy {
  border: 0;
  flex: 0 0 28px;
}

.sidebar-premium__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.sidebar-premium__badges .label {
  margin: 0;
  padding: 4px 8px;
  font-size: 10px;
  line-height: 1.3;
  white-space: nowrap;
}

.sidebar-premium a:focus-visible,
.sidebar-premium button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.ad-placeholder {
  background: #f2f2f2;
  border: 1px dashed #ccc;
  color: #5c6570;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 15px;
  text-decoration: none;
  box-sizing: border-box;
  overflow: hidden;
  transition: border-color 0.15s ease, color 0.15s ease;
}

a.ad-placeholder:hover {
  border-color: var(--green);
  color: var(--green);
}

/* Horizontal slots: leaderboard box (728×90), image contained not stretched */
.ad-placeholder--horizontal,
.ad-placeholder--midlist,
.ad-placeholder--footer {
  width: 100%;
  max-width: 728px;
  margin: 10px auto 20px;
  min-height: 90px;
  height: 90px;
}

/* Top / header: wider leaderboard (970×90) */
.ad-placeholder--header,
.ad-placeholder--top {
  margin: 10px auto 0;
  max-width: 970px;
  width: calc(100% - 24px);
  min-height: 90px;
  height: 90px;
}

/* Square slots: 300×250 */
.ad-placeholder--square,
.ad-placeholder--side {
  width: 100%;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
  min-height: 250px;
  height: 250px;
}

.site-ad {
  margin-bottom: 15px;
  text-align: center;
  box-sizing: border-box;
}

.site-ad--horizontal,
.site-ad--midlist,
.site-ad--footer {
  width: 100%;
  max-width: 728px;
  min-height: 90px;
  margin: 10px auto 20px;
}

.site-ad--top,
.site-ad--header {
  width: calc(100% - 24px);
  max-width: 970px;
  min-height: 90px;
  margin: 10px auto 0;
}

.site-ad--square,
.site-ad--side {
  width: 100%;
  max-width: 300px;
  min-height: 250px;
  margin-left: auto;
  margin-right: auto;
}

.site-ad__link {
  display: block;
  width: 100%;
  line-height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #f2f2f2;
}

.site-ad--horizontal .site-ad__link,
.site-ad--midlist .site-ad__link,
.site-ad--footer .site-ad__link,
.site-ad--top .site-ad__link,
.site-ad--header .site-ad__link {
  height: 90px;
  max-height: 90px;
}

.site-ad--square .site-ad__link,
.site-ad--side .site-ad__link {
  height: 250px;
  max-height: 250px;
}

.site-ad__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius);
}

/* Advertise page — panel padding, placements, checkout form */
.advertise-page .advertise-page-main {
  margin-bottom: 24px;
}

.advertise-page .premium-page__title {
  margin: 0 0 12px;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
}

.advertise-page .panel > .panel__body {
  padding: 18px 20px 20px;
  border-left: 1px solid var(--border-soft);
  border-right: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  border-radius: 0 0 var(--radius) var(--radius);
}

.advertise-page .panel--blue > .panel__body {
  background: #f3f4f6;
}

.advertise-intro.panel--blue > .panel__body {
  background: var(--panel-body-bg, #fff);
}

.advertise-page #checkout .panel__body,
.advertise-page .col-4-lg .panel__body {
  background: var(--panel-body-bg, #fff);
}

.advertise-intro__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.advertise-page .advertise-guest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.advertise-placements {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.advertise-card {
  display: block;
  padding: 16px 18px;
  border: 1px solid #d7dbe0;
  border-radius: var(--radius);
  background: #fff;
  color: var(--text, #333) !important;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-sizing: border-box;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.advertise-card:hover {
  color: var(--text, #333) !important;
  border-color: #9ccc65;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.advertise-card.is-selected {
  color: var(--text, #333) !important;
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
  background: #f7fbf2;
}

.advertise-card__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 6px;
}

.advertise-card__top strong {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text, #333);
  line-height: 1.35;
}

.advertise-card__price {
  color: var(--green);
  font-weight: 800;
  font-size: 1rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.advertise-card__desc {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #666;
}

.advertise-card__meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #888;
}

.advertise-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.advertise-card__meta i {
  color: var(--green);
  font-size: 0.7rem;
  width: 12px;
  text-align: center;
}

.advertise-steps {
  margin: 0 0 14px;
  padding-left: 1.25rem;
  line-height: 1.5;
}

.advertise-steps li {
  margin-bottom: 8px;
  padding-left: 2px;
}

.advertise-steps li:last-child {
  margin-bottom: 0;
}

.advertise-alt-links {
  margin: 0;
}

.advertise-alt-links li {
  margin-bottom: 10px;
}

.advertise-alt-links li:last-child {
  margin-bottom: 0;
}

.advertise-alt-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-weight: 600;
}

.advertise-checkout .form-group {
  margin-bottom: 22px;
}

.advertise-checkout .form-group:last-of-type {
  margin-bottom: 20px;
}

.advertise-checkout label {
  display: block;
  margin: 0 0 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
  line-height: 1.3;
}

.advertise-checkout .input,
.advertise-checkout select.input,
.advertise-checkout input.input {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 10px 12px;
  min-height: 42px;
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.35;
  color: #333;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  outline: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.advertise-checkout select.input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23989898' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px 6px;
  cursor: pointer;
}

.advertise-checkout .input:focus,
.advertise-checkout select.input:focus {
  border-color: #76b83d;
  box-shadow: 0 0 0 3px rgba(118, 184, 61, 0.15);
}

.advertise-checkout .input--full {
  width: 100%;
}

.advertise-checkout .form-hint {
  display: block;
  margin: 10px 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #888;
}

.advertise-checkout .advertise-file {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  min-height: 42px;
  border: 1px dashed #d1d5db;
  border-radius: 6px;
  background: #fafafa;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.advertise-checkout .advertise-file:hover {
  border-color: #9ccc65;
  background: #f7fbf2;
}

.advertise-checkout .advertise-file:focus-within {
  border-color: #76b83d;
  border-style: solid;
  box-shadow: 0 0 0 3px rgba(118, 184, 61, 0.15);
  background: #fff;
}

.advertise-checkout .advertise-file input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  margin: 0;
  padding: 0;
  border: 0;
}

.advertise-checkout .advertise-file__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #505050;
  background: #e6e6e6;
  border-radius: 4px;
  pointer-events: none;
  flex-shrink: 0;
}

.advertise-checkout .advertise-file__name {
  font-size: 0.8125rem;
  color: #888;
  pointer-events: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}

.advertise-checkout .advertise-total {
  margin: 0 0 14px;
  padding: 12px 14px;
  background: #f7fbf2;
  border: 1px solid #dcecc8;
  border-radius: 6px;
  font-size: 0.875rem;
  line-height: 1.4;
}

.advertise-checkout .advertise-total .text-muted {
  display: inline;
  margin-left: 4px;
  color: #888;
  font-size: 0.8125rem;
  font-weight: 400;
}

.advertise-checkout .advertise-checkout__note {
  margin: 0 0 16px;
}

.advertise-checkout .button {
  margin-top: 0;
}

.advertise-checkout .button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .advertise-page .panel > .panel__body {
    padding: 16px;
  }

  .advertise-placements {
    gap: 12px;
  }

  .advertise-card {
    padding: 14px 16px;
  }

  .advertise-card__top {
    flex-wrap: wrap;
    gap: 4px 12px;
  }
}

html[data-theme="dark"] .advertise-page .panel > .panel__body,
html.theme-dark .advertise-page .panel > .panel__body {
  border-color: var(--border-soft, #444);
}

html[data-theme="dark"] .advertise-page .panel--blue > .panel__body,
html.theme-dark .advertise-page .panel--blue > .panel__body {
  background: #252525;
}

html[data-theme="dark"] .advertise-intro.panel--blue > .panel__body,
html[data-theme="dark"] .advertise-page #checkout .panel__body,
html[data-theme="dark"] .advertise-page .col-4-lg .panel__body,
html.theme-dark .advertise-intro.panel--blue > .panel__body,
html.theme-dark .advertise-page #checkout .panel__body,
html.theme-dark .advertise-page .col-4-lg .panel__body {
  background: var(--panel-body-bg, #2a2a2a);
}

html[data-theme="dark"] .advertise-card,
html.theme-dark .advertise-card {
  background: var(--panel-body-bg, #2a2a2a);
  color: var(--text, #e5e5e5) !important;
}

html[data-theme="dark"] .advertise-card:hover,
html[data-theme="dark"] .advertise-card.is-selected,
html.theme-dark .advertise-card:hover,
html.theme-dark .advertise-card.is-selected {
  color: var(--text, #e5e5e5) !important;
}

html[data-theme="dark"] .advertise-card.is-selected,
html.theme-dark .advertise-card.is-selected {
  background: rgba(118, 184, 61, 0.12);
}

html[data-theme="dark"] .advertise-card__top strong,
html.theme-dark .advertise-card__top strong {
  color: var(--text, #e5e5e5);
}

html[data-theme="dark"] .advertise-card__desc,
html.theme-dark .advertise-card__desc {
  color: #aaa;
}

html[data-theme="dark"] .advertise-checkout label,
html.theme-dark .advertise-checkout label {
  color: #d1d5db;
}

html[data-theme="dark"] .advertise-checkout .input,
html[data-theme="dark"] .advertise-checkout select.input,
html.theme-dark .advertise-checkout .input,
html.theme-dark .advertise-checkout select.input {
  background: #1f1f1f;
  border-color: #444;
  color: #e5e5e5;
}

html[data-theme="dark"] .advertise-checkout .advertise-file,
html.theme-dark .advertise-checkout .advertise-file {
  background: #1f1f1f;
  border-color: #555;
}

html[data-theme="dark"] .advertise-checkout .advertise-total,
html.theme-dark .advertise-checkout .advertise-total {
  background: rgba(118, 184, 61, 0.1);
  border-color: rgba(118, 184, 61, 0.35);
}

/* Footer */
.footer {
  background: #fff;
  border-bottom: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 40px 0 20px;
  font-size: 0.75rem;
}

.footer__copyright p {
  margin: 0 0 8px;
}

.footer a {
  color: var(--green);
  transition: color 0.1s ease-in-out;
}

.footer a:hover {
  color: var(--green-hover);
}

.footer__info-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}

.footer__info-links ul li {
  margin-bottom: 6px;
}

.footer__info-links a {
  color: var(--text);
}

.footer__info-links a:hover {
  color: var(--green);
}

.footer__info-links i {
  margin-right: 6px;
  width: 14px;
}

.footer__info-stats {
  color: #797979;
}

/* Skip link — visually hidden until focused */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 100000;
}
.skip-link:focus,
.skip-link:focus-visible {
  position: fixed;
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  overflow: visible;
  background: #fff;
  color: #1a1f26;
  border: 2px solid #76b83d;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

/* Cookie bar */
.cookies {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 2147483645;
  box-sizing: border-box;
  width: 100%;
  background-color: #0f1012;
  color: #e1e2e5;
  padding: 14px 0;
}

.cookies.d-none {
  display: none !important;
}

html.cookies-accepted .cookies {
  display: none !important;
}

.cookies__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cookies p {
  margin: 0;
  font-size: 0.8125rem;
  flex: 1;
}

/* Toast for copy */
.copy-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #2d3340;
  color: #fff;
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 9999;
}

.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.mt-15 { margin-top: 15px; }

.mt-25 { margin-top: 25px; }

.lh-5 { line-height: 21px !important; }

.seo-section {
  margin-bottom: 10px;
}

.seo-section h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #505050;
}

.seo-section h3.mt-25 {
  margin-top: 25px;
}

.seo-section p {
  margin: 10px auto 0;
  max-width: 820px;
  font-size: 13px !important;
  color: #505050;
}

.seo-section a {
  color: #76b83d;
}

.separator {
  background: var(--border);
  display: block;
  clear: both;
  width: 100%;
  height: 2px;
  margin: 10px 0;
  border: 0;
}

/* Flag sprite */
.flag {
  display: inline-block;
  width: 24px;
  height: 16px;
  background: url("../assets/flags.png") no-repeat;
  border-radius: 4px;
  vertical-align: middle;
  font-style: normal;
  font-size: 0;
  overflow: hidden;
}

.flag-us { background-position: 0 -224px; }
.flag-gb { background-position: -288px -64px; }
.flag-de { background-position: -168px -48px; }
.flag-fr { background-position: -240px -64px; }
.flag-ca { background-position: -96px -32px; }
.flag-au { background-position: -312px 0; }
.flag-ph { background-position: -312px -160px; }
.flag-nl { background-position: -48px -160px; }
.flag-br { background-position: -336px -16px; }
.flag-eu { background-position: -96px -64px; }
.flag-nz { background-position: -168px -160px; }
.flag-ch { background-position: -216px -32px; }
.flag-pl { background-position: -360px -160px; }
.flag-se { background-position: -360px -176px; }
.flag-no { background-position: -72px -160px; }
.flag-jp { background-position: -336px -96px; }
.flag-kr { background-position: -144px -112px; }

/* Awesome / random featured cards */
.server--random {
  margin-top: 15px;
  margin-bottom: 5px;
}

.server--random > p,
.server--random__label {
  text-align: center;
  font-weight: 800;
  margin: 0 0 12px;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  color: var(--premium-label);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
}

.server--random__label i {
  color: var(--premium);
  font-size: 0.875rem;
}

.server--random .server {
  margin: 0 auto;
  max-width: 468px;
  width: 100%;
}

.server--random .server--premium {
  box-shadow: 0 1px 0 rgba(193, 141, 80, 0.18);
}

.server--random .servers .row > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

/* Misc spacing for server cards */
.servers .row > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

.servers .server {
  width: 100%;
}

/* Overview green title bar */
.overview-section__title {
  background: var(--green);
  border: 0;
  border-bottom: 2px solid var(--green-hover);
  border-radius: var(--radius);
  width: 100%;
  padding: 20px 16px;
  display: block;
  position: relative;
  color: #fff;
  margin-bottom: 0.5rem;
  z-index: 2;
  overflow: hidden;
}

.overview-section__title h2 {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
}

.overview-section__title .btn-group {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  display: none;
}

@media (min-width: 640px) {
  .overview-section__title .btn-group {
    display: block;
  }
}

.overview-description {
  color: #797979;
  margin: 10px 0 18px;
  line-height: 1.55;
}

.button--dark-green {
  background: #6ca838;
  color: #fff !important;
  box-shadow: 0 2px 0 #56862c;
}

.button--dark-green:hover {
  background: #609532;
  box-shadow: 0 2px 0 #4e7c28;
}

.button--darkest-green {
  background: #609532;
  color: #fff !important;
  box-shadow: 0 2px 0 #4a7326;
}

.button--darkest-green:hover {
  background: #54822c;
  box-shadow: 0 2px 0 #446c24;
}

/* Dual-layout server list: rows (default) + grid */
.server-list {
  display: block;
  margin: 0 0 10px;
  padding: 0;
  background: transparent;
  border: 0;
  overflow: visible;
}

.server-list__toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0 0 10px;
}

.layout-toggle {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.layout-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: #6b7280;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
  line-height: 1;
  transition: background 0.12s ease, color 0.12s ease;
}

.layout-toggle__btn + .layout-toggle__btn {
  border-left: 1px solid var(--border);
}

.layout-toggle__btn:hover {
  background: var(--surface-muted);
  color: #374151;
}

.layout-toggle__btn.is-active {
  background: var(--green);
  color: #fff;
}

.layout-toggle__btn.is-active:hover {
  background: var(--green-hover, #5f9a2f);
  color: #fff;
}

.layout-toggle__btn i {
  font-size: 0.8rem;
}

.server-list__rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.server-list__grid {
  display: none;
}

.server-list.server-list--grid .server-list__rows,
.server-list.server-list--grid .server-list__rows[hidden] {
  display: none !important;
}

.server-list.server-list--grid .server-list__grid,
.server-list.server-list--grid .server-list__grid[hidden] {
  display: block !important;
}

.server-list.server-list--rows .server-list__grid,
.server-list.server-list--rows .server-list__grid[hidden] {
  display: none !important;
}

.server-list.server-list--grid .server-list__grid > .row--no-gutters > [class*="col-"] {
  padding: 0 5px 10px;
}

.server-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  background: var(--surface);
  border: 0;
  border-bottom: 2px solid var(--border-row);
  border-radius: 0.375rem;
  margin: 0;
  padding: 0;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease;
  overflow: hidden;
  position: relative;
}

.server-row:hover {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  z-index: 2;
}

.server-row__rank {
  display: none;
  background: var(--surface-muted);
  color: #374151;
  align-self: stretch;
  padding: 0.5rem 0.4rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 4.25rem;
  width: 4.25rem;
  border-radius: 0.375rem 0 0 0.375rem;
  flex-shrink: 0;
}

.server-row__rank-num {
  margin-bottom: 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1;
}

.server-row__rank img {
  width: 40px;
  height: 40px;
  max-width: 40px;
  border-radius: 2px;
  object-fit: cover;
}

.server-row__banner-wrap {
  width: 100%;
  max-width: 468px;
  margin: 0 auto;
  padding: 0.75rem 0.75rem 0.4rem;
  flex: 0 0 auto;
  box-sizing: border-box;
}

.server-row__banner {
  position: relative;
  width: 100%;
  line-height: 0;
  background: #e2e2e2;
  border-radius: 0.25rem;
  overflow: hidden;
  min-height: 45px;
}

/* Row banners: fixed 468×60 column proportions, contain (no harsh crop) */
.server-row__banner img,
.server-row__banner.banner img,
.server-row__banner video,
.server-row__banner.banner video {
  display: block;
  width: 100%;
  height: auto !important;
  max-width: 100%;
  min-height: 0;
  aspect-ratio: 468 / 60;
  object-fit: contain;
  object-position: center;
  border-radius: 0.25rem;
  background: #e2e2e2;
  pointer-events: none;
  margin: 0;
}

.server-row__tags {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.25rem;
  margin-bottom: 0;
  gap: 0;
  line-height: 1.2;
}

.tag {
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
  font-size: 11px;
  font-weight: 700;
  background: #f4f4f5;
  color: #4b5563;
  margin: 0.125rem;
  margin-bottom: 0;
}

.tag--more {
  background: #e5e7eb;
  color: #374151;
  cursor: default;
}

.server-row--premium .tag--more {
  background: #cba36d;
  color: #fff;
}

.server-row__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem 0.75rem;
  min-width: 0;
}

.server-row__name {
  text-align: center;
  color: #374151;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  min-width: 0;
  width: 100%;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.server-row__name .fa-crown {
  color: #cba36d;
  margin-right: 0.125rem;
  font-size: 1.125rem;
}

.server-row__status-line {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.375rem;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.server-row__players {
  font-size: 13px;
  color: #6b7280;
}

.server-row__players i {
  font-size: 11px;
  margin-right: 2px;
}

.server-row__badges {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: auto;
  max-width: 100%;
}

.server-row__badges .badge {
  flex: 0 0 auto;
  white-space: nowrap;
}

.badge {
  display: inline-block;
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
  font-size: 11px;
  font-weight: 700;
}

.badge--java {
  background: #484e5b;
  color: #e1e2e5;
}

.badge--bedrock {
  background: #5c6475;
  color: #e1e2e5;
}

.badge--online {
  background: #76b83d;
  color: #fff;
}

.badge--offline {
  background: #de2f2f;
  color: #fff;
}

.badge--muted {
  background: #e5e7eb;
  color: #1f2937;
}

.badge--premium {
  background: #563d09;
  color: #fff;
}

.server-row__actions {
  display: flex;
  width: 100%;
  padding: 1rem 1.25rem;
}

.server-row__actions-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
}

.server-row__ip {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 0.75rem;
  height: 32px;
  font-weight: 700;
  border-radius: 0.25rem 0.25rem 0 0;
  text-align: center;
  color: #374151;
  background: #f3f4f6;
}

.server-row__ip:hover {
  filter: brightness(0.97);
}

.server-row__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #6ca838;
  color: #fff;
  border: 0;
  padding: 0 8px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  height: 32px;
  border-radius: 0 0 0.25rem 0.25rem;
  width: 100%;
  cursor: pointer;
  transition: opacity 0.15s ease;
  font-family: inherit;
}

.server-row__copy:hover {
  opacity: 0.9;
}

.server-row__copy i {
  font-size: 0.75rem;
  margin-right: 0;
  opacity: 0.95;
  font-weight: 400;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.server-row__copy span {
  line-height: 1;
}

/* Premium membership list row - gold card */
.server-row--premium {
  background: #fff7ec;
  border: 2px solid #fbe3c3;
  border-radius: 0.375rem;
  box-shadow: none;
  margin: 0;
  z-index: 1;
}

.server-row--premium:hover {
  box-shadow: 0 1px 4px rgba(193, 141, 80, 0.2);
  z-index: 3;
}

.server-row--premium .server-row__rank {
  background: #ffefd9;
  color: #4c300c;
}

.server-row--premium .server-row__rank-num {
  font-size: 1.25rem;
  font-weight: 900;
}

.server-row--premium .tag {
  background: linear-gradient(to bottom right, #c18d50, #cba36d);
  color: #fff;
}

.server-row--premium .badge--java,
.server-row--premium .badge--bedrock,
.server-row--premium .badge--muted {
  background: #563d09;
  color: #fff;
}

.server-row--premium .badge--premium {
  background: linear-gradient(135deg, #c18d50, #a87438);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.server-row--premium .badge--premium i {
  font-size: 10px;
}

.server-row--premium .server-row__ip {
  background: #f1d3aa;
  color: #4c300c;
}

.server-row--premium .server-row__copy {
  background: linear-gradient(to bottom right, #c18d50, #cba36d);
  color: #fff;
}

.server-row--premium .server-row__players {
  color: #374151;
}

.server-row--premium .badge--online {
  background: #5f9a2f;
  color: #fff;
}

/* Tablet+: horizontal row, but banner can flex so it never forces page overflow */
@media (min-width: 1024px) {
  .server-row {
    flex-direction: row;
    align-items: stretch;
  }

  .server-row__rank {
    display: flex;
  }

  .server-row__banner-wrap {
    margin: 0;
    padding: 0.75rem 1rem;
    width: auto;
    max-width: 468px;
    flex: 1 1 240px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .server-row__tags {
    justify-content: flex-start;
    padding: 0;
  }

  .server-row__meta {
    align-items: flex-start;
    justify-content: center;
    padding: 0.75rem 0.75rem;
    flex: 1 1 140px;
    min-width: 0;
  }

  .server-row__name {
    text-align: left;
    font-size: 1rem;
    max-width: 100%;
    min-width: 0;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .server-row__name .fa-crown {
    font-size: 0.875rem;
  }

  .server-row__status-line,
  .server-row__badges {
    justify-content: flex-start;
  }

  .server-row__actions {
    margin-left: auto;
    width: 12.5rem;
    max-width: 40%;
    flex: 0 1 12.5rem;
    min-width: 0;
    padding: 0.75rem 1rem;
    align-items: center;
    justify-content: center;
  }

  .server-row__actions-inner {
    margin: 0;
    width: 100%;
  }
}

/* Wide desktop: restore classic 468px banner column */
@media (min-width: 1280px) {
  .server-row__banner-wrap {
    width: 468px;
    max-width: 468px;
    flex: 0 0 468px;
  }

  .server-row__actions {
    width: 13.5rem;
    max-width: none;
    flex: 0 0 13.5rem;
  }
}

@media (max-width: 1023px) {
  .server-row__name {
    font-size: 1.0625rem;
  }

  .server-row__actions {
    padding: 0.75rem 1rem 1rem;
  }

  .server-row__actions-inner {
    max-width: 280px;
    width: 100%;
  }

  .server-row--premium {
    margin-bottom: 2px;
  }
}

/* Pagination */
.pagination-wrapper {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
  width: 100%;
}

.pagination {
  display: block;
  padding-left: 0;
  margin: 0;
  border-radius: 3px;
  list-style: none;
  max-width: 100%;
}

.pagination__list,
ul.pagination__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pagination .page-item,
.pagination__list > .page-item {
  display: inline-flex;
  float: none;
  margin: 0;
}

.pagination .page-item > a,
.pagination .page-item > span,
.pagination__list > .page-item > a,
.pagination__list > .page-item > span {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  float: none;
  min-width: 2.25rem;
  padding: 10px 12px;
  color: #fff;
  text-decoration: none;
  border: 1px solid #81c247;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  background: #76b83d;
  transition: background 0.1s ease-in-out;
  box-sizing: border-box;
}

.pagination .page-item > a:hover,
.pagination__list > .page-item > a:hover {
  background: #83c34b;
}

.pagination .page-item.active > a,
.pagination .page-item.active > span,
.pagination__list > .page-item.active > a,
.pagination__list > .page-item.active > span {
  background: #609532;
  border-color: #54822c;
  pointer-events: none;
}

.pagination .page-item.disabled > span,
.pagination__list > .page-item.disabled > span {
  background: #a3c97a;
  border-color: #a3c97a;
  opacity: 0.85;
  cursor: default;
}

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

/* Banner — reference: width 100%, height auto, min-height 45px */
.banner {
  position: relative;
  min-height: 45px;
}

.banner img,
.banner video {
  display: block;
  width: 100%;
  height: auto;
  min-height: 45px;
  margin: 0 auto;
  pointer-events: none;
  max-width: 100%;
}

.banner__none,
.banner .banner__overlay {
  z-index: 3;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.banner__none {
  color: #fff;
  padding: 2% 20px;
  box-sizing: border-box;
}

.banner-title,
.banner-ip {
  display: block;
  position: relative;
}

.banner-title {
  font-size: 1.25rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 70%;
}

.banner-ip {
  font-size: 0.75rem;
}

.banner-players {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 1024px) {
  .banner-title {
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .banner {
    min-height: 0;
  }

  .banner img,
  .banner video {
    min-height: 0;
  }
}

/* Sidebar icon thumbs */
.sidebar-item__icon {
  width: 28px;
  height: 28px;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Slightly tighter header nav on mid screens */
@media (min-width: 1024px) and (max-width: 1279px) {
  #nav ul li a {
    padding: 15px 8px;
    font-size: 0.8125rem;
  }

  #nav ul li a i {
    margin-right: 4px;
  }
}


/* ========== Server detail page (MCSL layout) ========== */
.server-page .panel {
  margin-bottom: 15px;
}

.server-page .panel__body {
  padding: 16px 20px;
}

.server-page .panel__body--fill {
  padding: 0;
}

.panel--bg-white {
  background: var(--panel-body-bg);
}

.server-page__header {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 16px;
}

.server-page__logo {
  width: 48px;
  height: 48px;
  border-radius: 5px;
  object-fit: cover;
  margin-right: 1rem;
  background: #e6e6e6;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .server-page__logo {
    width: 64px;
    height: 64px;
  }
}

.server-page__heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.server-page__title {
  display: inline-block;
  margin: 0 0 0.25rem;
  padding-right: 1rem;
  font-size: 1.75rem;
  font-weight: 800;
  color: #505050;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .server-page__title {
    font-size: 1.5rem;
  }
}

.server-page__subtitle {
  display: block;
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
  color: #505050;
  line-height: 1.4;
  user-select: none;
}

.server-page__subtitle strong,
.server-page__subtitle .copy-ip {
  color: #76b83d;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .server-page__subtitle { font-size: 0.875rem; }
}

@media (max-width: 768px) {
  .server-page__subtitle { font-size: 0.75rem; }
}

/* Green IP copy card */
.server-page__ip-card {
  margin: 12px;
  margin-bottom: 10px;
  border-radius: 5px;
  padding: 8px;
  background: #74b340;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.server-page__copy-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease;
}

.server-page__copy-btn:hover {
  background: #fff;
}

.server-page__copy-btn:active {
  background: #f0f7ea;
}

.server-page__copy-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(90, 143, 46, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #5a8f2e;
  font-size: 10px;
}

.server-page__copy-btn:hover .server-page__copy-icon {
  background: rgba(90, 143, 46, 0.25);
}

.server-page__copy-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.server-page__copy-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #999;
  font-weight: 700;
  line-height: 1;
}

.server-page__copy-value {
  font-size: 13px;
  font-weight: 700;
  color: #333;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-page__copy-action {
  color: #ccc;
  font-size: 12px;
  flex-shrink: 0;
}

.server-page__copy-btn:hover .server-page__copy-action {
  color: #5a8f2e;
}

.server-page .separator {
  margin: 0;
}

.server-page__details {
  width: 100%;
  border-collapse: collapse;
}

.server-page__details tr {
  border-bottom: 1px dashed #e7e7e7;
}

.server-page__details tr:last-child {
  border-bottom: 0;
}

.server-page__details td {
  padding: 10px 12px;
  vertical-align: middle;
  font-size: 0.875rem;
  color: #505050;
}

.server-page__details td:first-child {
  padding-right: 10px;
  font-size: 0.8125rem;
  white-space: nowrap;
  width: 110px;
  font-weight: 700;
}

.server-page__details td:first-child i {
  padding-right: 8px;
  min-width: 18px;
  text-align: center;
  color: #515867;
  font-size: 0.875rem;
}

.server-page__details td:first-child span {
  font-weight: 700;
}

.server-page__edition {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.server-page__edition-sep {
  color: #d1d5db;
  margin: 0 6px;
}

.server-page__inline-note {
  margin-left: 8px;
  font-weight: 700;
  color: #797979;
  vertical-align: middle;
}

.server-page__slash {
  padding: 0 4px;
}

.server-page__hint {
  margin-left: 8px;
  color: #6ca838;
  cursor: help;
}

.server-page__rating-note {
  display: block;
  margin-top: 8px;
  font-weight: 700;
  color: #797979;
}

.server-page__country {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #505050;
  font-weight: 700;
}

.server-page__country:hover {
  color: #76b83d;
}

.server-page__details .uptime {
  display: inline-block;
  color: #fff;
  font-weight: 700;
}

.server-page__details .uptime__good { background: #76b83d; }
.server-page__details .uptime__warn { background: #e08f2a; }
.server-page__details .uptime__bad { background: #e02a2a; }

.server-page__tags {
  flex-wrap: wrap;
  padding: 4px 0;
}

.server-page__tags .button {
  margin: 2px;
  color: #505050 !important;
}

.server-page__report {
  display: inline-flex !important;
  align-items: center;
  margin-top: 8px;
  background: transparent !important;
  color: #de2f2f !important;
  padding: 5px 0 !important;
  box-shadow: none;
}

.server-page__report:hover,
.server-page__report:active {
  color: #b82424 !important;
  background: transparent !important;
}

.server-page__main {
  display: flex;
  flex-direction: column;
}

.server-page__top-panels > [class*="col-"] {
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .server-page__top-panels > [class*="col-"]:first-child {
    padding-left: 0;
  }
  .server-page__top-panels > [class*="col-"]:last-child {
    padding-right: 0;
  }
}

@media (min-width: 1024px) {
  .server-page__spacer {
    display: block;
  }
}

@media (max-width: 1023px) {
  .server-page__spacer {
    display: none;
  }
}

/* Vote form */
.page-flash--sticky {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0 0 12px;
}

.page-flash__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.45;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-flash__item + .page-flash__item { margin-top: 8px; }
.page-flash__item i { margin-top: 2px; flex-shrink: 0; }
.page-flash__item--success { background: #eaf6df; color: #3d6b1d; border: 1px solid #c6e3a8; }
.page-flash__item--error { background: #fdecec; color: #9b1c1c; border: 1px solid #f3c1c1; }

.panel__body--vote { padding: 0; }

.vote-alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.vote-alert i { margin-top: 2px; flex-shrink: 0; }
.vote-alert strong { display: block; margin-bottom: 2px; font-size: 0.875rem; }
.vote-alert p { margin: 0 !important; color: inherit !important; font-size: inherit !important; }
.vote-alert--success { background: #eaf6df; color: #3d6b1d; border: 1px solid #c6e3a8; }
.vote-alert--error { background: #fdecec; color: #9b1c1c; border: 1px solid #f3c1c1; }
.vote-alert--warn { background: #fff6e5; color: #8a5a00; border: 1px solid #f0d59a; }
.vote-alert--info { background: #eef6fb; color: #1f4b66; border: 1px solid #c5deec; }

.quick-vote__label {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #666;
}

.quick-vote__lead {
  margin: 0 0 10px;
}

.quick-vote__server-ip {
  font-size: 0.875rem;
  padding: 0 16px;
  margin: 12px 0 0 !important;
}

.quick-vote p {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #505050;
}

.quick-vote input[type="text"] {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px 10px 40px;
  border: 1px solid #ebebeb;
  border-radius: 4px;
  background-color: #f8f8f8;
  background-position: 2%;
  background-repeat: no-repeat;
  background-size: 24px;
  font-size: 0.875rem;
  outline: 0;
  box-sizing: border-box;
}

.quick-vote input[type="text"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.quick-vote__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  margin-top: 12px;
  margin-bottom: 4px;
}

.quick-vote__actions .button {
  flex: 0 1 auto;
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  color: #fff !important;
  border-radius: 5px;
  padding: 11px 18px;
  font-size: 0.8125rem;
  line-height: 1.2;
  margin: 0;
}

.quick-vote__actions .button i {
  margin-right: 8px;
  font-size: 0.9em;
}

@media (max-width: 639px) {
  .quick-vote__actions {
    flex-direction: column;
  }

  .quick-vote__actions .button {
    width: 100%;
  }
}

.quick-vote__notice {
  display: none;
  width: 100%;
  font-size: 10px;
  color: #757575;
  margin-top: 16px;
  margin-bottom: 0;
  line-height: 1.45;
}

.quick-vote__notice.show {
  display: block;
}

/* Socials */
.server-page__banner {
  position: relative;
  margin-bottom: 8px;
  display: none;
}

@media (min-width: 768px) {
  .server-page__banner {
    display: block;
  }
}

.server-page__banner img,
.server-page__banner video {
  display: block;
  width: 100%;
  max-width: 468px;
  max-height: 60px;
  height: auto;
  object-fit: cover;
  border-radius: 5px;
  background: #e2e2e2;
}

.server-page__socials {
  margin-bottom: 0;
}

.server-page__share-sep {
  margin: 12px 0 !important;
}

.server-page__share {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.server-page__share-intro {
  font-size: 0.75rem;
  font-weight: 500;
  color: #505050;
  margin-bottom: 8px;
}

.button.website { background: #737373; }
.button.website:hover { background: #858585; }
.button.discord { background: #7289da; }
.button.discord:hover { background: #8ea1e1; }
.button.twitter { background: #2a2a2a; }
.button.twitter:hover { background: #3c3c3c; }
.button.facebook { background: #4267b2; }
.button.facebook:hover { background: #577ac1; }
.button.instagram { background: #c13584; }
.button.instagram:hover { background: #d14795; }
.button.store { background: #0f766e; }
.button.store:hover { background: #0d9488; }
.button.youtube { background: #cc0000; }
.button.youtube:hover { background: #e11d1d; }

.website--no-logo::before,
.discord--no-logo::before,
.twitter--no-logo::before,
.facebook--no-logo::before,
.instagram--no-logo::before,
.store--no-logo::before,
.youtube--no-logo::before {
  content: none !important;
}

.server-page__trailer {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 4px;
  overflow: hidden;
  background: #111;
}

.server-page__trailer iframe,
.server-page__trailer-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.server-page__trailer-preview {
  display: block;
  overflow: hidden;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.server-page__trailer-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.server-page__trailer-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 12px;
  background: #e42117;
  color: #fff;
  padding: 9px 19px;
  font-size: 19px;
  line-height: 1;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.server-page__trailer-preview:hover .server-page__trailer-play,
.server-page__trailer-preview:focus-visible .server-page__trailer-play {
  background: #b91912;
}

.server-page__trailer-preview:focus-visible {
  outline: 2px solid #2d6a4f;
  outline-offset: 2px;
}

/* Description */
.server-page__desc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.server-page__desc-header h3 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.server-page__desc-header .button {
  display: inline-flex;
  align-items: center;
  color: #fff !important;
  white-space: nowrap;
}

.server-page__desc-header .button i {
  margin-right: 6px;
}

.server-page__description {
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.server-page__description a {
  color: #76b83d;
  font-weight: 600;
}

.server-page__statistics {
  white-space: normal;
}

/* Compact unique/first-time + online player tags */
.server-page__players-panel {
  padding-top: 10px !important;
  padding-bottom: 12px !important;
}

.server-page__player-metrics-head,
.server-page__online-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin-bottom: 6px;
}

.server-page__player-metrics-title,
.server-page__online-title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #303030;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.server-page__player-metrics-note,
.server-page__online-count {
  font-size: 0.75rem;
  color: #797979;
  font-weight: 500;
}

.server-page__player-metrics-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  line-height: 1.25;
}

.server-page__player-metrics-table th,
.server-page__player-metrics-table td {
  padding: 3px 6px;
  border-bottom: 1px solid #f0f0f0;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.server-page__player-metrics-table thead th {
  color: #797979;
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom-color: #e5e5e5;
}

.server-page__player-metrics-table tbody th {
  text-align: left;
  font-weight: 600;
  color: #303030;
  padding-left: 0;
}

.server-page__player-metrics-table td:last-child,
.server-page__player-metrics-table th:last-child {
  padding-right: 0;
}

.server-page__player-metrics-table tbody tr:last-child th,
.server-page__player-metrics-table tbody tr:last-child td {
  border-bottom: 0;
}

.server-page__online-block--spaced {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}

.server-page__online-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.server-page__online-tag {
  display: inline-block;
  margin: 0;
  padding: 2px 8px;
  border: 1px solid #e5e5e5;
  border-radius: 3px;
  background: #f7f7f7;
  color: #303030;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-page__online-more,
.server-page__online-unavailable {
  margin: 8px 0 0;
  font-size: 0.75rem;
  color: #797979;
  line-height: 1.35;
}

.server-page__online-unavailable {
  margin-top: 10px;
}

.server-page__stats-note {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  text-align: center;
}

.server-page__stats-note > span {
  display: block;
  padding: 8px;
  font-weight: 600;
  line-height: 1.45;
}

.server-page__stats-loader {
  text-align: center;
  font-weight: 700;
  padding: 28px 8px;
  color: #505050;
}

.server-page__chart-wrap {
  position: relative;
  width: 100%;
  height: 250px;
  margin-top: 1.25rem;
}

.server-page__chart-wrap:first-child {
  height: 275px;
}

.server-page__chart-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

.server-page__chart-note {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.server-page__details .button--smaller,
.server-page__details .button--blue {
  margin: 2px 2px 2px 0;
  display: inline-block;
}

.server-page__socials .button,
.server-page__share .button {
  color: #fff !important;
  margin-top: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.server-page__tags .button {
  margin: 2px;
  color: #505050 !important;
  display: inline-flex;
  align-items: center;
}

.server-page__related {
  text-align: center;
  margin: 8px 0 20px;
}

.server-page__related p {
  margin: 0 0 6px;
  font-size: 0.75rem;
  color: #797979;
  line-height: 1.5;
}

.server-page__related a {
  color: #76b83d;
}

.server--random {
  margin: 16px 0 24px;
}

.server--random .server {
  max-width: 468px;
  margin: 0 auto;
}

.server-page__section-head {
  margin-top: 24px;
  margin-bottom: 8px;
}

.server-page__section-head h2,
.server-page__section-head h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #505050;
}

.server-page__section-head p {
  margin: 0 0 16px;
  font-size: 0.875rem;
  color: #6b7280;
}

/* Stars */
.stars {
  display: flex;
  align-items: center;
}

.stars .fa-star {
  font-size: 1.6rem;
  color: #ccc;
  margin-right: 4px;
}

.stars .fa-star:last-child {
  margin-right: 0;
}

.stars .fa-star.selected {
  color: #efb051;
}

.stars.stars--small .fa-star {
  font-size: 0.875rem;
}

/* Write a Review form — vertical stack, full-width fields */
.review-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 100%;
}

.review-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  margin: 0;
}

.review-form__label {
  display: block;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.review-form__input,
.review-form__select,
.review-form__textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #ebebeb;
  border-radius: 4px;
  background-color: #f8f8f8;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text);
  outline: 0;
  box-sizing: border-box;
  float: none;
}

.review-form__select {
  appearance: auto;
  cursor: pointer;
  max-width: 220px;
}

.review-form__textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.45;
}

.review-form__input:focus,
.review-form__select:focus,
.review-form__textarea:focus {
  border-color: #81c247;
  background-color: #fff;
}

.review-form .button {
  align-self: flex-start;
  margin-top: 2px;
}

html[data-theme="dark"] .review-form__input,
html.theme-dark .review-form__input,
html[data-theme="dark"] .review-form__select,
html.theme-dark .review-form__select,
html[data-theme="dark"] .review-form__textarea,
html.theme-dark .review-form__textarea {
  background-color: var(--surface-muted);
  border-color: var(--border);
  color: var(--text);
}

html[data-theme="dark"] .review-form__input:focus,
html.theme-dark .review-form__input:focus,
html[data-theme="dark"] .review-form__select:focus,
html.theme-dark .review-form__select:focus,
html[data-theme="dark"] .review-form__textarea:focus,
html.theme-dark .review-form__textarea:focus {
  background-color: var(--surface);
  border-color: #81c247;
}

/* Review cards */
.review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .review-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .review-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.review-card {
  position: relative;
  background: var(--surface);
  border-radius: 8px;
  border: 0;
  border-bottom: 2px solid var(--border-row);
  padding: 1.25rem;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.review-card:hover {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.review-card__quote {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 48px;
  height: 48px;
  opacity: 0.04;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0 0 6px 6px;
  font-size: 1.75rem;
  color: #111;
  pointer-events: none;
}

.review-card:hover .review-card__quote {
  opacity: 0.07;
}

.review-card__user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-card__user img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  flex-shrink: 0;
  background: #e6e6e6;
}

.review-card__name {
  font-weight: 700;
  font-size: 0.875rem;
  color: #1f2937;
}

.review-card__date {
  font-size: 0.75rem;
  color: #5c6570;
}

.review-card .stars {
  margin-bottom: 12px;
}

.review-card p {
  margin: 0;
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.55;
  word-break: break-word;
}

/* FAQ grid (details/summary) */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 1.25rem 0 2rem;
}

@media (min-width: 768px) {
  .faq-grid--two-columns {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.faq-grid .faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.faq-grid .faq-item:hover {
  border-color: var(--border-row);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.925rem;
  font-weight: 600;
  list-style: none;
  color: #505050;
}

.faq-item__question::-webkit-details-marker,
.faq-item__question::marker {
  display: none;
  content: "";
}

.faq-item__question h4 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.faq-item__question::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid #505050;
  border-bottom: 2px solid #505050;
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.15s ease;
  margin-top: -4px;
}

.faq-item[open] .faq-item__question::after {
  transform: rotate(225deg);
  margin-top: 4px;
}

.faq-item__answer {
  padding: 0 1.25rem 1rem;
}

.faq-item__answer p {
  margin: 0;
  color: #505050;
  font-size: 0.85rem;
  line-height: 1.6;
}

.server-page .server__status {
  margin-left: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #fff;
}

.server-page .server__status.online,
.server-page .server__status.offline {
  color: #fff;
}

.server-page .server__flag {
  margin-right: 0;
}

.server-page .server__actions-row {
  margin-top: 2px;
}

@media (max-width: 520px) {
  .server__details-inner {
    padding-right: 54px;
  }

  .server__icon {
    width: 40px;
    height: 40px;
    right: 8px;
  }

  .server__ip {
    min-width: 0;
    max-width: 46vw;
    font-size: 0.75rem;
  }

  .server__actions-row {
    gap: 6px;
  }
}

/* Voters tables */
.server-page__voters {
  margin-left: -0.5rem;
  margin-right: -0.5rem;
  align-items: stretch;
}

.server-page__voters > [class*="col-"] {
  padding: 0.5rem;
  display: flex;
}

.server-page__voters .panel.h-100 {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 0;
}

.server-page__voters .panel__body--fill {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.server-page__vote-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  flex: 0 0 auto;
}

.server-page__vote-table tr {
  border-bottom: 1px dashed var(--border-soft);
}

.server-page__vote-table tr:last-child {
  border-bottom: 0;
}

.server-page__vote-table td {
  padding: 8px 12px;
  vertical-align: middle;
  color: var(--text);
}

.server-page__vote-table td:first-child {
  width: 70%;
}

.server-page__vote-table td:last-child {
  text-align: center;
  border-left: 1px dashed var(--border-soft);
  font-weight: 700;
  white-space: nowrap;
  width: 30%;
}

.server-page__vote-table img.player {
  width: 24px;
  height: 24px;
  border-radius: 3px;
  vertical-align: middle;
  background: #e6e6e6;
  object-fit: cover;
  flex-shrink: 0;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.server-page__voter {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  font-weight: 600;
  min-width: 0;
}

.server-page__voter span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-page__vote-table .label {
  min-width: 2.5rem;
  text-align: center;
  margin: 0;
}

.server-page__vote-empty {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 28px 18px;
  text-align: center;
  color: #8a8a8a;
  font-size: 0.8125rem;
  line-height: 1.45;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 6px,
      rgba(0, 0, 0, 0.015) 6px,
      rgba(0, 0, 0, 0.015) 12px
    );
}

.server-page__vote-empty i {
  font-size: 1.35rem;
  opacity: 0.45;
  margin-bottom: 4px;
}

.server-page__vote-empty p {
  margin: 0;
}

.server-page__vote-empty strong {
  color: #666;
  font-weight: 700;
}

.server-page__vote-empty--partial {
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.02);
  border-top: 1px dashed var(--border-soft);
  font-size: 0.75rem;
  color: #9a9a9a;
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .server-page__vote-table img.player {
    display: none;
  }
}

/* ========== Auth pages (login / register / forgot) ========== */
body.auth-page {
  min-height: 100vh;
  margin: 0;
  background: #2a2e36;
}

.auth-panel {
  min-height: 100vh;
  padding: 5vh 16px 40px;
  background-image: url("../assets/auth-bg.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  box-sizing: border-box;
}

.auth-panel .column {
  max-width: 400px;
  margin: 0 auto;
  display: block;
}

@media (max-width: 768px) {
  .auth-panel .column {
    width: 90%;
  }
}

.auth-panel .logo {
  text-align: center;
  width: 100%;
  margin: 0 0 20px;
  display: block;
}

.auth-panel .logo img {
  height: 64px;
  width: auto;
  max-width: 300px;
  display: inline-block;
  object-fit: contain;
}

@media (max-width: 640px) {
  .auth-panel .logo {
    display: none;
  }
}

.auth-panel .panel {
  background: #fff;
  border-bottom: 0;
  border-radius: 5px;
  margin: 20px auto;
  overflow: hidden;
}

.auth-panel .panel__header {
  color: #fff;
  background: #81c247;
  border-bottom: 2px solid #7abd3f;
  padding: 20px;
  border-radius: 5px 5px 0 0;
}

.auth-panel .panel__header h1 {
  margin: 0;
  text-transform: uppercase;
  text-align: center;
  font-size: 1.375rem;
  font-weight: 700;
  color: #fff;
}

.auth-panel .panel__body {
  padding: 15px;
  font-size: 0.875rem;
  background: #fff;
  border: 0;
}

.auth-panel .panel__body > p {
  color: #5c6570;
  border-bottom: 1px solid #f2f2f2;
  padding-bottom: 15px;
  margin: 0 0 12px;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.auth-panel .panel__body .button {
  width: 100%;
  margin-top: 4px;
}

.auth-panel .panel__footer {
  color: #797979;
  text-align: center;
  background-color: #fafafa;
  border-top: 2px solid #efefef;
  font-size: 0.8125rem;
  padding: 18px 10px;
}

.auth-panel .panel__footer a.button {
  margin-left: 6px;
  vertical-align: middle;
}

.auth-panel .panel input[type="text"],
.auth-panel .panel input[type="email"],
.auth-panel .panel input[type="password"] {
  background: transparent;
  border: none;
  border-bottom: 1px solid #f2f2f2;
  border-radius: 0;
  width: 100%;
  padding: 12px 4px;
  font-family: inherit;
  font-size: 0.9rem;
  display: block;
  outline: 0;
  color: #505050;
  box-sizing: border-box;
}

.auth-panel .panel input[type="text"]:focus,
.auth-panel .panel input[type="email"]:focus,
.auth-panel .panel input[type="password"]:focus {
  border-bottom-color: #81c247;
  transition: border-bottom-color 0.2s ease-in-out;
}

.form__field {
  min-height: 50px;
  margin-bottom: 12px;
  position: relative;
}

.form__field-extra {
  color: #a6a6a6;
  background: #fff;
  padding: 8px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
  position: absolute;
  top: 8px;
  right: 0;
}

.form__field-extra:hover {
  text-decoration: underline;
  color: #76b83d;
}

.form__field-info {
  color: #565656;
  margin: 7px 0 0;
  font-size: 0.6875rem;
  display: block;
}

.form__field-check {
  padding: 12px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.form__field-check input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}

.form__field-check label {
  color: #505050;
  font-size: 0.8125rem;
  line-height: 1.4;
  cursor: pointer;
}

.form__field-check a {
  color: #76b83d;
  font-weight: 700;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid #d1d5db;
}

.auth-divider span {
  color: #6b7280;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.auth-info {
  text-align: center;
  color: #e4e4e4;
  border-radius: 5px;
  margin: 0 auto;
  padding: 10px;
  font-size: 0.75rem;
}

.auth-info p {
  margin: 0;
  line-height: 1.45;
}

.auth-info a {
  color: #fff;
}

/* ========== Featured Slots page ========== */
.featured-page__title {
  margin: 0 0 10px;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
}

.featured-intro {
  text-align: center;
  padding: 24px 24px 4px;
}

.featured-intro h2 {
  margin: 0 0 16px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
}

.featured-intro p {
  margin: 0 auto;
  max-width: 760px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text);
}

.featured-benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  padding: 8px 16px 8px;
  text-align: center;
}

.featured-benefits__item {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  padding: 20px;
}

.featured-benefits__item i {
  color: #81c247;
  margin-right: 8px;
}

.featured-stat {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  padding: 16px 20px 24px;
  margin: 0;
  color: var(--text);
}

.fw-black {
  font-weight: 900;
}

.featured-slots-box {
  background: #f3f4f6;
  border-radius: 8px;
  padding: 32px 24px;
  margin: 8px 12px 20px;
}

html[data-theme="dark"] .featured-slots-box,
html.theme-dark .featured-slots-box {
  background: var(--surface-muted);
}

.featured-slots-box__lead {
  text-align: center;
  font-weight: 700;
  font-size: 1.0625rem;
  margin: 0 0 24px;
  color: var(--text);
}

.featured-currency {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px 0;
}

.featured-currency__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  margin-right: 4px;
}

.currency-dropdown {
  position: relative;
  display: inline-block;
  min-width: 128px;
}

.currency-dropdown__trigger {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  color: #374151;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.currency-dropdown__trigger:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

html[data-theme="dark"] .currency-dropdown__trigger,
html.theme-dark .currency-dropdown__trigger {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.currency-dropdown__selected {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.currency-dropdown__arrow {
  font-size: 0.7rem;
  color: #797979;
}

.currency-dropdown__menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 30;
  max-height: 280px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.currency-dropdown__item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.currency-dropdown__item:hover,
.currency-dropdown__item.is-selected {
  background: #f4f7f8;
}

html[data-theme="dark"] .currency-dropdown__item:hover,
html.theme-dark .currency-dropdown__item:hover,
html[data-theme="dark"] .currency-dropdown__item.is-selected,
html.theme-dark .currency-dropdown__item.is-selected {
  background: var(--surface-muted);
}

.featured-currency-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 560px;
  width: 100%;
  margin: 0 auto 20px;
  padding: 12px;
  border-radius: 4px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 0.8125rem;
  line-height: 1.45;
  box-sizing: border-box;
}

.featured-currency-notice[hidden] {
  display: none !important;
}

.slot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .slot-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.slot-card {
  background: #fff;
  text-align: center;
  padding: 24px 18px;
  border-radius: 5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  border-top: 4px solid #484e5b;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

html[data-theme="dark"] .slot-card,
html.theme-dark .slot-card {
  background: var(--surface);
}

.slot-card--available {
  border-top-color: #76b83d;
}

.slot-card h3 {
  margin: 0 0 10px;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #6b7280;
}

.slot-card__price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #374151;
  font-weight: 800;
  font-size: 1.875rem;
}

html[data-theme="dark"] .slot-card__price,
html.theme-dark .slot-card__price {
  color: var(--text);
}

.slot-card__period {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
}

.slot-card__estimate {
  margin: 8px 0 12px;
  font-size: 0.75rem;
  color: #6b7280;
  min-height: 1.1em;
}

.slot-card__estimate[hidden] {
  display: none !important;
}

.slot-card__spacer {
  height: 1rem;
  margin-bottom: 8px;
}

.slot-card__spacer[hidden] {
  display: none !important;
}

.slot-card__btn {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}

.slot-card__btn--sold {
  background: #484e5b;
  color: #fff;
  cursor: not-allowed;
}

.slot-card__btn--buy {
  background: #76b83d;
  color: #fff !important;
  box-shadow: 0 2px 0 #5f9430;
}

.slot-card__btn--buy:hover {
  background: #6aa537;
}

.slot-card__meta {
  margin-top: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
}

.slot-card__meta--ok {
  color: #76b83d;
}

.slot-card__notify {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #f9fafb;
  color: #374151;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.slot-card__notify:hover {
  border-color: #e8cfa0;
  color: #a57a3f;
  background: linear-gradient(#fdf5e7, #faecd0);
}

button.slot-card__notify {
  font-family: inherit;
  cursor: pointer;
}

.slot-card__form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: auto;
}

.slot-card__select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #fff;
  color: #374151;
  font-family: inherit;
  font-size: 0.8125rem;
  box-sizing: border-box;
}

html[data-theme="dark"] .slot-card__select,
html.theme-dark .slot-card__select {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.slot-card__btn--cancel {
  background: #fff;
  color: #6b7280;
  border: 1px solid #e5e7eb;
  box-shadow: none;
}

.slot-card__btn--cancel:hover {
  background: #f9fafb;
  color: #374151;
}

.slot-card__notify-form {
  margin: 0;
  width: 100%;
}

.featured-my-subs {
  margin: 8px 12px 16px;
  padding: 16px 18px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-muted);
}

.featured-my-subs__title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 800;
}

.featured-my-subs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.featured-my-subs__list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.875rem;
}

.featured-footnote {
  margin: 8px 20px;
  font-size: 0.75rem;
  font-style: italic;
  text-align: center;
  color: #797979;
  line-height: 1.5;
  padding: 0 24px;
}

.featured-alt-lead a {
  color: #76b83d;
  text-decoration: underline;
}

.featured-alt-lead a:hover {
  color: #5f9430;
}

.featured-premium-intro {
  text-align: center;
  padding: 12px 16px 20px;
}

.featured-premium-intro p {
  margin: 0 0 10px;
  color: var(--text);
  line-height: 1.5;
}

.featured-premium-intro__title {
  margin-top: 20px !important;
  font-size: 1.125rem;
  font-weight: 800;
}

.featured-premium-cta {
  display: flex;
  justify-content: center;
  margin: 16px 0 24px;
}

.compare-demos {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 12px 8px;
}

.compare-demo {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border: 2px solid #e4e4e7;
  border-radius: 6px;
  background: #fff;
  margin-top: 0;
  cursor: default;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.compare-demo--free {
  order: 2;
}

.compare-demo--premium {
  order: 1;
  border-color: #fbe3c3;
  background: #fff7ec;
  box-shadow: 0 1px 3px rgba(193, 141, 80, 0.12);
}

.compare-demo__rank {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 4rem;
  flex-shrink: 0;
  background: #f9fafb;
  color: #374151;
  font-weight: 700;
  font-size: 1.125rem;
  padding: 12px 8px;
  border-radius: 4px 0 0 4px;
  box-sizing: border-box;
  gap: 0.75rem;
}

.compare-demo--premium .compare-demo__rank {
  background: #ffefd9;
  color: #4c300c;
}

.compare-demo__rank span {
  margin-bottom: 0;
}

.compare-demo__rank img {
  width: 35px;
  max-width: 35px;
  height: 35px;
  border-radius: 3px;
  object-fit: cover;
}

.compare-demo__banner-col {
  padding: 16px;
  max-width: 468px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.compare-demo__banner-col .banner {
  margin: 0 0.75rem;
}

.compare-demo__banner-col .banner img {
  width: 100%;
  max-width: 468px;
  height: auto;
  min-height: 45px;
}

.compare-demo__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 4px;
}

.compare-demo--premium .compare-demo__tags .tag {
  background: linear-gradient(to bottom right, #c18d50, #cba36d);
  color: #fff;
}

.compare-demo__meta {
  padding: 0 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.compare-demo__name {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.25rem;
  color: #374151;
  margin-bottom: 4px;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compare-demo__name .fa-crown {
  color: #cba36d;
  margin-right: 0.2rem;
  font-size: 1rem;
}

.compare-demo__status {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
}

.compare-demo__players {
  margin-left: 0;
  font-size: 13px;
  color: #6b7280;
}

.compare-demo__players i {
  font-size: 11px;
  margin-right: 2px;
}

.compare-demo--premium .compare-demo__players {
  color: #374151;
}

.compare-demo__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
}

.compare-demo--premium .badge--java,
.compare-demo--premium .badge--premium {
  background: #563d09;
  color: #fff;
}

.compare-demo--premium .badge--premium {
  background: linear-gradient(135deg, #c18d50, #a87438);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.compare-demo--premium .badge--online {
  background: #5f9a2f;
  color: #fff;
}

.compare-demo__actions {
  padding: 0 20px 16px;
  display: flex;
  flex-direction: column;
  max-width: 15rem;
  width: 100%;
  margin: 0 auto;
  font-size: 0.875rem;
}

.compare-demo__ip {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #f3f4f6;
  color: #374151;
  border-radius: 4px 4px 0 0;
  text-align: center;
}

.compare-demo--premium .compare-demo__ip {
  background: #f1d3aa;
  color: #4c300c;
}

.compare-demo__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 32px;
  border: 0;
  border-radius: 0 0 4px 4px;
  background: #6ca838;
  color: #fff;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
  padding: 0 8px;
}

.compare-demo__copy i {
  font-size: 0.75rem;
  opacity: 0.95;
  font-weight: 400;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.compare-demo__copy span {
  line-height: 1;
}

.compare-demo--premium .compare-demo__copy {
  background: linear-gradient(to bottom right, #c18d50, #cba36d);
}

@media (min-width: 768px) {
  .compare-demo--free {
    order: 1;
  }

  .compare-demo--premium {
    order: 2;
  }
}

@media (min-width: 1024px) {
  .compare-demo {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .compare-demo__rank {
    display: flex;
  }

  .compare-demo__banner-col {
    margin: 0;
    padding: 16px;
    max-width: 440px;
    flex: 1 1 280px;
    min-width: 0;
  }

  .compare-demo__banner-col .banner {
    margin: 0;
  }

  .compare-demo__tags {
    justify-content: center;
    padding: 0;
  }

  .compare-demo__meta {
    text-align: left;
    align-items: flex-start;
    padding: 12px 16px 8px;
    min-width: 10rem;
    flex: 1 1 10rem;
  }

  .compare-demo__name {
    font-size: 17px;
    max-width: 13rem;
    padding: 0;
    margin-bottom: 4px;
  }

  .compare-demo__name .fa-crown {
    font-size: 0.875rem;
  }

  .compare-demo__status,
  .compare-demo__badges {
    justify-content: flex-start;
  }

  .compare-demo__actions {
    margin-left: auto;
    margin-right: 0;
    padding: 16px 20px;
    justify-content: center;
    align-self: center;
    width: 14rem;
    max-width: 100%;
    flex: 0 1 14rem;
  }
}

.compare-table-wrap {
  overflow-x: auto;
  margin: 20px 12px 8px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text);
}

.compare-table th {
  border-bottom: 1px dashed #e7e7e7;
  padding: 15px 0;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}

.compare-table tr {
  border-top: 1px dashed #e7e7e7;
}

.compare-table thead tr,
.compare-table tbody tr:first-child {
  border-top: none;
}

.compare-table td {
  padding: 10px 20px;
  text-align: center;
  vertical-align: middle;
}

.compare-table td:first-child {
  text-align: left;
  border-right: 1px dashed #e7e7e7;
  width: 40%;
  font-weight: 700;
}

.compare-table td:first-child strong {
  font-weight: 700;
  margin-right: 0;
}

.compare-table td:last-child,
.compare-table th:last-child {
  background: #fff7ec;
  font-weight: 700;
}

.compare-table .fs-5 {
  font-size: 1.125rem;
}

.compare-table .fs-6 {
  font-size: 1rem;
}

.compare-table .fs-8 {
  font-size: 0.75rem;
}

.tooltip-container {
  cursor: pointer;
  display: inline-block;
  position: relative;
  margin-left: 0.5rem;
  color: #797979;
  vertical-align: middle;
}

.tooltip-container .tooltip {
  opacity: 0;
  z-index: 999;
  color: #fff;
  text-align: center;
  background: #000;
  border-radius: 5px;
  width: 200px;
  padding: 6px 10px;
  font-size: 0.6875rem;
  font-weight: 400;
  line-height: 16px;
  transition: opacity 0.2s ease-in-out;
  display: none;
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.tooltip-container .tooltip::before,
.tooltip-container .tooltip::after {
  content: "";
  border-top: 10px solid #000;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.tooltip-container .tooltip.tooltip--larger {
  width: 300px;
}

.tooltip-container:hover .tooltip,
.tooltip-container:focus .tooltip,
.tooltip-container:active .tooltip {
  opacity: 1;
  display: inline;
}

.button--gold {
  background: linear-gradient(180deg, #c9974f 0%, #b07d3a 100%);
  color: #fff !important;
  box-shadow: 0 2px 0 #7a5424;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.button--gold:hover {
  background: linear-gradient(180deg, #d4a55c 0%, #bc8642 100%);
  color: #fff !important;
  box-shadow: 0 2px 0 #7a5424;
}

.button--gold:active {
  background: linear-gradient(180deg, #b07d3a 0%, #9a6c32 100%);
  box-shadow: 0 1px 0 #7a5424;
  transform: translateY(1px);
}

.label--bright-blue {
  background: #5c88e5;
  color: #fff;
  margin-left: 6px;
  vertical-align: middle;
}

.text--green {
  color: #76b83d !important;
}

.text--danger {
  color: #de2f2f !important;
}

.text-red-500 {
  color: #ef4444;
}

.uppercase {
  text-transform: uppercase;
}

.ps-2 {
  padding-left: 0.5rem;
}

.fs-8 {
  font-size: 0.75rem;
}

.featured-page .panel > .panel__body {
  padding: 0;
}

.featured-page .panel > .panel__body--fill {
  padding: 0;
}

.featured-page .sidebar .panel {
  margin-bottom: 15px;
}

/* Search / Server Finder page */
.search-page .overview-section {
  margin-bottom: 4px;
}

.search-page .overview-description {
  color: #797979;
  font-size: 0.875rem;
  line-height: 1.55;
  margin: 4px 0 14px;
  padding: 0;
}

.search-page .overview-description p {
  margin: 0;
}

@media (max-width: 768px) {
  .search-page .overview-description {
    font-size: 0.75rem;
    text-align: center;
  }
}

.search-page .finder-block {
  margin-bottom: 8px;
}

.search-page .finder-block .overview-section__title {
  margin-bottom: 8px;
  border-radius: var(--radius);
}

.search-page .finder-panel {
  background: #fff;
  border-bottom: 2px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: visible;
}

.search-page .finder-panel > .panel__body {
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
  overflow: visible;
}

.finder-form .row {
  align-items: flex-start;
  /* Restore gutters even when markup uses row--no-gutters */
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

.finder-form__label {
  display: block;
  font-weight: 700;
  margin: 0 0 0.375rem;
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.3;
}

.finder-form__field-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  min-height: 1.3em;
  margin-bottom: 0.45rem;
}

.finder-form__field-head .finder-form__label {
  margin-bottom: 0;
}

.finder-form__field-head .tooltip-container {
  margin-left: 0.5rem;
  margin-bottom: 0;
  color: #6ca838;
}

.finder-form__field-head .tooltip-container .fa-question-circle {
  font-size: 0.875rem;
  line-height: 1;
}

.finder-form input[type="text"],
.finder-form .dropdown__selected {
  color: rgba(0, 0, 0, 0.8);
  box-sizing: border-box;
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  width: 100%;
  min-height: 40px;
  padding: 10px 14px;
  font-size: 0.875rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  margin-bottom: 0;
}

.finder-form .dropdown__selected {
  position: relative;
  line-height: 20px;
  padding-right: 32px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.finder-form .dropdown__selected::after {
  right: 14px;
}

.finder-form input[type="text"]:focus,
.finder-form .dropdown__selected:focus,
.finder-form .dropdown.open .dropdown__selected {
  background: #fff;
  border-color: #76b83d;
  outline: none;
  box-shadow: 0 0 0 3px rgba(118, 184, 61, 0.15);
}

.finder-form .dropdown {
  margin-bottom: 0;
}

.finder-form .dropdown__inner {
  border: 1px solid #e5e7eb;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  max-height: 240px;
  z-index: 60;
}

.finder-form .dropdown.open .dropdown__selected {
  border-radius: 6px 6px 0 0;
  border-bottom-color: transparent;
  box-shadow: none;
}

.finder-form .row > [class*="col-"] {
  padding: 0.7rem 0.5rem;
}

@media (max-width: 639px) {
  .finder-form .row > [class*="col-"] {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
  }
}

.finder-form__sep {
  margin: 14px 4px;
  background: #e6e6e6;
}

.finder-form__checks {
  margin: 0.75rem 0 1rem;
  align-items: center;
}

.finder-form__checks > [class*="col-"] {
  display: flex;
  align-items: center;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.finder-form__checks input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0 8px 0 0;
  flex-shrink: 0;
  accent-color: #76b83d;
  cursor: pointer;
}

.finder-form__checks label {
  margin: 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.3;
}

.finder-form__submit {
  margin-top: 4px;
}

.finder-form__submit .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.finder-form__submit .button i {
  margin-right: 0;
  font-size: 0.85em;
}

.finder-form__ad {
  margin: 18px 0 0;
}

.finder-form__tooltip-note {
  display: block;
  margin-top: 8px;
  font-style: italic;
}

.text--dark-green {
  color: #6ca838 !important;
}

.dropdown--wrap .dropdown__selected {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.search-page .search-divider {
  margin: 18px 0 8px;
}

.search-page .server--random {
  padding: 8px 0 24px;
}

.search-page .server--random > p {
  margin-bottom: 12px;
  color: #505050;
}

.search-page .finder-results {
  margin: 8px 0 20px;
}

.search-page .finder-results__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.search-page .finder-results__head h3 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #505050;
}

.search-page .finder-results__meta {
  font-size: 0.8125rem;
  color: #797979;
}

.search-page .finder-results__list {
  display: block;
}

.search-page .finder-results[hidden] {
  display: none;
}

.search-page .ad-placeholder--horizontal {
  margin: 8px 0 16px;
}

html[data-theme="dark"] .search-page .finder-panel,
html.theme-dark .search-page .finder-panel,
html[data-theme="dark"] .search-page .finder-panel > .panel__body,
html.theme-dark .search-page .finder-panel > .panel__body {
  background: var(--panel-body-bg);
}

html[data-theme="dark"] .finder-form input[type="text"],
html.theme-dark .finder-form input[type="text"],
html[data-theme="dark"] .finder-form .dropdown__selected,
html.theme-dark .finder-form .dropdown__selected {
  background: #2a2d33;
  border-color: #3a3f48;
  color: #e1e2e5;
}

html[data-theme="dark"] .finder-form input[type="text"]:focus,
html.theme-dark .finder-form input[type="text"]:focus,
html[data-theme="dark"] .finder-form .dropdown__selected:focus,
html.theme-dark .finder-form .dropdown__selected:focus,
html[data-theme="dark"] .finder-form .dropdown.open .dropdown__selected,
html.theme-dark .finder-form .dropdown.open .dropdown__selected {
  background: #32363e;
  border-color: #76b83d;
}

html[data-theme="dark"] .finder-form .dropdown__inner,
html.theme-dark .finder-form .dropdown__inner {
  background: #2a2d33;
  border-color: #3a3f48;
}

/* ========== Premium Membership page ========== */
@media (min-width: 768px) {
  .col-9-md { flex: 0 0 75%; width: 75%; }
}

.premium-page__title {
  margin: 0 0 12px;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
}

.premium-page .panel {
  overflow: visible;
}

.premium-page .panel__header {
  border-radius: var(--radius) var(--radius) 0 0;
}

.premium-page .panel > .panel__body {
  padding: 0;
  overflow: visible;
  border-radius: 0 0 var(--radius) var(--radius);
}

.premium-page .panel > .panel__body--fill {
  padding: 0;
}

.premium-page .sidebar .panel {
  margin-bottom: 15px;
  overflow: hidden;
}

.premium-page .premium-banner {
  display: block;
  text-align: center;
  margin-bottom: 16px;
}

.premium-page .premium-banner__info {
  display: inline-block;
  vertical-align: middle;
  text-align: left;
  max-width: calc(100% - 210px);
}

.premium-page .premium-banner .button {
  display: inline-block;
  vertical-align: middle;
  margin: 4px 0 4px 12px;
}

.premium-page .premium-banner--inset {
  margin: 16px 16px 20px;
  width: auto;
  max-width: none;
  box-sizing: border-box;
}

.premium-page .premium-banner--inset .premium-banner__info {
  max-width: calc(100% - 210px);
}

.premium-featured-lead {
  text-align: center;
  font-weight: 700;
  line-height: 27px;
  margin: 0;
  padding: 20px 20px 8px;
  color: var(--text);
  font-size: 0.9375rem;
}

.premium-featured-lead .label {
  vertical-align: middle;
  margin-left: 2px;
  margin-right: 2px;
}

.premium-page .featured-premium-intro {
  padding: 20px 16px 16px;
}

.premium-page .featured-premium-intro__title {
  font-size: 1.125rem;
  line-height: 21px;
  font-weight: 700;
}

.premium-page .compare-demos {
  margin: 0 16px 8px;
}

.premium-page .compare-table-wrap {
  margin: 10px 12px 20px;
  overflow: visible;
}

.premium-page .featured-premium-cta {
  margin: 20px 0 16px;
}

.premium-page .featured-premium-cta .button--gold {
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  border-radius: 5px;
}

.mb-15 {
  margin-bottom: 15px;
}

.featured-page #premium {
  overflow: visible;
}

.featured-page #premium > .panel__body {
  overflow: visible;
}

@media (max-width: 1024px) {
  .premium-page .premium-banner__info {
    max-width: 100%;
    text-align: center;
  }

  .premium-page .premium-banner__info span {
    margin-right: 0;
    text-align: center;
  }

  .premium-page .premium-banner .button {
    margin: 8px 0 0;
  }
}

@media (max-width: 640px) {
  .premium-page .premium-banner__info span:last-child {
    display: none;
  }

  .premium-page .premium-banner .button {
    width: 100%;
    margin: 8px 0 0;
  }
}

.compare-table__feature {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
}

.compare-table__feature strong {
  margin-right: 0;
}

.compare-table__feature .tooltip-container {
  margin-left: 0;
}

.compare-table__feature .label--bright-blue {
  margin-left: 0;
}

/* Blog, dashboard, and add-server form (MCSL-style recreation) */

/* ---- Utility helpers used by cloned markup ---- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.min-w-0 { min-width: 0; }
.shrink-0 { flex-shrink: 0; }
.w-full { width: 100%; }
.relative { position: relative; }
.sticky { position: sticky; }
.top-5 { top: 1.25rem; }
.block { display: block; }
.hidden { display: none !important; }
.overflow-hidden { overflow: hidden; }
.cursor-pointer { cursor: pointer; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-md { border-radius: 0.375rem; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.font-normal { font-weight: 400; }
.font-extrabold { font-weight: 800; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-5 { margin-top: 1.25rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
/* Keep .mb-5 as 5px (template spacing); do not override with 1.25rem */
.mb-6 { margin-bottom: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.pl-1 { padding-left: 0.25rem; }
.text-gray-400 { color: #6b7280; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-theme-gold { color: var(--premium); }
.max-w-auto { max-width: none !important; }
.resize-y { resize: vertical; }
.underline { text-decoration: underline; }
.inline-flex { display: inline-flex; }

@media (min-width: 640px) {
  .sm\:inline { display: inline !important; }
  .md\:p-4 { padding: 1rem; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\:flex-row { flex-direction: row; }
  .lg\:gap-4 { gap: 1rem; }
  .lg\:block { display: block !important; }
  .lg\:max-w-70 { max-width: 70%; }
  .col-9-lg { flex: 0 0 75%; width: 75%; }
  .col-3-md { flex: 0 0 25%; width: 25%; }
}

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

/* ---- Notifications ---- */
.notification {
  cursor: default;
  width: 100%;
  max-width: 850px;
  position: relative;
}

.notification .item {
  color: #646464;
  background: #fff;
  border: 1px solid #484e5b;
  border-left-width: 5px;
  border-radius: 4px;
  padding: 12px 16px;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: auto;
  box-sizing: border-box;
}

.notification .item p {
  margin: 0 0 0.75em;
  padding: 0;
  border: 0;
  line-height: 1.45;
}

.notification .item p:last-child {
  margin-bottom: 0;
}

.notification .item .btn-group { margin: 13px 0 0; }

.notification .item .btn-group .button {
  padding: 5px 10px;
  font-size: 0.75rem;
}

.notification .item .btn-group .button i {
  margin-right: 6px;
}

.notification .item__icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  line-height: 1;
}

.notification .item__message {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

.notification .item__message strong {
  color: #000;
  margin-bottom: 5px;
  display: block;
}

.notification--warning .item {
  color: #505050;
  background: #fdf4ea;
  border: 1px solid #f8dfbf;
  border-left-width: 5px;
}

.notification--warning .item__icon { color: #e9942a; }

.notification--warning .item strong { color: #d47f16; }

.notification--error .item {
  border-color: #ff4010;
  border-left-width: 5px;
}

.notification--success .item {
  border-color: #7ebf44;
  border-left-width: 5px;
}

.notification--notice .item {
  border-color: #00a3ff;
  border-left-width: 5px;
}

@media (max-width: 640px) {
  .notification .item__icon { display: none; }
  .notification .item { gap: 0; }
}

.button--disabled,
.button--disabled:hover,
a.button--disabled:hover {
  color: #f1f1f1 !important;
  cursor: not-allowed;
  background: #ababab !important;
  box-shadow: none !important;
  transform: none !important;
}

.button:disabled,
.button:disabled:hover {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ---- Dashboard ---- */
.dashboard h1 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #484e5b;
}

.dashboard .btn-group { margin-bottom: 8px; }

.dashboard .panel--blue > .panel__body {
  padding: 15px;
  border-left: 1px solid var(--border-soft);
  border-right: 1px solid var(--border-soft);
  text-align: center;
}

.dashboard .panel__body .button--full {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.dashboard .panel__body .button--full i {
  margin-right: 8px;
}

.dashboard .panel__body .button + .button {
  margin-top: 8px;
}

.dashboard__servers .panel {
  height: 100%;
  margin-bottom: 0;
}

.dashboard__servers .overview-section__title,
.dashboard__servers-title {
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard__servers .overview-section__title h2 {
  color: #fff;
  margin: 0;
  font-size: 1rem;
}

.dashboard__servers-count {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.dash-server-empty {
  padding: 28px 16px;
  text-align: center;
  background: var(--panel-body-bg);
  border: 1px solid var(--border-soft);
  border-radius: 0 0 var(--radius) var(--radius);
}

.dash-server-empty p {
  margin: 0 0 14px;
  color: #797979;
}

.dash-server-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.dash-server {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--panel-body-bg);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  min-width: 0;
}

.dash-server--premium {
  border-color: var(--premium-border);
  background: linear-gradient(90deg, var(--premium-bg) 0, var(--panel-body-bg) 72px);
}

.dash-server__icon {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e8e8e8;
}

.dash-server__body {
  flex: 1 1 auto;
  min-width: 0;
}

.dash-server__top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.dash-server__name {
  font-weight: 800;
  font-size: 0.9375rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.dash-server__name:hover {
  color: var(--green);
}

.dash-server__ip {
  font-size: 0.75rem;
  font-weight: 600;
  color: #797979;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.dash-server__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2px 7px;
  border-radius: 3px;
  flex-shrink: 0;
}

.dash-server__badge--premium {
  background: var(--premium);
  color: #fff;
}

.dash-server__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 4px;
  font-size: 0.75rem;
  color: #797979;
}

.dash-server__status {
  font-weight: 700;
}

.dash-server__status.is-online { color: var(--online); }
.dash-server__status.is-offline { color: var(--offline); }

.dash-server__cooldown {
  color: #a67c2a;
  font-weight: 600;
}

.dash-server__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-end;
  gap: 5px;
  flex: 0 1 auto;
  min-width: 0;
}

.dash-server__actions > .inline {
  display: flex;
  margin: 0;
  align-items: stretch;
}

.dash-server__actions .button,
.dash-server__actions a.button,
.dash-server__actions button.button,
.dash-server__actions span.button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 0;
  height: 28px;
  min-height: 28px;
  max-height: 28px;
  padding: 0 10px !important;
  line-height: 1 !important;
  font: 700 0.6875rem/1 inherit !important;
  box-sizing: border-box;
  /* Same bottom lip on every color — box-shadow alone made some look taller */
  box-shadow: none !important;
  border-bottom: 2px solid rgba(0, 0, 0, 0.22);
  transform: none !important;
  text-shadow: none !important;
}

.dash-server__actions .button:hover,
.dash-server__actions .button:active,
.dash-server__actions .button:focus {
  box-shadow: none !important;
  transform: none !important;
}

.dash-server__actions .button--green { border-bottom-color: #5f9430; }
.dash-server__actions .button--blue { border-bottom-color: #2f343c; }
.dash-server__actions .button--light-blue { border-bottom-color: #3d4450; }
.dash-server__actions .button--brown { border-bottom-color: #9a6550; }
.dash-server__actions .button--gold { border-bottom-color: #7a5424; }
.dash-server__actions .button--red { border-bottom-color: #b52626; }
.dash-server__actions .button--disabled { border-bottom-color: #8e8e8e; }

.dashboard__pagination {
  margin-top: 14px;
  margin-bottom: 4px;
}

@media (max-width: 767px) {
  .dash-server {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .dash-server__actions {
    width: 100%;
    justify-content: flex-start;
    padding-top: 2px;
  }

  .dash-server__ip {
    flex: 1 1 100%;
    order: 3;
  }
}

.dashboard .panel__body p { margin-top: 0; }

.dashboard .label.label--dark-gray.block {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-right: 0;
  margin-top: 0;
  border-radius: 4px;
  font-size: 0.75rem;
  line-height: 1.35;
  padding: 10px 12px;
  text-align: center;
}

/* ---- Blog index ---- */
.blog-page h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 800;
  color: #3d4451;
  letter-spacing: -0.02em;
}

.blog-page > .row > .col-9-xl > .row > .col-12 > p,
.blog-intro {
  margin: 0 0 22px;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 46rem;
}

.blog-featured {
  display: block;
  margin: 0 0 1.25rem;
  color: inherit;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e6e8ec;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.blog-featured:hover,
.blog-featured:focus-visible {
  color: inherit;
  border-color: #d5dae2;
  box-shadow: 0 8px 22px rgba(61, 68, 81, 0.12);
  transform: translateY(-2px);
}

.blog-featured__inner {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .blog-featured__inner {
    grid-template-columns: 1.15fr 1fr;
    min-height: 240px;
  }
}

.blog-featured__media {
  background: #2a2e36;
  min-height: 180px;
}

.blog-featured__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

@media (min-width: 768px) {
  .blog-featured__media img {
    aspect-ratio: auto;
    min-height: 100%;
  }
}

.blog-featured__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.35rem 1.4rem 1.5rem;
  gap: 0.35rem;
}

.blog-featured__badge {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  background: var(--panel-header);
  color: #f1f2f4;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-featured__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #2f3540;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.blog-featured__excerpt {
  margin: 0.45rem 0 0.65rem;
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.55;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

a.blog-card-link,
a.blog-card-link:link,
a.blog-card-link:visited {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e6e8ec;
  color: inherit;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.blog-card-link:hover .blog-card,
.blog-card-link:focus-visible .blog-card {
  border-color: #d5dae2;
  box-shadow: 0 8px 20px rgba(61, 68, 81, 0.1);
  transform: translateY(-2px);
}

.blog-card__media {
  background: #2a2e36;
}

.blog-card__media img,
.blog-card img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #2a2e36;
}

.blog-card__header,
.blog-card__excerpt,
.blog-card__more {
  padding-left: 1.15rem;
  padding-right: 1.15rem;
}

.blog-card__header {
  padding-top: 1rem;
}

.blog-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #2f3540;
  line-height: 1.35;
}

.blog-card__excerpt,
.blog-card p {
  margin: 0.55rem 0 0;
  font-size: 0.92rem;
  color: #4b5563;
  line-height: 1.55;
  flex: 1 1 auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
  margin-bottom: 1.15rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green-hover);
}

.blog-card-link:hover .blog-card__more,
.blog-featured:hover .blog-card__more {
  color: var(--green-active);
}

.blog-card__more i {
  font-size: 0.7rem;
  transition: transform 0.15s ease;
}

.blog-card-link:hover .blog-card__more i,
.blog-featured:hover .blog-card__more i {
  transform: translateX(3px);
}

.article-time {
  color: #888;
  font-size: 0.8rem;
  margin-top: 4px;
}

.article-time time { font-weight: 500; }

/* ---- Blog recent sidebar ---- */
.blog-recent .panel__body {
  padding: 0.35rem 0;
}

.blog-recent__item,
.blog-recent__item:link,
.blog-recent__item:visited {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.85rem;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid #eef0f3;
  transition: background 0.12s ease;
}

.blog-recent__item:last-child { border-bottom: 0; }

.blog-recent__item:hover {
  background: #f7f8fa;
  color: inherit;
}

.blog-recent__thumb {
  width: 56px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
  background: #2a2e36;
  flex-shrink: 0;
}

.blog-recent__meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.blog-recent__title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #333;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-recent__date {
  font-size: 0.72rem;
  color: #888;
}

/* ---- Blog article ---- */
.blog-article-page .blog-article-panel > .panel__body {
  padding: 1.35rem 1.25rem 1.75rem;
  border-left: 1px solid var(--border-soft);
  border-right: 1px solid var(--border-soft);
}

.blog-article {
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
}

.blog-article figure { margin: 0 0 1.25rem; }

.blog-article figure img {
  width: 100%;
  border-radius: 6px;
  background: #2a2e36;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-article figcaption {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #888;
  text-align: center;
}

.blog-article header {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eef0f3;
}

.blog-article header h1 {
  margin: 0 0 8px;
  font-size: 1.7rem;
  font-weight: 800;
  color: #2f3540;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.blog-article__content,
.blog-article p {
  margin: 0 0 1rem;
  line-height: 1.7;
  color: #333;
  font-size: 0.95rem;
}

.blog-article h2 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #3d4451;
}

.blog-article ul,
.blog-article ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  line-height: 1.7;
}

.blog-article a { font-weight: 600; }

.blog-page .button--full,
.blog-article .button--full {
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-back {
  margin-bottom: 1rem;
}

.blog-back .button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

@media (max-width: 767px) {
  .blog-page h1 { font-size: 1.45rem; }
  .blog-featured__title { font-size: 1.2rem; }
  .blog-article header h1 { font-size: 1.4rem; }
  .blog-article-page .blog-article-panel > .panel__body {
    padding: 1rem 0.9rem 1.35rem;
  }
}

/* ---- Server form ---- */
.server-form-page h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #484e5b;
}

.server-form__sidebar { width: 320px; max-width: 100%; }

.server-form__section {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  margin-bottom: 0;
}

@media (max-width: 639px) {
  .server-form__section { display: none; }
  .server-form__section--active { display: block; }
  .server-form__section-wrapper:not(.is-visible):not(:has(.server-form__section--active)) {
    display: none;
  }
  /* Only one step open on mobile — wrappers marked inactive stay collapsed */
  .server-form.is-connected .server-form__section-wrapper.is-step-inactive {
    display: none !important;
  }
  .server-form.is-connected .server-form__section-wrapper.is-step-active {
    display: block !important;
  }
  .server-form.is-connected [data-section="confirm"]:not(.is-confirm-active) {
    display: none !important;
  }
  .server-form.is-connected [data-section="confirm"].is-confirm-active {
    display: block !important;
  }
}

@media (min-width: 640px) {
  .server-form__section { display: block !important; }
  .server-form.is-connected .server-form__section-wrapper.is-step-inactive,
  .server-form.is-connected .server-form__section-wrapper.is-step-active {
    display: block !important;
  }
}

.server-form__section-header {
  color: #fff;
  user-select: none;
  border-radius: 5px 5px 0 0;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  display: flex;
}

.server-form__section-title {
  align-items: center;
  gap: 12px;
  display: flex;
}

.server-form__section-title i {
  opacity: 0.7;
  font-size: 1.125rem;
}

.server-form__section-title h3 {
  letter-spacing: 0.01em;
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.server-form__section-body {
  background: #fff;
  border-radius: 0 0 6px 6px;
  padding: 20px;
}

@media (min-width: 640px) {
  .server-form__section-body { padding: 24px; }
}

.server-form__section--connection .server-form__section-header,
.server-form__section--confirm .server-form__section-header {
  background: linear-gradient(135deg, #76b83d 0%, #6ca838 100%);
}

.server-form__section--identity .server-form__section-header {
  background: linear-gradient(135deg, #515867 0%, #484e5b 100%);
}

.server-form__section--classification .server-form__section-header {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.server-form__section--voting .server-form__section-header {
  background: linear-gradient(135deg, #e2ac6b 0%, #da9541 100%);
}

.server-form__section--social .server-form__section-header {
  background: linear-gradient(135deg, #5c88e5 0%, #326ade 100%);
}

.server-form__section--social .server-form__section-optional {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.server-form__social-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem 1rem;
  margin-bottom: 1.25rem;
  align-items: start;
}

@media (min-width: 640px) {
  .server-form__social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.server-form__field-icon {
  display: inline-block;
  width: 1.05em;
  margin-right: 0.5em;
  opacity: 0.55;
  text-align: center;
  vertical-align: -0.05em;
}

.server-form__social-notice {
  margin-bottom: 1rem;
}

.server-form__social-notice .item__message p {
  margin: 0;
  line-height: 1.5;
}

.server-form__premium-link {
  color: #326ade;
  font-weight: 700;
  text-decoration: none;
}

.server-form__premium-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.server-form__section-help {
  color: #5c6570;
  border-bottom: 1px solid #f1f3f5;
  margin: 0 0 1.25rem;
  padding-bottom: 1rem;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.server-form__step-block { margin-bottom: 1.5rem; }

.server-form__step-label {
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  display: flex;
}

.server-form__step-label span:last-child {
  color: #374151;
  font-size: 0.8125rem;
  font-weight: 600;
}

.server-form__step-number {
  color: #fff;
  background: #76b83d;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
}

.server-form__ip-panel {
  background: #f8f9fb;
  border: 1px solid #e8eaed;
  border-radius: 8px;
  padding: 16px;
}

.server-form__ip-panel input[type="text"],
.server-form__ip-panel input[type="number"] {
  background: #fff;
}

.server-form__field-row {
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
  display: grid;
}

@media (min-width: 640px) {
  .server-form__field-row { grid-template-columns: repeat(2, 1fr); }
  .server-form__field-row--auto { grid-template-columns: 1fr auto; }
}

.server-form__field-row:last-child { margin-bottom: 0; }

.server-form__field label,
.server-form__field-group > label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
}

.server-form__field input[type="text"],
.server-form__field input[type="number"],
.server-form__field input[type="url"],
.server-form__field input[type="email"],
.server-form__field input[type="password"],
.server-form__field textarea,
.server-form__field-group input[type="text"],
.server-form__field-group input[type="number"],
.server-form__field-group input[type="url"],
.server-form__field-group input[type="email"],
.server-form__field-group input[type="password"],
.server-form__field-group textarea,
.bbcode-editor__write textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
  color: #333;
  background: #fff;
  box-sizing: border-box;
}

.server-form__field input:focus,
.server-form__field textarea:focus,
.server-form__field-group input:focus,
.server-form__field-group textarea:focus,
.bbcode-editor__write textarea:focus {
  outline: none;
  border-color: #76b83d;
  box-shadow: 0 0 0 3px rgba(118, 184, 61, 0.15);
}

.server-form__field small,
.server-form__field-group small {
  display: block;
  margin-top: 6px;
  color: #5c6570;
  font-size: 0.75rem;
}

.server-form__field-group { margin-bottom: 1.25rem; }

.server-form__edition-selector {
  grid-template-columns: 1fr;
  gap: 10px;
  display: grid;
}

@media (min-width: 640px) {
  .server-form__edition-selector { grid-template-columns: repeat(3, 1fr); }
}

.server-form__edition-item { position: relative; }

.server-form__edition-item input {
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  position: absolute;
}

.server-form__edition-item input:checked + label {
  background: rgba(118, 184, 61, 0.05);
  border-color: #76b83d;
}

.server-form__edition-item input:checked + label .server-form__edition-icon {
  color: #fff;
  background: #76b83d;
}

.server-form__edition-item input:checked + label .server-form__edition-check {
  opacity: 1;
  transform: scale(1);
}

.server-form__edition-item label {
  cursor: pointer;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  align-items: center;
  gap: 12px;
  padding: 16px;
  transition: all 0.15s;
  position: relative;
  margin: 0 !important;
  display: flex !important;
}

.server-form__edition-item label:hover {
  background: #fafafa;
  border-color: #c5c9cf;
}

.server-form__edition-icon {
  color: #6b7280;
  background: #f0f1f3;
  border-radius: 10px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  font-size: 1rem;
  display: flex;
}

.server-form__edition-text {
  flex-direction: column;
  flex: 1;
  gap: 2px;
  min-width: 0;
  display: flex;
}

.server-form__edition-text strong {
  color: #1f2937;
  font-size: 0.875rem;
}

.server-form__edition-text span {
  color: #6b7280;
  font-size: 0.75rem;
}

.server-form__edition-check {
  color: #fff;
  opacity: 0;
  background: #76b83d;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 22px;
  height: 22px;
  font-size: 0.625rem;
  display: flex;
  transform: scale(0.5);
  transition: all 0.2s;
}

.server-form__connection-test {
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  display: flex;
  margin-top: 0.5rem;
}

.server-form__connection-status {
  border-radius: 6px;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  display: flex;
}

.server-form__connection-status--success {
  color: #6ca838;
  background: #f1f8ec;
  border: 1px solid #d6eac5;
}

.server-form__connection-status--loading {
  color: #5c88e5;
  background: #eff3fc;
  border: 1px solid #d6e1f9;
}

.server-form__connection-status--error {
  color: #de2f2f;
  background: #fceeee;
  border: 1px solid #f8d1d1;
}

.server-form__connection-status--loading .server-form__connection-status-icon i {
  animation: 1s linear infinite spin;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.server-form__connection-status-text strong { display: block; }
.server-form__connection-status-text span {
  opacity: 0.8;
  font-size: 0.6875rem;
}

/* Dropzone */
.server-form__dropzone {
  background: #f8f9fa;
  border: 2px dashed #d1d5db;
  border-radius: 6px;
  transition: all 0.2s;
  position: relative;
}

.server-form__dropzone:hover {
  background: rgba(118, 184, 61, 0.02);
  border-color: #76b83d;
}

.server-form__dropzone--dragover {
  background: rgba(118, 184, 61, 0.05);
  border-color: #76b83d;
}

.server-form__dropzone--has-file {
  background: #fff;
  border-style: solid;
  border-color: #76b83d;
}

.server-form__dropzone-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.server-form__dropzone-prompt { padding: 2rem 1.5rem; text-align: center; }

.server-form__dropzone-title {
  color: #374151;
  margin: 0 0 4px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.server-form__dropzone-subtitle {
  color: #6b7280;
  margin: 0;
  font-size: 0.8125rem;
}

.server-form__dropzone-browse {
  color: #76b83d;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.server-form__dropzone-browse:hover {
  color: #6ca838;
}

.server-form__dropzone-info {
  margin-top: 0.75rem;
  justify-content: center;
  gap: 1rem;
  display: flex;
  flex-wrap: wrap;
}

.server-form__dropzone-info span {
  color: #5c6570;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  display: flex;
}

.server-form__dropzone-preview { padding: 1.25rem; }

.server-form__dropzone-media {
  background: repeating-conic-gradient(#f3f4f6 0% 25%, transparent 0% 50%) 50% / 16px 16px;
  padding: 12px;
  justify-content: center;
  display: flex;
}

.server-form__dropzone-media img {
  max-width: 468px;
  max-height: 60px;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.server-form__dropzone--icon {
  max-width: 360px;
}

.server-form__dropzone-media--icon {
  width: 96px;
  height: 96px;
  background: #f3f4f6;
}

.server-form__dropzone-media--icon img {
  max-width: 64px;
  max-height: 64px;
  width: auto;
  height: auto;
  image-rendering: pixelated;
}

.server-form__dropzone-error {
  display: none;
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.08);
  font-size: 0.8125rem;
}

.server-form__icon-fetch {
  margin-top: 0.75rem;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.server-form__icon-fetch .button {
  font-size: 0.8125rem;
}

.server-form__icon-fetch-help {
  color: #6b7280;
  font-size: 0.75rem;
  line-height: 1.4;
}

.server-form__icon-fetch-status {
  font-size: 0.75rem;
  line-height: 1.4;
}

.server-form__icon-fetch-status--loading {
  color: #6b7280;
}

.server-form__icon-fetch-status--success {
  color: #456e29;
}

.server-form__icon-fetch-status--error {
  color: #b91c1c;
}

.server-form__motd {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 6px;
  background: #f6f8f3;
  border: 1px solid #d9e7c7;
}

.server-form__motd-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #5a6b4a;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.35rem;
}

.server-form__motd-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875rem;
  color: #374151;
  word-break: break-word;
}

.server-form__section-meta {
  display: flex;
  align-items: center;
}

.server-form__section-optional {
  font-size: 0.8125rem;
  color: #5c6570;
  font-weight: 500;
}

.votifier-nudge {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.votifier-nudge__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.55);
}

.votifier-nudge__dialog {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  background: #fff;
  border-radius: 10px;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
  text-align: center;
}

.votifier-nudge__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(129, 194, 71, 0.15);
  color: #5a9e2f;
  font-size: 1.35rem;
}

.votifier-nudge__title {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  color: #374151;
}

.votifier-nudge__text {
  margin: 0 0 0.65rem;
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.45;
}

.votifier-nudge__actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.server-form__dropzone-btn {
  border: none;
  gap: 6px;
  padding: 8px 14px;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.server-form__dropzone-btn--change { color: #374151; background: #f3f4f6; }
.server-form__dropzone-btn--change:hover { background: #e5e7eb; }
.server-form__dropzone-btn--remove { color: #dc2626; background: rgba(239, 68, 68, 0.1); }
.server-form__dropzone-btn--remove:hover { background: rgba(239, 68, 68, 0.18); }

.server-form__dropzone-btn i {
  margin-right: 0;
}

/* Toggle */
.server-form__toggle {
  background: #f8f9fa;
  border: 1px solid #eeeff1;
  border-radius: 6px;
  margin-bottom: 1.25rem;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.server-form__toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
  display: inline-block;
}

.server-form__toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.server-form__toggle-slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 28px;
  cursor: pointer;
  transition: background 0.2s;
}

.server-form__toggle-slider::before {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.server-form__toggle-switch input:checked + .server-form__toggle-slider {
  background: #76b83d;
}

.server-form__toggle-switch input:checked + .server-form__toggle-slider::before {
  transform: translateX(24px);
}

.server-form__toggle-label strong {
  display: block;
  color: #333;
  font-size: 0.875rem;
}

.server-form__toggle-label span {
  color: #666;
  font-size: 0.75rem;
}

.server-form__conditional--hidden,
.server-form [data-crossplay-fields][hidden],
.server-form [data-crossplay-fields].server-form__conditional--hidden {
  display: none !important;
}

/* Never hide the Test Connection control while status is visible */
.server-form__connection-test [data-test-connection] {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
}

.server-form__checkbox-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 0;
  background: transparent;
  border: none;
}

@media (min-width: 768px) {
  .server-form__checkbox-group {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  .server-form__checkbox-group--privacy {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
  }
}

.server-form__checkbox-item {
  position: relative;
  min-width: 0;
  height: 100%;
}

.server-form__checkbox-item input[type="checkbox"] {
  position: absolute;
  top: 1.05rem;
  left: 0.95rem;
  z-index: 1;
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: #76b83d;
  cursor: pointer;
}

.server-form__checkbox-item label {
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 400;
  margin: 0 !important;
  display: flex !important;
  align-items: flex-start;
  gap: 0.75rem;
  min-height: 100%;
  height: 100%;
  padding: 0.9rem 0.95rem 0.9rem 2.35rem;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.server-form__checkbox-item label:hover {
  background: #fafafa;
  border-color: #c5c9cf;
}

.server-form__checkbox-item input[type="checkbox"]:checked + label {
  background: rgba(118, 184, 61, 0.06);
  border-color: #76b83d;
  box-shadow: 0 0 0 1px rgba(118, 184, 61, 0.15);
}

.server-form__checkbox-item input[type="checkbox"]:focus-visible + label {
  outline: 2px solid rgba(118, 184, 61, 0.45);
  outline-offset: 2px;
}

.server-form__field--port {
  max-width: 140px;
}

.server-form__protocol {
  display: grid;
  gap: 0.65rem;
}

.server-form__protocol-option {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.server-form__protocol-option:hover,
.server-form__protocol-option.is-selected {
  border-color: #da9541;
  background: #fffaf3;
}

.server-form__protocol-option input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.server-form__protocol-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.4;
}

.server-form__protocol-copy strong {
  color: #374151;
  font-size: 0.875rem;
}

.server-form__protocol-copy code {
  font-size: 0.75rem;
}

.server-form__votifier-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.server-form__votifier-meta {
  margin: 0;
  font-size: 0.8125rem;
  color: #6b7280;
}

.server-form__votifier-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  font-size: 0.8125rem;
}

.server-form__votifier-test-result {
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  line-height: 1.4;
}

.server-form__votifier-test-result.is-ok {
  background: #e8f5e0;
  color: #265e1a;
}

.server-form__votifier-test-result.is-err {
  background: #fde8e8;
  color: #8a1f1f;
}

.server-form__checkbox-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.server-form__checkbox-text strong {
  color: #1f2937;
  font-size: 0.875rem;
  line-height: 1.25;
}

.server-form__checkbox-desc {
  color: #6b7280;
  font-size: 0.75rem;
  line-height: 1.4;
}

/* Tags */
.server-form__tag-selector {
  background: #f8f9fa;
  border: 1px solid #eeeff1;
  border-radius: 6px;
  gap: 8px;
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.server-form__tag-item { position: relative; }

.server-form__tag-item input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.server-form__tag-item input:checked + label {
  color: #fff;
  background: #76b83d;
  border-color: #76b83d;
}

.server-form__tag-item input:disabled + label {
  opacity: 0.6;
  cursor: not-allowed;
}

.server-form__tag-item label {
  color: #374151;
  cursor: pointer;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.25;
  display: inline-block;
  margin: 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.server-form__tag-item label:hover {
  background: rgba(118, 184, 61, 0.05);
  border-color: #76b83d;
}

.server-form__tag-count {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: #6b7280;
  margin-top: 8px;
  font-size: 0.75rem;
}

.server-form__version-wrap {
  background: #f8f9fa;
  border: 1px solid #eeeff1;
  border-radius: 6px;
  padding: 1rem;
}

.server-form__version-labels {
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

/* Dual range slider (simplified) */
.range-slider {
  position: relative;
  height: 28px;
  margin: 8px 0;
}

.range-slider .slider-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 6px;
  margin-top: -3px;
  border-radius: 3px;
  background: #e6e6e6;
}

.range-slider input[type="range"] {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #81c247;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.range-slider input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #81c247;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

/* Stepper (mobile) */
.server-form__stepper {
  background: linear-gradient(135deg, #76b83d 0%, #6ca838 100%);
  border-radius: 10px;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  display: flex;
  box-shadow: 0 2px 8px rgba(108, 168, 56, 0.25);
  margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
  .server-form__stepper { display: none; }
}

.server-form__stepper-progress {
  align-items: center;
  gap: 6px;
  display: flex;
}

.server-form__stepper-dot {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 10px;
  height: 10px;
  transition: all 0.2s;
}

.server-form__stepper-dot--active {
  background: #fff;
  transform: scale(1.3);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.server-form__stepper-dot--complete { background: #fff; }

.server-form__stepper-info {
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
}

.server-form__stepper-info [data-step-current] {
  color: #6ca838;
  background: #fff;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
}

.server-form__stepper-nav {
  border-top: 1px solid #e6e6e6;
  gap: 10px;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  display: flex;
}

.server-form__stepper-nav--borderless {
  border: none;
  margin-top: 0;
  padding-top: 0;
}

@media (min-width: 640px) {
  .server-form__stepper-nav { display: none; }
}

.server-form__stepper-btn {
  cursor: pointer;
  border-radius: 6px;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  display: flex;
  border: none;
  transition: background 0.2s ease, color 0.2s ease;
  text-decoration: none;
  box-sizing: border-box;
}

.server-form__stepper-btn--prev {
  color: #505050;
  background: #e6e6e6;
}

.server-form__stepper-btn--prev:hover {
  background: #dbdbdb;
  color: #505050;
}

.server-form__stepper-btn--prev[hidden] {
  display: none;
}

.server-form__stepper-btn--next,
.server-form__stepper-btn--submit {
  color: #fff;
  background: #76b83d;
  box-shadow: 0 2px 0 #5f9430;
}

.server-form__stepper-btn--next:hover,
.server-form__stepper-btn--submit:hover:not(:disabled) {
  background: #6ca838;
  color: #fff;
  box-shadow: 0 2px 0 #56862c;
}

.server-form__stepper-btn--submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.server-form__stepper-btn--skip {
  color: #5c6570;
  background: transparent;
  border: 1px solid #e6e6e6;
  flex: none;
  padding: 12px 14px;
}

.server-form__stepper-btn--skip:hover {
  background: #f8f9fa;
  color: #4b5563;
}

.server-form__stepper-btn--skip[hidden] {
  display: none;
}

.server-form__submit {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  display: flex;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

@media (min-width: 640px) {
  .server-form__submit {
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: center;
  }
}

.server-form__submit-info {
  color: #5c6570;
  font-size: 0.8125rem;
}

.server-form__submit-info i {
  color: #76b83d;
  margin-right: 6px;
}

.server-form__tips .panel { margin-bottom: 1rem; }

.server-form__tips .panel--green {
  border-radius: var(--radius);
  overflow: hidden;
}

.server-form__tips .panel--green > .panel__body {
  padding: 0 16px;
  border-left: 1px solid var(--border-soft);
  border-right: 1px solid var(--border-soft);
}

.server-form__tips .panel--rounded {
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  border-bottom: 2px solid var(--border);
  background: #fff;
  overflow: hidden;
}

.server-form__tips .panel--rounded > .panel__body {
  padding: 16px;
  border-radius: 8px;
  background: #fff;
}

.server-form__tips .panel--rounded p {
  color: #666;
  line-height: 1.5;
  margin: 0 0 0.75rem;
}

.server-form__tips .button--light-blue,
.server-form__tips .button.button--full {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #586070;
  color: #fff !important;
  box-shadow: 0 2px 0 #464d5a;
}

.server-form__tips .button--light-blue:hover {
  background: #545b6b;
  color: #fff !important;
  box-shadow: 0 2px 0 #3f4552;
}

.server-form__tips .button--light-blue:active {
  background: #5f6779;
  box-shadow: 0 1px 0 #464d5a;
  transform: translateY(1px);
}

.server-form__tips .button--light-blue i {
  margin-right: 8px;
}

.server-form__tip-item {
  border-bottom: 1px solid #e8e8e8;
  padding: 12px 0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.server-form__tip-item:last-child {
  border-bottom: none;
}

.server-form__tip-item i {
  color: var(--green);
  margin-top: 3px;
  width: 1em;
  text-align: center;
  flex-shrink: 0;
}

.server-form__tip-item span {
  color: #555;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.server-form__tip-item strong {
  color: #333;
  font-weight: 700;
}

.server-form__help-header {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #333;
  font-size: 0.9375rem;
}

.server-form [data-requires-connection] {
  display: none;
}

.server-form.is-connected [data-requires-connection],
.server-form.is-connected .server-form__section-wrapper {
  display: block;
}

.server-form.is-connected [data-section="confirm"] {
  display: block;
}

/* BBCode editor */
.bbcode-editor {
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
}

.bbcode-editor:focus-within {
  border-color: #76b83d;
  box-shadow: 0 0 0 3px rgba(118, 184, 61, 0.1);
}

.bbcode-editor__header {
  background: #f8f9fa;
  border-bottom: 1px solid #e5e7eb;
  align-items: center;
  gap: 4px 10px;
  padding: 0 10px;
  display: flex;
  flex-wrap: wrap;
}

.bbcode-editor__tabs { display: flex; gap: 0; }

.bbcode-editor__tab {
  cursor: pointer;
  color: #666;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  align-items: center;
  gap: 6px;
  margin-bottom: -1px;
  padding: 10px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  display: flex;
}

.bbcode-editor__tab--active {
  color: #76b83d;
  background: #fff;
  border-bottom-color: #76b83d;
}

.bbcode-editor__toolbar {
  align-items: center;
  gap: 2px;
  margin-left: auto;
  padding: 8px 0;
  display: flex;
}

.bbcode-editor__btn {
  cursor: pointer;
  color: #555;
  background: transparent;
  border: none;
  border-radius: 4px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

@media (max-width: 640px) {
  .bbcode-editor__btn {
    width: 28px;
    height: 28px;
  }
}

.bbcode-editor__btn:hover {
  color: #333;
  background: #e9ecef;
}

.bbcode-editor__btn:active {
  background: #dee2e6;
}

.bbcode-editor__btn i {
  font-size: 0.8125rem;
  margin-right: 0;
}

.bbcode-editor__separator {
  width: 1px;
  height: 20px;
  background: #dee2e6;
  margin: 0 6px;
}

.bbcode-editor__content { background: #fff; }

.bbcode-editor__write textarea {
  border: none !important;
  box-shadow: none !important;
  border-radius: 0;
  min-height: 220px;
}

.bbcode-editor__preview {
  padding: 1rem;
  min-height: 220px;
  line-height: 1.6;
}

.bbcode-editor__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f8f9fa;
  border-top: 1px solid #e5e7eb;
  font-size: 0.75rem;
  color: #6b7280;
}

.bbcode-editor__char-count { margin-left: auto; }

/* Votifier nudge modal — keep hidden by default (shown via JS on final submit) */
.votifier-nudge[hidden] {
  display: none !important;
}

.panel--rounded { border-radius: 8px; }

.dashboard-demo-note {
  margin-top: 10px;
  font-size: 0.75rem;
  color: #888;
}

@media (max-width: 1023px) {
  .server-form__sidebar { width: 100%; }
  .col-9-lg,
  .col-3-md { flex: 0 0 100%; width: 100%; }
}


/* Desktop tips sidebar on add-server */
.server-form__sidebar--desktop {
  display: none;
}
@media (min-width: 1024px) {
  .server-form__sidebar--desktop {
    display: block;
  }
}

/* Ensure form layout stacks sections with gap */
.server-form.flex-col > .flex-1 {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  flex: 1;
}

.server-form__submit--desktop {
  display: none;
}
@media (min-width: 640px) {
  .server-form__submit--desktop {
    display: flex;
  }
}

.server-form__submit-mobile {
  display: flex;
}
@media (min-width: 1024px) {
  .server-form__submit-mobile {
    display: none !important;
  }
}

.notification--notice .item {
  color: #505050;
  background: #eef6fc;
  border: 1px solid #cfe3f5;
  border-left-width: 5px;
}
.notification--notice .item__icon { color: #00a3ff; }

/* ========== PHP app UI fixes (selects, missing utilities, polish) ========== */

/* Custom dropdown owns the field — hide any leftover native <select> inside */
.dropdown > select,
.dropdown select[name] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Native selects match template dropdown look (PHP forms use <select>) */
.filter__inner select,
.finder-form select,
.dashboard select,
.server-form select:not(.dropdown select),
.server-form > select,
.server-form__field > select,
.server-form__field-group > select,
select.w-100 {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  min-height: 38px;
  line-height: 1.35;
  padding: 8px 32px 8px 14px;
  color: rgba(0, 0, 0, 0.8);
  background-color: #f8f8f8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23989898' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px 6px;
  border: 1px solid #ebebeb;
  border-radius: 3px;
  box-sizing: border-box;
  font-size: 0.875rem;
  font-family: inherit;
  margin-bottom: 10px;
  cursor: pointer;
  outline: 0;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.finder-form select {
  background-color: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  min-height: 40px;
  margin-bottom: 0;
  padding: 10px 32px 10px 14px;
}

.filter__inner select:focus,
.finder-form select:focus,
.dashboard select:focus,
.server-form select:focus,
select.w-100:focus {
  background-color: #fff;
  border-color: #76b83d;
  box-shadow: 0 0 0 3px rgba(118, 184, 61, 0.15);
}

html[data-theme="dark"] .filter__inner select,
html.theme-dark .filter__inner select,
html[data-theme="dark"] .finder-form select,
html.theme-dark .finder-form select {
  color: var(--text);
  background-color: var(--surface-muted);
  border-color: var(--border);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23c9d1d9' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
}

.button--muted {
  background: #e6e6e6;
  color: #505050 !important;
  box-shadow: none;
}

.button--muted:hover {
  background: #dbdbdb;
  color: #505050 !important;
}

.button--red {
  background: #de2f2f;
  color: #fff !important;
  box-shadow: 0 2px 0 #b52626;
}

.button--red:hover {
  background: #d12b2b;
  color: #fff !important;
  box-shadow: 0 2px 0 #a62323;
}

.button--red:active {
  background: #e43a3a;
  box-shadow: 0 1px 0 #b52626;
  transform: translateY(1px);
}

.button--google {
  background: #fff;
  color: #3c4043 !important;
  border: 1px solid #dadce0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.button--google:hover {
  background: #f8f9fa;
  color: #202124 !important;
  border-color: #c6c6c6;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.button--google:active {
  background: #f1f3f4;
  box-shadow: none;
  transform: translateY(1px);
}

.button--google i {
  color: #ea4335;
  margin-right: 8px;
}

/* Keep brand identity when OAuth is unconfigured (overrides .button--disabled mud) */
.button--discord.button--disabled,
.button--discord.button--disabled:hover,
a.button--discord.button--disabled:hover {
  background: #9aa3f5 !important;
  color: rgba(255, 255, 255, 0.92) !important;
  box-shadow: none !important;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  opacity: 1;
}

.button--discord.button--disabled i {
  color: rgba(255, 255, 255, 0.92);
}

.button--google.button--disabled,
.button--google.button--disabled:hover,
a.button--google.button--disabled:hover {
  background: #f1f3f4 !important;
  color: #9aa0a6 !important;
  border: 1px solid #e0e0e0 !important;
  box-shadow: none !important;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  opacity: 1;
}

.button--google.button--disabled i {
  color: #9aa0a6 !important;
}

.btn-group--wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.btn-group--wrap .button {
  margin: 0;
}

.filter__buttons .button.is-active,
.btn-group .button.is-active {
  background: #609532;
  color: #fff !important;
  box-shadow: 0 2px 0 #4a7326;
}

.text-gold,
.text-theme-gold {
  color: #c18d50 !important;
}

.text--muted {
  color: #5c6570 !important;
}

.form form.inline,
.inline {
  display: inline;
}

.dashboard .panel__header.d-flex {
  align-items: center;
  gap: 8px;
}

.dashboard .server-form__field-group input {
  max-width: 420px;
}

/* Account settings: left-aligned, constrained form */
.dashboard .panel--blue.account-settings > .panel__body--account {
  text-align: left;
  padding: 20px 22px 22px;
}

.account-form {
  max-width: 520px;
  width: 100%;
  margin: 0;
  text-align: left;
}

.account-form__section {
  margin: 0 0 18px;
  padding: 0 0 16px;
  border-bottom: 1px solid #e8eaed;
}

.account-form__section:last-of-type {
  margin-bottom: 12px;
}

.account-form__section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #484e5b;
  line-height: 1.3;
}

.account-form__section-title i {
  color: #76b83d;
  font-size: 0.875rem;
  width: 1.1em;
  text-align: center;
}

.account-form__hint {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #6b7280;
}

.account-form__hint--muted {
  margin-bottom: 0;
  color: #5c6570;
}

.account-form .server-form__field-group {
  margin-bottom: 0.85rem;
  text-align: left;
}

.account-form .server-form__field-group:last-child {
  margin-bottom: 0;
}

.account-form .server-form__field-group > label {
  text-align: left;
  margin-bottom: 5px;
}

.dashboard .account-form .server-form__field-group input,
.account-form .server-form__field-group input {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.account-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding-top: 2px;
}

.account-form__actions .button {
  margin-top: 0;
}

@media (max-width: 639px) {
  .dashboard .panel--blue.account-settings > .panel__body--account {
    padding: 16px 14px 18px;
  }

  .account-form {
    max-width: 100%;
  }
}

.dashboard-page .dashboard {
  padding-bottom: 24px;
}

body.dashboard-page .dashboard h1 {
  margin-top: 12px;
}

/* Auth OAuth buttons stack cleanly */
.auth-panel .oauth-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-panel .oauth-buttons .button,
.auth-panel .button--discord,
.auth-panel .button--google {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0;
  padding: 14px 20px;
  line-height: 1.25;
  gap: 0;
}

.auth-panel .button--discord i,
.auth-panel .button--google i {
  margin-right: 10px;
  margin-left: 0;
  flex-shrink: 0;
  width: 1.1em;
  text-align: center;
}

@media (max-width: 1023px) {
  .footer__info {
    margin-top: 18px;
    align-items: flex-start !important;
  }
}

/* Premium / featured page title spacing */
.premium-page__title,
.featured-page__title {
  margin: 12px 0 16px;
  font-size: 1.6rem;
  font-weight: 800;
  color: #484e5b;
}

/* Admin table action buttons inside main site buttons */
.admin-main .button--small {
  margin: 2px 4px 2px 0;
}

.admin-table .button {
  font-size: 0.7rem;
  padding: 6px 10px;
}

/* ---- Tags index (/tags) ---- */
.tags-index__body {
  padding: 16px;
  background: var(--panel-body-bg);
}

.tags-index__empty {
  padding: 8px 4px;
  color: var(--text);
}

.tags-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .tags-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .tags-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tag-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 12px 14px 14px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
  min-height: 100%;
}

.tag-card:hover,
.tag-card:focus-visible {
  color: inherit;
  text-decoration: none;
  border-color: var(--green);
  box-shadow: 0 2px 10px rgba(118, 184, 61, 0.18);
  transform: translateY(-1px);
  outline: none;
}

.tag-card--empty {
  opacity: 0.72;
}

.tag-card--empty:hover,
.tag-card--empty:focus-visible {
  opacity: 1;
}

.tag-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(118, 184, 61, 0.14);
  color: var(--green-hover);
  font-size: 1rem;
}

.tag-card:hover .tag-card__icon,
.tag-card:focus-visible .tag-card__icon {
  background: var(--green);
  color: #fff;
}

.tag-card__content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tag-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
}

.tag-card__name {
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.3;
}

.tag-card__count {
  font-size: 0.75rem;
  font-weight: 600;
  color: #5c6570;
  white-space: nowrap;
}

.tag-card__blurb {
  font-size: 0.75rem;
  line-height: 1.4;
  color: #6b7280;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-card__chevron {
  flex-shrink: 0;
  align-self: center;
  color: #c4c4c4;
  font-size: 0.7rem;
  transition: color 0.15s ease, transform 0.15s ease;
}

.tag-card:hover .tag-card__chevron,
.tag-card:focus-visible .tag-card__chevron {
  color: var(--green);
  transform: translateX(2px);
}

html[data-theme="dark"] .tag-card__name,
html.theme-dark .tag-card__name {
  color: var(--header-text);
}

html[data-theme="dark"] .tag-card__count,
html[data-theme="dark"] .tag-card__blurb,
html.theme-dark .tag-card__count,
html.theme-dark .tag-card__blurb {
  color: #9aa0a8;
}

html[data-theme="dark"] .tag-card,
html.theme-dark .tag-card {
  background: var(--surface-muted);
}

html[data-theme="dark"] .tag-card:hover,
html[data-theme="dark"] .tag-card:focus-visible,
html.theme-dark .tag-card:hover,
html.theme-dark .tag-card:focus-visible {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

/* ---- Tag landing pages ---- */
.tag-landing__badge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.tag-landing__badge-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(118, 184, 61, 0.16);
  color: var(--green-hover);
  font-size: 0.95rem;
}

.tag-landing__all-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green-hover);
  text-decoration: none;
}

.tag-landing__all-link:hover {
  color: var(--green-active);
  text-decoration: underline;
}

.tag-landing__empty {
  padding: 18px 4px 8px;
}

.tag-landing__related-body {
  padding: 14px;
}

.tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.tag-pill i {
  color: var(--green-hover);
  font-size: 0.85rem;
}

.tag-pill:hover,
.tag-pill:focus-visible {
  border-color: var(--green);
  background: rgba(118, 184, 61, 0.08);
  color: inherit;
  text-decoration: none;
  outline: none;
}

.tag-pill__count {
  color: #5c6570;
  font-weight: 500;
  font-size: 0.72rem;
}

.tag-pill--all {
  background: rgba(118, 184, 61, 0.12);
  border-color: rgba(118, 184, 61, 0.35);
  color: var(--green-hover);
}

.tag-pill--all:hover,
.tag-pill--all:focus-visible {
  background: var(--green);
  border-color: var(--green-hover);
  color: #fff;
}

.tag-pill--all:hover i,
.tag-pill--all:focus-visible i {
  color: #fff;
}

html[data-theme="dark"] .tag-pill,
html.theme-dark .tag-pill {
  background: var(--surface-muted);
}

html[data-theme="dark"] .tag-pill__count,
html.theme-dark .tag-pill__count {
  color: #9aa0a8;
}

/* Server gallery (public page) */
.server-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .server-gallery {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

.server-gallery__item {
  display: block;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-muted, #f3f4f6);
  cursor: pointer;
  aspect-ratio: 16 / 10;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.server-gallery__item:hover {
  border-color: var(--border-row, #c5c9d0);
  transform: translateY(-1px);
}

.server-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.server-gallery__lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(20, 24, 32, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.server-gallery__lightbox[hidden] {
  display: none !important;
}

.server-gallery__lightbox img {
  max-width: min(96vw, 1100px);
  max-height: 85vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.server-gallery__lightbox-close,
.server-gallery__lightbox-nav {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  cursor: pointer;
}

.server-gallery__lightbox-close:hover,
.server-gallery__lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.server-gallery__lightbox-close {
  top: 1rem;
  right: 1rem;
}

.server-gallery__lightbox-nav--prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.server-gallery__lightbox-nav--next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

body.server-gallery-open {
  overflow: hidden;
}

/* Dashboard gallery + FAQ editors */
.server-form__gallery-list {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.server-form__gallery-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.server-form__gallery-thumb {
  aspect-ratio: 16 / 10;
  background: #eef0f3;
  overflow: hidden;
}

.server-form__gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.server-form__gallery-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.5rem;
  justify-content: center;
}

.server-form__gallery-move {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 6px;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  color: #505050;
}

.server-form__gallery-upload {
  border: 1px dashed var(--border);
  padding: 1rem;
  text-align: center;
  background: var(--surface-muted, #fafafa);
}

.server-form__gallery-upload-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  color: #3d4450;
  margin-bottom: 0.5rem;
}

.server-form__gallery-upload input[type="file"] {
  display: block;
  margin: 0.5rem auto 0;
  max-width: 100%;
}

.server-form__gallery-count {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: #6b7280;
  text-align: center;
}

.server-form__faq-editor {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.server-form__faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.server-form__faq-row {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  background: var(--surface);
}

.server-form__faq-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.server-form__faq-row-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.server-form__faq-remove {
  border: 0;
  background: transparent;
  color: #b45309;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.server-form__faq-remove:hover {
  text-decoration: underline;
}

html[data-theme="dark"] .server-form__gallery-thumb,
html.theme-dark .server-form__gallery-thumb {
  background: #2a2f38;
}

html[data-theme="dark"] .server-form__gallery-move,
html.theme-dark .server-form__gallery-move {
  background: #2a2f38;
  color: #e1e2e5;
}

html[data-theme="dark"] .server-form__gallery-upload,
html.theme-dark .server-form__gallery-upload {
  background: #252a32;
}

/* ========== Footer tools (UUID / Votifier) ========== */

.tool-page {
  max-width: 1040px;
}

.tool-page__header {
  margin-bottom: 1.25rem;
}

.tool-page__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-hover);
}

.tool-page__eyebrow i {
  font-size: 0.85rem;
}

.tool-page__lead {
  margin: 0;
  max-width: 42rem;
  color: #505050;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.tool-page__lead code {
  font-size: 0.85em;
}

.tool-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 900px) {
  .tool-page__layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.85fr);
    gap: 1.5rem;
  }
}

.tool-page__main,
.tool-page__aside {
  min-width: 0;
}

.tool-page__aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tool-page__aside .panel {
  margin: 0;
}

.tool-page__card {
  margin: 0 0 1rem;
  border-radius: 8px;
  overflow: hidden;
}

.tool-page__card .panel__header h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.95rem;
}

.tool-page__card.panel--blue > .panel__header h3 { color: #fff; }

.tool-page__card .panel__header h3 i {
  opacity: 0.9;
}

.tool-page__card .panel__body {
  padding: 1.1rem 1.15rem 1.25rem;
}

.tool-page__alert {
  margin-bottom: 1rem;
}

.tool-page__form label,
.tool-page__form legend {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #505050;
}

.tool-page__form legend {
  padding: 0;
  margin-bottom: 0.55rem;
}

.tool-page__field {
  margin-bottom: 1rem;
}

.tool-page__field input,
.tool-page__field textarea,
.tool-page__field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font: inherit;
  color: var(--text);
  background: var(--surface, #fff);
  box-sizing: border-box;
}

.tool-page__field textarea {
  resize: vertical;
  min-height: 2.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.tool-page__field input:focus,
.tool-page__field textarea:focus,
.tool-page__field select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(118, 184, 61, 0.15);
}

.tool-page__field input[aria-invalid="true"] {
  border-color: #ff4010;
  box-shadow: 0 0 0 3px rgba(255, 64, 16, 0.12);
}

.tool-page__field small,
.tool-page__field [data-secret-help] {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #6b7280;
}

.tool-page__field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
  margin-bottom: 0;
}

@media (min-width: 560px) {
  .tool-page__field-row {
    grid-template-columns: minmax(0, 1fr) 110px;
    align-items: start;
  }
}

.tool-page__field--port input {
  width: 100%;
}

.tool-page__form .button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.tool-page__protocol {
  margin: 0 0 1.15rem;
  padding: 0;
  border: 0;
  display: grid;
  gap: 0.65rem;
}

.tool-page__protocol-option {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: var(--surface, #fff);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.tool-page__protocol-option:hover,
.tool-page__protocol-option.is-selected {
  border-color: #da9541;
  background: #fffaf3;
}

.tool-page__protocol-option input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.tool-page__protocol-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.4;
}

.tool-page__protocol-copy strong {
  color: #374151;
  font-size: 0.875rem;
}

.tool-page__protocol-copy code {
  font-size: 0.75rem;
}

.tool-page__result .panel__header--result {
  background-color: var(--green);
  border-bottom: 2px solid var(--green-hover);
}

.tool-page__uuid-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-soft);
}

.tool-page__uuid-row:last-of-type {
  border-bottom: 0;
  padding-bottom: 0.35rem;
}

.tool-page__uuid-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
  flex: 1 1 auto;
}

.tool-page__uuid-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
}

.tool-page__uuid-value {
  display: block;
  font-size: 0.875rem;
  word-break: break-all;
  color: #374151;
  background: var(--surface-muted, #f9fafb);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 0.55rem 0.7rem;
}

.tool-page__copy-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.tool-page__result-note {
  margin: 0.85rem 0 0;
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.45;
}

.tool-page__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 1.75rem 1rem;
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  background: var(--surface-muted, #f9fafb);
  color: #6b7280;
  text-align: center;
}

.tool-page__empty i {
  font-size: 1.5rem;
  color: #5c6570;
}

.tool-page__empty p {
  margin: 0;
  font-size: 0.875rem;
}

.tool-page__tips {
  padding: 18px;
}

.panel__body.tool-page__tips { padding: 18px; }
.tool-page__aside { min-width: 0; }
.tool-page__tip > span { min-width: 0; overflow-wrap: anywhere; }

.tool-page__tip {
  border-bottom: 1px solid #e8e8e8;
  padding: 12px 0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.tool-page__tip:first-child {
  padding-top: 0;
}

.tool-page__tip:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.tool-page__tip i {
  color: var(--green);
  margin-top: 3px;
  width: 1em;
  text-align: center;
  flex-shrink: 0;
}

.tool-page__tip span {
  color: #555;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.tool-page__tip strong {
  color: #333;
  font-weight: 700;
}

.tool-page__tip code {
  font-size: 0.75rem;
}

.tool-page__help-card .panel__body {
  padding: 16px;
}

.tool-page__help-header {
  margin-bottom: 8px;
  color: #333;
  font-size: 0.9375rem;
}

.tool-page__help-card p {
  margin: 0;
  color: #666;
  font-size: 0.8125rem;
  line-height: 1.5;
}

html[data-theme="dark"] .tool-page__lead,
html.theme-dark .tool-page__lead {
  color: var(--text);
}

html[data-theme="dark"] .tool-page__form label,
html[data-theme="dark"] .tool-page__form legend,
html.theme-dark .tool-page__form label,
html.theme-dark .tool-page__form legend {
  color: var(--text);
}

html[data-theme="dark"] .tool-page__field input,
html[data-theme="dark"] .tool-page__field textarea,
html.theme-dark .tool-page__field input,
html.theme-dark .tool-page__field textarea {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

html[data-theme="dark"] .tool-page__protocol-option,
html.theme-dark .tool-page__protocol-option {
  border-color: var(--border);
  background: var(--surface);
}

html[data-theme="dark"] .tool-page__protocol-option:hover,
html[data-theme="dark"] .tool-page__protocol-option.is-selected,
html.theme-dark .tool-page__protocol-option:hover,
html.theme-dark .tool-page__protocol-option.is-selected {
  border-color: #c18d50;
  background: var(--premium-bg);
}

html[data-theme="dark"] .tool-page__protocol-copy strong,
html.theme-dark .tool-page__protocol-copy strong {
  color: var(--text);
}

html[data-theme="dark"] .tool-page__uuid-value,
html.theme-dark .tool-page__uuid-value {
  color: var(--text);
  background: var(--surface-muted);
  border-color: var(--border);
}

html[data-theme="dark"] .tool-page__empty,
html.theme-dark .tool-page__empty {
  border-color: var(--border);
  background: var(--surface-muted);
}

html[data-theme="dark"] .tool-page__tip,
html.theme-dark .tool-page__tip {
  border-bottom-color: var(--border);
}

html[data-theme="dark"] .tool-page__tip span,
html.theme-dark .tool-page__tip span {
  color: var(--text);
}

html[data-theme="dark"] .tool-page__tip strong,
html[data-theme="dark"] .tool-page__help-header,
html.theme-dark .tool-page__tip strong,
html.theme-dark .tool-page__help-header {
  color: var(--header-text);
}

html[data-theme="dark"] .tool-page__help-card p,
html.theme-dark .tool-page__help-card p {
  color: var(--text);
}

/* Claim server */
.claim-page__main { margin-bottom: 24px; }
.claim-page__title {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 800;
  color: #505050;
}
.claim-page__subtitle {
  margin: 0 0 4px;
  font-size: 0.95rem;
  line-height: 1.45;
}
.claim-page__alert {
  margin: 0 0 1rem;
  max-width: none;
}
.claim-page__alert[hidden],
.claim-request-success[hidden] {
  display: none !important;
}

.claim-page .panel > .panel__body,
body.claim-page .panel > .panel__body,
main.claim-page .panel > .panel__body,
.claim-page__main .panel > .panel__body {
  padding: 18px 20px 20px;
  border-left: 1px solid var(--border-soft);
  border-right: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--panel-body-bg, #fff);
}

.claim-page .col-4-lg {
  margin-top: 0;
}

@media (max-width: 991px) {
  .claim-page .col-4-lg {
    margin-top: 1rem;
  }
}

.claim-code-label { margin: 0 0 0.35rem; }
.claim-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin: 0.35rem 0 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f3f4f6;
  font-size: 1.35rem;
  font-family: inherit;
  color: #374151;
  cursor: pointer;
  text-align: left;
  box-sizing: border-box;
}
.claim-code:hover { background: #eceff3; }
.claim-code:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.claim-code code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.05em;
  letter-spacing: 0.02em;
  background: transparent;
  padding: 0;
  color: inherit;
}
.claim-code > i {
  color: #5c6570;
  font-size: 0.95rem;
  flex: 0 0 auto;
}
.claim-methods { display: grid; gap: 1rem; margin: 1rem 0; }
.claim-method {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  background: #fff;
}
.claim-method.is-active {
  border-color: #6ba836;
  background: #f4faf0;
}
.claim-method h4 { margin: 0 0 0.5rem; font-size: 1rem; color: #374151; }
.claim-method ol { margin: 0; padding-left: 1.2rem; }
.claim-method li { margin-bottom: 0.25rem; }
.claim-method li:last-child { margin-bottom: 0; }
.claim-probe { word-break: break-all; font-size: 0.85em; }

.claim-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: flex-end;
  margin-top: 1rem;
}
.claim-controls form { margin: 0; }
.claim-controls__method {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}
.claim-controls__verify { align-self: flex-end; }
.claim-controls__verify.is-busy { opacity: 0.75; pointer-events: none; }

.claim-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  margin-top: 1rem;
}
.claim-method-pick {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #374151;
}
.claim-method-pick select {
  min-width: 10rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  font: inherit;
}

.claim-file-label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: #374151;
}
.claim-file {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
}
.claim-file__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.claim-file__btn { cursor: pointer; margin: 0; }
.claim-file__names {
  font-size: 0.8rem;
  min-width: 0;
  word-break: break-word;
}

.claim-tips { margin: 0; padding-left: 1.1rem; }
.claim-tips li { margin-bottom: 0.4rem; }
.claim-tips li:last-child { margin-bottom: 0; }
.claim-history { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.claim-history li { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.35rem; }
.server-page__claim { margin: 0.75rem 0 0.35rem; }

.claim-request-form .server-form__field { margin-bottom: 1rem; }
.claim-request-form .server-form__field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: #374151;
}
.claim-request-form .server-form__field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font: inherit;
  resize: vertical;
  min-height: 120px;
  background: #fff;
}
.claim-request-form .server-form__field textarea:focus {
  outline: 2px solid rgba(118, 184, 61, 0.35);
  border-color: var(--green);
}
.claim-request-form .server-form__field small {
  display: block;
  margin-top: 0.35rem;
  color: #6b7280;
  font-size: 0.8rem;
}
.claim-request-success { margin-top: 0.5rem; max-width: none; }

/* MOTD banner (Minelist / NameMC style) */
.server-motd-banner {
  background: #0f0f0f;
  border: 1px solid #1f1f1f;
  border-radius: 0.375rem;
  overflow: visible;
  color: #fff;
}
.server-motd-banner__body {
  display: flex;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem 0.65rem;
  align-items: flex-start;
}
.server-motd-banner__icon {
  width: 64px;
  height: 64px;
  border-radius: 4px;
  object-fit: cover;
  image-rendering: pixelated;
  flex-shrink: 0;
  background: #1a1a1a;
}
.server-motd-banner__text {
  flex: 1 1 auto;
  min-width: 0;
  display: flow-root;
}
.server-motd-banner__motd-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 0.65rem;
  width: 100%;
}
.server-motd-banner__strip {
  min-width: 0;
  white-space: pre-wrap;
  font-size: 1.05rem;
  line-height: 1.35;
  color: #fff;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
@media (min-width: 768px) {
  .server-motd-banner__strip { font-size: 1.25rem; }
}
.server-motd-banner__players {
  font-weight: 600;
  color: #f0f0f0;
  white-space: nowrap;
  font-size: 1rem;
  line-height: 1.35;
  margin: 0;
  padding: 0;
}
.server-motd-banner__players.is-offline {
  color: #aaa;
  font-weight: 500;
}
.server-motd-banner__slash { color: #555; }

.mc-motd .mc-black { color: #000000 !important; }
.mc-motd .mc-dark-blue { color: #0000aa !important; }
.mc-motd .mc-dark-green { color: #00aa00 !important; }
.mc-motd .mc-dark-aqua { color: #00aaaa !important; }
.mc-motd .mc-dark-red { color: #aa0000 !important; }
.mc-motd .mc-dark-purple { color: #aa00aa !important; }
.mc-motd .mc-gold { color: #ffaa00 !important; }
.mc-motd .mc-gray { color: #aaaaaa !important; }
.mc-motd .mc-dark-gray { color: #555555 !important; }
.mc-motd .mc-blue { color: #5555ff !important; }
.mc-motd .mc-green { color: #55ff55 !important; }
.mc-motd .mc-aqua { color: #55ffff !important; }
.mc-motd .mc-red { color: #ff5555 !important; }
.mc-motd .mc-light-purple { color: #ff55ff !important; }
.mc-motd .mc-yellow { color: #ffff55 !important; }
.mc-motd .mc-white { color: #ffffff !important; }
.mc-motd .mc-bold { font-weight: 700; }
.mc-motd .mc-italic { font-style: italic; }
.mc-motd .mc-underlined { text-decoration: underline; }
.mc-motd .mc-strikethrough { text-decoration: line-through; }
.mc-motd .mc-obfuscated { filter: blur(0.35px); letter-spacing: 0.04em; }

.server-form__motd-value.mc-motd {
  background: #0f0f0f;
  color: #fff;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  white-space: pre-wrap;
  line-height: 1.4;
}

/* ---- Responsive polish (mobile / tablet) ---- */
.sidebar {
  max-width: 100%;
  min-width: 0;
}

.panel,
.panel__body,
.server-list,
.server-list__rows,
.overview-section {
  max-width: 100%;
  min-width: 0;
}

.server-row__banner img,
.server-row__banner.banner img,
.banner img,
.server__banner img,
.sidebar-premium .server__banner img {
  max-width: 100%;
  height: auto;
}

.server-row__ip,
.server__ip,
.copy-ip {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 1023px) {
  .header {
    margin-bottom: 18px;
  }

  .pagination .page-item > a,
  .pagination .page-item > span,
  .pagination__list > .page-item > a,
  .pagination__list > .page-item > span {
    min-width: 2rem;
    padding: 8px 10px;
    font-size: 0.7rem;
  }

  .overview-section__title {
    padding: 16px 12px;
  }

  .overview-section__title h2 {
    font-size: 1.2rem;
    padding-right: 0;
  }

  .server-page__header {
    flex-wrap: wrap;
    gap: 10px;
  }

  .server-page__details {
    display: block;
    width: 100%;
  }

  .server-page__details tr {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    padding: 10px 0;
  }

  .server-page__details td {
    display: block;
    width: auto;
    border: 0;
    padding: 0;
  }

  .server-page__details td:first-child {
    flex: 0 0 100%;
    margin-bottom: 2px;
  }

  .server-page__ip-card {
    margin: 10px 8px;
  }

  .filter__buttons {
    flex-wrap: wrap;
    gap: 6px;
  }

  .btn-group {
    flex-wrap: wrap;
  }
}

@media (max-width: 767px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .row {
    margin-left: -0.35rem;
    margin-right: -0.35rem;
  }

  .row > * {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }

  .server-row__banner-wrap {
    padding: 0.65rem 0.65rem 0.35rem;
    max-width: 100%;
  }

  .server-row__name {
    font-size: 1.05rem;
    white-space: normal;
  }

  .server-row__actions-inner {
    max-width: none;
  }

  .server-row__ip {
    font-size: 0.8rem;
  }

  .pagination-wrapper {
    margin-top: 12px;
    margin-bottom: 16px;
  }

  .pagination .page-item > a,
  .pagination .page-item > span,
  .pagination__list > .page-item > a,
  .pagination__list > .page-item > span {
    min-width: 1.85rem;
    padding: 7px 8px;
  }

  .sidebar-item {
    padding: 8px 12px;
  }

  .cookies__inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cookies__inner .button {
    width: 100%;
  }

  .footer__info-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
  }

  .ad-slot,
  .ad-slot img,
  [class*="ad-"] img {
    max-width: 100%;
  }
}

@media (max-width: 479px) {
  .server-list__toolbar {
    flex-wrap: wrap;
    gap: 8px;
  }

  .home-list-heading,
  .overview-section__title {
    word-break: break-word;
  }

  .button--small {
    font-size: 0.7rem;
  }
}
.server-page__jump-links{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 22px}.server-page__jump-links a{padding:10px 14px;border:1px solid var(--border);border-radius:7px;background:var(--surface);color:var(--text);font-size:13px;font-weight:700}.server-page__jump-links a:hover{border-color:#76b83d}.server-page__jump-links a:focus-visible,.server-page__bedrock-details button:focus-visible{outline:3px solid #76b83d;outline-offset:3px}.server-page [id]{scroll-margin-top:20px}.server-page__bedrock-details{display:grid;gap:8px;padding:16px;background:var(--surface-muted);border-radius:8px;margin-top:12px;font-size:13px}.server-page__bedrock-details button{border:1px solid var(--border);padding:10px;border-radius:5px;text-align:left;background:var(--surface);color:var(--text);font:inherit;overflow-wrap:anywhere;cursor:pointer}.server-page__bedrock-details small{font-size:12px;line-height:1.6}.server-page__details .label{white-space:normal}.server-page__details .uptime__ok{background:#9a650e}.server-page__inline-note{line-height:1.6}
@media(max-width:600px){.server-page .server-page__desc-header{flex-wrap:wrap;gap:12px}.server-page .server-page__desc-header h1{font-size:21px;overflow-wrap:anywhere;min-width:0}.server-page .server-page__desc-header>.btn-group{flex-wrap:wrap;max-width:100%}}

/* Focus-visible for interactive controls that otherwise strip outlines */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 2px solid #2d6a4f;
  outline-offset: 2px;
}

/* Header already defines its own focus styles */
.site-header a:focus-visible,
.site-header summary:focus-visible,
.site-header button:focus-visible {
  outline-color: #a6d775;
  outline-offset: 4px;
}

.finder-form input[type="text"]:focus-visible,
.finder-form .dropdown__selected:focus-visible,
.finder-form select:focus-visible {
  outline: 2px solid #2d6a4f;
  outline-offset: 2px;
}
