:root {
  --bg: #08131b;
  --bg-elevated: rgba(14, 26, 35, 0.88);
  --bg-soft: rgba(19, 37, 49, 0.8);
  --line: rgba(170, 203, 214, 0.14);
  --text: #ecf7f5;
  --muted: #9fb8be;
  --teal: #7de2d1;
  --teal-strong: #31bfa9;
  --gold: #ffc96b;
  --danger: #ff8c8c;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(76, 196, 164, 0.16), transparent 30%),
    radial-gradient(circle at top right, rgba(255, 201, 107, 0.12), transparent 24%),
    linear-gradient(180deg, #071018 0%, #041117 100%);
  min-height: 100vh;
  overflow-y: scroll;
}

body::before {
  content: none;
}

.page-shell {
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 42px;
}

.hero,
.surface,
.featured-card,
.server-card,
.leaderboard-card,
.stack-form,
.vote-form {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero,
.surface,
.server-card,
.leaderboard-card,
.stack-form,
.featured-card,
.vote-form {
  border-radius: 24px;
}

.hero,
.surface {
  padding: 22px;
}

.surface-sponsored {
  border-color: rgba(255, 201, 107, 0.55);
  box-shadow: 0 18px 45px rgba(120, 84, 26, 0.22);
}

.topbar,
.hero-grid,
.hero-actions,
.nav-actions,
.section-heading,
.auth-grid,
.form-columns,
.server-list,
.leaderboard-list,
.server-card-head,
.server-card-actions,
.dashboard-server,
.dashboard-vote,
.dialog-header {
  display: flex;
}

.topbar,
.server-card-head,
.server-card-actions,
.dialog-header {
  justify-content: space-between;
}

.topbar,
.hero-grid,
.hero-actions,
.nav-actions,
.auth-grid,
.form-columns,
.server-list,
.leaderboard-list,
.server-card-actions,
.dashboard-server {
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand strong,
.section-heading h2,
.stack-form h3,
.dialog-header h3,
.server-card h3 {
  margin: 0;
}

.brand span,
.eyebrow,
.section-heading p,
.field span,
.server-meta,
.muted,
.leaderboard-card p,
.dashboard-empty {
  color: var(--muted);
}

.brand-mark {
  width: 58px;
  height: 58px;
  display: block;
  flex: 0 0 58px;
  object-fit: contain;
}

.nav-actions {
  align-items: center;
}

.nav-actions a {
  color: var(--text);
  text-decoration: none;
}

.nav-actions a:hover {
  color: var(--teal);
}

.hero-grid {
  margin-top: 28px;
  align-items: start;
}

.hero-compact {
  margin-bottom: 18px;
}

.hero-copy {
  flex: 1.2;
}

.hero-panel {
  flex: 0.9;
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.95;
  max-width: 11ch;
}

.hero-copy .hero-actions {
  margin-top: 12px;
}

.hero-text {
  max-width: 60ch;
  line-height: 1.65;
}

.featured-card,
.stack-form,
.vote-form,
.server-card,
.leaderboard-card {
  padding: 18px;
}

.vote-form-revamp {
  width: min(920px, calc(100vw - 28px));
  max-width: 920px;
  padding: 0;
  overflow: hidden;
  background: #242424;
}

.vote-shell,
.vote-hero,
.vote-hero-copy,
.vote-quick-actions,
.vote-form-body,
.vote-form-intro,
.vote-tip-box {
  display: grid;
}

.vote-shell {
  gap: 0;
}

.vote-hero {
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: start;
  padding: 24px 24px 18px;
}

.vote-logo-slot {
  position: relative;
  width: 72px;
  height: 72px;
}

.vote-logo-fallback,
.vote-logo-image {
  width: 72px;
  height: 72px;
  border-radius: 16px;
}

.vote-logo-image {
  display: block;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.vote-hero-copy {
  gap: 8px;
}

.vote-hero-copy .eyebrow,
.vote-form-intro p {
  margin: 0;
}

.vote-hero-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.04;
  color: var(--text);
}

.vote-meta {
  color: #d8ddd8;
  font-size: 1.05rem;
  line-height: 1.45;
}

.vote-close-button {
  align-self: start;
}

.vote-quick-actions {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.08);
}

.vote-quick-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  color: var(--text);
  text-decoration: none;
  background: transparent;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.vote-quick-action:last-child {
  border-right: none;
}

.vote-quick-action:hover {
  background: rgba(255, 255, 255, 0.06);
}

.vote-form-body {
  gap: 18px;
  padding: 28px 38px 34px;
}

.vote-form-intro h3 {
  margin: 0;
  font-size: 2rem;
  font-weight: 500;
  color: var(--text);
}

.vote-form-intro p {
  color: var(--muted);
  line-height: 1.55;
}

.vote-form-revamp input {
  background: rgba(255, 255, 255, 0.1);
}

.vote-tip-box {
  gap: 8px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.09);
  color: #ececec;
}

.vote-tip-box strong {
  font-size: 0.95rem;
}

.vote-captcha-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.vote-captcha-box input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--teal);
}

.vote-countdown {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(125, 226, 209, 0.08);
  border: 1px solid rgba(125, 226, 209, 0.16);
}

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

.vote-countdown-head strong,
.vote-countdown-head span {
  color: var(--text);
}

.vote-countdown p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.vote-progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.vote-progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  transition: width 100ms linear;
}

.vote-tip-box kbd {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font: inherit;
  font-weight: 700;
}

.vote-submit-button {
  min-height: 54px;
  font-size: 1rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.stat-tile,
.mini-list,
.dashboard-vote {
  border-radius: 18px;
  background: var(--bg-soft);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 14px;
}

.stat-tile strong {
  display: block;
  font-size: 1.65rem;
}

.main-grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.auth-page-card {
  max-width: 980px;
  margin: 0 auto;
}

.studio-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.dashboard-profile,
.dashboard-profile-card,
.dashboard-profile-head,
.dashboard-profile-identity,
.dashboard-profile-stats,
.dashboard-discord-card,
.dashboard-discord-head,
.dashboard-discord-actions {
  display: flex;
}

.dashboard-profile {
  margin-bottom: 18px;
}

.dashboard-profile-card {
  width: 100%;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  border-radius: 22px;
  background: rgba(8, 20, 30, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-profile-head {
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.dashboard-profile-identity,
.dashboard-discord-head {
  align-items: center;
  gap: 16px;
}

.dashboard-profile-copy,
.dashboard-discord-copy {
  display: grid;
  gap: 6px;
}

.dashboard-profile-copy h3,
.dashboard-profile-copy p,
.dashboard-discord-copy h3,
.dashboard-discord-copy p {
  margin: 0;
}

.dashboard-avatar,
.dashboard-discord-avatar {
  width: 74px;
  height: 74px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-avatar {
  background: linear-gradient(135deg, rgba(125, 226, 209, 0.16), rgba(255, 201, 107, 0.18));
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.dashboard-discord-avatar-fallback {
  background: rgba(88, 101, 242, 0.18);
  color: #cdd4ff;
  font-size: 1.2rem;
  font-weight: 700;
}

.dashboard-profile-stats {
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-profile-pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
}

.dashboard-discord-card {
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.dashboard-discord-actions {
  align-items: center;
  gap: 12px;
}

.discord-link-code-panel {
  width: 100%;
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.28);
}

.discord-link-code-label,
.discord-link-code-help {
  margin: 0;
}

.discord-link-code-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(9, 16, 31, 0.82);
  color: #f4f7ff;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.browse-toolbar,
.browse-toolbar-actions,
.browse-panel-grid,
.browse-sort-options {
  display: flex;
}

.browse-toolbar,
.browse-panel-grid {
  gap: 16px;
}

.browse-toolbar {
  align-items: end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.browse-search {
  flex: 1;
}

.browse-toolbar-actions,
.browse-sort-options {
  flex-wrap: wrap;
  gap: 10px;
}

.browse-panel {
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(8, 20, 30, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.browse-panel-grid {
  flex-wrap: wrap;
  align-items: flex-start;
}

.browse-panel-grid .field {
  flex: 1 1 220px;
}

.browse-panel-grid .field:not(.field-wide) {
  align-self: flex-start;
}

.browse-panel-grid .field-wide {
  flex-basis: 100%;
}

.browse-sort-button.active {
  color: #042420;
  background: linear-gradient(135deg, var(--teal), var(--teal-strong));
}

.browse-panel-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.studio-card {
  display: grid;
  gap: 10px;
  padding: 22px;
  border-radius: 22px;
  background: var(--bg-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease;
}

.studio-card:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 226, 209, 0.4);
}

.studio-card-disabled {
  opacity: 0.82;
  cursor: default;
}

.studio-card-disabled:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.08);
}

.studio-card h3,
.studio-card p {
  margin: 0;
}

.section-heading {
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.auth-grid,
.form-columns {
  flex-wrap: wrap;
}

.stack-form {
  flex: 1;
  min-width: 280px;
}

.stack-form,
.server-form {
  display: grid;
  gap: 12px;
}

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

.field-wide {
  flex: 1 1 100%;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 13px 14px;
  background: rgba(4, 12, 18, 0.68);
  color: var(--text);
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(125, 226, 209, 0.35);
  border-color: transparent;
}

.button {
  appearance: none;
  border: none;
  border-radius: 16px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.button-primary {
  color: #042420;
  background: linear-gradient(135deg, var(--teal), var(--teal-strong));
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.button-ghost {
  color: var(--muted);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.button-danger {
  color: #fff4f4;
  background: linear-gradient(135deg, #d95b5b, #b93838);
}

.leaderboard-list,
.server-list {
  flex-direction: column;
}

.server-table-head,
.server-row-grid,
.server-name-cell,
.server-primary-strip,
.server-actions-cell {
  display: flex;
}

.leaderboard-card img,
.server-banner {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.server-card {
  display: grid;
  gap: 14px;
}

.featured-server-link {
  display: grid;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.featured-card h3,
.featured-card p {
  margin: 0;
}

.server-table {
  gap: 12px;
}

.server-table-head {
  gap: 22px;
  padding: 0 18px 14px;
  color: var(--muted);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.server-row {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(11, 22, 30, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.server-row:hover {
  border-color: rgba(125, 226, 209, 0.18);
}

.server-row-empty {
  cursor: default;
}

.server-row-empty:hover {
  border-color: rgba(255, 255, 255, 0.06);
}

.server-table-head span:nth-child(1),
.server-rank-cell {
  flex: 0 0 72px;
}

.server-table-head span:nth-child(2),
.server-name-cell {
  flex: 0 0 200px;
}

.server-table-head span:nth-child(3),
.server-primary-cell {
  flex: 0 0 380px;
}

.server-table-head span:nth-child(4),
.server-about-cell {
  flex: 1 1 auto;
}

.server-table-head span:nth-child(5),
.server-votes-cell {
  flex: 0 0 120px;
}

.server-table-head span:nth-child(6),
.server-actions-cell {
  flex: 0 0 170px;
}

.server-row-grid {
  align-items: flex-start;
  gap: 22px;
}

.server-rank-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
}

.server-rank-badge {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 64px;
  min-height: 64px;
}

.server-rank-cell strong {
  font-size: 2rem;
  color: #dce7ea;
  line-height: 1;
}

.rank-hover-bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(6px);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(11, 22, 30, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.84rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
  box-shadow: var(--shadow);
}

.server-rank-badge:hover .rank-hover-bubble,
.server-rank-badge:focus-within .rank-hover-bubble {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.server-name-cell {
  align-items: center;
  gap: 16px;
}

.server-name-text {
  display: flex;
  align-items: center;
  min-height: 64px;
}

.server-logo-badge {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(125, 226, 209, 0.16), rgba(255, 201, 107, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

.server-logo-image {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.server-name-cell h3,
.server-about-cell p {
  margin: 0;
}

.server-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.server-primary-cell {
  display: grid;
  gap: 8px;
}

.server-row .server-banner {
  border-radius: 0;
  height: 60px;
  object-fit: cover;
}

.server-row .server-banner-generated {
  object-fit: fill;
}

.server-banner-empty {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(135deg, rgba(255, 201, 107, 0.08), rgba(255, 255, 255, 0.03));
}

.server-primary-strip {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.server-primary-strip span {
  overflow-wrap: anywhere;
}

.server-page-shell {
  display: grid;
  gap: 24px;
  padding: 28px;
}

.server-page-summary {
  display: grid;
  gap: 16px;
}

.server-page-brand,
.server-page-title-row,
.server-page-status-row,
.server-page-actions,
.server-page-lower,
.server-page-similar-head,
.server-detail-row {
  display: flex;
}

.server-page-brand,
.server-page-similar-head {
  align-items: flex-start;
  gap: 18px;
}

.server-page-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.server-page-headings {
  display: grid;
  gap: 12px;
  flex: 1;
}

.server-page-title-row {
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.server-page-owner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.server-page-title-row h1,
.server-page-copy h2,
.server-page-similar h2,
.server-page-voters h2 {
  margin: 0;
}

.server-page-title-row h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
}

.server-page-status-row {
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--muted);
}

.server-page-rankings {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.server-page-ranking-pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 201, 107, 0.12);
  border: 1px solid rgba(255, 201, 107, 0.18);
  color: #ffe2a8;
  font-size: 0.9rem;
  font-weight: 700;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.status-pill.online {
  background: rgba(88, 210, 144, 0.16);
  color: #8fe8b4;
}

.status-pill.offline {
  background: rgba(255, 140, 140, 0.14);
  color: #ffc0c0;
}

.server-page-actions {
  flex-wrap: wrap;
  gap: 0;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.server-page-action {
  flex: 1 1 180px;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  color: var(--text);
  text-decoration: none;
  background: transparent;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.server-page-action:last-child {
  border-right: none;
}

.server-page-action:hover {
  background: rgba(255, 255, 255, 0.06);
}

.server-details-table {
  border-radius: 20px;
  overflow: hidden;
  background: rgba(8, 20, 30, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.server-detail-row {
  gap: 24px;
  align-items: flex-start;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.server-detail-row:last-child {
  border-bottom: none;
}

.server-detail-label {
  flex: 0 0 190px;
  color: var(--text);
  font-weight: 500;
}

.server-detail-value {
  flex: 1;
  color: var(--muted);
}

.server-page-lower {
  align-items: flex-start;
  gap: 26px;
}

.server-page-copy,
.server-page-similar,
.server-page-voters {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 20px;
  background: rgba(8, 20, 30, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.server-page-copy {
  flex: 1.2;
}

.server-page-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  white-space: pre-wrap;
}

.server-page-sidebar {
  flex: 0 0 320px;
}

.server-page-similar-list {
  display: grid;
  gap: 14px;
}

.server-page-voters-table {
  display: grid;
  gap: 10px;
}

.server-page-voter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.server-page-voter-row span {
  color: var(--text);
  font-weight: 700;
}

.server-page-voter-row strong {
  color: var(--gold);
  font-size: 1.1rem;
}

.server-page-similar-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 140ms ease, border-color 140ms ease;
}

.server-page-similar-card:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 226, 209, 0.28);
}

.server-page-similar-logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.server-page-similar-head strong {
  display: block;
  margin-bottom: 6px;
}

.server-address-button {
  display: inline-grid;
  gap: 0;
  min-width: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.server-address-inline {
  justify-items: start;
}

.server-address-default,
.server-address-hover {
  grid-area: 1 / 1;
  transition: opacity 140ms ease;
}

.server-address-hover {
  color: var(--teal);
  opacity: 0;
}

.server-address-button:hover .server-address-default,
.server-address-button:focus-visible .server-address-default {
  opacity: 0;
}

.server-address-button:hover .server-address-hover,
.server-address-button:focus-visible .server-address-hover {
  opacity: 1;
}

.server-address-button.copy-error .server-address-default {
  opacity: 0;
}

.server-address-button.copy-error .server-address-hover {
  opacity: 1;
  color: var(--danger);
}

.server-about-cell {
  display: grid;
  gap: 8px;
  align-content: start;
}

.server-meta-tight {
  gap: 8px;
}

.pill-neutral {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.server-votes-cell {
  display: grid;
  gap: 4px;
}

.server-votes-cell strong {
  font-size: 1.15rem;
  color: var(--gold);
  line-height: 1.2;
  word-break: break-word;
}

.server-actions-cell {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.button-inline {
  padding: 8px 12px;
  border-radius: 12px;
}

.button-accent {
  color: #4d3510;
  background: linear-gradient(135deg, #f7d180, #e0aa4e);
}

.server-card-head strong {
  font-size: 1.6rem;
  color: var(--gold);
}

.server-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.95rem;
}

.server-card-actions {
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 201, 107, 0.13);
  color: #ffd999;
  font-size: 0.85rem;
}

.gamemode-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 4px 0 2px;
}

.gamemode-choice {
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gamemode-choice:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 226, 209, 0.28);
}

.gamemode-choice.selected {
  background: rgba(125, 226, 209, 0.18);
  color: #bff8ee;
  border-color: rgba(125, 226, 209, 0.42);
}

.votifier-box {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(8, 22, 30, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.checkbox-row-compact {
  justify-content: flex-start;
  gap: 14px;
  padding: 10px 2px 2px;
  color: var(--text);
  font-weight: 700;
}

.checkbox-row-compact input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--teal);
}

.info-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: help;
}

.info-tooltip-bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%) translateY(6px);
  width: min(280px, 70vw);
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(11, 22, 30, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  box-shadow: var(--shadow);
  transition: opacity 140ms ease, transform 140ms ease;
  z-index: 8;
}

.info-tooltip:hover .info-tooltip-bubble,
.info-tooltip:focus-visible .info-tooltip-bubble {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.form-message {
  min-height: 1.2em;
  margin: 0;
}

.form-message.error {
  color: var(--danger);
}

.form-message.success {
  color: var(--teal);
}

.dashboard-server {
  flex-direction: column;
  padding: 18px;
  border-radius: 20px;
  background: rgba(8, 20, 30, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
}

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

.dashboard-vote {
  margin-bottom: 8px;
}

.confirm-row {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 140, 140, 0.08);
  border: 1px solid rgba(255, 140, 140, 0.24);
}

.vote-dialog {
  border: none;
  padding: 0;
  background: transparent;
}

.vote-dialog::backdrop {
  background: rgba(2, 9, 12, 0.78);
}

.copy-popup {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 9, 12, 0.48);
  z-index: 20;
}

.copy-popup-card {
  position: relative;
  width: min(480px, 100%);
  padding: 28px 30px;
  border-radius: 22px;
  background: rgba(49, 49, 49, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  text-align: center;
}

.copy-popup-card h3 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 500;
}

.copy-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #f0f0f0;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.copy-popup-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.copy-popup-card p {
  margin: 0;
  color: #e5e5e5;
  font-size: 1.1rem;
  line-height: 1.35;
}

.delete-popup-card {
  text-align: center;
}

.delete-popup-actions {
  justify-content: center;
  margin-top: 20px;
}

.copy-popup-address {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #d5d5d5;
  text-align: left;
  overflow-wrap: anywhere;
}

.hidden {
  display: none !important;
}

.admin-sponsored-list {
  display: grid;
  gap: 16px;
}

.admin-sponsored-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(8, 20, 30, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: grab;
}

.admin-sponsored-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-sponsored-card-head h3,
.admin-sponsored-card-head p {
  margin: 0;
}

.admin-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.admin-sponsored-card-dragging {
  opacity: 0.72;
}

.admin-sponsored-card-drop-target {
  border-color: rgba(255, 201, 107, 0.55);
}

.analytics-shell {
  display: grid;
  gap: 22px;
}

.analytics-heading {
  align-items: center;
  text-align: center;
}

.analytics-stats-grid,
.analytics-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.analytics-stat-card,
.analytics-picker-card,
.analytics-chart-card {
  border-radius: 20px;
  background: rgba(8, 20, 30, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.analytics-stat-card {
  padding: 18px;
}

.analytics-stat-card strong {
  display: block;
  font-size: 2rem;
  color: var(--text);
}

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

.analytics-picker-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  color: var(--text);
  text-decoration: none;
}

.analytics-picker-card h3 {
  margin: 0;
}

.analytics-chart-card {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.analytics-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.analytics-chart-head h3,
.analytics-chart-head p {
  margin: 0;
}

.analytics-chart-head p {
  margin-top: 8px;
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.6;
}

.analytics-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.analytics-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.analytics-legend i {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  display: inline-block;
}

.analytics-chart-svg-wrap {
  width: 100%;
  overflow: hidden;
}

.analytics-chart-shell {
  position: relative;
}

.analytics-chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

.analytics-chart-hitbox {
  position: absolute;
  inset: 0;
  cursor: crosshair;
}

.analytics-chart-line {
  position: absolute;
  top: 20px;
  bottom: 48px;
  width: 1px;
  background: rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.analytics-chart-tooltip {
  position: absolute;
  width: min(320px, calc(100% - 36px));
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(34, 34, 34, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d7d7d7;
  line-height: 1.6;
  box-shadow: var(--shadow);
  pointer-events: none;
}

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

.analytics-axis-label {
  fill: var(--muted);
  font-size: 12px;
}

.auction-hero {
  position: relative;
  overflow: hidden;
  padding: 28px 30px;
  border-radius: 28px;
  background:
    radial-gradient(circle, rgba(14, 26, 35, 0.18) 1.2px, transparent 1.2px) 0 0 / 34px 34px,
    linear-gradient(135deg, #ffbf4d 0%, #f5a934 100%);
  color: #111;
  box-shadow: var(--shadow);
}

.auction-hero-copy {
  display: grid;
  gap: 10px;
}

.auction-hero .eyebrow,
.auction-subtitle {
  color: rgba(17, 17, 17, 0.78);
}

.auction-hero h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 0.95;
  color: #111;
}

.auction-subtitle {
  margin: 0;
  max-width: 54ch;
  font-size: 1.05rem;
  line-height: 1.55;
}

.auction-card {
  display: grid;
  gap: 22px;
}

.auction-rules-card {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 201, 107, 0.18);
}

.auction-rules-card h2,
.auction-section-head h2,
.auction-select-wrap h3 {
  margin: 0;
}

.auction-rules-list {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.65;
}

.auction-status-chip {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 700;
}

.auction-bid-shell,
.auction-select-wrap {
  display: grid;
  gap: 18px;
}

.auction-section-head,
.auction-footer {
  display: flex;
}

.auction-section-head {
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.auction-section-head p,
.auction-select-wrap p {
  margin: 8px 0 0;
  color: var(--muted);
}

.auction-gate {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 201, 107, 0.08);
  border: 1px solid rgba(255, 201, 107, 0.2);
}

.auction-gate-ready {
  background: rgba(125, 226, 209, 0.08);
  border-color: rgba(125, 226, 209, 0.22);
}

.auction-gate p {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}

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

.auction-slot-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.auction-slot-head strong,
.auction-slot-meta {
  margin: 0;
}

.auction-slot-last {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(125, 226, 209, 0.1);
  color: #bff8ee;
  font-size: 0.85rem;
  font-weight: 700;
}

.auction-slot-body {
  display: grid;
  gap: 10px;
}

.auction-slot-input-wrap {
  display: grid;
  grid-template-columns: 54px 1fr;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 12, 18, 0.68);
}

.auction-slot-currency {
  display: grid;
  place-items: center;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 700;
}

.auction-slot-input-wrap input {
  border: none;
  border-radius: 0;
}

.auction-slot-meta {
  color: var(--muted);
  line-height: 1.45;
}

.auction-select-wrap {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auction-footer {
  align-items: center;
  gap: 14px;
  padding-top: 14px;
}

.auction-lock-page,
.auction-lock-heading {
  display: grid;
  gap: 18px;
}

.auction-lock-card {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 38px 28px;
  border-radius: 22px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.07) 1.1px, transparent 1.1px) 0 0 / 28px 28px,
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.auction-lock-card h3,
.auction-lock-card p {
  margin: 0;
}

.auction-lock-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.5rem;
}

.auction-lock-countdown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.admin-auction-summary,
.admin-auction-bids {
  display: grid;
  gap: 16px;
}

.admin-auction-controls-card,
.admin-auction-slot-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 20px;
  background: rgba(8, 20, 30, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-auction-controls-head,
.admin-auction-control-buttons,
.admin-auction-slot-head,
.admin-auction-bid-row {
  display: flex;
}

.admin-auction-controls-head,
.admin-auction-slot-head,
.admin-auction-bid-row {
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-auction-controls-head h3,
.admin-auction-slot-head h3,
.admin-auction-slot-head p {
  margin: 0;
}

.admin-auction-control-buttons {
  flex-wrap: wrap;
  gap: 10px;
}

.admin-auction-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.admin-auction-event-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-auction-event-card input[type="datetime-local"] {
  min-height: 48px;
}

.admin-auction-event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-auction-slot-amount {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 201, 107, 0.12);
  color: #ffe2a8;
  font-weight: 700;
}

.admin-auction-slot-table {
  display: grid;
  gap: 10px;
}

.admin-auction-bid-row {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-auction-bid-row strong,
.admin-auction-bid-value strong {
  display: block;
}

.admin-auction-bid-value {
  text-align: right;
}

.site-footer {
  margin-top: 22px;
  padding: 18px 24px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
}
.policy-page h1,
.policy-page h2,
.policy-page p {
  margin: 0;
}

.site-footer a {
  color: #d9e9ed;
}

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

.site-footer-legal {
  display: grid;
  gap: 4px;
  text-align: center;
  line-height: 1.45;
}

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

.policy-page {
  display: grid;
  gap: 22px;
  padding: 28px;
}

.policy-page h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--text);
  font-weight: 500;
}

.policy-page h2 {
  color: var(--text);
  font-size: 1.25rem;
}

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

.policy-page p,
.policy-page li {
  color: var(--muted);
  line-height: 1.7;
}

.policy-page ul {
  margin: 0;
  padding-left: 20px;
}

@media (max-width: 900px) {
  .hero-grid,
  .topbar,
  .server-card-head,
  .server-card-actions,
  .server-row-grid,
  .server-page-brand,
  .server-page-title-row,
  .server-page-lower,
  .dashboard-profile-head,
  .dashboard-discord-card {
    flex-direction: column;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .server-table-head {
    display: none;
  }

  .server-name-cell,
  .server-actions-cell,
  .server-primary-strip {
    gap: 12px;
  }

  .server-page-shell {
    padding: 20px;
  }

  .server-page-actions {
    display: grid;
  }

  .server-page-action {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .server-page-action:last-child {
    border-bottom: none;
  }

  .server-detail-row {
    flex-direction: column;
    gap: 10px;
  }

  .server-detail-label,
  .server-page-sidebar {
    flex: 1 1 auto;
  }

  .vote-hero {
    grid-template-columns: 1fr;
  }

  .vote-close-button {
    justify-self: start;
  }

  .browse-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .auction-section-head,
  .auction-footer,
  .admin-auction-controls-head,
  .admin-auction-bid-row {
    flex-direction: column;
    align-items: stretch;
  }

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

  .vote-form-body {
    padding: 22px;
  }

  .vote-quick-actions {
    grid-template-columns: 1fr;
  }

  .vote-quick-action {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .vote-quick-action:last-child {
    border-bottom: none;
  }
}
