:root {
  --purple: #8b5cf6;
  --pink: #ec4899;
  --black: #050509;
  --blue: #38bdf8;
  --cyan: #42b8b0;
  --green: #4ca154;
  --amber: #d19934;
  --danger: #c75a67;
  --surface: #111114;
  --surface-soft: #18181d;
  --surface-strong: #222229;
  --text: #ececf1;
  --muted: #aaaab5;
  --border: rgba(255, 255, 255, .14);
  --shadow: 0 8px 20px rgba(0, 0, 0, .24);
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(139, 92, 246, .08), transparent 220px),
    linear-gradient(135deg, rgba(56, 189, 248, .08), transparent 360px),
    #08080b;
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.text-link {
  color: #8fc5f0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

button {
  cursor: pointer;
}

img {
  max-width: 100%;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 12, .96);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #24242b;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(236, 72, 153, .28);
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link,
.drop-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #bebec8;
  background: transparent;
  transition: color .16s ease, border-color .16s ease, background .16s ease, transform .16s ease;
}

.nav-link:hover,
.drop-button:hover,
.nav-link.active,
.drop-button.active {
  color: var(--text);
  border-color: var(--border);
  background: #18181e;
}

.dropdown {
  position: relative;
}

.dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
}

.chevron {
  font-size: .75rem;
  transition: transform .16s ease;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(640px, calc(100vw - 32px));
  max-height: 68vh;
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(16, 16, 24, .98);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown:hover .chevron,
.dropdown:focus-within .chevron {
  transform: rotate(180deg);
}

.mega-menu {
  right: auto;
  left: 50%;
  width: min(860px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: 1fr 1fr 1.18fr minmax(170px, .95fr);
  gap: 0;
  padding: 0;
  transform: translateX(-50%) translateY(8px);
}

.dropdown:hover .mega-menu,
.dropdown:focus-within .mega-menu {
  transform: translateX(-50%) translateY(0);
}

.mega-column {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
  border-right: 1px solid rgba(255, 255, 255, .08);
}

.mega-column:last-child {
  border-right: 0;
}

.mega-column.wide {
  min-width: 240px;
}

.menu-link {
  display: grid;
  gap: 3px;
  min-height: 48px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text);
  background: transparent;
}

.menu-link strong {
  font-size: .94rem;
}

.menu-link span {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
}

.menu-link:hover,
.quick-filter:hover {
  border-color: rgba(56, 189, 248, .4);
  background: rgba(56, 189, 248, .08);
}

.menu-link.accent-purple {
  border-left: 3px solid var(--purple);
}

.menu-link.accent-pink {
  border-left: 3px solid var(--pink);
}

.menu-link.accent-blue {
  border-left: 3px solid var(--blue);
}

.menu-link.accent-cyan {
  border-left: 3px solid var(--cyan);
}

.menu-link.view-all {
  margin-top: 4px;
  border-color: rgba(34, 197, 94, .28);
  background: rgba(34, 197, 94, .08);
}

.compact-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.compact-link-grid .menu-link {
  min-height: 42px;
  padding: 8px;
}

.compact-link-grid .menu-link span {
  display: none;
}

.menu-search {
  margin-bottom: 10px;
}

.quick-filter {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: #d9d9e2;
  background: rgba(255, 255, 255, .04);
  font-size: .88rem;
}

.sponsor-menu,
.tools-menu {
  width: min(360px, calc(100vw - 32px));
  display: grid;
  gap: 8px;
}

.dropdown-section-title {
  margin: 2px 4px 10px;
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.tag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 8px;
}

.tag-link,
.pill {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid var(--border);
  color: #d9d9e2;
  background: #1b1b21;
  font-size: .86rem;
}

.tag-link:hover {
  border-color: rgba(49, 149, 216, .55);
  background: #202630;
}

.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, .06);
}

main {
  flex: 1;
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 54px;
}

.hero-band {
  min-height: 260px;
  display: grid;
  align-items: center;
  padding: 34px 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.hero-content {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #9ea4b8;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.hero-title {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.15rem, 5vw, 4.25rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero-title span {
  color: inherit;
  background: none;
}

.hero-copy {
  max-width: 610px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.hero-actions,
.row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text);
  background: #1b1b21;
  font-weight: 750;
}

.button:hover {
  background: #24242c;
}

.button.active {
  border-color: rgba(56, 189, 248, .7);
  background: linear-gradient(135deg, rgba(56, 189, 248, .45), rgba(139, 92, 246, .42));
  color: #fff;
}

.button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.button:disabled:hover {
  background: #1b1b21;
}

.button.primary {
  border-color: rgba(236, 72, 153, .58);
  background: linear-gradient(135deg, #7c3aed, #db2777);
}

.button.blue {
  border-color: rgba(56, 189, 248, .58);
  background: #2488c7;
  color: #fff;
}

.button.ghost {
  color: var(--muted);
}

.button.danger {
  border-color: rgba(251, 113, 133, .45);
  background: rgba(251, 113, 133, .12);
  color: #ffd0d8;
}

.google-button {
  border-color: rgba(255, 255, 255, .22);
  color: #111318;
  background: #f7f7fb;
}

.google-button:hover {
  background: #e6e8f0;
}

.button.icon {
  width: 40px;
  min-height: 40px;
  padding: 0;
}

.section {
  padding: 24px 0 12px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
}

.section-title {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.85rem);
}

.section-copy {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.seo-section {
  max-width: 920px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 220px) minmax(150px, 220px);
  gap: 10px;
  margin-bottom: 18px;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text);
  background: #17171c;
  outline: none;
}

.input,
.select {
  padding: 0 12px;
}

.textarea {
  min-height: 150px;
  padding: 12px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: rgba(49, 149, 216, .7);
  box-shadow: 0 0 0 2px rgba(49, 149, 216, .16);
}

.server-list {
  display: grid;
  gap: 12px;
}

.directory-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 18px;
  align-items: start;
}

.directory-sidebar {
  position: static;
  display: grid;
  gap: 14px;
}

.side-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #121217;
  overflow: hidden;
}

.side-card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(90deg, rgba(139, 92, 246, .18), rgba(56, 189, 248, .06)),
    #17171d;
  font-size: 1rem;
}

.side-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 5px;
  color: #9df3ff;
  background: rgba(56, 189, 248, .14);
  font-size: .78rem;
}

.popular-rows {
  display: grid;
}

.popular-row {
  min-height: 42px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.popular-row:last-child {
  border-bottom: 0;
}

.popular-row:hover {
  background: rgba(56, 189, 248, .07);
}

.popular-rank {
  color: var(--muted);
  font-size: .86rem;
}

.player-badge {
  padding: 3px 7px;
  border-radius: 5px;
  color: #fff;
  background: linear-gradient(135deg, rgba(34, 197, 94, .86), rgba(56, 189, 248, .64));
  font-size: .75rem;
  font-weight: 800;
  white-space: nowrap;
}

.stat-side-card,
.browse-card {
  padding-bottom: 14px;
}

.side-stat {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 14px 0;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.side-stat strong {
  font-size: 1.35rem;
}

.side-stat span {
  color: var(--muted);
}

.side-button {
  width: calc(100% - 28px);
  margin: 14px 14px 0;
}

.browse-card .server-tags {
  padding: 14px;
}

.server-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px 214px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #121217;
  box-shadow: none;
}

.server-summary {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.45;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.server-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.above-link {
  position: relative;
  z-index: 2;
}

.server-card.sponsored {
  border-color: rgba(139, 92, 246, .88);
  box-shadow: inset 3px 0 0 rgba(236, 72, 153, .82);
  background:
    linear-gradient(90deg, rgba(139, 92, 246, .16), transparent 50%),
    #121217;
}

.rank-stack {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.rank {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: var(--text);
  background: #1c1c22;
  border: 1px solid var(--border);
  font-weight: 800;
}

.rank .star {
  color: var(--pink);
  margin-right: 2px;
}

.server-favicon {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  image-rendering: pixelated;
  object-fit: cover;
  background: #1c1c22;
  border: 1px solid var(--border);
}

.banner {
  width: 214px;
  aspect-ratio: 468 / 60;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, .18);
  background-color: #15151f;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

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

.server-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  font-size: 1rem;
}

.server-ip {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: .92rem;
  word-break: break-word;
}

.server-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  white-space: nowrap;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--danger);
}

.dot.online {
  background: var(--green);
  box-shadow: none;
}

.stats {
  display: grid;
  justify-items: end;
  gap: 8px;
  min-width: 150px;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 800;
}

.muted {
  color: var(--muted);
}

.list-footer {
  display: grid;
  justify-items: center;
  gap: 16px;
  margin: 26px 0 4px;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.pager-button,
.pager-ellipsis {
  min-width: 34px;
  min-height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 5px;
  font-weight: 800;
}

.pager-button {
  border: 1px solid transparent;
  color: var(--text);
  background: transparent;
}

.pager-button:hover,
.pager-button.active {
  border-color: rgba(139, 92, 246, .58);
  background: linear-gradient(135deg, rgba(139, 92, 246, .86), rgba(236, 72, 153, .72));
  color: #fff;
}

.pager-button.next {
  min-width: 58px;
  background: #24242d;
}

.pager-ellipsis {
  color: var(--muted);
}

.listing-count {
  margin: 0;
  color: #d9dbeb;
  font-size: 1rem;
}

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

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #121217;
  padding: 18px;
  box-shadow: none;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #17171d;
}

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #121217;
  padding: 15px;
}

.faq-item h3 {
  margin: 0 0 7px;
  font-size: 1rem;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.client-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.client-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.host-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.client-image {
  min-height: 150px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #1b1b21 center / cover no-repeat;
  color: var(--muted);
  font-weight: 800;
}

.client-image.placeholder {
  padding: 18px;
  text-align: center;
}

.description-text.compact {
  max-height: 11rem;
  overflow: auto;
}

.admin-client-panel {
  display: grid;
  gap: 18px;
}

.admin-client-list {
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.client-form {
  padding-top: 2px;
}

.client-admin-row {
  grid-template-columns: 44px minmax(0, 1fr) auto;
}

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

.admin-user-row {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #121217;
  overflow: hidden;
}

.admin-user-row summary {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.admin-user-row summary::-webkit-details-marker {
  display: none;
}

.admin-user-row[open] summary {
  border-bottom: 1px solid var(--border);
  background: rgba(56, 189, 248, .06);
}

.admin-user-details {
  display: grid;
  gap: 10px;
  padding: 12px 14px 14px;
}

.admin-user-details p {
  display: grid;
  gap: 4px;
  margin: 0;
}

.admin-user-details span {
  color: var(--muted);
  font-size: .82rem;
}

.admin-email-warning {
  padding: 10px 12px;
  border: 1px solid rgba(251, 113, 133, .28);
  border-radius: 6px;
  color: #ffd0d8;
  background: rgba(251, 113, 133, .08);
  font-weight: 800;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-left: 6px;
  padding: 0 7px;
  border-radius: 999px;
  color: #ddf7ff;
  background: rgba(56, 189, 248, .18);
  font-size: .74rem;
  font-weight: 800;
}

.status-badge.danger {
  color: #ffd0d8;
  background: rgba(251, 113, 133, .18);
}

.client-logo {
  width: 92px;
  height: 92px;
  border-radius: 5px;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: none;
}

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

.email-verification-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  border-color: rgba(139, 92, 246, .38);
  background:
    linear-gradient(135deg, rgba(139, 92, 246, .14), rgba(56, 189, 248, .08)),
    var(--surface);
}

.email-verification-card h2,
.email-verification-card p {
  margin: 0;
}

.email-verification-card h2 {
  font-size: 1.05rem;
}

.email-verification-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.email-verification-card .code-input {
  width: 118px;
  text-align: center;
  font-weight: 900;
  letter-spacing: 4px;
}

.auth-verification-card {
  width: min(560px, 100%);
  margin: 0 auto;
  border-color: rgba(56, 189, 248, .28);
  background:
    linear-gradient(135deg, rgba(236, 72, 153, .1), rgba(56, 189, 248, .08)),
    var(--surface);
}

.auth-verification-card .code-input {
  width: 160px;
  max-width: 100%;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 5px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--border);
}

.fine-print {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.45;
}

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

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

.field label,
.check-row {
  color: #d9dbeb;
  font-size: .92rem;
  font-weight: 750;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.check-row input {
  flex: 0 0 auto;
}

.turnstile-field {
  align-items: start;
}

.turnstile-box {
  min-height: 65px;
  display: grid;
  align-items: center;
}

.notice.compact {
  padding: 10px 12px;
  font-size: .9rem;
}

.tag-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-choice {
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--muted);
  background: #17171d;
  padding: 0 11px;
}

.tag-choice.selected {
  color: #fff;
  border-color: rgba(49, 149, 216, .7);
  background: #1e3244;
}

.dashboard-list {
  display: grid;
  gap: 12px;
}

.plan-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid rgba(139, 92, 246, .32);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(139, 92, 246, .15), rgba(56, 189, 248, .06)),
    #121217;
}

.plan-strip strong {
  display: block;
  margin-top: 4px;
  font-size: 1.08rem;
}

.dash-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.notice {
  border: 1px solid rgba(49, 149, 216, .35);
  border-radius: 5px;
  background: #111923;
  color: #d9f5ff;
  padding: 13px 14px;
}

.policy-card {
  max-width: 920px;
  margin: 0 auto;
}

.policy-updated {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .92rem;
}

.policy-content {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}

.policy-section {
  display: grid;
  gap: 10px;
}

.policy-section h2 {
  margin: 0;
  font-size: 1.2rem;
}

.policy-section p {
  margin: 0;
  color: #d7d8e5;
  line-height: 1.65;
}

.policy-section ul {
  margin: 0;
  padding-left: 20px;
  color: #d7d8e5;
  line-height: 1.65;
}

.policy-section li + li {
  margin-top: 7px;
}

.empty-state {
  width: 100%;
  padding: 22px;
  border: 1px dashed rgba(255, 255, 255, .2);
  border-radius: 5px;
  background: #101014;
  text-align: left;
}

.empty-state h2 {
  margin: 0;
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
}

.empty-state p {
  margin: 8px 0 16px;
  max-width: 520px;
  color: var(--muted);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(320px, 360px) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.info-panel,
.detail-card {
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #121217;
  color: var(--text);
  box-shadow: none;
  overflow: hidden;
}

.info-panel h1 {
  margin: 0;
  padding: 16px 14px;
  background:
    linear-gradient(90deg, rgba(139, 92, 246, .2), transparent),
    #1c1c22;
  color: #fff;
  font-size: 1.05rem;
}

.info-row {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  min-height: 42px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.info-row strong,
.info-row span {
  min-width: 0;
  padding: 10px;
}

.info-row > span {
  overflow-wrap: anywhere;
}

.info-row strong {
  border-right: 1px solid rgba(255, 255, 255, .08);
  color: #d9d9e2;
}

.info-row a {
  color: #8fc5f0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.status.inline {
  color: #75d17c;
  font-weight: 800;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  background: #1c1c22;
  border-bottom: 1px solid var(--border);
}

.tab {
  min-height: 48px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, .08);
  padding: 0 16px;
  color: #d9d9e2;
  background: transparent;
  font-weight: 750;
}

.tab.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, .95), rgba(56, 189, 248, .75));
  color: #fff;
}

.detail-body {
  padding: clamp(20px, 4vw, 34px);
  line-height: 1.65;
}

.detail-tab-panel {
  display: none;
}

.detail-tab-panel.active {
  display: block;
}

.detail-heading {
  margin: 0 0 18px;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.detail-banner {
  width: min(468px, 100%);
  aspect-ratio: 468 / 60;
  margin: 0;
  border: 1px solid var(--border);
  background: #1b1b21 center / cover no-repeat;
}

.server-showcase {
  display: grid;
  grid-template-columns: minmax(240px, 468px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid rgba(139, 92, 246, .28);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(139, 92, 246, .16), rgba(56, 189, 248, .06)),
    #0f0f14;
}

.server-showcase h2 {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.server-showcase p {
  margin: 0 0 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

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

.mini-stat {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #17171d;
}

.mini-stat strong {
  display: block;
  font-size: 1.7rem;
}

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

.vote-wide {
  width: 100%;
  margin: 24px auto 0;
  background: linear-gradient(135deg, #24923a, #38bdf8);
  border-color: rgba(56, 189, 248, .5);
  font-size: 1.05rem;
}

.description-text {
  margin: 0;
  color: #e0e0e8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.description-card {
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #101016;
  padding: 18px;
}

.description-card h3 {
  margin: 0 0 12px;
}

.copy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  width: 100%;
}

.copy-row > span {
  min-width: 0;
  flex: 1 1 100%;
  padding: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.mini-button {
  min-height: 28px;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text);
  background: rgba(139, 92, 246, .16);
  padding: 0 8px;
}

.chart-box {
  margin: 14px 0 18px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #0f0f13;
  padding: 12px;
}

.chart-box svg {
  display: block;
  width: 100%;
  color: #8fc5f0;
}

.chart-grid line {
  stroke: rgba(255, 255, 255, .13);
  stroke-width: 1;
}

.chart-bars rect {
  fill: #6f82ad;
}

.chart-labels {
  fill: var(--muted);
  font-size: 12px;
}

.metric-select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #17171d;
  color: var(--text);
  padding: 9px 12px;
}

.generated-banner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 22px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #1b1b21 center / cover no-repeat;
}

.generated-banner strong,
.generated-banner span {
  display: block;
  text-shadow: 0 1px 2px #000;
}

.generated-banner strong {
  font-size: 1.25rem;
}

.generated-banner-stats {
  text-align: right;
}

.banner-field {
  margin-top: 12px;
}

.code-input {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.trailer-frame {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: 5px;
  overflow: hidden;
  background: #0f0f13;
}

.trailer-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.detail-note {
  color: var(--muted);
}

.vote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 18px;
  align-items: start;
}

.leaderboard {
  display: grid;
  gap: 8px;
}

.leader-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #17171d;
}

.tool-page {
  max-width: 980px;
}

.tool-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 0;
}

.tool-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, .38);
  color: #fff;
  background: linear-gradient(135deg, rgba(139, 92, 246, .78), rgba(236, 72, 153, .7), rgba(56, 189, 248, .55));
  font-weight: 900;
}

.tool-card {
  display: grid;
  gap: 22px;
  max-width: 760px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #121217;
}

.field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.button.small {
  min-height: 30px;
  padding: 0 10px;
  font-size: .84rem;
}

.field-hint {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: .82rem;
}

.meter {
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: #22222b;
}

.meter span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.tool-block {
  display: grid;
  gap: 10px;
}

.tool-block h2 {
  margin: 0;
  color: #d9dbeb;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.swatch {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255, 255, 255, .65);
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .35);
}

.swatch:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, .45);
}

.row-actions.compact {
  margin-top: 0;
}

.motd-preview {
  min-height: 92px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 2px solid #3b3b42;
  border-radius: 7px;
  background:
    linear-gradient(rgba(255, 255, 255, .04), rgba(0, 0, 0, .1)),
    repeating-linear-gradient(0deg, #242424, #242424 2px, #202020 2px, #202020 4px);
  color: #fff;
  font-family: Consolas, "Liberation Mono", monospace;
}

.motd-preview-icon {
  width: 48px;
  height: 48px;
  border: 2px solid #244018;
  border-radius: 3px;
  background:
    linear-gradient(135deg, rgba(56, 189, 248, .25), rgba(236, 72, 153, .16)),
    #2c8a2b;
  box-shadow: inset 0 0 0 8px rgba(0, 0, 0, .18);
}

.motd-preview-copy {
  min-width: 0;
}

.motd-preview-copy strong,
.motd-preview-copy p {
  margin: 0;
  overflow-wrap: anywhere;
}

.motd-preview-count {
  color: #d9ffe8;
  font-size: .82rem;
  white-space: nowrap;
}

.votifier-tool-card {
  max-width: 700px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.plan-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .04), transparent 90px),
    #121217;
}

.plan-card.featured {
  border-color: rgba(236, 72, 153, .52);
  box-shadow: inset 0 3px 0 rgba(236, 72, 153, .7);
}

.plan-head {
  display: grid;
  gap: 8px;
}

.plan-head h2,
.plan-head p {
  margin: 0;
}

.plan-head p {
  color: var(--muted);
  line-height: 1.5;
}

.plan-card .status-badge {
  width: max-content;
  margin-left: 0;
}

.plan-price {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0;
}

.plan-card .feature-list {
  margin-top: 0;
}

.plan-card .feature-list li {
  padding: 10px 12px;
}

.plan-card .button {
  margin-top: auto;
}

.rgb-page {
  max-width: 1180px;
}

.rgb-hero {
  align-items: flex-start;
  padding-bottom: 12px;
}

.rgb-tool {
  border: 1px solid rgba(56, 189, 248, .22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 0%, rgba(139, 92, 246, .16), transparent 34%),
    linear-gradient(135deg, rgba(56, 189, 248, .08), rgba(236, 72, 153, .05)),
    #101722;
  overflow: hidden;
}

.rgb-main {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.rgb-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.rgb-text-label span,
.rgb-options .field span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.rgb-text-label small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.rgb-format-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.rgb-live-input {
  min-height: 58px;
  display: block;
  padding: 8px 12px;
  border: 1px solid rgba(56, 189, 248, .48);
  border-radius: 7px;
  background: #1c2636;
  color: #fff;
  font-size: clamp(1.4rem, 4vw, 2.45rem);
  font-weight: 900;
  line-height: 1.12;
  outline: none;
  overflow-x: hidden;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  cursor: text;
}

.rgb-live-input:focus {
  border-color: rgba(56, 189, 248, .8);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, .16);
}

.rgb-live-input:empty::before {
  content: attr(data-placeholder);
  color: rgba(236, 236, 241, .34);
}

.rgb-gradient-bar {
  position: relative;
  min-height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff0000, #ffff00, #21ff00, #51dcff, #f095ff);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 0 22px rgba(56, 189, 248, .14);
}

.rgb-gradient-bar::before,
.rgb-gradient-bar::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #ff1d25;
  transform: translateY(-50%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

.rgb-gradient-bar::before {
  left: -2px;
}

.rgb-gradient-bar::after {
  right: -2px;
  background: #2f62ff;
}

.rgb-body-grid {
  display: grid;
  grid-template-columns: minmax(250px, .75fr) minmax(360px, 1.25fr);
  gap: 14px;
  align-items: start;
}

.rgb-colors-panel,
.rgb-output-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(18, 18, 24, .72);
}

.rgb-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rgb-panel-head h2 {
  margin: 0;
  font-size: 1rem;
}

.rgb-output-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.rgb-output-actions .select {
  min-width: min(260px, 100%);
}

.rgb-mini-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rgb-color-rows {
  display: grid;
  gap: 8px;
}

.rgb-color-row {
  display: grid;
  grid-template-columns: 24px 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.rgb-color-row > span {
  color: var(--muted);
  font-size: .9rem;
}

.rgb-color-input {
  width: 44px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 0;
}

.rgb-hex-input {
  min-height: 34px;
}

.rgb-output {
  min-height: 116px;
  resize: vertical;
}

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

.rgb-options .check-row {
  min-height: 42px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255, 255, 255, .03);
}

.fonts-page {
  display: grid;
  gap: 20px;
}

.fonts-hero .tool-icon {
  background: linear-gradient(135deg, rgba(56, 189, 248, .85), rgba(139, 92, 246, .78));
}

.font-generator {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(56, 189, 248, .24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(139, 92, 246, .12), rgba(56, 189, 248, .08)),
    rgba(18, 18, 24, .72);
}

.font-generator-bar {
  display: grid;
  grid-template-columns: minmax(220px, 360px) auto;
  gap: 12px;
  align-items: end;
  justify-content: space-between;
}

.font-generator-bar .field span,
.font-box span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.font-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.font-box {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.font-textarea {
  min-height: 300px;
  padding: 18px;
  resize: vertical;
  border-color: rgba(255, 255, 255, .12);
  background: rgba(10, 10, 14, .82);
  font-size: 1.14rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.font-output {
  color: #f6f7ff;
}

.font-preview {
  min-height: 68px;
  padding: 17px;
  border: 1px solid rgba(139, 92, 246, .32);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(139, 92, 246, .18), rgba(56, 189, 248, .10)),
    rgba(12, 12, 18, .88);
  color: #fff;
  font-size: clamp(1.2rem, 3vw, 2rem);
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.button.wide {
  width: 100%;
}

.danger-zone {
  border-color: rgba(251, 113, 133, .34);
  background: rgba(251, 113, 133, .08);
}

.hidden {
  display: none !important;
}

.footer {
  border-top: 1px solid var(--border);
  background: #08080a;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  line-height: 1.5;
}

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

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

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

.footer-review-link {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(236, 72, 153, .44);
  border-radius: 5px;
  color: #fff;
  background: linear-gradient(135deg, rgba(139, 92, 246, .75), rgba(219, 39, 119, .72));
  font-weight: 800;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  max-width: min(420px, calc(100vw - 36px));
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #151520;
  color: var(--text);
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .mobile-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .nav {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .nav-links {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
  }

  .nav.open .nav-links {
    display: flex;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    margin-top: 8px;
  }

  .mega-menu,
  .dropdown:hover .mega-menu,
  .dropdown:focus-within .mega-menu {
    transform: none;
  }

  .mega-menu,
  .compact-link-grid,
  .directory-layout,
  .plans-grid,
  .rgb-body-grid,
  .rgb-toolbar,
  .font-editor-grid,
  .font-generator-bar,
  .plan-strip {
    grid-template-columns: 1fr;
  }

  .mega-column {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .directory-sidebar {
    position: static;
  }

  .email-verification-card {
    grid-template-columns: 1fr;
  }

  .email-verification-controls {
    justify-content: flex-start;
  }

  .toolbar,
  .detail-layout,
  .vote-layout,
  .form-grid,
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .server-showcase,
  .quick-stats,
  .rgb-options {
    grid-template-columns: 1fr;
  }

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

  .banner,
  .stats {
    grid-column: 2;
  }

  .rank-stack {
    grid-row: span 3;
  }

  .stats {
    justify-items: start;
    grid-template-columns: repeat(3, auto);
    align-items: center;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .page {
    width: min(100% - 22px, 1180px);
    padding-top: 20px;
  }

  .hero-band {
    min-height: 250px;
    padding-top: 28px;
  }

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

  .rank,
  .rank-stack,
  .banner,
  .stats {
    grid-column: auto;
  }

  .banner {
    width: 100%;
  }

  .dash-item {
    grid-template-columns: 1fr;
  }

  .rgb-main {
    padding: 14px;
  }

  .rgb-format-buttons {
    justify-content: flex-start;
  }

  .rgb-color-row {
    grid-template-columns: 22px 40px minmax(0, 1fr);
  }

  .rgb-color-row .mini-button {
    grid-column: 2 / -1;
    width: 100%;
  }
}
