@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ==========================================================================
   MMOElite Design System & Theme Variables
   Color Palette: Green (#2cfcbd), Dark (#23272a), White (#ededed)
   ========================================================================== */
:root {
  /* Surface & Background Colors */
  --bg: #23272a;
  --bg-2: #1e2124;
  --bg-darker: #181a1d;
  --surface: #2c2f33;
  --surface-2: #34383d;
  --surface-3: #3d4248;
  --border: #383c42;
  --border-light: #464c54;
  --border-hover: #585f6a;

  /* Typography Colors */
  --text: #ededed;
  --text-bright: #ffffff;
  --muted: #9ba1a8;
  --muted-light: #c5c8cc;
  --muted-dark: #6e747d;

  /* Vibrant Green Palette & Brand Tokens */
  --green: #2cfcbd;
  --green-light: #5ffdd0;
  --green-dark: #1fb888;
  --green-bg: rgba(44, 252, 189, 0.1);
  --green-border: rgba(44, 252, 189, 0.38);
  --green-glow: 0 0 20px rgba(44, 252, 189, 0.3);

  /* Primary Tokens */
  --primary: #2cfcbd;
  --primary-light: #5ffdd0;
  --primary-dark: #1fb888;
  --primary-bg: rgba(44, 252, 189, 0.12);
  --primary-border: rgba(44, 252, 189, 0.4);
  --primary-glow: 0 0 18px rgba(44, 252, 189, 0.3);

  /* Legacy Accent Compatibility (Mapped to Green Palette) */
  --orange: #2cfcbd;
  --orange-light: #5ffdd0;
  --red: #2cfcbd;
  --red-dim: #1fb888;

  /* VIP Tokens (Emerald/Green Glow) */
  --gold: #2cfcbd;
  --gold-light: #5ffdd0;
  --gold-dark: #1fb888;
  --gold-bg: rgba(44, 252, 189, 0.1);
  --gold-border: rgba(44, 252, 189, 0.42);
  --gold-glow: 0 0 18px rgba(44, 252, 189, 0.3);

  /* Status Colors */
  --success: #2cfcbd;
  --danger: #ff5252;
  --info: #38bdf8;

  /* Geometry & Typography */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --font: var(--font-body);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-bright);
  margin-top: 0;
  line-height: 1.25;
}

a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--green-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.container {
  width: min(1320px, 96%);
  margin: 0 auto;
}

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

/* ==========================================================================
   Header & Navigation (Glassmorphic Elite Style)
   ========================================================================== */
.header-section {
  background: rgba(35, 39, 42, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.75rem 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-bright);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.brand:hover {
  color: var(--text-bright);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--green-light), var(--green-dark));
  color: #181a1d;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 2px 10px rgba(44, 252, 189, 0.35);
  flex-shrink: 0;
}

.brand-mark.brand-icon,
img.brand-mark {
  display: block;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.site-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-bright);
}
.site-name span {
  color: var(--green);
}

.main-nav {
  display: flex;
  gap: 1.25rem;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}
.main-nav a:hover {
  color: var(--text-bright);
  background: rgba(255, 255, 255, 0.05);
}

.header-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.btn-link {
  color: var(--muted-light);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius);
  transition: all 0.15s ease;
}
.btn-link:hover {
  color: var(--text-bright);
  background: rgba(255, 255, 255, 0.05);
}

.cmn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--green-light), var(--green-dark));
  color: #14171a !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.01875em;
  border: 0;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(44, 252, 189, 0.3);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.cmn-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #a0ffdf, var(--green));
  box-shadow: 0 4px 18px rgba(44, 252, 189, 0.45);
  filter: brightness(1.05);
}
.cmn-btn:active {
  transform: translateY(0);
}
.cmn-btn.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
}

.nav-toggle {
  display: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-bright);
  border-radius: var(--radius);
  padding: 0.4rem 0.65rem;
  font-size: 1.1rem;
  cursor: pointer;
}

/* ==========================================================================
   Hero Masthead & Page Titles
   ========================================================================== */


.masthead-link {
  display: block;
  width: 100%;
  line-height: 0;
  transition: filter 0.2s ease;
}
.masthead-link:hover {
  filter: brightness(1.06);
}

.masthead-image {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1881 / 150;
  object-fit: contain;
  object-position: center;
}

.logo-hero {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-bright);
}
.logo-hero span {
  color: var(--green);
}

.masthead-tag {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
}

/* ==========================================================================
   3-Column Layout (Sidebar, Main Feed, Right Rail)
   ========================================================================== */
.all-collection {
  padding: 1.5rem 0 3.5rem;
}

.layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) minmax(240px, 280px);
  gap: 1.35rem;
  align-items: start;
}

.sidebar, .right-sidebar {
  position: sticky;
  top: 5rem;
  min-width: 0;
}

.right-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
}

.game-categories, .rail-cta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.list-cats {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8125rem;
  color: var(--green);
  margin: 0.2rem 0 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.cat-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0 0 0.65rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--green-border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(44, 252, 189, 0.14), rgba(35, 39, 42, 0.95));
  color: var(--text-bright);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.cat-group-toggle:active {
  transform: scale(0.98);
}
.game-categories.is-collapsed .cat-group-toggle {
  margin-bottom: 0;
}
.cat-group-toggle:hover {
  border-color: var(--green-border);
  background: rgba(44, 252, 189, 0.1);
  color: var(--green);
}
.cat-group-toggle .categories-chevron {
  font-size: 0.75rem;
  color: var(--muted);
  transition: transform 0.2s ease, color 0.15s ease;
}
.cat-group-toggle:hover .categories-chevron {
  color: var(--green);
}
.game-categories.is-collapsed .categories-chevron {
  transform: rotate(-90deg);
}
.game-categories:not(.is-collapsed) .categories-body {
  display: flex;
  flex-direction: column;
}
.game-categories.is-collapsed .categories-body {
  display: none;
}

.cat-search-wrap {
  position: relative;
  margin-bottom: 0.75rem;
}
.cat-search-icon {
  position: absolute;
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-dark);
  font-size: 0.8rem;
  pointer-events: none;
}
.cat-search-input {
  width: 100%;
  padding: 0.5rem 0.65rem 0.5rem 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  transition: all 0.15s ease;
}
.cat-search-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(44, 252, 189, 0.15);
}
.cat-search-input::placeholder {
  color: var(--muted-dark);
}

.cat-count {
  font-size: 0.72rem;
  color: var(--muted-dark);
  font-weight: 600;
}

.cat-search-empty {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
}

.cat-list li.is-hidden {
  display: none;
}

.is-hidden {
  display: none !important;
}

.cat-list li {
  margin: 0.25rem 0;
}

.cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s ease;
}
.cat-list a:hover {
  background: rgba(44, 252, 189, 0.1);
  color: var(--text-bright);
}
.cat-list a.active {
  background: linear-gradient(90deg, rgba(44, 252, 189, 0.2), rgba(44, 252, 189, 0.08));
  border-left: 3px solid var(--green);
  color: var(--text-bright);
  font-weight: 600;
}

.cat-group {
  margin-top: 0.85rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-bright);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#middleba {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-bright);
  margin-bottom: 0.25rem;
}

#middlebb {
  color: var(--muted);
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.45;
}

/* ==========================================================================
   Featured placements
   ========================================================================== */
.lead-strip-wrap {
  text-align: center;
  margin: 0 0 1.25rem;
}

.lead-strip {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #181a1d;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  margin: 0 auto;
}

.slot-placeholder {
  display: grid;
  place-items: center;
  min-height: 90px;
  background: linear-gradient(90deg, rgba(44, 252, 189, 0.12), rgba(44, 252, 189, 0.05));
  border: 1px dashed var(--border-light);
  color: var(--green);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
}

/* Empty purchasable slots */
.slot-open {
  text-decoration: none !important;
  border: 1px dashed var(--green-border) !important;
  background: linear-gradient(135deg, rgba(44, 252, 189, 0.08), rgba(35, 39, 42, 0.95)) !important;
  transition: all 0.2s ease;
  cursor: pointer;
}
.slot-open:hover {
  border-color: var(--green) !important;
  background: linear-gradient(135deg, rgba(44, 252, 189, 0.16), rgba(35, 39, 42, 0.98)) !important;
  box-shadow: 0 0 18px rgba(44, 252, 189, 0.25);
  transform: translateY(-1px);
}
.slot-open.lead-strip,
a.lead-strip.slot-open {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 728px;
  margin: 0 auto;
  border-radius: var(--radius);
}
.slot-open.rail-art,
a.rail-card.slot-open {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 70%;
  min-height: 400px;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(44, 252, 189, 0.1), rgba(24, 26, 29, 0.98)) !important;
}
.slot-open.rail-art .slot-inner,
a.rail-card.slot-open .slot-inner {
  gap: 0.65rem;
}
.slot-open.rail-art .slot-inner i,
a.rail-card.slot-open .slot-inner i {
  font-size: 2rem;
}
.slot-open.rail-art .cmn-btn,
a.rail-card.slot-open .cmn-btn {
  margin-top: 0.5rem;
}

.rail-art {
  width: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0;
  min-height: 500px;
  height: auto;
  object-fit: cover;
  background: #181a1d;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: block;
}

.rail-art.slot-placeholder {
  display: grid;
  place-items: center;
  min-height: 500px;
  padding: 1rem;
  text-align: center;
}

.rail-card {
  display: block;
  width: 100%;
  margin-bottom: 0;
}

.slot-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.35rem;
  padding: 0.75rem 1rem;
  width: 100%;
}
.slot-inner i {
  font-size: 1.35rem;
  color: var(--green);
}
.slot-inner strong,
.slot-open .spotlight-title {
  color: var(--text-bright) !important;
  font-family: var(--font-heading);
  font-size: 1.05rem;
}
.slot-inner span {
  color: var(--muted);
  font-size: 0.8125rem;
}
.slot-open .cmn-btn {
  pointer-events: none;
}

.rail-cta p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

/* ==========================================================================
   Listing Cards (EliteTop100x Architecture)
   ========================================================================== */
.listing-card {
  display: flex;
  gap: 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.95rem 1.15rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.listing-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Gold VIP Card Glow & Border */
.listing-card.gold {
  background: linear-gradient(90deg, rgba(44, 252, 189, 0.1) 0%, rgba(44, 47, 51, 0.95) 45%, var(--surface) 100%);
  border-color: var(--green-border);
}
.listing-card.gold:hover {
  border-color: var(--green);
  box-shadow: 0 0 24px rgba(44, 252, 189, 0.38);
}

/* In-list featured cards — compact so ranks stay visible */
.listing-card.spotlight-card {
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  text-align: center;
  padding: 0.65rem 1rem;
  min-height: 0;
  background: linear-gradient(90deg, rgba(44, 252, 189, 0.1), rgba(44, 252, 189, 0.05));
  border-color: rgba(44, 252, 189, 0.3);
}
.listing-card.spotlight-card.slot-open {
  min-height: 0 !important;
  height: auto !important;
  width: 100%;
  margin: 0 0 0.85rem;
  padding: 0.65rem 1rem;
}
.listing-card.spotlight-card .slot-inner {
  padding: 0.15rem 0.35rem;
  gap: 0.3rem;
}
.listing-card.spotlight-card .spotlight-title {
  margin: 0.1rem 0 0.25rem;
  font-size: 0.95rem;
}
.listing-card.spotlight-card .site-art {
  width: min(468px, 100%);
  max-height: 60px;
  margin: 0.15rem auto;
}
.listing-card.spotlight-card .spotlight-art-link {
  display: block;
  line-height: 0;
  margin: 0.1rem 0;
}
.listing-card.spotlight-card .site-desc {
  margin: 0;
  -webkit-line-clamp: 1;
  line-clamp: 1;
}
.listing-card.spotlight-card .server-out-btn,
.listing-card.spotlight-card .cmn-btn {
  margin-top: 0.25rem !important;
}

.spotlight-kicker {
  color: var(--green);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
}

.spotlight-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-bright);
  margin: 0.25rem 0 0.5rem;
}

/* Rank Number & Actions Column */
.rank-col {
  min-width: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  position: relative;
  flex-shrink: 0;
}

.rank-num {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1;
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  color: var(--muted-light);
  position: relative;
}

.rank-crown {
  font-size: 0.6rem;
  position: absolute;
  top: 3px;
  color: var(--green-light);
}

.rank-num.gold,
.rank-num.top-1 {
  background: linear-gradient(180deg, var(--green-light) 0%, var(--green) 55%, var(--green-dark) 100%);
  border-color: var(--green);
  color: #14171a;
  box-shadow: 0 2px 12px rgba(44, 252, 189, 0.4);
}
.rank-num.gold span,
.rank-num.top-1 span {
  margin-top: 0;
}

.rank-num.top-2 {
  background: linear-gradient(180deg, #c5c8cc 0%, #9ba1a8 100%);
  border-color: #727a85;
  color: #14171a;
}
.rank-num.top-3 {
  background: linear-gradient(180deg, #8b7355 0%, #6b5344 100%);
  border-color: #525862;
  color: #ededed;
}

.details-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
  text-align: center;
}
.details-link:hover {
  color: var(--text-bright);
}

.vote-btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  min-width: 68px;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--green-light) 0%, var(--green) 55%, var(--green-dark) 100%);
  color: #14171a !important;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid var(--green);
  box-shadow: 0 2px 10px rgba(44, 252, 189, 0.35);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}
.vote-btn-pill:hover {
  background: linear-gradient(180deg, #a0ffdf 0%, var(--green-light) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(44, 252, 189, 0.45);
  color: #14171a !important;
}
.vote-btn-pill i {
  font-size: 0.75rem;
}

/* Server Card Badges & Meta */
.server-badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.server-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--muted-light);
  border: 1px solid var(--border);
}

.server-tag-pill.gold-tag {
  background: rgba(44, 252, 189, 0.15);
  color: var(--green-light);
  border-color: rgba(44, 252, 189, 0.35);
}

.server-out-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 0.35rem;
  transition: color 0.15s ease;
}
.server-out-btn:hover {
  color: var(--green);
}

/* Listing Body & Cover Art */
.listing-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.cover-wrap, .gold-cover-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.site-art {
  width: min(468px, 100%);
  height: auto;
  max-height: 60px;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #181a1d;
}

.gold-cover-img {
  border: 2px solid var(--green) !important;
  box-shadow: 0 0 12px rgba(44, 252, 189, 0.45);
}

.gold-badge {
  position: absolute;
  top: -7px;
  right: -8px;
  background: linear-gradient(135deg, var(--green-light), var(--green));
  color: #14171a;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 3px;
  z-index: 2;
}

/* Site Details & Meta */
.listing-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.site-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-bright);
  margin: 0;
  line-height: 1.3;
}
.site-title a {
  color: var(--text-bright);
}
.site-title a:hover {
  color: var(--green);
}

.site-title.gold a {
  color: var(--green-light);
}

.site-desc {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.45;
  margin: 0.25rem 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Action & Vote Stats Box */
.listing-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  min-width: 90px;
  justify-content: center;
}

.vote-stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 0.5rem 0.65rem 0.65rem;
  background: transparent;
  border: none;
  border-radius: 0;
  text-align: center;
  flex-shrink: 0;
  gap: 0.15rem;
  box-shadow: none;
}
.listing-card:hover .vote-stat-box {
  transform: none;
  background: transparent;
  border: none;
}
.listing-card.gold .vote-stat-box {
  background: transparent;
  border: none;
  box-shadow: none;
}

.vote-stat-icon {
  width: 55px;
  height: 55px;
  display: block;
  object-fit: contain;
  margin-bottom: 0.15rem;
  flex-shrink: 0;
}
.listing-card.gold .vote-stat-icon {
  filter: drop-shadow(0 0 6px rgba(44, 252, 189, 0.45));
}

.vote-count-num, .vote-count {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.85rem;
  line-height: 1;
  color: var(--green);
  letter-spacing: -0.02em;
  display: block;
  margin-top: 0.15rem;
}
.vote-count-num.gold, .vote-count.gold {
  color: var(--green-light);
  text-shadow: 0 0 16px rgba(44, 252, 189, 0.5);
}

.vote-label-sub, .vote-label-small {
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  line-height: 1.2;
  opacity: 1;
  margin: 0;
}

.vote-count-big {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--muted);
}
.vote-count-big span {
  color: var(--green);
}
.vote-count-big.gold span {
  color: var(--green-light);
}

.vote-stat-sub {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 2px;
}

.btn-vote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}
.btn-vote:hover {
  color: #14171a;
  background: linear-gradient(135deg, var(--green-light), var(--green));
  border-color: var(--green);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(44, 252, 189, 0.35);
}

/* ==========================================================================
   Pagination (EliteTop100x Gradient Pill Style)
   ========================================================================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin: 2rem 0 1rem;
  flex-wrap: wrap;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.75rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--muted-light);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.15s ease;
}

.pagination a:hover {
  color: var(--text-bright);
  background: var(--surface-2);
  border-color: var(--green);
}

.pagination .active {
  background: linear-gradient(135deg, var(--green-light), var(--green-dark));
  color: #14171a !important;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(44, 252, 189, 0.35);
}

.pagination .disabled {
  opacity: 0.4;
  pointer-events: none;
}

.pages-bar {
  margin: 2rem 0 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.875rem;
}
.pages-bar .pages-label {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
  color: var(--muted);
  margin-right: 0.25rem;
}
.pages-bar a {
  color: var(--muted-light);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius);
  transition: all 0.15s ease;
}
.pages-bar a:hover {
  color: var(--text-bright);
  background: var(--surface-2);
  border-color: var(--green);
}
.pages-bar .current {
  color: #14171a;
  background: linear-gradient(135deg, var(--green-light), var(--green-dark));
  border: 1px solid transparent;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(44, 252, 189, 0.35);
}

/* Scroll to Top Button */
.scroll-top-btn {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--green);
  background: linear-gradient(180deg, var(--green-light) 0%, var(--green) 55%, var(--green-dark) 100%);
  color: #14171a;
  font-size: 1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 18px rgba(44, 252, 189, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top-btn:hover {
  background: linear-gradient(180deg, #a0ffdf 0%, var(--green-light) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(44, 252, 189, 0.5);
}

/* ==========================================================================
   Cards, Forms & Generic Components
   ========================================================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.form-grid {
  display: grid;
  gap: 1.15rem;
}

label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-light);
  margin-bottom: 0.4rem;
}

input[type=text],
input[type=password],
input[type=url],
input[type=email],
select,
textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: all 0.15s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(44, 252, 189, 0.2);
  background: #1c1e22;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius);
  border: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.01875em;
  cursor: pointer;
  background: linear-gradient(135deg, var(--green-light), var(--green-dark));
  color: #14171a;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn:hover {
  background: linear-gradient(135deg, #a0ffdf, var(--green));
  color: #14171a;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(44, 252, 189, 0.4);
}
.btn:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(44, 252, 189, 0.1);
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover {
  background: #e02828;
  color: #fff;
}

.gold-card {
  background: linear-gradient(135deg, rgba(44, 252, 189, 0.12), rgba(35, 39, 42, 0.95));
  border: 1px solid var(--green-border);
  box-shadow: var(--green-glow);
}

.btn-gold {
  background: linear-gradient(135deg, var(--green-light), var(--green-dark));
  color: #14171a !important;
  font-family: var(--font-heading);
  font-weight: 700;
  border: none;
  box-shadow: 0 2px 10px rgba(44, 252, 189, 0.3);
}
.btn-gold:hover {
  background: linear-gradient(135deg, #a0ffdf, var(--green));
  color: #14171a !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(44, 252, 189, 0.45);
}

.page-narrow {
  width: min(720px, 96%);
  margin: 1.5rem auto 3rem;
}

/* ==========================================================================
   Server Detail & Profile Page
   ========================================================================== */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.breadcrumb-nav a {
  color: var(--muted-light);
  transition: color 0.15s ease;
}
.breadcrumb-nav a:hover {
  color: var(--green);
}
.breadcrumb-nav .sep {
  color: var(--border-light);
  font-size: 0.75rem;
}
.breadcrumb-nav .current {
  color: var(--text-bright);
  font-weight: 600;
}

.server-profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  margin-bottom: 2rem;
}
.server-profile-card.gold {
  background: linear-gradient(135deg, rgba(44, 252, 189, 0.1) 0%, rgba(35, 39, 42, 0.95) 45%, var(--surface) 100%);
  border-color: var(--green-border);
  box-shadow: var(--green-glow);
}

.server-profile-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.server-profile-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-bright);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.server-profile-title.gold {
  color: var(--green-light);
}

.server-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.server-stat-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}
.server-stat-box .stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}
.server-stat-box .stat-value {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green);
}
.server-stat-box .stat-value.gold {
  color: var(--green-light);
}

.server-actions-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   Voting Page Card & Cooldown
   ========================================================================== */
.vote-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.vote-server-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
}

.vote-info-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0 1.5rem;
  font-size: 0.875rem;
  color: var(--muted-light);
  line-height: 1.5;
  text-align: left;
}

.cooldown-alert {
  background: rgba(255, 82, 82, 0.1);
  border: 1px solid rgba(255, 82, 82, 0.35);
  border-radius: var(--radius);
  padding: 1.25rem;
  color: #ff6b81;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
}

/* ==========================================================================
   Contact Page (Exact EliteTop100x Clone)
   ========================================================================== */
.contact-container {
  max-width: 720px;
  margin: 2.5rem auto 4.5rem;
  padding: 0 1rem;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
}

.contact-header-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-bright);
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
}

.contact-subtitle {
  color: var(--muted-light);
  font-size: 0.95rem;
  margin: 0 0 1.75rem;
  line-height: 1.5;
}

.contact-form-group {
  margin-bottom: 1.25rem;
}

.contact-form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
}

.contact-form-group input,
.contact-form-group textarea {
  width: 100%;
  padding: 0.65rem 0.95rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-bright);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: all 0.15s ease;
}

.contact-form-group input:focus,
.contact-form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(44, 252, 189, 0.2);
  background: #1c1e22;
}

.contact-form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--green-light), var(--green-dark));
  color: #14171a !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 16px rgba(44, 252, 189, 0.35);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 1rem;
}
.contact-submit-btn:hover {
  background: linear-gradient(135deg, #a0ffdf, var(--green));
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(44, 252, 189, 0.45);
}
.contact-submit-btn:active {
  transform: translateY(0);
}

.contact-other-section {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.contact-other-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-bright);
  margin: 0 0 1rem;
}

.contact-other-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--muted-light);
}

.contact-other-list p {
  margin: 0;
  line-height: 1.5;
}

.contact-other-list span.bold-label {
  font-weight: 600;
  color: var(--text-bright);
  margin-right: 0.35rem;
}

.contact-other-list a {
  color: var(--text-bright);
  transition: color 0.15s ease;
}
.contact-other-list a:hover {
  color: var(--green-light);
}

/* ==========================================================================
   Footer (Elite Multi-Column Design)
   ========================================================================== */
.footer-section {
  border-top: 1px solid var(--border);
  background: #1c1e22;
  margin-top: 2.5rem;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding: 3rem 0 2rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }
}
@media (max-width: 540px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-bright);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-desc {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0.75rem 0 1.25rem;
}

.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-menu a {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.footer-menu a:hover {
  color: var(--green-light);
  transform: translateX(3px);
}

.footer-reset-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin-top: 0.75rem;
}
.footer-reset-card .reset-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.footer-reset-card .reset-val {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--green);
  font-size: 0.95rem;
  margin-top: 0.2rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  background: #181a1d;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

/* ==========================================================================
   User Dashboard Layout & Components
   ========================================================================== */
.dash-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 1.5rem;
  margin: 1.5rem auto 3.5rem;
  width: min(1200px, 96%);
  align-items: start;
}

.dash-main {
  min-width: 0;
  max-width: 100%;
}

.dash-nav {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.85rem;
  position: sticky;
  top: 5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.dash-nav a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  color: var(--muted-light);
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: var(--radius);
  margin-bottom: 0.3rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.dash-nav a:hover, .dash-nav a.active {
  background: linear-gradient(90deg, rgba(44, 252, 189, 0.2), rgba(44, 252, 189, 0.08));
  color: var(--text-bright);
  font-weight: 600;
}

.dash-nav a.logout-link {
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
  color: var(--danger);
}
.dash-nav a.logout-link:hover {
  background: rgba(255, 82, 82, 0.15);
  color: #fff;
}

.dash-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.dash-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.dash-tab-content.is-hidden {
  display: none;
}

.code-block-container {
  position: relative;
  margin: 1rem 0;
  max-width: 100%;
  box-sizing: border-box;
}

.code-block {
  background: #181a1d;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem 1rem 1rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: #ededed;
  white-space: pre-wrap;
  word-break: break-all;
  overflow-wrap: anywhere;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  overflow-x: auto;
}

.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  background: var(--surface-3);
  border: 1px solid var(--border-light);
  color: var(--text-bright);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}
.copy-btn:hover {
  background: var(--green);
  border-color: var(--green);
  color: #14171a;
}

/* ==========================================================================
   Admin Panel Layout & Data Tables
   ========================================================================== */
.panel-body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.panel-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.panel-brand-em {
  font-style: normal;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted);
  margin-left: 0.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.panel-top-nav {
  justify-content: flex-start;
  flex: 1;
}

.panel-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.25rem;
  margin: 1.25rem auto 2.5rem;
  width: min(1240px, 96%);
  align-items: start;
}

.panel-nav {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.85rem;
  height: fit-content;
  position: sticky;
  top: 5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.panel-nav-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green);
  padding: 0.35rem 0.75rem 0.65rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.panel-nav a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.85rem;
  color: var(--muted-light);
  border-radius: var(--radius);
  margin-bottom: 0.25rem;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.15s ease;
}
.panel-nav a i {
  width: 1rem;
  text-align: center;
  color: var(--muted);
}
.panel-nav a:hover {
  background: rgba(44, 252, 189, 0.12);
  color: var(--text-bright);
}
.panel-nav a:hover i {
  color: var(--green);
}

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

.panel-main h1 {
  font-family: var(--font-heading);
  color: var(--text-bright);
}

/* Panel form controls — force theme on all inputs */
.panel-main input[type="text"],
.panel-main input[type="email"],
.panel-main input[type="url"],
.panel-main input[type="password"],
.panel-main input[type="number"],
.panel-main input[type="search"],
.panel-main input[type="date"],
.panel-main input[type="datetime-local"],
.panel-main input[type="file"],
.panel-main select,
.panel-main textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2) !important;
  color: var(--text) !important;
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: all 0.15s ease;
  box-sizing: border-box;
  color-scheme: dark;
}
.panel-main input[type="file"] {
  padding: 0.45rem 0.65rem;
}
.panel-main input:focus,
.panel-main select:focus,
.panel-main textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(44, 252, 189, 0.2);
  background: #1c1e22 !important;
}
.panel-main select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%232cfcbd' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.25rem;
}
.panel-main select option {
  background: var(--surface-2);
  color: var(--text);
}
.panel-main label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-light);
  margin-bottom: 0.4rem;
}
.panel-main input[type="checkbox"] {
  width: auto;
  accent-color: var(--green);
}

/* Banner position board */
.banner-board {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  max-height: 360px;
  overflow-y: auto;
  margin-top: 0.5rem;
}
.banner-board-empty {
  padding: 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}
.banner-board-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.banner-board-row:last-child {
  border-bottom: none;
}
.banner-board-row.server {
  background: var(--surface);
}
.banner-board-row.ad {
  background: rgba(44, 252, 189, 0.06);
  border-left: 3px solid var(--green);
}
.banner-board-row.insert {
  background: transparent;
  padding: 0.35rem 0.85rem;
}
.banner-board-rank {
  min-width: 2rem;
  font-weight: 700;
  color: var(--green);
  font-family: var(--font-heading);
}
.banner-board-name {
  flex: 1;
  color: var(--text-bright);
  min-width: 0;
}
.banner-board-meta {
  font-size: 0.75rem;
  color: var(--muted);
}
.banner-pos-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px dashed var(--border-light);
  background: transparent;
  color: var(--muted-light);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.banner-pos-btn:hover,
.banner-pos-btn.is-selected {
  border-style: solid;
  border-color: var(--green);
  color: #14171a;
  background: linear-gradient(135deg, var(--green-light), var(--green));
}
.banner-pos-hint {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
.banner-pos-hint strong {
  color: var(--green);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
}
.stat .n {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green);
}
.stat .l {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.25rem;
}

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 0.75rem 0.95rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.875rem;
}

th {
  background: var(--surface-2);
  color: var(--muted-light);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tr:last-child td {
  border-bottom: none;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--muted-light);
  border: 1px solid var(--border-light);
}
.badge-ok {
  color: var(--success);
  border-color: rgba(44, 252, 189, 0.35);
  background: rgba(44, 252, 189, 0.1);
}
.badge-off {
  color: var(--danger);
  border-color: rgba(255, 82, 82, 0.35);
  background: rgba(255, 82, 82, 0.1);
}
.badge-gold {
  color: var(--green-light);
  border-color: var(--green-border);
  background: var(--green-bg);
}

.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 200px minmax(0, 1fr) minmax(200px, 240px);
    gap: 1rem;
  }
}

@media (max-width: 820px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar,
  .right-sidebar {
    position: static;
  }
  .right-sidebar {
    display: flex;
  }
  .dash-layout, .panel-layout {
    grid-template-columns: 1fr;
  }
  .dash-nav {
    position: static;
  }
}

@media (max-width: 680px) {
  .header-bar {
    justify-content: space-between;
  }
  .main-nav {
    display: none;
    width: 100%;
    order: 10;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
  }
  .main-nav.active {
    display: flex;
    flex-direction: column;
  }
  .nav-toggle {
    display: block;
  }
  
  .listing-card {
    flex-direction: column;
    gap: 0.75rem;
  }
  .rank-col {
    flex-direction: row;
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.65rem;
  }
  .vote-btn-pill {
    width: auto;
    min-width: 88px;
    margin-left: auto;
  }
  .listing-meta {
    flex-wrap: wrap;
  }
  .vote-stat-box {
    flex-direction: column;
    align-items: center;
    min-width: 64px;
  }
}

/* Form Helper Hints */
.form-hint {
  font-size: 0.78rem;
  color: var(--muted-light);
  margin-top: 0.35rem;
  line-height: 1.4;
}

.form-hint i {
  color: var(--green);
}

.dash-hint-card {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted-light);
}

.dash-hint-card.gold-active {
  background: rgba(44, 252, 189, 0.1);
  border-color: rgba(44, 252, 189, 0.35);
  color: var(--text-bright);
}

.dash-hint-card.gold-promo {
  background: rgba(44, 252, 189, 0.05);
  border-color: var(--border-light);
}


/* Partners (under categories) */
.partners-box {
  margin-top: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.partners-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.partners-list a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.partners-list a:hover {
  background: rgba(44, 252, 189, 0.1);
  border-color: var(--green-border);
  color: var(--green);
}
.partner-logo {
  max-height: 28px;
  max-width: 48px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 4px;
}
.partner-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-bright);
  line-height: 1.25;
  word-break: break-word;
}
.partners-list a:hover .partner-name {
  color: var(--green);
}
.partners-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
}
