/* =========================================================
   MC SERVER RANK - Modern Minecraft Server List Theme
   ========================================================= */

:root {
  --bg-main: #0b0f19;
  --bg-card: #131b2e;
  --bg-card-hover: #18233c;
  --bg-input: #0e1626;
  --border-color: #1e293b;
  --border-glow: rgba(16, 185, 129, 0.3);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --accent: #10b981; /* Minecraft Emerald Green */
  --accent-hover: #059669;
  --accent-glow: rgba(16, 185, 129, 0.4);

  --amber: #f59e0b; /* Minecraft Gold / XP */
  --cyan: #06b6d4; /* Minecraft Diamond Blue */
  --danger: #ef4444; /* Redstone */
  --danger-glow: rgba(239, 68, 68, 0.3);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(16, 185, 129, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(6, 182, 212, 0.04) 0%, transparent 45%);
  background-attachment: fixed;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.text-accent { color: var(--accent); }
.text-amber { color: var(--amber); }
.text-cyan { color: var(--cyan); }
.text-emerald { color: #10b981; }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text-muted); }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700 !important; }
.font-extrabold { font-weight: 800 !important; }

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }
.flex-column { flex-direction: column !important; }
.align-center { align-items: center !important; }
.align-start { align-items: flex-start !important; }
.align-end { align-items: flex-end !important; }
.justify-between { justify-content: space-between !important; }
.justify-center { justify-content: center !important; }
.justify-end { justify-content: flex-end !important; }
.justify-start { justify-content: flex-start !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }

.text-center { text-align: center !important; }
.text-start, .text-left { text-align: left !important; }
.text-end, .text-right { text-align: right !important; }

.h-100 { height: 100% !important; }
.w-100 { width: 100% !important; }
.overflow-hidden { overflow: hidden !important; }
.cursor-pointer { cursor: pointer !important; }
.rounded { border-radius: var(--radius-md) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-xl { border-radius: var(--radius-xl) !important; }
.list-unstyled { list-style: none !important; padding-left: 0 !important; margin: 0 !important; }

/* Grid System */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -0.75rem;
  margin-left: -0.75rem;
}

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

.g-1 { margin-right: -0.25rem; margin-left: -0.25rem; }
.g-1 > * { padding-right: 0.25rem; padding-left: 0.25rem; margin-bottom: 0.5rem; }
.g-2 { margin-right: -0.5rem; margin-left: -0.5rem; }
.g-2 > * { padding-right: 0.5rem; padding-left: 0.5rem; margin-bottom: 1rem; }
.g-3 { margin-right: -0.75rem; margin-left: -0.75rem; }
.g-3 > * { padding-right: 0.75rem; padding-left: 0.75rem; margin-bottom: 1.25rem; }
.g-4 { margin-right: -1rem; margin-left: -1rem; }
.g-4 > * { padding-right: 1rem; padding-left: 1rem; margin-bottom: 1.5rem; }

.col-12 { width: 100%; }
.col-8 { width: 66.666667%; }
.col-6 { width: 50%; }
.col-4 { width: 33.333333%; }
.col-3 { width: 25%; }

@media (min-width: 768px) {
  .col-md-3 { width: 25%; }
  .col-md-4 { width: 33.333333%; }
  .col-md-6 { width: 50%; }
  .col-md-8 { width: 66.666667%; }
  .col-md-12 { width: 100%; }
}

@media (min-width: 992px) {
  .col-lg-3 { width: 25%; }
  .col-lg-4 { width: 33.333333%; }
  .col-lg-5 { width: 41.666667%; }
  .col-lg-6 { width: 50%; }
  .col-lg-7 { width: 58.333333%; }
  .col-lg-8 { width: 66.666667%; }
}

/* Headings Utilities */
.h1 { font-size: 2.25rem !important; font-weight: 800; line-height: 1.2; }
.h2 { font-size: 1.75rem !important; font-weight: 700; line-height: 1.25; }
.h3 { font-size: 1.4rem !important; font-weight: 700; line-height: 1.3; }
.h4 { font-size: 1.15rem !important; font-weight: 700; line-height: 1.35; }
.h5 { font-size: 1rem !important; font-weight: 600; line-height: 1.4; }

/* Gaps */
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }
.gap-5 { gap: 2rem !important; }

/* Margins */
.m-0 { margin: 0 !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.my-1 { margin-top: 0.25rem !important; margin-bottom: 0.25rem !important; }
.my-2 { margin-top: 0.5rem !important; margin-bottom: 0.5rem !important; }
.my-3 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.my-5 { margin-top: 2.5rem !important; margin-bottom: 2.5rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 2.5rem !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 2.5rem !important; }

.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }
.ms-1 { margin-left: 0.25rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.ms-3 { margin-left: 1rem !important; }

/* Paddings */
.p-0 { padding: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 2.25rem !important; }

.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.75rem !important; padding-bottom: 1.75rem !important; }
.py-5 { padding-top: 2.75rem !important; padding-bottom: 2.75rem !important; }

.px-1 { padding-left: 0.25rem !important; padding-right: 0.25rem !important; }
.px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-5 { padding-left: 2.25rem !important; padding-right: 2.25rem !important; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =========================================================
   Navbar
   ========================================================= */
.navbar-wrapper {
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.875rem 0;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-icon:has(i) {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 1.35rem;
  box-shadow: 0 0 20px var(--accent-glow);
}

.brand-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
}

.brand-logo:hover .brand-icon-img {
  transform: scale(1.12) rotate(-3deg);
  filter: drop-shadow(0 6px 16px rgba(16, 185, 129, 0.45));
}

.brand-text {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.brand-sub {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: -3px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.925rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

/* Navigation Dropdown (Browse menu) */
.nav-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.nav-dropdown-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition);
  outline: none;
}

.nav-dropdown-btn:hover,
.nav-dropdown-btn.active,
.nav-dropdown-wrapper.open .nav-dropdown-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-dropdown-arrow {
  font-size: 0.65rem;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.7;
}

.nav-dropdown-wrapper:hover .nav-dropdown-arrow,
.nav-dropdown-wrapper.open .nav-dropdown-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  width: 320px;
  background: #131b2e;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 1px rgba(255, 255, 255, 0.12);
  padding: 0.5rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.18s;
  pointer-events: none;
}

/* Invisible bridge so moving mouse from button to menu never drops hover */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -0.5rem;
  left: 0;
  right: 0;
  height: 0.5rem;
}

.nav-dropdown-wrapper:hover .nav-dropdown-menu,
.nav-dropdown-wrapper.open .nav-dropdown-menu,
.nav-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.nav-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transform: translateX(2px);
}

.nav-dropdown-item.active {
  background: rgba(16, 185, 129, 0.12);
  border-left: 2px solid var(--accent);
}

.nav-dropdown-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav-dropdown-item:hover .nav-dropdown-icon {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.08);
}

.nav-dropdown-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  overflow: hidden;
}

.nav-dropdown-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.nav-dropdown-desc {
  font-size: 0.725rem;
  color: var(--text-muted);
  line-height: 1.25;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* User Profile Dropdown */
.user-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.user-profile-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.75rem 0.35rem 0.35rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
  outline: none;
}

.user-profile-btn:hover,
.user-profile-btn:focus-visible,
.user-profile-btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.user-name-text {
  font-size: 0.875rem;
  font-weight: 600;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-arrow {
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.user-profile-btn[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

.user-avatar {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
  flex-shrink: 0;
}

.avatar-sm {
  width: 38px;
  height: 38px;
  font-size: 1rem;
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  min-width: 230px;
  background: #131b2e;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 1px rgba(255, 255, 255, 0.1);
  padding: 0.5rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.18s;
  pointer-events: none;
}

.user-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.user-dropdown-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem 0.75rem;
}

.user-dropdown-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  overflow: hidden;
}

.user-dropdown-username {
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.1rem 0.5rem;
  border-radius: 9999px;
  width: fit-content;
}

.badge-admin {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-member {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.user-dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 0.35rem 0;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}

.user-dropdown-item:hover,
.user-dropdown-item:focus {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
}

.user-dropdown-item i {
  font-size: 1rem;
  width: 18px;
  text-align: center;
}

/* =========================================================
   Mobile Navigation Drawer & Hamburger Button
   ========================================================= */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  color: #fff;
  transition: var(--transition);
  flex-shrink: 0;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(99, 102, 241, 0.4);
}

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.mobile-menu-toggle.is-active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.is-active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Backdrop */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 15, 25, 0.75);
  backdrop-filter: blur(6px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.mobile-nav-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 86vw);
  background: #0f172a;
  border-left: 1px solid var(--border-color);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.7);
  overflow-y: auto;
}

.mobile-nav-drawer.is-open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.mobile-drawer-close {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.mobile-drawer-close:hover {
  color: #fff;
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
}

.mobile-drawer-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
}

.mobile-nav-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-section-title {
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.02);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.mobile-nav-divider {
  height: 1px;
  background: var(--border-color);
  margin: 0.25rem 0;
}

.mobile-user-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}

.mobile-user-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-user-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}

.mobile-auth-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

body.menu-open {
  overflow: hidden;
}

/* =========================================================
   Buttons & Badges
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
  transform: translateY(-1px);
}

.btn-accent {
  background: #0ea5e9;
  color: #fff;
}

.btn-outline-accent {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn-outline-accent:hover {
  background: rgba(16, 185, 129, 0.1);
  color: #fff;
}

.btn-outline-light {
  border-color: var(--border-color);
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.btn-outline-danger {
  border-color: rgba(239, 68, 68, 0.4);
  color: var(--danger);
  background: rgba(239, 68, 68, 0.06);
}

.btn-outline-danger:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: var(--danger);
  color: #fff;
}

.btn-danger {
  background: #ef4444;
  color: #fff;
}

.btn-danger:hover {
  background: #dc2626;
  color: #fff;
}

.btn-icon {
  padding: 0.5rem;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
}

.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.825rem; }
.btn-xs { padding: 0.25rem 0.6rem; font-size: 0.75rem; }
.btn-lg { padding: 0.75rem 1.6rem; font-size: 1rem; border-radius: var(--radius-md); }
.btn-xl { padding: 0.9rem 2rem; font-size: 1.1rem; border-radius: var(--radius-md); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-votifier {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-version {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.badge-players {
  background: rgba(6, 182, 212, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.badge-success { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.badge-warning { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.badge-neutral { background: rgba(255, 255, 255, 0.08); color: var(--text-muted); }
.badge-rank {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.badge-rank-first {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(217, 119, 6, 0.35));
  color: #fef08a;
  border: 1px solid #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

/* =========================================================
   Hero Section
   ========================================================= */
.hero-section {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 9999px;
  color: var(--accent);
  font-size: 0.825rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.highlight-text {
  background: linear-gradient(135deg, #34d399, #10b981, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.hero-search-form {
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
}

.search-input-group {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0.4rem 0.5rem 0.4rem 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: var(--transition);
  width: 100%;
  max-width: 100%;
}

.search-input-inner {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

.search-input-group:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 25px var(--accent-glow);
}

.search-icon {
  color: var(--text-dim);
  font-size: 1.1rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.search-input-group input {
  flex-grow: 1;
  min-width: 0;
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 1rem;
  text-overflow: ellipsis;
}

.search-submit {
  border-radius: var(--radius-md);
  padding: 0.75rem 1.6rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.search-btn-icon {
  display: none;
}

/* =========================================================
   Filter Bar
   ========================================================= */
.filters-bar-section {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.filters-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
}

.tags-carousel {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
  flex: 1 1 auto;
  min-width: 0;
}

.tags-carousel::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  padding: 0.4rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.825rem;
  font-weight: 600;
  border-radius: 9999px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.filter-pill:hover {
  background: var(--bg-card-hover);
  color: #fff;
}

.filter-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 12px var(--accent-glow);
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.form-select-sm {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  outline: none;
}

/* Explore Page Filters Box */
.explore-filters-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 2rem;
}

.filter-form-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 1rem;
  align-items: flex-end;
}

@media (max-width: 991px) {
  .filter-form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-actions-align {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .filter-form-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Server Card Component
   ========================================================= */
.server-list-section {
  padding-bottom: 4rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
}

.server-count-badge {
  font-size: 0.85rem;
  color: var(--text-dim);
  background: var(--bg-card);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
}

.server-list-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.server-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: var(--transition);
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  width: 100%;
}

.server-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.server-card.top-1 {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.05), var(--bg-card) 40%);
}

.server-card.top-2 {
  border-color: rgba(148, 163, 184, 0.3);
}

.server-card.top-3 {
  border-color: rgba(217, 119, 6, 0.3);
}

/* Card Top: Identity & Live Stats */
.server-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: 100%;
}

.server-card-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-grow: 1;
  min-width: 0;
}

.server-rank {
  min-width: 38px;
  text-align: center;
  flex-shrink: 0;
}

.rank-number {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
}

.top-1 .rank-number { color: #fbbf24; text-shadow: 0 0 10px rgba(251, 191, 36, 0.4); }
.top-2 .rank-number { color: #cbd5e1; }
.top-3 .rank-number { color: #d97706; }

.server-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.server-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.server-title-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  flex-grow: 1;
  min-width: 0;
}

.server-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.server-title a:hover {
  color: var(--accent);
}

.server-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Card Middle: 468x60 Banner & Actions */
.server-card-middle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: 100%;
  flex-wrap: wrap;
}

.server-showcase-wrap {
  width: 468px;
  max-width: 100%;
  height: 60px;
  aspect-ratio: 468 / 60;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #080d1a;
  display: block;
  flex-shrink: 0;
  margin: 0;
}

.server-showcase-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
}

.server-showcase-wrap:hover .server-showcase-img {
  filter: brightness(1.06);
  transform: scale(1.01);
}

/* Card Bottom: Description & Tags stretching across card */
.server-card-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.server-desc {
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
}

.server-tags {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  width: 100%;
}

.tag-pill {
  font-size: 0.725rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  color: #94a3b8;
  transition: var(--transition);
}

.tag-pill:hover {
  color: #fff;
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
}

/* Live Stats */
.server-stats {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.4rem 1rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.stat-box {
  text-align: center;
  min-width: 65px;
}

.stat-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.stat-number, .stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: #38bdf8;
}

.stat-votes .stat-value {
  color: #fbbf24;
}

.server-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  min-width: 0;
}

.btn-copy-ip {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.55rem 0.85rem;
  font-size: 0.85rem;
  font-family: 'JetBrains Mono', monospace;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  max-width: 220px;
  overflow: hidden;
  transition: var(--transition);
}

.btn-copy-ip .ip-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  display: inline-block;
}

.btn-copy-ip i {
  flex-shrink: 0;
}

.btn-copy-ip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-vote {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  padding: 0.55rem 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-vote:hover {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 0 15px var(--accent-glow);
}

/* =========================================================
   Pagination
   ========================================================= */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.page-indicator {
  color: var(--text-dim);
  font-size: 0.875rem;
  font-weight: 600;
}

/* =========================================================
   Server Detail Page
   ========================================================= */
.server-hero-banner,
.server-hero-backdrop {
  background-size: cover;
  background-position: center;
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2.5rem;
}

.server-hero-content {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.server-hero-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.server-hero-icon {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-lg);
  border: 3px solid var(--bg-card);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  background: #000;
}

.server-hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.25rem;
}

.server-hero-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
}

.server-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 280px;
}

.copy-ip-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(19, 27, 46, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  gap: 0.75rem;
}

.ip-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.ip-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
}

.ip-address {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bedrock-info-badge {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  text-align: center;
}

.server-detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  margin-bottom: 4rem;
}

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

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

.detail-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

@media (max-width: 991px) {
  .detail-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

@media (max-width: 520px) {
  .detail-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
}

.detail-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

.stat-card-rank {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(135deg, var(--bg-card), rgba(245, 158, 11, 0.05));
}

.stat-icon {
  font-size: 2rem;
}

.stat-title {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
}

.stat-value-lg {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 800;
}

.detail-tags-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tags-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dim);
}

.tag-pill-lg {
  font-size: 0.85rem;
  padding: 0.3rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  color: var(--text-muted);
  font-weight: 600;
}

.tag-pill-lg:hover {
  background: var(--bg-card-hover);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* =========================================================
   Content Cards & Containers
   ========================================================= */
.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.card-header-styled {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
}

.card-header-styled h2, .card-header-styled h3 {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-body-styled {
  padding: 1.5rem;
}

.server-description-content {
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.7;
}

.detail-list {
  list-style: none;
}

.detail-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
}

.detail-list li:last-child {
  border-bottom: none;
}

.detail-name {
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.detail-value {
  font-weight: 600;
}

.voters-feed {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.voter-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0;
}

.voter-head {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  image-rendering: pixelated;
}

.voter-meta {
  flex-grow: 1;
}

.voter-name {
  display: block;
  font-weight: 700;
  font-size: 0.875rem;
  font-family: 'JetBrains Mono', monospace;
}

.voter-time {
  display: block;
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* =========================================================
   Vote Page
   ========================================================= */
.vote-page-container {
  padding: 3rem 0 5rem;
}

.vote-card-box {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  box-sizing: border-box;
}

.vote-card-header {
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
}

.back-to-server-link {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.vote-server-profile {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.vote-server-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
}

.vote-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.vote-meta-stats {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.825rem;
  color: var(--text-muted);
}

.vote-form-section {
  padding: 2rem;
}

.vote-notice-badge {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.username-avatar-field {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.player-avatar-preview {
  width: 56px;
  height: 56px;
  background: var(--bg-input);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.player-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.votifier-status-info-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border-color);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
}

.votifier-info-icon {
  font-size: 1.25rem;
}

.vote-success-box {
  padding: 3rem 2rem;
  text-align: center;
  box-sizing: border-box;
  width: 100%;
}

.vote-success-icon {
  font-size: 4rem;
  color: var(--accent);
  margin-bottom: 1rem;
  text-shadow: 0 0 25px var(--accent-glow);
}

.vote-success-text {
  font-size: 1.15rem;
  color: #e2e8f0;
  max-width: 480px;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
  word-break: break-word;
}

.vote-warning-note {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  max-width: 480px;
  margin: 0 auto 1.5rem;
  word-break: break-word;
}

.vote-success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0.85rem;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.vote-success-actions .btn {
  flex: 1 1 calc(50% - 0.5rem);
  min-width: 200px;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  white-space: normal;
  line-height: 1.35;
  transition: all 0.2s ease;
}

.cooldown-active-box {
  padding: 3rem 2rem;
  text-align: center;
}

.cooldown-icon {
  font-size: 3.5rem;
  color: var(--amber);
  margin-bottom: 1rem;
}

.cooldown-timer-wrap {
  margin: 1.5rem auto;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  max-width: 320px;
}

.cooldown-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}

.cooldown-clock {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fbbf24;
}

.vote-card-footer {
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-tip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* =========================================================
   Votifier Tester Terminal & Grid
   ========================================================= */
.tester-grid {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

.protocol-toggle-group {
  display: flex;
  gap: 0.5rem;
}

.protocol-radio {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  cursor: pointer;
  color: var(--text-muted);
}

.protocol-radio:has(input:checked) {
  border-color: var(--accent);
  color: #fff;
  background: rgba(16, 185, 129, 0.1);
}

.terminal-card {
  display: flex;
  flex-direction: column;
  min-height: 480px;
  background: #070a13;
  border-color: #1e293b;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #0e1424;
  border-bottom: 1px solid var(--border-color);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-title {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.terminal-body {
  padding: 1.25rem;
  flex-grow: 1;
  overflow-y: auto;
  font-size: 0.85rem;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 380px;
}

.terminal-line {
  word-break: break-word;
}

.terminal-line.log-info { color: #94a3b8; }
.terminal-line.log-success { color: #34d399; font-weight: 600; }
.terminal-line.log-error { color: #f87171; font-weight: 600; }
.terminal-line.log-highlight { color: #38bdf8; }

.test-result-banner {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.test-result-banner.success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}

.test-result-banner.error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
}

.result-headline {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.success .result-headline { color: #34d399; }
.error .result-headline { color: #f87171; }

.result-message {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 0.25rem;
}

.result-advice {
  font-size: 0.8rem;
  color: #fbbf24;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-top: 0.4rem;
}

.troubleshoot-list {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--text-muted);
}

/* =========================================================
   Form Controls
   ========================================================= */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.form-label-lg {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  color: var(--text-main);
  font-size: 0.925rem;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
}

.form-control-lg {
  padding: 0.85rem 1rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon .input-icon-left,
.input-with-icon > i:first-child {
  position: absolute;
  left: 1rem;
  color: var(--text-dim);
  pointer-events: none;
}

.input-with-icon input {
  padding-left: 2.75rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem;
}

.form-check-styled {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.form-check-styled input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 0.2rem;
  accent-color: var(--accent);
  cursor: pointer;
}

.inline-test-box {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.inline-test-status {
  font-size: 0.85rem;
}

/* =========================================================
   Auth Pages
   ========================================================= */
.auth-page-container {
  padding: 4rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-icon-wrap {
  width: 54px;
  height: 54px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent);
  font-size: 1.5rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.auth-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.auth-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.auth-footer {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
}

/* =========================================================
   Dashboard Page
   ========================================================= */
.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.dash-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.dash-stat-icon {
  font-size: 2.2rem;
}

.dash-stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.dash-stat-val {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  display: block;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.dashboard-table th {
  background: rgba(0, 0, 0, 0.2);
  padding: 0.85rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.dashboard-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.dashboard-table td.actions-col,
.dashboard-table th.actions-col {
  text-align: right;
  white-space: nowrap;
  min-width: 140px;
  width: 1%;
}

.table-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.dashboard-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.table-server-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: #000;
  image-rendering: pixelated;
}

.voter-head-sm {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

/* =========================================================
   Alerts & Toast
   ========================================================= */
.alert {
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.alert-success { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.35); color: #34d399; }
.alert-danger { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.35); color: #f87171; }
.alert-warning { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.35); color: #fbbf24; }

.flash-container {
  margin-top: 1rem;
}

.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 9999;
}

.toast-message {
  background: #1e293b;
  color: #fff;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  animation: slide-up 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slide-up {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* =========================================================
   Footer & Common Pages
   ========================================================= */
.footer-wrapper {
  margin-top: auto;
  background: #080c14;
  border-top: 1px solid var(--border-color);
  padding: 3.5rem 0 2rem;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.75rem;
  max-width: 320px;
}

.footer-links-group h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.footer-links-group a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

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

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.65rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 9999px;
  font-size: 0.75rem;
  color: #34d399;
  font-weight: 600;
}

.pulse-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

.footer-notice {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.error-page-wrap {
  padding: 6rem 0;
  text-align: center;
}

.error-code {
  font-size: 6rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
}

/* =========================================================
   Responsive Media Queries
   ========================================================= */
@media (max-width: 1024px) {
  .nav-links,
  .nav-actions {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .navbar-container {
    gap: 1rem;
    justify-content: space-between;
  }
}

@media (max-width: 991px) {
  .server-detail-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
  .server-main-col {
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }
  .server-sidebar {
    max-width: 100%;
    min-width: 0;
  }
  .tester-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .filters-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }
  .tags-carousel {
    width: 100%;
    padding: 0.25rem 0;
    gap: 0.4rem;
  }
  .sort-controls {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }
  .sort-controls .form-select-sm {
    flex-grow: 1;
    width: 100%;
    height: 38px;
    font-size: 0.875rem;
  }
  .server-card {
    padding: 1.1rem;
    gap: 0.85rem;
  }
  .server-card-top {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .server-card-identity {
    width: 100%;
  }
  .server-stats {
    width: 100%;
    justify-content: space-around;
    padding: 0.5rem 0.75rem;
  }
  .server-card-middle {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .server-actions {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }
  .btn-copy-ip {
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;
    justify-content: space-between;
  }
  .btn-copy-ip .ip-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .btn-vote {
    flex-shrink: 0;
    white-space: nowrap;
  }
  .server-actions .btn-ghost {
    flex-shrink: 0;
  }
  .form-row-2, .form-row-3 {
    grid-template-columns: 1fr;
  }
  .dashboard-stats-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
  .server-hero-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }
  .server-hero-left {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .server-hero-actions {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 520px) {
  /* Search Bar Phone Layout */
  .search-input-group {
    flex-direction: column;
    padding: 0.5rem;
    gap: 0.5rem;
    border-radius: var(--radius-md);
  }
  .search-input-inner {
    width: 100%;
    padding: 0.35rem 0.5rem;
  }
  .search-submit {
    width: 100%;
    padding: 0.65rem 1rem;
    justify-content: center;
    border-radius: var(--radius-sm);
  }
  .search-btn-icon {
    display: inline-block;
  }

  /* Server Card Actions Phone Layout - prevents any overflow */
  .server-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    width: 100%;
  }

  .btn-copy-ip {
    grid-column: 1 / -1;
    width: 100%;
    padding: 0.65rem 0.9rem;
    justify-content: space-between;
  }

  .btn-vote {
    grid-column: 1 / 2;
    width: 100%;
    justify-content: center;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
  }

  .server-actions .btn-ghost {
    grid-column: 2 / 3;
    width: 44px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
  }
}

@media (max-width: 480px) {
  .brand-sub {
    display: none;
  }
  .brand-title {
    font-size: 1.15rem;
  }
  .brand-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
  .container {
    padding: 0 1rem;
  }
}

/* =========================================================
   Admin Panel & Promotion Styling
   ========================================================= */
.btn-admin {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.btn-admin:hover {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
  transform: translateY(-1px);
}

.admin-header {
  border-bottom: 1px solid rgba(99, 102, 241, 0.3);
  background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.8rem;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.badge-admin {
  background: rgba(99, 102, 241, 0.2);
  color: #c7d2fe;
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.user-avatar-sm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1e293b;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-avatar-sm.avatar-admin {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
}

/* Promoted Server Card Highlight */
.server-card.is-promoted {
  border: 1px solid rgba(245, 158, 11, 0.7) !important;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.08) 0%, var(--bg-card) 60%) !important;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.22);
}

.server-card.is-promoted:hover {
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.35);
  border-color: #fbbf24 !important;
}

.rank-promoted {
  font-size: 1.4rem;
  animation: float-crown 2.5s ease-in-out infinite;
}

@keyframes float-crown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.badge-promoted {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(217, 119, 6, 0.3));
  border: 1px solid rgba(245, 158, 11, 0.8);
  color: #fde68a;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.badge-promoted-sm {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
}

.row-promoted {
  background: rgba(245, 158, 11, 0.04);
}

.btn-promoted-toggle {
  background: transparent;
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.btn-promoted-toggle:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: #fbbf24;
}

.btn-promoted-toggle.active {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b0f19;
  font-weight: 700;
  border-color: #fbbf24;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.btn-promoted-toggle.active:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff;
}

.admin-quick-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.admin-tile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: var(--transition);
}

.admin-tile-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.admin-tile-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.admin-tile-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.admin-tile-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

/* CAPTCHA Anti-Bot Styling */
.captcha-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  margin-top: 0.25rem;
}

.captcha-preview {
  display: flex;
  align-items: center;
  user-select: none;
}

.captcha-preview svg {
  border-radius: var(--radius-sm);
  display: block;
}

#btn-refresh-captcha {
  height: 48px;
  padding: 0 0.85rem;
}

/* =========================================================
   Admin Modals
   ========================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 15, 25, 0.82);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1040;
}

.admin-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(460px, 92vw);
  background: #131b2e;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  z-index: 1060;
  overflow: hidden;
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { transform: translate(-50%, -46%) scale(0.96); opacity: 0; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.modal-close-btn:hover {
  color: #fff;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.2);
}

.hover-glow-sm:hover {
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  color: #fff;
}

/* =========================================================
   468x60 Server List Banner & Upload Styling
   ========================================================= */
.server-card-banner-wrap,
.server-showcase-wrap {
  margin: 0;
  max-width: 100%;
  width: 468px;
  height: 60px;
  aspect-ratio: 468 / 60;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #080d1a;
  display: block;
  flex-shrink: 0;
}

.server-card-banner,
.server-showcase-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
}

.server-card-banner-wrap:hover .server-card-banner,
.server-showcase-wrap:hover .server-showcase-img {
  filter: brightness(1.06);
  transform: scale(1.01);
}

@media (max-width: 768px) {
  .server-card-banner-wrap,
  .server-showcase-wrap {
    max-width: 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 468 / 60;
  }
  .server-card-banner,
  .server-showcase-img {
    width: 100%;
    height: auto;
    aspect-ratio: 468 / 60;
  }
}

/* Banner Method Toggle Pills */
.banner-method-toggle {
  display: inline-flex;
  background: rgba(15, 23, 42, 0.75);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  gap: 4px;
}

.banner-toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  background: transparent;
  border: none;
  font-family: inherit;
  transition: var(--transition);
  user-select: none;
}

.banner-toggle-pill:hover:not(.active) {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.banner-toggle-pill.active,
.banner-toggle-pill:has(input:checked) {
  background: var(--accent) !important;
  color: #0b0f19 !important;
  box-shadow: 0 0 12px var(--accent-glow) !important;
}

/* Accessible file input that browsers recognize as interactable */
.visually-hidden-file-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0.001 !important;
}

/* Styled File Input */
input[type="file"].form-control {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-color);
  color: var(--text-light);
  font-family: inherit;
  font-size: 0.875rem;
}

input[type="file"].form-control::file-selector-button {
  background: var(--accent);
  color: #052e16;
  border: none;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  margin-right: 0.85rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

input[type="file"].form-control::file-selector-button:hover {
  filter: brightness(1.15);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

/* File Dropzone */
.file-dropzone {
  border: 2px dashed rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.03);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.file-dropzone:hover,
.file-dropzone.dropzone-active {
  border-color: var(--accent);
  background: rgba(16, 185, 129, 0.08);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
  transform: translateY(-1px);
}

.dropzone-icon {
  font-size: 2.25rem;
  color: var(--accent);
}

.banner-preview-card {
  background: rgba(11, 15, 25, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  max-width: 500px;
}

.banner-preview-frame {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #000;
  display: inline-block;
  max-width: 100%;
}

/* Server SEO FAQ Section */
.server-faq-card {
  margin-top: 2rem;
  border: 1px solid rgba(16, 185, 129, 0.25);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(11, 15, 25, 0.95) 100%);
  border-radius: var(--radius-lg);
}

.server-faq-card .card-header-styled {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.faq-question {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.75rem 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  line-height: 1.4;
}

.faq-question i {
  font-size: 1rem;
  flex-shrink: 0;
}

.faq-answer {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.65;
  padding-left: 1.65rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer strong {
  color: #fff;
}

@media (max-width: 640px) {
  .faq-answer {
    padding-left: 0;
    margin-top: 0.5rem;
  }
}

/* =========================================================
   Sponsored & Promoted System Components
   ========================================================= */

.sponsored-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 9999px;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.15);
}

.benefit-box {
  background: rgba(19, 27, 46, 0.7);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.benefit-box:hover {
  transform: translateY(-4px);
  background: rgba(24, 35, 60, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.benefit-icon {
  font-size: 2.25rem;
  margin-bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
}

.slot-box {
  background: #0f172a;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid #334155;
  transition: var(--transition);
}

.slot-box.occupied {
  border-color: rgba(245, 158, 11, 0.7);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.1);
}

.slot-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.slot-header {
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.slot-header.occupied {
  background: rgba(245, 158, 11, 0.12);
  border-bottom-color: rgba(245, 158, 11, 0.25);
}

.slot-header.available {
  background: rgba(14, 165, 233, 0.08);
  border-bottom-color: rgba(14, 165, 233, 0.2);
}

.slot-body {
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.slot-server-icon {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  border: 2px solid #f59e0b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
}

.timer-pill {
  display: inline-block;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: #fbbf24;
  margin-top: 0.5rem;
}

.pricing-box {
  background: rgba(19, 27, 46, 0.85);
  border: 1px solid #27354f;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.pricing-box:hover {
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.pricing-box.featured {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, rgba(19, 27, 46, 0.95) 100%);
  border: 2px solid #f59e0b;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.15);
}

.pricing-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b0f19;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  padding: 3px 14px;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.pricing-amount {
  font-size: 2.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.pricing-feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  text-align: left;
}

.pricing-feature-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  line-height: 1.4;
}

.pricing-feature-list li i {
  color: var(--accent);
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* Dashboard Radio Option Cards */
.booking-option-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.35rem 1.1rem;
  border-radius: var(--radius-lg);
  border: 2px solid #27354f;
  background: #0f172a;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease-in-out;
  position: relative;
  user-select: none;
}

.booking-option-card * {
  cursor: pointer;
}

.booking-option-card:hover {
  border-color: rgba(245, 158, 11, 0.6);
  background: #141f36;
  transform: translateY(-2px);
}

.booking-option-card.active,
.booking-option-card.selected,
.booking-option-card:has(input[type="radio"]:checked) {
  border: 2px solid #f59e0b !important;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.18) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.35), inset 0 0 12px rgba(245, 158, 11, 0.08) !important;
  transform: translateY(-2px);
}

.booking-option-card .card-check-pill {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.25);
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: 9999px;
  padding: 3px 10px;
  margin: 0.4rem auto 0 auto;
}

.booking-option-card.active .card-check-pill,
.booking-option-card.selected .card-check-pill,
.booking-option-card:has(input[type="radio"]:checked) .card-check-pill {
  display: inline-flex !important;
}

.price-pulse {
  animation: pulseHighlight 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pulseHighlight {
  0% { transform: scale(1); color: #fbbf24; }
  50% { transform: scale(1.12); color: #ffffff; text-shadow: 0 0 14px #f59e0b; }
  100% { transform: scale(1); color: #fbbf24; }
}

.receipt-summary-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.receipt-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
}

.receipt-line:last-child {
  border-bottom: none;
}

.receipt-total {
  padding-top: 1rem;
  margin-top: 0.5rem;
  border-top: 2px dashed rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==========================================================================
   OFFICIAL BLOG & GUIDES STYLING
   ========================================================================== */

.blog-page-container {
  padding-bottom: 4rem;
}

/* Hero Section */
.blog-hero-section {
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15) 0%, rgba(15, 23, 42, 0.98) 70%);
  border-bottom: 1px solid var(--border-color);
  padding: 3.5rem 0 2.5rem;
  text-align: center;
  position: relative;
}

.blog-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  color: var(--accent);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.blog-hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 0.75rem;
}

.blog-hero-subtitle {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Search Form */
.blog-search-form {
  max-width: 580px;
  margin: 1.5rem auto 0 auto;
}

.blog-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  padding: 4px 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

.blog-search-input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.3);
}

.blog-search-input-wrap .search-icon {
  position: absolute;
  left: 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
}

.blog-search-input {
  border: none !important;
  background: transparent !important;
  color: #fff !important;
  padding: 0.6rem 3rem 0.6rem 2.8rem !important;
  font-size: 0.95rem !important;
  box-shadow: none !important;
  width: 100%;
}

.blog-search-input::placeholder {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.search-clear-btn {
  position: absolute;
  right: 90px;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-clear-btn:hover {
  color: #fff;
}

.search-submit-btn {
  border-radius: 9999px !important;
  padding: 0.45rem 1.25rem !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  flex-shrink: 0;
}

/* Category Filter Pills */
.blog-categories-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.category-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  padding: 0.35rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.category-pill:hover {
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

.category-pill.active {
  background: linear-gradient(135deg, var(--accent) 0%, #4f46e5 100%);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.35);
}

.pill-count {
  font-size: 0.72rem;
  opacity: 0.75;
  margin-left: 5px;
  background: rgba(0, 0, 0, 0.25);
  padding: 1px 6px;
  border-radius: 9999px;
}

/* Featured Article Card */
.featured-post-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.featured-post-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.featured-post-image-link {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: block;
}

.featured-post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.featured-post-card:hover .featured-post-image {
  transform: scale(1.04);
}

.featured-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15, 23, 42, 0.8) 100%);
}

.featured-post-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-post-title {
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0.5rem 0 0.85rem;
}

.featured-post-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.featured-post-title a:hover {
  color: var(--accent);
}

.featured-post-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

/* Blog Grid & Cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.75rem;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.blog-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.blog-card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1e293b;
  display: block;
}

.blog-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.blog-card:hover .blog-card-image {
  transform: scale(1.05);
}

.blog-card-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(6px);
  color: var(--accent);
  border: 1px solid rgba(99, 102, 241, 0.35);
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.blog-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 0.65rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card-title a:hover {
  color: var(--accent);
}

.blog-card-excerpt {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-read-link {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.blog-read-link:hover {
  color: #818cf8;
  text-decoration: underline;
}

/* Post Author Chip */
.post-author-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.author-avatar-xs {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #4f46e5 100%);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-name-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Reader Page Styling */
.blog-reader-page {
  padding-bottom: 4rem;
}

.blog-breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.breadcrumb-item a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
  color: var(--accent);
}

.breadcrumb-item.active {
  color: var(--text-primary);
  font-weight: 500;
  max-width: 340px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.breadcrumb-separator {
  color: var(--text-muted);
  opacity: 0.4;
}

.blog-post-header {
  margin-bottom: 1.75rem;
}

.blog-post-title {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0.5rem 0 1rem;
  color: #fff;
  letter-spacing: -0.5px;
}

.blog-post-lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.blog-post-byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.byline-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar-sm {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #4f46e5 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.byline-info {
  display: flex;
  flex-direction: column;
}

.byline-author {
  font-weight: 600;
  color: #fff;
  font-size: 0.95rem;
}

.byline-role {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.byline-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.byline-sep {
  opacity: 0.4;
}

.blog-post-cover-wrap {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  max-height: 460px;
  background: #0f172a;
  border: 1px solid var(--border-color);
}

.blog-post-cover-image {
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: cover;
  display: block;
}

/* Reader Layout Grid */
.blog-layout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}

.blog-prose-card {
  padding: 2.2rem !important;
}

/* Semantic Markdown Prose Typography */
.blog-prose {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #e2e8f0;
}

.blog-prose p {
  margin-bottom: 1.4rem;
}

.blog-prose h1,
.blog-prose h2,
.blog-prose h3,
.blog-prose h4 {
  color: #fff;
  font-weight: 700;
  margin-top: 2.2rem;
  margin-bottom: 0.85rem;
  line-height: 1.35;
}

.blog-prose h2 {
  font-size: 1.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.5rem;
}

.blog-prose h3 {
  font-size: 1.3rem;
  color: #f1f5f9;
}

.blog-prose h4 {
  font-size: 1.1rem;
  color: #cbd5e1;
}

.blog-prose ul,
.blog-prose ol {
  margin-bottom: 1.4rem;
  padding-left: 1.6rem;
}

.blog-prose li {
  margin-bottom: 0.45rem;
}

.blog-prose blockquote {
  border-left: 4px solid var(--accent);
  background: rgba(99, 102, 241, 0.08);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: #cbd5e1;
}

.blog-prose blockquote p:last-child {
  margin-bottom: 0;
}

.blog-prose pre {
  background: #0b1120;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.blog-prose pre code {
  background: transparent;
  padding: 0;
  border: none;
  color: #38bdf8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.blog-prose p code,
.blog-prose li code {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
  color: #38bdf8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.blog-prose hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 2.5rem 0;
}

.blog-prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-prose a:hover {
  color: #818cf8;
}

.blog-prose strong {
  color: #fff;
  font-weight: 700;
}

.blog-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}

.blog-prose th,
.blog-prose td {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.blog-prose th {
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600;
  color: #fff;
}

.blog-prose tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

/* Social Share Bar */
.blog-share-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.share-buttons-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-share {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.share-twitter:hover {
  background: #000;
  color: #fff;
  border-color: #333;
}

.share-reddit:hover {
  background: #ff4500;
  color: #fff;
  border-color: #ff4500;
}

.share-copy:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Author Biography Card */
.blog-author-bio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.author-avatar-md {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #4f46e5 100%);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Sidebar Widgets */
.sidebar-card {
  padding: 1.5rem;
}

.sidebar-cta-icon {
  font-size: 2.2rem;
}

.sidebar-widget-title {
  font-size: 1rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

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

.sidebar-category-list li {
  margin-bottom: 0.6rem;
}

.sidebar-category-list li a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: block;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
}

.sidebar-category-list li a:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent);
  padding-left: 0.85rem;
}

/* Markdown Help Box in Admin Form */
.markdown-help-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
}

.admin-thumb-img {
  width: 50px;
  height: 35px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Overrides */
@media (max-width: 992px) {
  .blog-layout-grid {
    grid-template-columns: 1fr;
  }
  .featured-post-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .blog-hero-title {
    font-size: 1.9rem;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-post-title {
    font-size: 1.7rem;
  }
  .blog-prose-card {
    padding: 1.25rem !important;
  }
  .blog-author-bio-card {
    flex-direction: column;
    text-align: center;
  }
}

/* Smooth Scrolling for In-Page Anchor Navigation */
html {
  scroll-behavior: smooth;
}

/* Heading Anchor Links (Google Sitelinks & Deep Linking) */
.heading-anchor {
  margin-left: 8px;
  opacity: 0;
  color: var(--accent);
  text-decoration: none !important;
  font-weight: 500;
  font-size: 0.8em;
  transition: opacity 0.2s ease, color 0.2s ease;
  vertical-align: middle;
}

h1:hover .heading-anchor,
h2:hover .heading-anchor,
h3:hover .heading-anchor,
h4:hover .heading-anchor {
  opacity: 0.75;
}

.heading-anchor:hover {
  opacity: 1 !important;
  color: #818cf8;
}

/* Table of Contents (TOC) Sidebar Widget */
.blog-toc-card {
  position: sticky;
  top: 85px;
  z-index: 10;
}

.blog-toc-nav {
  max-height: 380px;
  overflow-y: auto;
}

.blog-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid rgba(255, 255, 255, 0.08);
}

.toc-item {
  margin-bottom: 0.35rem;
}

.toc-item.toc-level-2 {
  font-size: 0.88rem;
  font-weight: 600;
}

.toc-item.toc-level-3 {
  padding-left: 0.75rem;
  font-size: 0.82rem;
  font-weight: 400;
}

.toc-link {
  color: var(--text-secondary);
  text-decoration: none;
  display: block;
  padding: 0.2rem 0 0.2rem 0.6rem;
  border-left: 2px solid transparent;
  margin-left: -2px;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.toc-link:hover {
  color: var(--accent);
  border-left-color: var(--accent);
}

/* RSS Feed Badge in Hero */
.blog-rss-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.blog-rss-badge:hover {
  background: rgba(245, 158, 11, 0.22);
  color: #fef08a;
  transform: translateY(-1px);
}

/* =========================================================
   Player Reviews & 5-Star Rating System
   ========================================================= */
.badge-rating-hero {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  transition: var(--transition);
  text-decoration: none;
}

.badge-rating-hero:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fef08a;
  transform: translateY(-1px);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-verified {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-owner-reply {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
}

.hover-underline:hover {
  text-decoration: underline;
}

/* Reviews Summary Overview */
.review-overview-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.75rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  align-items: center;
}

@media (max-width: 768px) {
  .review-overview-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.25rem;
  }
}

.rating-big-score-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-right: 1.5rem;
  border-right: 1px solid var(--border-color);
}

@media (max-width: 768px) {
  .rating-big-score-box {
    padding-right: 0;
    padding-bottom: 1.25rem;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
}

.rating-big-number {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: #fbbf24;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.05em;
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.35);
}

.rating-big-stars {
  font-size: 1.2rem;
  margin: 0.4rem 0 0.25rem;
  display: flex;
  gap: 0.2rem;
}

.rating-big-count {
  font-size: 0.8rem;
  line-height: 1.3;
}

/* 5-Star Distribution Bars */
.rating-distribution-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.825rem;
}

.rating-bar-label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 40px;
  font-weight: 600;
  color: var(--text-muted);
}

.rating-bar-track {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.rating-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border-radius: 9999px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.rating-bar-count {
  min-width: 65px;
  text-align: right;
  font-size: 0.75rem;
}

/* Write / Edit Review Form Card */
.write-review-card {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.35rem;
}

/* Interactive Star Picker (Pure CSS RTL Hover & Active) */
.star-picker-group {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 0.35rem;
  align-items: center;
}

.star-picker-group input[type="radio"] {
  display: none;
}

.star-picker-group label {
  font-size: 1.6rem;
  color: #475569; /* Slate 600 unselected */
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease;
  line-height: 1;
  padding: 0 0.1rem;
}

.star-picker-group label:hover {
  transform: scale(1.2);
}

/* Hover effect: highlight hovered star and all stars to its left */
.star-picker-group label:hover,
.star-picker-group label:hover ~ label {
  color: #fbbf24 !important;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
}

/* Checked state: highlight selected star and all stars to its left */
.star-picker-group input[type="radio"]:checked ~ label {
  color: #f59e0b;
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}

.star-rating-hint {
  display: inline-block;
  margin-left: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  vertical-align: middle;
}

/* Review Login CTA */
.review-login-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(245, 158, 11, 0.05);
  border: 1px dashed rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
}

/* Reviews Feed */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-card {
  background: rgba(19, 27, 46, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: var(--transition);
}

.review-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(19, 27, 46, 0.9);
}

.reviewer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  image-rendering: pixelated;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.reviewer-username {
  font-size: 0.95rem;
}

.review-stars {
  display: flex;
  gap: 0.15rem;
}

.review-comment-body {
  color: #cbd5e1;
  font-size: 0.925rem;
  line-height: 1.6;
  white-space: pre-line;
}

/* Server Owner Reply Card */
.owner-reply-card {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-left: 3px solid #10b981;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.85rem 1rem;
}

.owner-reply-text {
  color: #e2e8f0;
  line-height: 1.55;
  white-space: pre-line;
}

.owner-reply-details summary {
  list-style: none;
  cursor: pointer;
}

.owner-reply-details summary::-webkit-details-marker {
  display: none;
}

/* Empty Reviews State */
.empty-reviews-state {
  text-align: center;
  padding: 2.5rem 1rem;
  background: rgba(15, 23, 42, 0.3);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
}

.empty-icon {
  opacity: 0.8;
}

/* =========================================================
   Explore & Advanced Facet Filtering System
   ========================================================= */

.explore-section {
  padding: 1.5rem 0 3.5rem;
}

.explore-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 1.75rem;
  align-items: start;
}

/* Facet Sidebar */
.facet-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  position: sticky;
  top: 85px;
  max-height: calc(100vh - 105px);
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}

.facet-sidebar::-webkit-scrollbar {
  width: 5px;
}
.facet-sidebar::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
.facet-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.facet-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.facet-group {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.facet-group:last-of-type {
  border-bottom: none;
  margin-bottom: 0.5rem;
  padding-bottom: 0;
}

.facet-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 0.6rem;
}

.facet-title i {
  color: var(--accent);
  font-size: 0.825rem;
}

/* Platform Selector Toggle */
.platform-toggle-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.platform-toggle-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.65rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}

.platform-toggle-opt input[type="radio"] {
  display: none;
}

.platform-toggle-opt:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
}

.platform-toggle-opt.active {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.45);
  color: #34d399;
  font-weight: 600;
}

.platform-toggle-opt.active .facet-badge {
  background: rgba(16, 185, 129, 0.25);
  color: #fff;
}

/* Facet Badge Counter */
.facet-badge {
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  min-width: 20px;
  text-align: center;
}

/* Gamemode Chips Scroll */
.facet-chips-scroll {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}

.facet-chips-scroll::-webkit-scrollbar {
  width: 4px;
}
.facet-chips-scroll::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.facet-chip-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.8rem;
  cursor: pointer;
  color: #cbd5e1;
  transition: var(--transition);
}

.facet-chip-item input[type="radio"] {
  display: none;
}

.facet-chip-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.facet-chip-item.active {
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.45);
  color: #38bdf8;
  font-weight: 600;
}

.facet-chip-item.active .facet-badge {
  background: rgba(6, 182, 212, 0.25);
  color: #fff;
}

/* Facet Checkbox */
.facet-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  margin-bottom: 0;
}

.facet-checkbox-label:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
}

.facet-checkbox-label input[type="checkbox"] {
  accent-color: var(--accent);
  width: 14px;
  height: 14px;
}

/* Active Filter Chips Bar */
.active-filters-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(19, 27, 46, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

.active-filters-label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 0.25rem;
}

.active-chips-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #34d399;
  transition: var(--transition);
}

.filter-chip:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.filter-chip i {
  font-size: 0.7rem;
}

.clear-all-chip {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: underline;
  padding: 0.2rem 0.5rem;
  transition: var(--transition);
}

.clear-all-chip:hover {
  color: var(--danger);
}

/* Results Header & Sort Controls */
.results-header {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sort-select-wrap select {
  min-width: 170px;
  background-color: var(--bg-card);
  border-color: var(--border-color);
}

/* Server Card Badges */
.badge-bedrock {
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-rating-card {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  transition: var(--transition);
}

.badge-rating-card:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fef08a;
}

.badge-country {
  background: rgba(148, 163, 184, 0.1);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

/* Responsive Drawer for Facet Sidebar (Mobile / Tablet) */
@media (max-width: 991px) {
  .explore-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .facet-sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    z-index: 1050;
    border-radius: 0;
    padding: 1.5rem;
    background: #0b0f19;
    border: none;
    overflow-y: auto;
  }

  .facet-sidebar.drawer-open {
    display: block;
    animation: drawerSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes drawerSlideDown {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .facet-sidebar-header {
    display: flex !important;
  }
}

/* =========================================================
   LIVE MINECRAFT SERVER TERMINAL & MOTD DISPLAY
   ========================================================= */

.mc-terminal-card {
  background: #0f1626;
  border: 1px solid #1e293b;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.mc-terminal-card:hover {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45), 0 0 20px rgba(16, 185, 129, 0.1);
}

.mc-terminal-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mc-terminal-status-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mc-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.mc-status-online {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.mc-status-offline {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.live-dot-pulsing {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pingPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  flex-shrink: 0;
}

.mc-dot-offline {
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes pingPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.mc-ping-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(14, 22, 38, 0.8);
  border: 1px solid #1e293b;
  font-size: 0.75rem;
  color: #94a3b8;
  flex-shrink: 0;
}

.mc-signal-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
  flex-shrink: 0;
}

.mc-signal-bars .bar {
  width: 2.5px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 1px;
}

.mc-signal-bars .bar.bar-1 { height: 3px; }
.mc-signal-bars .bar.bar-2 { height: 5px; }
.mc-signal-bars .bar.bar-3 { height: 7px; }
.mc-signal-bars .bar.bar-4 { height: 9.5px; }
.mc-signal-bars .bar.bar-5 { height: 12px; }

.mc-signal-bars .bar.active {
  background: #10b981;
}

.mc-signal-bars.latency-medium .bar.active {
  background: #f59e0b;
}

.mc-signal-bars.latency-slow .bar.active {
  background: #ef4444;
}

.mc-proto-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-size: 0.75rem;
  color: #38bdf8;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mc-terminal-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.mc-terminal-body {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.mc-terminal-icon-wrap {
  flex-shrink: 0;
}

.mc-server-icon {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  object-fit: cover;
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  display: block;
}

.mc-terminal-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mc-terminal-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.mc-server-title-text {
  font-size: 1.15rem;
  color: #f8fafc;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.mc-terminal-players-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(14, 22, 38, 0.9);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.mc-live-count {
  color: #34d399;
}

.mc-motd-display {
  background: #090d16;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.92rem;
  line-height: 1.45;
  letter-spacing: 0.2px;
  min-height: 52px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.65);
  word-break: break-word;
  white-space: normal;
  overflow: hidden;
}

.mc-motd-line {
  min-height: 1.4em;
  display: block;
}

.mc-motd-span {
  text-shadow: 1.5px 1.5px 0px rgba(0, 0, 0, 0.9);
}

.mc-obfuscated {
  animation: mcObfuscate 0.15s infinite;
}

@keyframes mcObfuscate {
  0% { opacity: 0.8; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}

.mc-terminal-footer-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: #64748b;
  min-width: 0;
  width: 100%;
}

.mc-meta-item {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mc-meta-divider {
  opacity: 0.4;
}

/* =========================================================
   24-HOUR PLAYER ACTIVITY & UPTIME GRAPH
   ========================================================= */

.player-graph-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.graph-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

@media (max-width: 991px) {
  .graph-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

@media (max-width: 576px) {
  .graph-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
}

@media (max-width: 360px) {
  .graph-stats-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

.graph-stat-pill {
  background: rgba(14, 22, 38, 0.7);
  border: 1px solid #1e293b;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: var(--transition);
}

.graph-stat-pill:hover {
  background: rgba(14, 22, 38, 0.95);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.stat-pill-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.stat-pill-info {
  display: flex;
  flex-direction: column;
}

.stat-pill-label {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 2px;
  white-space: nowrap;
}

.stat-pill-value {
  font-size: 1.2rem;
  line-height: 1.2;
}

.player-chart-wrapper {
  position: relative;
  height: 260px;
  width: 100%;
  background: rgba(9, 13, 22, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 0.75rem;
}

.player-chart-wrapper canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.player-chart-footer {
  padding-top: 0.4rem;
}

/* Button Pulse effect on Live Ping */
.pulse-btn:hover {
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

/* =========================================================
   MOBILE RESPONSIVENESS OVERRIDES FOR SERVER DETAIL PAGE
   ========================================================= */

@media (max-width: 768px) {
  .server-hero-backdrop {
    padding: 2.25rem 0 1.75rem;
    margin-bottom: 1.5rem;
  }

  .server-hero-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }

  .server-hero-left {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
  }

  .server-hero-meta {
    width: 100%;
    min-width: 0;
  }

  .server-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    width: 100%;
  }

  .server-hero-title {
    font-size: clamp(1.4rem, 6vw, 2rem);
    text-align: center;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .server-hero-subtitle {
    font-size: clamp(0.85rem, 3.2vw, 0.95rem);
    text-align: center;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
  }

  .server-hero-actions {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .copy-ip-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .vote-form-inline {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .vote-form-inline .input-with-icon,
  .vote-form-inline button {
    width: 100%;
  }

  .review-overview-grid {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
    gap: 1.25rem;
    padding: 1.15rem 0.85rem;
  }

  .rating-big-score-box {
    padding-right: 0;
    padding-bottom: 1.25rem;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
  }

  .rating-big-number {
    font-size: clamp(2.5rem, 8vw, 3.25rem);
  }

  .rating-distribution-box {
    width: 100%;
    min-width: 0;
  }

  .rating-bar-row {
    width: 100%;
    min-width: 0;
    gap: 0.5rem;
    font-size: 0.78rem;
  }

  .rating-bar-label {
    min-width: 34px;
    font-size: 0.75rem;
  }

  .rating-bar-track {
    flex: 1 1 auto;
    min-width: 40px;
  }

  .rating-bar-count {
    min-width: 50px;
    font-size: 0.72rem;
  }

  .write-review-card {
    padding: 1rem 0.85rem;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .review-login-cta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 1rem 0.85rem;
    gap: 0.85rem;
  }

  .review-login-cta .d-flex {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 0.5rem;
  }

  .review-login-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .review-card {
    padding: 1rem 0.85rem;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .review-card-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
  }

  .reviewer-meta-wrap {
    width: 100%;
    min-width: 0;
  }

  .reviewer-info {
    width: 100%;
    min-width: 0;
  }

  .reviewer-username {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .review-comment-body {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .owner-reply-card {
    width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    padding: 0.75rem;
  }

  .owner-reply-text {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .faq-question {
    align-items: flex-start;
    font-size: 0.95rem;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .faq-answer {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }

  .content-card {
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
  }

  .card-header-styled {
    padding: 1rem 0.85rem;
  }

  .card-body-styled {
    padding: 1rem 0.85rem;
  }

  /* Live MOTD Terminal Mobile Refinements */
  .mc-terminal-card {
    padding: 0.85rem;
    border-radius: var(--radius-md);
  }

  .mc-terminal-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .mc-terminal-status-group {
    justify-content: flex-start;
    gap: 0.35rem;
    width: 100%;
  }

  .mc-terminal-actions {
    width: 100%;
  }

  #refreshPingBtn {
    width: 100%;
    justify-content: center;
    padding: 0.4rem;
  }

  .mc-terminal-body {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .mc-terminal-icon-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .mc-server-icon {
    width: 48px;
    height: 48px;
    border-radius: 6px;
  }

  .mc-terminal-title-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .mc-server-title-text {
    font-size: 1.05rem;
  }

  .mc-motd-display {
    padding: 0.6rem 0.75rem;
    font-size: clamp(0.72rem, 3.1vw, 0.85rem);
    line-height: 1.4;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mc-motd-line,
  .mc-motd-span {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .mc-terminal-footer-meta {
    font-size: 0.7rem;
    gap: 0.3rem;
  }

  /* 24h Player Graph Mobile Refinements */
  .player-graph-card {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }

  .player-chart-wrapper {
    height: 190px;
    padding: 0.4rem;
    overflow: hidden;
    max-width: 100%;
    min-width: 0;
  }

  .player-chart-wrapper canvas {
    max-width: 100% !important;
  }

  .graph-stat-pill {
    padding: 0.65rem 0.75rem;
    gap: 0.65rem;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
  }

  .stat-pill-icon {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }

  .stat-pill-info {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .stat-pill-label {
    font-size: 0.7rem;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: break-word;
  }

  .stat-pill-value {
    font-size: 1.1rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .player-chart-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    font-size: 0.7rem;
  }

  /* Star Rating Picker on Mobile */
  .star-rating-picker {
    align-items: flex-start;
  }

  .star-picker-group label {
    font-size: 1.4rem;
  }

  .star-rating-hint {
    margin-left: 0;
    margin-top: 0.25rem;
    font-size: 0.78rem;
  }

  /* Detail Stats Bar Card */
  .detail-stat-card {
    padding: 0.75rem 0.65rem;
    gap: 0.65rem;
  }

  .detail-stat-card .stat-icon {
    font-size: 1.35rem;
  }

  .detail-stat-card .stat-title {
    font-size: 0.68rem;
  }

  .detail-stat-card .stat-value-lg {
    font-size: 1.15rem;
  }

  /* Sidebar details */
  .detail-list li {
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.6rem 0;
  }

  .detail-list li .detail-name {
    font-size: 0.82rem;
  }

  .detail-list li .detail-value {
    font-size: 0.82rem;
    text-align: right;
  }
}

@media (max-width: 400px) {
  .container {
    padding: 0 0.75rem;
  }

  .server-hero-icon {
    width: 68px;
    height: 68px;
  }

  .server-hero-title {
    font-size: 1.3rem;
  }

  .graph-stats-row {
    grid-template-columns: 1fr;
  }

  .detail-stats-bar {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Leaderboard & Top Voter Monthly Rankings
   ========================================================= */
.leaderboard-page-wrap {
  min-height: 80vh;
}

.leaderboard-hero {
  background: radial-gradient(circle at 50% 10%, rgba(14, 165, 233, 0.12) 0%, rgba(15, 23, 42, 0.98) 75%),
              linear-gradient(180deg, #0b1120 0%, #0f172a 100%);
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.leaderboard-hero-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2.5rem;
}

.leaderboard-hero-content {
  flex: 1 1 auto;
  max-width: 650px;
}

.leaderboard-title {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--text-light);
  line-height: 1.2;
  margin: 0.5rem 0 0.75rem;
}

.leaderboard-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* Monthly Reset Countdown Card */
.monthly-reset-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(245, 158, 11, 0.35);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 1.35rem 1.5rem;
  min-width: 320px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 20px rgba(245, 158, 11, 0.08);
}

.reset-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.reset-icon {
  width: 38px;
  height: 38px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.reset-card-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-light);
  display: block;
}

.reset-card-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.reset-countdown-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.75rem;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
}

.countdown-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fbbf24;
  line-height: 1.1;
}

.countdown-lbl {
  font-size: 0.62rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-top: 2px;
}

.countdown-sep {
  color: #64748b;
  font-weight: 700;
  font-size: 1.2rem;
  margin-top: -6px;
}

.reset-card-footer {
  color: var(--text-muted);
}

/* 4 Metrics Ribbon */
.leaderboard-stats-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.lb-stat-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.85rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.lb-stat-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.lb-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.lb-stat-info {
  min-width: 0;
  flex: 1 1 auto;
}

.lb-stat-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.lb-stat-val {
  font-size: 1.25rem;
  line-height: 1.2;
  display: block;
}

/* Leaderboard Controls Card */
.leaderboard-controls-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1rem 1.25rem;
}

.leaderboard-timeframe-tabs {
  display: flex;
  gap: 0.5rem;
}

.lb-tab {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.lb-tab:hover {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.08);
}

.lb-tab.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.35);
}

.search-ign-wrap {
  position: relative;
}

.search-ign-wrap input {
  padding-right: 2rem;
}

.clear-search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.clear-search-btn:hover {
  color: var(--text-light);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.35);
  color: #bae6fd;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.filter-chip a {
  color: #94a3b8;
  margin-left: 2px;
}

.filter-chip a:hover {
  color: #ef4444;
}

.clear-all-chip {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: underline;
  margin-left: 0.5rem;
}

/* =========================================================
   Top 3 Champions Podium
   ========================================================= */
.podium-section {
  background: radial-gradient(circle at 50% 30%, rgba(245, 158, 11, 0.06) 0%, transparent 60%);
  padding: 1.5rem 0 0.5rem;
}

.podium-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.podium-grid {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.podium-col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.podium-card {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px 16px 0 0;
  padding: 1.5rem 1rem 0;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.podium-card:hover {
  transform: translateY(-4px);
}

.podium-gold .podium-card {
  border-color: rgba(245, 158, 11, 0.6);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.12) 0%, var(--bg-card) 40%);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.25);
  margin-bottom: 0;
}

.podium-silver .podium-card {
  border-color: rgba(148, 163, 184, 0.4);
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.08) 0%, var(--bg-card) 40%);
}

.podium-bronze .podium-card {
  border-color: rgba(217, 119, 6, 0.4);
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.08) 0%, var(--bg-card) 40%);
}

.podium-crown-badge {
  font-size: 1.8rem;
  margin-bottom: -6px;
  animation: float-crown 2.5s ease-in-out infinite;
}

.podium-medal-badge {
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.podium-medal-badge.gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
}

.podium-medal-badge.silver {
  background: linear-gradient(135deg, #94a3b8, #64748b);
  color: #fff;
}

.podium-medal-badge.bronze {
  background: linear-gradient(135deg, #b45309, #78350f);
  color: #fde68a;
}

.podium-skin-wrap {
  height: 175px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.podium-gold .podium-skin-wrap {
  height: 210px;
}

.podium-skin-img {
  max-height: 100%;
  width: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,0.5));
  transition: transform 0.3s ease;
}

.podium-card:hover .podium-skin-img {
  transform: scale(1.05);
}

.podium-player-info {
  width: 100%;
  padding: 0 0.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.podium-username {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.3rem;
  text-decoration: none;
}

.podium-username:hover {
  color: var(--accent);
}

.podium-username.gold-title {
  font-size: 1.3rem;
  color: #fbbf24;
}

.podium-votes {
  font-size: 1.15rem;
  color: #10b981;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.podium-votes.gold-votes {
  font-size: 1.35rem;
  color: #fbbf24;
}

.podium-fav-server {
  max-width: 180px;
  text-decoration: none;
}

.podium-fav-server:hover {
  text-decoration: underline;
}

/* Pedestals */
.podium-pedestal {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  border-radius: 0 0 14px 14px;
}

.pedestal-gold {
  height: 85px;
  background: linear-gradient(180deg, #f59e0b 0%, #b45309 100%);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.pedestal-silver {
  height: 60px;
  background: linear-gradient(180deg, #94a3b8 0%, #475569 100%);
  box-shadow: 0 6px 15px rgba(148, 163, 184, 0.3);
}

.pedestal-bronze {
  height: 45px;
  background: linear-gradient(180deg, #b45309 0%, #78350f 100%);
  box-shadow: 0 6px 15px rgba(180, 83, 9, 0.3);
}

.pedestal-num {
  opacity: 0.9;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

/* =========================================================
   Leaderboard Table
   ========================================================= */
.leaderboard-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.leaderboard-table th {
  background: rgba(15, 23, 42, 0.6);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.leaderboard-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-light);
}

.lb-table-row:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.85rem;
}

.rank-badge.rank-1 {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.rank-badge.rank-2 {
  background: linear-gradient(135deg, #94a3b8, #64748b);
  color: #fff;
}

.rank-badge.rank-3 {
  background: linear-gradient(135deg, #b45309, #78350f);
  color: #fde68a;
}

.rank-badge.rank-normal {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.voter-avatar-head {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  image-rendering: pixelated;
  background: #0f172a;
}

.voter-count-badge {
  color: #10b981;
  font-size: 1.05rem;
}

.fav-server-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}

.fav-server-link:hover {
  color: var(--accent);
}

/* Voter Level Badges */
.badge-tier-novice {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.badge-tier-iron {
  background: rgba(203, 213, 225, 0.2);
  color: #f1f5f9;
  border: 1px solid rgba(203, 213, 225, 0.4);
}

.badge-tier-gold {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.5);
}

.badge-tier-diamond {
  background: rgba(14, 165, 233, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.5);
}

.badge-tier-emerald {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.5);
}

.badge-tier-netherite {
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.4), rgba(71, 85, 105, 0.4));
  color: #c084fc;
  border: 1px solid rgba(192, 132, 252, 0.6);
  box-shadow: 0 0 10px rgba(192, 132, 252, 0.25);
}

/* =========================================================
   Player Profiles (/player/:username)
   ========================================================= */
.player-profile-page-wrap {
  min-height: 80vh;
}

.player-hero-backdrop {
  background: radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.08) 0%, transparent 50%),
              linear-gradient(180deg, #0b1120 0%, #0f172a 100%);
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.player-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

.player-hero-left {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-width: 0;
  flex: 1 1 auto;
}

.player-skin-stage {
  width: 140px;
  height: 180px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.player-3d-skin {
  max-height: 170px;
  width: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,0.6));
  transition: transform 0.3s ease;
}

.player-skin-stage:hover .player-3d-skin {
  transform: translateY(-4px) scale(1.05);
}

.player-identity-info {
  min-width: 0;
  flex: 1 1 auto;
}

.player-badge-ribbon {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.player-username-heading {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--text-light);
  line-height: 1.15;
  margin: 0.25rem 0 0.5rem;
  word-break: break-word;
}

.player-bio-text {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 620px;
  margin: 0;
}

.player-social-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.player-social-chip.discord {
  background: rgba(88, 101, 242, 0.15);
  border-color: rgba(88, 101, 242, 0.4);
  color: #818cf8;
}

.player-social-chip.youtube {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.player-social-chip.youtube:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fff;
}

.player-social-chip.twitter {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
}

.player-social-chip.twitter:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.player-social-chip.gamemode {
  background: rgba(14, 165, 233, 0.15);
  border-color: rgba(14, 165, 233, 0.4);
  color: #38bdf8;
}

.player-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex-shrink: 0;
}

/* 4 Telemetry Metrics Grid */
.player-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.player-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pstat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.pstat-meta {
  min-width: 0;
  flex: 1 1 auto;
}

.pstat-title {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.pstat-val {
  font-size: 1.55rem;
  line-height: 1.15;
  display: block;
}

.pstat-sub {
  font-size: 0.72rem;
  display: block;
  margin-top: 2px;
}

/* XP Bar */
.voter-xp-track {
  height: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.voter-xp-fill {
  height: 100%;
  background: linear-gradient(90deg, #0ea5e9 0%, #10b981 100%);
  border-radius: 6px;
  transition: width 0.6s ease-in-out;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* Achievements Grid */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.achievement-pill {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.achievement-pill.unlocked {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.04);
}

.achievement-pill.unlocked:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.12);
}

.achievement-pill.locked {
  opacity: 0.55;
  filter: grayscale(0.85);
}

.ach-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.ach-info {
  min-width: 0;
  flex: 1 1 auto;
}

.ach-name {
  font-size: 0.9rem;
}

.ach-desc {
  line-height: 1.4;
}

.ach-progress {
  color: var(--accent);
}

/* Supported Servers */
.supported-servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.supported-server-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.supported-server-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
}

.srv-banner-wrap {
  height: 64px;
  overflow: hidden;
  background: #0f172a;
}

.srv-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.srv-title {
  font-size: 0.95rem;
  text-decoration: none;
}

.srv-title:hover {
  color: var(--accent) !important;
}

/* Voting Activity Feed */
.voting-activity-list {
  display: flex;
  flex-direction: column;
}

.voting-activity-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.voting-activity-item:last-child {
  border-bottom: none;
}

.player-review-box {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.85rem;
}

/* Server Sidebar Top Voters Mini Widget */
.server-top-voters-list {
  display: flex;
  flex-direction: column;
}

.server-voter-item {
  transition: background 0.15s ease;
}

.server-voter-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.rank-mini-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 800;
  font-family: monospace;
}

.rank-mini-badge.rank-1 {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
}

.rank-mini-badge.rank-2 {
  background: linear-gradient(135deg, #94a3b8, #64748b);
  color: #fff;
}

.rank-mini-badge.rank-3 {
  background: linear-gradient(135deg, #b45309, #78350f);
  color: #fde68a;
}

.rank-mini-badge.rank-4,
.rank-mini-badge.rank-5 {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.voter-head-mini {
  border-radius: 3px;
  image-rendering: pixelated;
}

/* Generic Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1050;
  display: none;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
}

.modal.show {
  display: block;
}

.modal-dialog {
  position: relative;
  width: auto;
  margin: 3.5rem auto;
  pointer-events: none;
  max-width: 520px;
  padding: 0 1rem;
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  outline: 0;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: 1.5rem;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1040;
}

body.modal-open {
  overflow: hidden;
}

/* =========================================================
   Mobile & Responsive Overrides for Leaderboard & Profiles
   Strictly isolated in Media Queries
   ========================================================= */
@media (max-width: 991px) {
  .leaderboard-hero-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }

  .monthly-reset-card {
    min-width: unset;
    width: 100%;
  }

  .leaderboard-stats-ribbon {
    grid-template-columns: repeat(2, 1fr);
  }

  .player-hero-card {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .player-hero-left {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .player-badge-ribbon {
    justify-content: center;
  }

  .player-social-row {
    justify-content: center;
  }

  .player-hero-actions {
    flex-direction: row;
    justify-content: center;
    width: 100%;
  }

  .player-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .leaderboard-controls-card .d-flex {
    flex-direction: column;
    align-items: stretch;
  }

  .leaderboard-timeframe-tabs {
    width: 100%;
  }

  .lb-tab {
    flex: 1 1 auto;
    justify-content: center;
  }

  .leaderboard-filter-form {
    width: 100%;
  }

  .select-wrapper {
    flex: 1 1 100%;
  }

  .search-ign-wrap {
    flex: 1 1 100%;
  }
}

@media (max-width: 640px) {
  .leaderboard-title {
    font-size: 1.75rem;
  }

  .podium-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }

  /* On mobile stacked, reorder to Gold (#1) first, Silver (#2) second, Bronze (#3) third */
  .podium-gold {
    order: 1;
  }

  .podium-silver {
    order: 2;
  }

  .podium-bronze {
    order: 3;
  }

  .podium-card {
    border-radius: 16px;
    padding-bottom: 1.25rem;
  }

  .podium-pedestal {
    display: none;
  }

  .leaderboard-stats-ribbon {
    grid-template-columns: 1fr;
  }

  .player-stats-grid {
    grid-template-columns: 1fr;
  }

  .player-username-heading {
    font-size: 1.8rem;
  }

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

  .supported-servers-grid {
    grid-template-columns: 1fr;
  }

  .reset-countdown-display {
    padding: 0.5rem;
  }

  .countdown-unit {
    min-width: 38px;
  }

  .countdown-val {
    font-size: 1.15rem;
  }

  /* Vote Page Mobile Refinements */
  .vote-page-container {
    padding: 1.5rem 0 3rem;
  }

  .vote-card-box {
    margin: 0 auto;
    border-radius: var(--radius-lg);
  }

  .vote-card-header {
    padding: 1.25rem 1rem;
  }

  .vote-server-profile {
    gap: 0.85rem;
  }

  .vote-server-icon {
    width: 48px;
    height: 48px;
  }

  .vote-title {
    font-size: 1.25rem;
  }

  .vote-meta-stats {
    flex-wrap: wrap;
    gap: 0.4rem 0.85rem;
    font-size: 0.75rem;
  }

  .vote-form-section,
  .vote-success-box,
  .cooldown-active-box {
    padding: 2rem 1.25rem;
  }

  .vote-success-icon {
    font-size: 3.25rem;
  }

  .vote-success-text {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }

  .vote-success-actions {
    flex-direction: column;
    max-width: 100%;
    gap: 0.65rem;
  }

  .vote-success-actions .btn {
    width: 100%;
    min-width: 0;
    flex: 1 1 100%;
    padding: 0.85rem 1rem;
    font-size: 0.925rem;
  }
}

/* =========================================================
   Dynamic Embeddable Server Banners & Forum Signatures Modal
   ========================================================= */
.modal-dialog-banner {
  max-width: 820px;
  width: 94vw;
  margin: 2rem auto;
}

.banner-modal-content {
  background: #131b2e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.banner-modal-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.banner-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim, #94a3b8);
  margin-bottom: 0.5rem;
  display: block;
}

.banner-format-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.banner-format-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.5rem;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  gap: 0.35rem;
}

.banner-format-btn:hover {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(30, 41, 59, 0.9);
  color: #ffffff;
  transform: translateY(-1px);
}

.banner-format-btn.active {
  border-color: var(--accent, #38bdf8);
  background: rgba(56, 189, 248, 0.15);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.banner-format-btn.active i {
  color: var(--accent, #38bdf8);
}

.format-btn-name {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
}

.format-btn-dim {
  font-size: 0.7rem;
  color: #94a3b8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.banner-theme-options {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.banner-theme-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  font-size: 0.825rem;
  font-weight: 500;
  color: #cbd5e1;
  transition: all 0.2s ease;
  user-select: none;
}

.banner-theme-pill input[type="radio"] {
  display: none;
}

.banner-theme-pill:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.banner-theme-pill.active {
  border-color: var(--accent, #38bdf8);
  background: rgba(56, 189, 248, 0.16);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.theme-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: inline-block;
  flex-shrink: 0;
}

.theme-swatch-dark {
  background: linear-gradient(135deg, #0b0f19 0%, #38bdf8 100%);
}

.theme-swatch-minecraft {
  background: linear-gradient(135deg, #374151 0%, #5b8c34 100%);
}

.theme-swatch-emerald {
  background: linear-gradient(135deg, #022c22 0%, #10b981 100%);
}

.banner-preview-wrapper {
  background: #0b0f19;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem;
}

.banner-preview-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  overflow-x: auto;
  padding: 1rem;
  background: repeating-conic-gradient(rgba(255, 255, 255, 0.03) 0% 25%, transparent 0% 50%) 50% / 16px 16px;
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.banner-preview-image {
  max-width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  transition: opacity 0.2s ease;
}

.banner-snippets-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.snippet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.snippet-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.snippet-textarea {
  resize: none;
  background: #0b0f19 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #38bdf8 !important;
  font-size: 0.75rem !important;
  line-height: 1.45 !important;
  padding: 0.5rem 0.75rem !important;
  border-radius: 6px !important;
}

.banner-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 640px) {
  .banner-format-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .banner-preview-stage {
    justify-content: flex-start;
  }

  .banner-modal-footer {
    flex-direction: column;
    gap: 0.5rem;
  }

  .banner-modal-footer .btn {
    width: 100%;
  }
}

/* =========================================================
   Bedrock Mobile One-Click Connect & Crossplay Hub
   ========================================================= */
.crossplay-hero {
  position: relative;
  background: radial-gradient(circle at 50% 20%, rgba(16, 185, 129, 0.18) 0%, rgba(15, 23, 42, 0.95) 75%), #0b0f19;
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
  padding: 4rem 1rem 3rem;
  overflow: hidden;
}

.crossplay-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(255, 255, 255, 0.015) 40px, rgba(255, 255, 255, 0.015) 41px);
  pointer-events: none;
}

.crossplay-hero-content {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.crossplay-hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 0.85rem;
  text-shadow: 0 0 30px rgba(16, 185, 129, 0.25);
}

.crossplay-hero-subtitle {
  font-size: 1.05rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.crossplay-platform-pills {
  display: flex;
  justify-content: center;
  align-center: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.15rem;
  border-radius: 9999px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.platform-pill:hover {
  border-color: rgba(16, 185, 129, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
}

.platform-pill.active {
  background: rgba(16, 185, 129, 0.18);
  border-color: #10b981;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
}

.platform-pill-guide {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.platform-pill-guide:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  color: #ffffff;
}

.crossplay-telemetry-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  background: rgba(19, 27, 46, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.85rem 1.5rem;
  gap: 1.5rem;
  backdrop-filter: blur(8px);
}

.telemetry-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.telemetry-value {
  font-size: 1.1rem;
  line-height: 1.2;
}

.telemetry-label {
  font-size: 0.7rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.telemetry-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.1);
}

.crossplay-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.crossplay-server-card {
  border-left: 3px solid #10b981;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.crossplay-server-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.crossplay-server-icon {
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.crossplay-showcase-wrap {
  border-radius: 8px;
  overflow: hidden;
  max-width: 468px;
}

.crossplay-banner-img {
  width: 100%;
  max-width: 468px;
  height: auto;
  display: block;
}

.crossplay-connection-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.btn-bedrock-join-main {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.55rem 1rem;
  line-height: 1.2;
}

.btn-bedrock-join-main span {
  font-weight: 700;
  font-size: 0.9rem;
}

.join-subtext {
  font-size: 0.68rem;
  opacity: 0.85;
  font-weight: 500;
}

.btn-bedrock-quick {
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Bedrock Hero Card in server-detail.ejs */
.bedrock-connect-card {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  text-align: left;
}

.bedrock-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #34d399;
}

.bedrock-address {
  font-size: 0.85rem;
  color: #ffffff;
  font-weight: 600;
}

.btn-bedrock-join-hero {
  font-weight: 700;
  font-size: 0.85rem;
}

/* QR Code Display in Modals */
.bedrock-qr-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 1rem;
  border-radius: 12px;
  max-width: 250px;
  margin: 0 auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.bedrock-qr-image {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Console Guide Tab Controls */
.console-guide-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.75rem;
  overflow-x: auto;
}

.console-tab-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.console-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.console-tab-btn.active {
  color: #ffffff;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.guide-step {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: rgba(11, 15, 25, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent, #38bdf8);
  color: #0b0f19;
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-desc strong {
  font-size: 0.85rem;
  color: #ffffff;
  display: block;
  margin-bottom: 0.2rem;
}

/* Media Query Mobile Adjustments */
@media (max-width: 991px) {
  .crossplay-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .crossplay-hero {
    padding: 2.5rem 1rem 2rem;
  }

  .crossplay-hero-title {
    font-size: 1.65rem;
  }

  .crossplay-telemetry-bar {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
  }

  .telemetry-divider {
    display: none;
  }

  .btn-bedrock-join-main {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .crossplay-connection-grid {
    flex-direction: column;
    width: 100%;
  }

  .crossplay-connection-grid .btn {
    width: 100%;
  }
}

/* =========================================================
   Discord Webhook Engine Styles
   ========================================================= */

.text-discord {
  color: #5865F2 !important;
}

.bg-discord {
  background-color: #5865F2 !important;
}

.border-discord {
  border-color: rgba(88, 101, 242, 0.4) !important;
}

.badge-discord {
  background: rgba(88, 101, 242, 0.15);
  color: #7983f5;
  border: 1px solid rgba(88, 101, 242, 0.35);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-outline-discord {
  color: #7983f5;
  background: rgba(88, 101, 242, 0.08);
  border: 1px solid rgba(88, 101, 242, 0.35);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-md, 8px);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-outline-discord:hover {
  background: #5865F2;
  color: #ffffff;
  border-color: #5865F2;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.35);
}

.btn-outline-discord:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.discord-config-card {
  border: 1px solid rgba(88, 101, 242, 0.25);
  background: linear-gradient(180deg, rgba(88, 101, 242, 0.03) 0%, rgba(18, 20, 29, 0.95) 100%);
}

.discord-event-toggles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.custom-toggle-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.95rem 1.15rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md, 8px);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  margin-bottom: 0;
}

.custom-toggle-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(88, 101, 242, 0.4);
}

.custom-toggle-card input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: auto;
  accent-color: #5865F2;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  cursor: pointer;
  flex-shrink: 0;
}

.custom-toggle-card:has(input[type="checkbox"]:checked) {
  border-color: rgba(88, 101, 242, 0.5);
  background: rgba(88, 101, 242, 0.06);
}

.toggle-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.toggle-card-content .toggle-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.toggle-card-content .toggle-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.35;
}

/* =========================================================
   Captcha & Anti-Bot Verification Challenge Styles
   ========================================================= */

.captcha-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.captcha-svg-wrapper,
.captcha-preview {
  display: inline-flex;
  background: #0b0f19;
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.captcha-svg-wrapper svg,
.captcha-preview svg {
  display: block;
  max-width: 100%;
  height: 48px;
}

.btn-refresh-captcha {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  width: 48px;
  padding: 0;
  border-radius: var(--radius-md, 8px);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-refresh-captcha:hover {
  color: #38bdf8 !important;
  border-color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.12) !important;
}

/* Review 24-Hour Cooldown Banner & Timer */
.review-cooldown-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md, 8px);
  padding: 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.review-cooldown-box .cooldown-icon {
  flex-shrink: 0;
}

.review-cooldown-timer {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-weight: 700;
  margin-top: 0.25rem;
}

/* Form Input Validation & Duplicate Server Warnings */
.form-control.is-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
}

.duplicate-check-feedback {
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  color: #f87171;
  animation: fadeIn 0.2s ease-in-out;
}

/* =========================================================
   MICRO-MONETIZATION: BORDER GLOWS, TABS & HERO BANNER SHOWCASE
   ========================================================= */

/* Promotion Tabs Navigation */
.promote-tabs-nav {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.75rem;
}

.promote-tab-btn {
  background: rgba(19, 27, 46, 0.7);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md, 10px);
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.2s ease;
}

.promote-tab-btn:hover {
  background: rgba(30, 41, 59, 0.8);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.promote-tab-btn.active {
  background: #111827;
  color: #ffffff;
  border-color: var(--amber);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.25);
}

.badge-tab-pill {
  font-size: 0.7rem;
  font-weight: 800;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  padding: 2px 7px;
  border-radius: 9999px;
  letter-spacing: 0.3px;
}

.promote-tab-content {
  display: none;
  animation: fadeIn 0.25s ease;
}

.promote-tab-content.active {
  display: block;
}

/* Micro Effect Option Cards */
.micro-effect-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md, 10px);
  padding: 1rem;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.micro-effect-card:hover {
  border-color: rgba(192, 132, 252, 0.4);
  background: #131d33;
}

.micro-effect-card.selected {
  border-color: #c084fc;
  box-shadow: 0 0 15px rgba(192, 132, 252, 0.3);
  background: #151c30;
}

.glow-duration-card, .banner-duration-card {
  text-align: center;
  padding: 0.85rem 0.5rem;
}

/* Animated Border Glows on Server Cards */
@keyframes rainbowGlowPulse {
  0% {
    border-color: #f43f5e;
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.4), 0 0 24px rgba(168, 85, 247, 0.2);
  }
  25% {
    border-color: #a855f7;
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.4), 0 0 26px rgba(56, 189, 248, 0.2);
  }
  50% {
    border-color: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.4), 0 0 24px rgba(52, 211, 153, 0.2);
  }
  75% {
    border-color: #34d399;
    box-shadow: 0 0 14px rgba(52, 211, 153, 0.4), 0 0 26px rgba(251, 191, 36, 0.2);
  }
  100% {
    border-color: #f43f5e;
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.4), 0 0 24px rgba(168, 85, 247, 0.2);
  }
}

@keyframes goldShimmer {
  0% {
    border-color: rgba(245, 158, 11, 0.6);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.25), inset 0 0 8px rgba(245, 158, 11, 0.08);
  }
  100% {
    border-color: rgba(251, 191, 36, 1);
    box-shadow: 0 0 22px rgba(245, 158, 11, 0.55), inset 0 0 14px rgba(245, 158, 11, 0.2);
  }
}

@keyframes cyanPulse {
  0% {
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.25), inset 0 0 8px rgba(6, 182, 212, 0.08);
  }
  100% {
    border-color: rgba(56, 189, 248, 1);
    box-shadow: 0 0 22px rgba(6, 182, 212, 0.55), inset 0 0 14px rgba(6, 182, 212, 0.2);
  }
}

@keyframes flameBreathing {
  0% {
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.3), 0 0 20px rgba(245, 158, 11, 0.15);
  }
  100% {
    border-color: rgba(249, 115, 22, 1);
    box-shadow: 0 0 24px rgba(239, 68, 68, 0.6), 0 0 35px rgba(245, 158, 11, 0.35);
  }
}

.server-card.has-glow {
  position: relative;
  z-index: 2;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.server-card.glow-rainbow {
  border-width: 2px !important;
  animation: rainbowGlowPulse 4s linear infinite;
}

.server-card.glow-gold {
  border-width: 2px !important;
  animation: goldShimmer 2.5s ease-in-out infinite alternate;
}

.server-card.glow-cyan {
  border-width: 2px !important;
  animation: cyanPulse 2.2s ease-in-out infinite alternate;
}

.server-card.glow-flame {
  border-width: 2px !important;
  animation: flameBreathing 2.2s ease-in-out infinite alternate;
}

/* Flair Badges */
.badge-glow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 9999px;
  letter-spacing: 0.4px;
}

.badge-glow-rainbow {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(236, 72, 153, 0.25));
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.45);
  box-shadow: 0 0 8px rgba(236, 72, 153, 0.25);
}

.badge-glow-gold {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.25);
}

.badge-glow-cyan {
  background: rgba(6, 182, 212, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.45);
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.25);
}

.badge-glow-flame {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.45);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.25);
}

/* Hero Banners Showcase Section */
.hero-banners-showcase-section {
  padding: 1.25rem 0 1rem 0;
  margin-bottom: 0.75rem;
}

.hero-banners-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.hero-banners-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
}

.badge-hero-sponsor {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.hero-banners-cta {
  font-size: 0.8rem;
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.hero-banners-cta:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

.hero-banners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.hero-banner-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hero-banner-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(56, 189, 248, 0.25);
  border-color: rgba(56, 189, 248, 0.45);
}

.hero-banner-link {
  text-decoration: none;
  display: block;
}

.hero-banner-img-wrap {
  position: relative;
  width: 100%;
  height: 95px;
  overflow: hidden;
  background: #0b0f19;
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.hero-banner-item:hover .hero-banner-img {
  transform: scale(1.03);
}

.hero-banner-glow-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(15, 23, 42, 0.8) 100%);
  pointer-events: none;
}

.hero-banner-meta {
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #111827;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-banner-server-name {
  color: #ffffff;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 190px;
}

.btn-hero-play {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 9px;
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 6px;
  transition: all 0.15s ease;
}

.hero-banner-item:hover .btn-hero-play {
  background: #10b981;
  color: #ffffff;
}

/* ==========================================================================
   LIVE CARD PREVIEW (Server Promotion Portal)
   ========================================================================== */
.preview-server-card {
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  padding: 1.15rem 1.25rem !important;
}

.preview-server-card .server-card-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.6rem !important;
  width: 100% !important;
  flex-wrap: wrap !important;
}

.preview-server-card .server-card-identity {
  display: flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

.preview-server-card .server-title-wrap {
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

.preview-server-card .server-title {
  font-size: 1.05rem !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 175px !important;
}

.preview-server-card .server-card-middle {
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.preview-server-card .server-showcase-wrap {
  width: 100% !important;
  max-width: 468px !important;
  height: auto !important;
  aspect-ratio: 468 / 60 !important;
  border-radius: var(--radius-sm) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  flex-shrink: 1 !important;
  display: block !important;
  margin: 0 auto !important;
}

.preview-server-card .server-showcase-img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 468 / 60 !important;
  object-fit: cover !important;
  display: block !important;
}

/* =========================================================
   Verified Server Ownership & Portal Styles
   ========================================================= */
.badge-verified {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #10b981 !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  font-weight: 700 !important;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.badge-verified i {
  color: #10b981 !important;
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.5));
}

.badge-verified-hero {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
  font-weight: 700 !important;
  padding: 0.35rem 0.75rem !important;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.2);
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #10b981 !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

.btn-emerald {
  background-color: #10b981 !important;
  color: #ffffff !important;
  border: 1px solid #059669 !important;
  font-weight: 700 !important;
}

.btn-emerald:hover {
  background-color: #059669 !important;
  color: #ffffff !important;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4) !important;
}

.btn-outline-emerald {
  background: transparent !important;
  color: #10b981 !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
}

.btn-outline-emerald:hover {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #34d399 !important;
  border-color: #10b981 !important;
}

.verification-tabs .tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.verification-tabs .tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.02);
}

.verification-tabs .tab-btn.active {
  color: #10b981;
  border-bottom: 2px solid #10b981;
  background: rgba(16, 185, 129, 0.05);
}



