/* ============================================
   HavenCraft — Minecraft Server Website
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --primary: #00c896;
  --secondary: #008f6b;
  --accent: #ff8a00;
  --bg-gradient-1: #eef3fb;
  --bg-gradient-2: #e8f6f0;
  --bg-gradient-3: #fdf5ec;
  --bg: #f5f7fb;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --surface-hover: rgba(255, 255, 255, 0.88);
  --text: #1a1d26;
  --text-secondary: #5a6178;
  --text-muted: #646b82;
  --border: rgba(0, 0, 0, 0.06);
  --border-strong: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 16px 60px rgba(0, 0, 0, 0.12);
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  --blur: 20px;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;

  /* Typography Scale Tokens */
  --fs-2xs: 0.75rem;
  /* 12px: badges, tags, fine metadata */
  --fs-xs: 0.85rem;
  /* 13.6px: secondary text, labels */
  --fs-sm: 0.95rem;
  /* 15.2px: body text, inputs */
  --fs-base: 1rem;
  /* 16px: standard text */
  --fs-md: 1.2rem;
  /* 19.2px: card titles, subheadings */
  --fs-lg: 1.4rem;
  /* 22.4px: sub-titles, box labels */
  --fs-xl: 1.85rem;
  /* 29.6px: stat counters, large labels */
  --fs-2xl: 2.25rem;
  /* 36px: major section titles (H2) */
  --fs-3xl: 2.75rem;
  /* 44px: large display values */
  --fs-hero: clamp(2.5rem, 5vw, 3.75rem);
  /* Display title H1 */

  --banner-height: 0px;
  --nav-base-height: 56px;
  --nav-height: calc(var(--nav-base-height) + var(--banner-height));
  --online-glow: #00c896;
  --transition: 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

html.has-announcement-banner,
body.has-announcement-banner {
  --banner-height: 34px;
  --nav-height: calc(var(--nav-base-height) + var(--banner-height));
}

@media (max-width: 768px) {
  html.has-announcement-banner,
  body.has-announcement-banner {
    --banner-height: 30px;
    --nav-height: calc(var(--nav-base-height) + var(--banner-height));
  }
}

/* --- Dark Mode (Unslop Ink Ramp) --- */
[data-theme="dark"] {
  --bg-gradient-1: #0b0d14;
  --bg-gradient-2: #0b0d14;
  --bg-gradient-3: #0b0d14;
  --bg: #0b0d14;
  --surface: rgba(17, 20, 28, 0.86);
  --surface-solid: #11141c;
  --surface-hover: #1a1e28;
  --text: #eef0f5;
  --text-secondary: #a3a9b8;
  --text-muted: #7a8296;
  --border: rgba(238, 240, 245, 0.08);
  --border-strong: rgba(238, 240, 245, 0.14);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.32);
  --shadow-xl: 0 16px 40px rgba(0, 0, 0, 0.38);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  display: none;
}

body::after {
  display: none;
}

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

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

ul {
  list-style: none;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

/* Accessibility Utility: Screen-reader only */
.visually-hidden,
.sr-only {
  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;
}

/* ============================================
   GLOBAL NOTICE / ANNOUNCEMENT MARQUEE BANNER
   ============================================ */
.hvn-announcement-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--banner-height);
  z-index: 1002;
  display: none;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.2px;
  background: #0b0d14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.has-announcement-banner .hvn-announcement-banner {
  display: flex;
}

.hvn-announcement-banner.is-dismissed {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.hvn-banner-inner {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0 16px;
  gap: 10px;
  box-sizing: border-box;
  max-width: 1400px;
  margin: 0 auto;
}

/* Badge on Left: Clean Typography, No Card Box, No Border */
.hvn-banner-badge {
  display: inline-flex;
  align-items: center;
  padding: 0 8px 0 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  flex-shrink: 0;
  user-select: none;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Marquee Container with smooth fade on both sides */
.hvn-banner-marquee {
  position: relative;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(to right, transparent 0, black 32px, black calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 32px, black calc(100% - 24px), transparent 100%);
  cursor: default;
}

.hvn-banner-track {
  display: inline-flex;
  align-items: center;
  animation: hvnBannerMarquee 26s linear infinite;
  will-change: transform;
}

.hvn-banner-marquee:hover .hvn-banner-track,
.hvn-banner-marquee:focus-within .hvn-banner-track {
  animation-play-state: paused;
}

.hvn-banner-group {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.hvn-banner-msg {
  font-weight: 500;
  padding: 0;
}

/* Breathing space between end of line and next repetition */
.hvn-banner-separator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  user-select: none;
  opacity: 0.35;
}

.hvn-banner-dot {
  font-size: 0.65rem;
}

.hvn-banner-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.hvn-banner-link:hover {
  filter: brightness(1.2);
}

@keyframes hvnBannerMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .hvn-banner-track {
    animation: none;
    transform: none;
  }
}

/* Close button */
.hvn-banner-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 0.75rem;
  transition: color 0.15s ease, background 0.15s ease;
  padding: 0;
}

.hvn-banner-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

/* Theme 1: News (Cyan Blue / Mint) */
.hvn-announcement-banner.type-news,
.hvn-announcement-banner.type-info {
  color: #e0f7f2;
}
.hvn-announcement-banner.type-news .hvn-banner-badge,
.hvn-announcement-banner.type-info .hvn-banner-badge {
  color: #00e0a8;
}

/* Theme 2: Server Update (Emerald Green) */
.hvn-announcement-banner.type-update {
  color: #d1fae5;
}
.hvn-announcement-banner.type-update .hvn-banner-badge {
  color: #00c896;
}

/* Theme 3: Special Event (Royal Purple) */
.hvn-announcement-banner.type-event {
  color: #f3e8ff;
}
.hvn-announcement-banner.type-event .hvn-banner-badge {
  color: #c084fc;
}

/* Theme 4: Store Sale (Rose Pink) */
.hvn-announcement-banner.type-sale {
  color: #fce7f3;
}
.hvn-announcement-banner.type-sale .hvn-banner-badge {
  color: #f472b6;
}

/* Theme 5: Notice / Maintenance (Amber) */
.hvn-announcement-banner.type-warning {
  color: #fef3c7;
}
.hvn-announcement-banner.type-warning .hvn-banner-badge {
  color: #fbbf24;
}

/* Theme 6: Urgent Alert (Red) */
.hvn-announcement-banner.type-danger {
  color: #fee2e2;
}
.hvn-announcement-banner.type-danger .hvn-banner-badge {
  color: #f87171;
}

/* ============================================
   NAVBAR — Unified 3-Column Centered Glass Header
   ============================================ */
.navbar {
  position: fixed;
  top: var(--banner-height, 0px);
  left: 0;
  right: 0;
  height: var(--nav-base-height, 56px);
  z-index: 1000;
  background: rgba(10, 14, 23, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  transition: top 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
  background: rgba(8, 11, 18, 0.95);
  border-bottom-color: rgba(0, 200, 150, 0.25);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.6);
}

/* 3-Column Grid guarantees TRUE horizontal center for .nav-links & 100% alignment with page .container */
.navbar .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  max-width: 1200px;
  padding: 0 24px;
}

.nav-brand-wrapper {
  justify-self: start;
  display: flex;
  align-items: center;
  min-height: 38px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

/* Dynamic Brand Docking Animation on Homepage */
.is-home-nav .nav-brand-dynamic {
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 12px, 0) scale(0.88);
  filter: blur(6px);
  will-change: transform, opacity, filter;
  pointer-events: none;
}

.is-home-nav.scrolled .nav-brand-dynamic {
  pointer-events: auto;
}

.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 1.8em;
  max-height: 38px;
  width: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
  transition: opacity var(--transition);
}

.nav-brand:hover .brand-logo {
  opacity: 0.92;
}

.brand-text {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.brand-text .text-gradient,
.hero-split-title .text-gradient {
  color: var(--primary);
  background: none;
  -webkit-text-fill-color: currentColor;
}

/* Emerald Pulse Dots */
.pulse-emerald,
.status-dot-pulse {
  width: 8px;
  height: 8px;
  background: #00c896;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(0, 200, 150, 0.6);
  animation: emeraldPulse 2s infinite;
}

@keyframes emeraldPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 200, 150, 0.7);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(0, 200, 150, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 200, 150, 0);
  }
}

.nav-brand .brand-icon {
  width: 36px;
  height: 36px;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: var(--fs-md);
  font-weight: 600;
}

.brand-text {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

/* Dynamic Backdrop Overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 14, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Hide mobile explore grid by default on desktop */
.nav-mobile-explore {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  line-height: 1;
}

.nav-links a i {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
}

.nav-links a:hover i {
  color: var(--text-secondary);
}

/* Active Nav Tab — Quiet Surface Step with Hairline */
.nav-links a.active {
  background: var(--surface-hover);
  color: var(--text) !important;
  font-weight: 500;
  border-color: var(--border-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-links a.active i {
  color: var(--primary) !important;
  opacity: 1;
}

.nav-links a.active:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-action-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: var(--fs-base);
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.nav-action-btn:hover {
  color: var(--text);
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

/* User Menu / Gametag Login */
.user-menu-wrapper {
  position: relative;
}

.user-btn {
  position: relative;
  overflow: hidden;
}

.user-head {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  image-rendering: pixelated;
}

.user-icon-svg {
  width: 20px;
  height: 20px;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 1001;
  overflow: hidden;
}

.user-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown-header {
  padding: 14px 18px 10px;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.user-dropdown-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-dropdown-body p {
  font-size: var(--fs-2xs);
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

.gametag-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: all var(--transition);
}

.gametag-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 200, 150, 0.15);
}

.gametag-submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
  padding: 10px 16px;
  font-size: var(--fs-xs);
  border-radius: var(--radius-sm);
}

.user-dropdown-logged {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.user-dropdown-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-xs);
  image-rendering: pixelated;
}

.user-dropdown-name {
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--text);
  flex: 1;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 6px;
  z-index: 1001;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: var(--radius-xs);
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   JOIN GUIDE, FAQ, TESTIMONIALS
   ============================================ */
.join-guide,
.faq {
  text-align: left;
}

.join-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--surface);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: left;
  transition: background-color var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.step-card::before {
  display: none;
}

.step-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.step-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.step-badge {
  font-family: 'JetBrains Mono', monospace, var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--primary);
  background: rgba(0, 200, 150, 0.08);
  border: 1px solid rgba(0, 200, 150, 0.18);
  padding: 4px 10px;
  border-radius: 6px;
}

.step-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  color: var(--primary);
  margin-bottom: 0;
  transition: background-color var(--transition), border-color var(--transition);
}

.step-card:hover .step-icon {
  background: rgba(0, 200, 150, 0.1);
  border-color: rgba(0, 200, 150, 0.24);
}

.step-card h3 {
  font-size: var(--fs-md);
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.step-card p {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.step-card p strong {
  color: var(--text);
  font-weight: 500;
}

/* FAQ 1200px 2-Column Split Layout */
.faq-split-layout {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 36px;
  align-items: start;
}

.faq-header-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.faq-header-col h2 {
  font-size: var(--fs-2xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.faq-header-col>p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.faq-support-box {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.faq-support-box::before {
  display: none;
}

.faq-support-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-support-text strong {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
}

.faq-support-text span {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  line-height: 1.5;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
  max-width: none;
  margin: 0;
}

.faq-item {
  background: var(--surface);
  backdrop-filter: blur(var(--blur));
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: background-color var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.faq-item::before {
  display: none;
}

.faq-item:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.faq-item h3 {
  font-size: 1.08rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-item p {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.faq-item code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: var(--primary);
  background: rgba(0, 200, 150, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.text-primary {
  color: var(--primary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--surface);
  backdrop-filter: blur(var(--blur));
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: relative;
  transition: transform var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-card .stars {
  color: #fbbf24;
  margin-bottom: 12px;
}

.testimonial-card p {
  font-size: var(--fs-md);
  font-style: italic;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.testimonial-card .player-info {
  font-weight: bold;
  color: var(--text);
}

/* ============================================
   HERO SECTION (ASYMMETRIC SPLIT TERMINAL)
   ============================================ */
.hero {
  position: relative;
  text-align: left;
}

.hero.hero-split {
  position: relative;
  padding-top: calc(var(--nav-height) + 36px);
  padding-bottom: 70px;
  overflow-x: clip;
  overflow-y: visible;
}

/* Atmospheric Backdrop & Cinematic Glow */
.hero-backdrop {
  position: absolute;
  top: -24px;
  left: -24px;
  right: -24px;
  bottom: 40px;
  background-image: url('../../images/bg1.webp');
  background-size: cover;
  background-position: center center;
  filter: blur(24px) brightness(0.26) saturate(1.15);
  transform: scale(1.08);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 35%, transparent 82%);
  mask-image: linear-gradient(180deg, #000 0%, #000 35%, transparent 82%);
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.hero-glow,
.hero-glow-left,
.hero-glow-right {
  display: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: stretch;
  gap: 36px;
  position: relative;
  z-index: 2;
  max-width: 1200px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Hero Left Column: Brand Identity */
.hero-brand-group {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  transform-origin: left top;
  will-change: transform, opacity;
  transition: transform 0.1s ease-out, opacity 0.1s ease-out;
}

.hero-subline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: var(--fs-2xs);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.hero-badge-pill .badge-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.hero-badge-pill .badge-flag svg {
  display: block;
  width: 15px;
  height: 11px;
  border-radius: 2px;
}

.hero-badge-pill .season-name {
  line-height: 1;
  display: inline-block;
}

.subline-dot {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.85rem;
  line-height: 1;
}

.hero-logo-wrapper {
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-wrapper::before {
  display: none;
}

.hero-split-logo {
  position: relative;
  z-index: 1;
  width: 112px;
  height: 112px;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.65));
  transition: opacity var(--transition);
}

.hero-split-logo:hover {
  opacity: 0.95;
}

.hero-title-wrapper {
  display: flex;
  flex-direction: column;
}

.hero-split-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0;
}

.text-gradient {
  color: var(--primary);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.hero-split-tagline {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-secondary);
  margin: 0;
  letter-spacing: 0;
}

.hero-split-desc {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 540px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-glow {
  position: relative;
}

/* Hero Player Trust */
.hero-player-trust {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-muted);
}

/* Hero Right Column: Terminal Card & Matrix */
.hero-right {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Command Terminal Card (Primary Hero Moment) */
.terminal-card {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), var(--shadow-lg);
  margin-bottom: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition);
}

.terminal-card:hover {
  border-color: var(--border-strong);
}

.terminal-card::before {
  display: none;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.terminal-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.terminal-status.offline {
  color: #e5484d;
}

.terminal-status.offline .status-dot {
  background: #e5484d;
  box-shadow: none;
  animation: none;
}

.terminal-tag {
  font-family: 'JetBrains Mono', monospace, var(--font-body);
  font-size: var(--fs-2xs);
  font-weight: 400;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.terminal-tag i {
  color: var(--text-muted);
}

.terminal-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  justify-content: center;
}

.terminal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
}

.terminal-footer i {
  color: var(--text-muted);
  margin-right: 4px;
}

.terminal-footer-sep {
  opacity: 0.35;
}

.connect-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.connect-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-2xs);
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: none;
  letter-spacing: 0.01em;
}

.connect-label i {
  color: var(--text-muted);
  width: 16px;
  text-align: center;
  font-size: 0.85rem;
}

.connect-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  background: rgba(11, 13, 20, 0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition);
  font-family: 'JetBrains Mono', monospace, sans-serif;
  font-variant-numeric: tabular-nums;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.connect-field:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-color: var(--primary);
}

.connect-field:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.connect-ip {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.port-highlight {
  color: var(--primary);
  font-weight: 600;
}

.copy-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: var(--fs-2xs);
  font-weight: 500;
  color: var(--text-secondary);
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
  font-family: var(--font-body);
}

.connect-field:hover .copy-badge {
  background: var(--primary);
  color: #07120f;
  border-color: var(--primary);
}

.copy-badge.copied-success {
  background: #00c896 !important;
  color: #07120f !important;
  border-color: #00c896 !important;
}

/* 4-Card Full-Width Stats Matrix Row below Split Hero */
.stats-matrix-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
  position: relative;
  z-index: 2;
}

.stats-2x2-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.matrix-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-align: left;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  transition: background-color var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.matrix-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.matrix-card.clickable {
  cursor: pointer;
}

.matrix-card.clickable::before {
  display: none;
}

.matrix-card.clickable:hover {
  border-color: rgba(0, 200, 150, 0.36);
}

.matrix-card.clickable:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-color: var(--primary);
}

.matrix-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  flex-shrink: 0;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.matrix-card.clickable .matrix-icon {
  color: var(--primary);
  background: rgba(0, 200, 150, 0.08);
  border-color: rgba(0, 200, 150, 0.2);
}

.matrix-card:hover .matrix-icon {
  border-color: var(--border-strong);
}

.matrix-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.matrix-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 4px;
}

.matrix-label {
  font-size: var(--fs-2xs);
  color: var(--text-secondary);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.matrix-hint {
  font-family: 'JetBrains Mono', monospace, var(--font-body);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 400;
  display: inline-block;
  margin-left: 4px;
  line-height: 1.2;
}

/* Responsive Breakpoints */
@media (max-width: 991px) {
  .hero.hero-split {
    padding-top: calc(var(--nav-height) + 24px);
    padding-bottom: 40px;
    text-align: center;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-brand-group {
    justify-content: center;
    transform-origin: center top;
  }

  .hero-split-desc {
    margin: 0 auto 24px;
    text-wrap: pretty;
  }

  .hero-subline {
    justify-content: center;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .terminal-card {
    text-align: left;
  }

  .stats-matrix-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 28px;
  }
}

@media (max-width: 380px) {

  /* Very narrow phones: badge + tagline stack, so drop the dangling separator */
  .hero-subline {
    row-gap: 6px;
  }

  .hero-subline .subline-dot {
    display: none;
  }
}

@media (max-width: 520px) {

  /* Tighter hero so the full connect card fits in the first viewport */
  .hero.hero-split {
    padding-top: calc(var(--nav-height) + 12px);
  }

  .hero-grid {
    gap: 24px;
  }

  .hero-brand-group {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    margin-bottom: 14px;
    transform-origin: center top;
  }

  .hero-split-logo {
    width: 72px;
    height: 72px;
  }

  .hero-split-title {
    font-size: 2rem;
  }

  .hero-split-desc {
    margin-bottom: 20px;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .stats-matrix-row,
  .stats-2x2-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
  }

  .matrix-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 12px;
  }

  .matrix-icon {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .matrix-value {
    font-size: var(--fs-md);
  }

  .matrix-label {
    white-space: normal;
  }
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 200, 150, 0.1);
  border: 1px solid rgba(0, 200, 150, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 16px;
}

.status-badge.offline {
  background: rgba(255, 80, 80, 0.1);
  border-color: rgba(255, 80, 80, 0.2);
  color: #ff5050;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: var(--radius-full);
  animation: pulse-dot 2s ease-in-out infinite;
}

.status-badge.offline .status-dot {
  background: #ff5050;
  animation: none;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(0, 200, 150, 0.4);
  }

  50% {
    opacity: 0.7;
    box-shadow: 0 0 0 6px rgba(0, 200, 150, 0);
  }
}

.player-count {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
}

.player-count span {
  color: var(--text-muted);
  font-size: var(--fs-lg);
  font-weight: 500;
}

/* ============================================
   BUTTONS — Unified Design System (Unslop)
   ============================================ */
.btn,
.copy-ip-btn,
.server-ip-display {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition), opacity var(--transition), transform var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
  box-sizing: border-box;
}

.btn:active,
.copy-ip-btn:active,
.server-ip-display:active {
  transform: scale(0.98);
}

/* Hero Server IP Display Box */
.server-ip-display {
  background: var(--surface-hover);
  border: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.server-ip-display:hover {
  border-color: var(--border-strong);
  background: #232836;
}

.server-ip-display .copy-icon {
  font-size: var(--fs-2xs);
  color: var(--text-muted);
  transition: color var(--transition);
}

.server-ip-display:hover .copy-icon {
  color: var(--primary);
}

/* Hero Buttons Container */
.hero-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 28px auto 0;
  flex-wrap: wrap;
}

@media (max-width: 768px) {

  .join-steps,
  .faq-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* 1. Primary Button (High-contrast Solid Emerald with Dark Ink Text) */
.btn-primary {
  background: var(--primary);
  color: #07120f;
  font-weight: 600;
  text-shadow: none;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  background: #14d8a6;
  color: #07120f;
}

/* 2. Secondary Button (Raised Surface with Hairline) */
.btn-secondary {
  background: var(--surface-hover);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.btn-secondary:hover {
  background: #232836;
  border-color: var(--border-strong);
}

/* 3. Accent Button (Solid Emerald Action) */
.btn-accent {
  background: var(--primary);
  color: #07120f;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-accent:hover {
  background: #14d8a6;
  color: #07120f;
}

/* 4. Outline / Ghost Button */
.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--surface-hover);
  color: var(--text);
  border-color: var(--border-strong);
}

/* Small Button Variant */
.btn-sm {
  min-height: 36px;
  padding: 8px 16px;
  font-size: var(--fs-xs);
  border-radius: var(--radius-sm);
}

/* ============================================
   QUICK NAVIGATION SECTION
   ============================================ */
.quick-nav-section {
  padding: 40px 0 20px;
  margin-top: -20px;
  position: relative;
  z-index: 10;
}

.quick-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.quick-card {
  background: var(--surface);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--text);
  transition: background-color var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.quick-card::before {
  display: none;
}

.quick-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.quick-card.card-vote .quick-card-icon,
.quick-card.card-leaderboard .quick-card-icon {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
}

.quick-card-content {
  flex-grow: 1;
}

.quick-card-content h3 {
  font-size: var(--fs-md);
  font-weight: 600;
  margin-bottom: 4px;
  font-family: var(--font-heading);
  transition: color var(--transition);
}

.quick-card-content p {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  line-height: 1.5;
}

.quick-card-arrow {
  font-size: var(--fs-base);
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
}

.quick-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.quick-card:hover .quick-card-icon {
  color: var(--primary);
  border-color: rgba(0, 200, 150, 0.25);
}

.quick-card:hover .quick-card-arrow {
  transform: translateX(4px);
  color: var(--text);
}

/* রেসপন্সিভ ডিজাইন (মোবাইলের জন্য) */
@media (max-width: 768px) {
  .quick-nav-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .quick-card {
    padding: 16px 20px;
    gap: 16px;
  }

  .quick-card-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* ============================================
   FEATURES SECTION & STUDIO SPLIT HEADERS
   ============================================ */
.features {
  text-align: left;
}

.section-header {
  margin-bottom: 40px;
  text-align: center;
}

.section-header h2 {
  font-size: var(--fs-2xl);
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Quiet Section Eyebrow Label (Sentence Case, No Pill) */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: var(--fs-xs);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
  width: fit-content;
}

.section-eyebrow i {
  font-size: 0.85rem;
  color: var(--primary);
}

/* Split Section Header (Left Title + Right Description) */
.section-header.section-header-split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 32px;
  align-items: end;
  text-align: left;
  margin-bottom: 40px;
}

.section-header.section-header-split .section-header-left h2 {
  margin-bottom: 0;
}

.section-header.section-header-split .section-header-left h2::after,
.lb-info-col h2::after,
.faq-header-col h2::after,
.cta-bento-left h2::after {
  display: none !important;
}

.section-header.section-header-split .section-header-desc {
  max-width: none;
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .section-header.section-header-split {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
  }
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 16px 24px;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: background-color var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-card::before {
  display: none;
}

.feature-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

/* Nested Radius: Outer 16px - 8px step = 8px (--radius-sm) */
.feature-img-wrap {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 16px;
  aspect-ratio: 16 / 9;
  background: rgba(11, 13, 20, 0.6);
}

.feature-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 13, 20, 0.72) 100%);
  pointer-events: none;
  z-index: 1;
}

.feature-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 0;
  display: block;
}

.feature-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(11, 13, 20, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text);
}

.feature-tag i {
  color: var(--primary);
  font-size: 0.75rem;
}

.feature-body {
  padding: 0 4px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 0 16px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--primary);
}

.feature-card h3 {
  font-size: var(--fs-md);
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-card p {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* ============================================
   STATISTICS SECTION
   ============================================ */
.statistics {
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--surface);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: background-color var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  display: none;
}

.stat-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.stat-value {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  margin-bottom: 8px;
}

.stat-icon {
  font-size: var(--fs-xl);
  margin-bottom: 12px;
}

.stat-label {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  font-weight: 500;
}

/* Status Indicator — large version */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-indicator .dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--secondary);
  box-shadow: 0 0 8px rgba(0, 200, 150, 0.5);
  animation: pulse-dot 2s ease-in-out infinite;
}

.status-indicator.offline .dot {
  background: #ff5050;
  box-shadow: 0 0 8px rgba(255, 80, 80, 0.5);
  animation: none;
}

.status-indicator-lg .dot {
  width: 18px;
  height: 18px;
  box-shadow: 0 0 16px rgba(0, 200, 150, 0.5);
}

.status-indicator-lg.offline .dot {
  box-shadow: 0 0 16px rgba(255, 80, 80, 0.5);
}

/* ============================================
   CTA SECTION (Ready to Join — 1200px Bento Banner)
   ============================================ */
.cta-section {
  text-align: center;
  position: relative;
  padding: 70px 0 24px;
}

/* Backwards compatibility for subpages using .cta-content */
.cta-content {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  max-width: 1200px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: var(--fs-2xl);
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text);
  letter-spacing: -0.5px;
}

.cta-content>p {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  max-width: 580px;
  margin: 0 auto 28px;
  line-height: 1.75;
}

/* Homepage 1200px 2-Column Bento Card */
.cta-bento-card {
  background: linear-gradient(145deg, rgba(22, 28, 44, 0.82), rgba(14, 18, 28, 0.92));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 40px 44px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 40px;
  align-items: center;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.cta-bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), rgba(0, 200, 150, 0.1));
}

.cta-bento-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cta-bento-left h2 {
  font-size: var(--fs-2xl);
  font-weight: 800;
  margin-bottom: 14px;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.cta-bento-left p {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  line-height: 1.75;
  margin: 0 0 26px;
  max-width: 540px;
}

.cta-bento-left .cta-buttons {
  justify-content: flex-start;
}

.cta-bento-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

/* Unified IP Display Box */
.ip-display-box {
  background: rgba(10, 13, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  width: 100%;
  max-width: none;
  margin: 0;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ip-display-box:hover {
  border-color: rgba(0, 200, 150, 0.32);
  background: rgba(12, 16, 26, 0.88);
}

.ip-display-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.ip-display-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 0;
}

.ip-display-value {
  font-family: 'JetBrains Mono', var(--font-heading), monospace;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.4px;
  margin-bottom: 0;
  white-space: nowrap;
}

.ip-display-box .copy-ip-btn {
  background: linear-gradient(135deg, #00d49f 0%, #009e75 100%);
  color: #fff;
  min-height: 40px;
  padding: 9px 18px;
  font-size: var(--fs-xs);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(0, 200, 150, 0.25);
  flex-shrink: 0;
}

.ip-display-box .copy-ip-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 200, 150, 0.4);
}

.ip-display-box .copy-ip-btn.copied {
  background: linear-gradient(135deg, var(--secondary), #33d9ad);
}

/* Compact Edition Connection Boxes Row */
.connection-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
  max-width: none;
  margin: 0;
}

.connection-box {
  background: rgba(10, 13, 20, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  text-align: left;
  transition: all var(--transition);
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}

.connection-box:hover {
  border-color: rgba(0, 200, 150, 0.25);
  background: rgba(14, 18, 28, 0.8);
}

.connection-box-icon {
  width: 42px;
  height: 42px;
  margin: 0;
  border-radius: var(--radius-sm);
  background: rgba(0, 200, 150, 0.1);
  border: 1px solid rgba(0, 200, 150, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.05rem;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.connection-box:hover .connection-box-icon {
  transform: scale(1.06);
}

.connection-box-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.connection-box h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0;
  color: var(--text);
}

.connection-port-tag {
  font-family: 'JetBrains Mono', var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  padding: 0;
  border-radius: 0;
  margin-bottom: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  border: none;
}

.connection-port-tag.highlight {
  color: var(--text-secondary);
  background: transparent;
  border: none;
}

.connection-port-tag.highlight i,
.connection-port-tag strong {
  color: var(--primary);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  padding: 12px 24px;
  font-size: var(--fs-sm);
}

/* CTA Section — Responsive */
@media (max-width: 900px) {
  .cta-bento-card {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 28px;
  }

  .cta-bento-left {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .cta-section {
    padding: 48px 0 20px;
  }

  .cta-bento-card {
    padding: 26px 20px;
  }

  .cta-buttons,
  .cta-bento-left .cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 12px;
  }

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

  .ip-display-box {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .ip-display-info {
    align-items: center;
    margin-bottom: 8px;
  }

  .ip-display-box .copy-ip-btn {
    width: 100%;
    justify-content: center;
  }

  .connection-boxes {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   SOCIAL MEDIA SECTION (Full 1200px 4-Column Bar)
   ============================================ */
.social-section {
  padding: 12px 0 80px;
}

.social-icons-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.social-icon-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text);
  text-align: left;
  min-width: 0;
}

.social-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.social-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.social-card-info span {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.social-card-info small {
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-card-arrow {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.5;
  transition: transform 0.25s ease, opacity 0.25s ease, color 0.25s ease;
}

.social-icon-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 255, 255, 0.16);
}

.social-icon-card:hover .social-card-arrow {
  opacity: 1;
  transform: translate(2px, -2px);
  color: var(--text);
}

.social-icon-card:nth-child(1):hover {
  border-color: rgba(88, 101, 242, 0.45);
}

.social-icon-card:nth-child(1):hover .social-card-icon {
  background: rgba(88, 101, 242, 0.15);
  border-color: rgba(88, 101, 242, 0.35);
  color: #5865F2;
}

.social-icon-card:nth-child(2):hover {
  border-color: rgba(24, 119, 242, 0.45);
}

.social-icon-card:nth-child(2):hover .social-card-icon {
  background: rgba(24, 119, 242, 0.15);
  border-color: rgba(24, 119, 242, 0.35);
  color: #1877F2;
}

.social-icon-card:nth-child(3):hover {
  border-color: rgba(255, 0, 0, 0.45);
}

.social-icon-card:nth-child(3):hover .social-card-icon {
  background: rgba(255, 0, 0, 0.15);
  border-color: rgba(255, 0, 0, 0.35);
  color: #FF0000;
}

.social-icon-card:nth-child(4):hover {
  border-color: rgba(228, 64, 95, 0.45);
}

.social-icon-card:nth-child(4):hover .social-card-icon {
  background: rgba(228, 64, 95, 0.15);
  border-color: rgba(228, 64, 95, 0.35);
  color: #E4405F;
}

@media (max-width: 991px) {
  .social-icons-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 520px) {
  .social-icons-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--surface);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border-top: 1px solid var(--border);
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo-img {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  object-fit: contain;
}

.footer-brand p {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  font-size: var(--fs-sm);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  transition: all var(--transition);
}

.footer-col ul li a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: var(--fs-2xs);
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: var(--fs-2xs);
  color: var(--text-muted);
  transition: color var(--transition);
}

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

.developer-credit {
  text-align: center;
  padding-top: 12px;
  font-size: var(--fs-2xs);
  color: var(--text-muted);
}

.developer-credit a {
  color: var(--primary);
  font-weight: 600;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger>* {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-stagger.visible>*:nth-child(1) {
  transition-delay: 0.05s;
}

.reveal-stagger.visible>*:nth-child(2) {
  transition-delay: 0.15s;
}

.reveal-stagger.visible>*:nth-child(3) {
  transition-delay: 0.25s;
}

.reveal-stagger.visible>*:nth-child(4) {
  transition-delay: 0.35s;
}

.reveal-stagger.visible>* {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE (Tablet)
   ============================================ */
@media (max-width: 1024px) {
  .navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    right: 0;
    width: 320px;
    max-width: 100%;
    height: calc(100vh - var(--nav-height));
    height: calc(100dvh - var(--nav-height));
    background: #0c101a;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px 14px 20px;
    border-left: 1px solid var(--border);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.65);
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
      opacity 0.25s ease,
      visibility 0.25s ease;
    z-index: 999;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links a {
    font-size: 0.88rem;
    font-weight: 500;
    padding: 9px 14px;
    height: auto;
    min-height: 38px;
    box-sizing: border-box;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #e4e7ee;
  }

  .nav-links a i {
    font-size: 0.88rem;
    color: var(--primary);
    width: 18px;
    text-align: center;
    transition: transform var(--transition);
  }

  .nav-links a:hover {
    background: rgba(0, 200, 150, 0.1);
    color: #ffffff;
    border-color: rgba(0, 200, 150, 0.25);
    transform: translateX(2px);
  }

  .nav-links a.active {
    background: linear-gradient(135deg, var(--primary) 0%, #009e75 100%);
    color: #ffffff !important;
    font-weight: 600;
    border-color: rgba(0, 200, 150, 0.4);
    box-shadow: 0 4px 14px rgba(0, 200, 150, 0.35);
  }

  .nav-links a.active i {
    color: #ffffff !important;
  }

  .nav-more-wrapper {
    display: none !important;
  }

  .nav-mobile-explore {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
  }

  .nav-mobile-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
    margin: 6px 0 4px;
  }

  .nav-mobile-title {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding-left: 4px;
    margin-bottom: 2px;
  }

  .nav-mobile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .nav-mobile-grid a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
    padding: 8px 6px;
    height: auto;
    min-height: 48px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
  }

  .nav-mobile-grid a i {
    font-size: 1.05rem;
    color: var(--primary);
    width: auto;
    height: auto;
    line-height: 1;
    margin: 0;
    display: inline-block;
    transition: transform 0.2s ease;
  }

  .nav-mobile-grid a span {
    font-size: 0.72rem;
    line-height: 1.2;
    display: block;
  }

  .nav-mobile-grid a:hover {
    background: rgba(0, 200, 150, 0.08);
    border-color: rgba(0, 200, 150, 0.2);
    color: #ffffff;
    transform: translateY(-1px);
  }

  .nav-mobile-grid a:hover i {
    transform: scale(1.1);
  }

  .nav-mobile-grid a:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    flex-direction: row;
    gap: 8px;
    padding: 8px 12px;
    min-height: 36px;
  }

  @media (max-width: 480px) {
    .nav-links {
      width: 100%;
      right: 0;
      left: 0;
      border-radius: 0 0 var(--radius-lg) var(--radius-lg);
      border-left: none;
      border-bottom: 1px solid var(--border);
      padding: 14px 14px 20px;
    }
  }

  .hamburger {
    display: flex;
  }

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

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

  .faq-split-layout,
  .lb-split-layout,
  .cta-bento-card {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .faq-header-col {
    position: static;
  }

  .section-header-split {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .section-header-split>p {
    text-align: left;
    max-width: 100%;
  }

  .social-icons-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

/* ============================================
   RESPONSIVE (Mobile)
   ============================================ */
@media (max-width: 640px) {
  section {
    padding: 60px 0;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 60px;
  }

  .hero-title {
    font-size: var(--fs-2xl);
  }

  .hero .description {
    font-size: var(--fs-xs);
  }

  .player-card {
    padding: 22px 20px;
    margin-left: 16px;
    margin-right: 16px;
  }

  .player-count {
    font-size: var(--fs-2xl);
  }

  .section-header h2,
  .section-header-left h2,
  .faq-header-col h2,
  .lb-info-col h2,
  .cta-bento-left h2 {
    font-size: var(--fs-xl);
  }

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

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

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

  .stat-card {
    padding: 22px 16px;
  }

  .cta-bento-card {
    padding: 28px 20px;
    border-radius: var(--radius-lg);
  }

  .ip-display-value {
    font-size: clamp(var(--fs-md), 5vw, var(--fs-xl));
  }

  .ip-display-box {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 18px 16px;
  }

  .ip-display-meta {
    align-items: center;
  }

  .copy-ip-btn {
    justify-content: center;
    width: 100%;
  }

  .connection-boxes {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .social-icons-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .social-icon-card {
    padding: 16px 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
  }

  .user-dropdown {
    right: -40px;
    width: 260px;
  }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.loading-skeleton {
  background: linear-gradient(90deg,
      var(--border) 25%,
      var(--surface-hover) 50%,
      var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--surface-solid);
  color: var(--text);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  font-size: var(--fs-xs);
  font-weight: 600;
  z-index: 9999;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

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

/* ============================================
   NEW PAGES (RANKS)
   ============================================ */
.ranks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.rank-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition);
}

.rank-card.popular {
  border-color: var(--primary);
  transform: scale(1.05);
}

.rank-card:hover {
  transform: translateY(-5px);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--fs-2xs);
  font-weight: bold;
}

.rank-header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.rank-header h3 {
  font-size: var(--fs-2xl);
  margin-bottom: 8px;
}

.rank-price {
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--text);
}

.rank-price span {
  font-size: var(--fs-base);
  color: var(--text-muted);
}

.rank-perks {
  list-style: none;
  margin-bottom: 30px;
  flex: 1;
}

.rank-perks li {
  padding: 8px 0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.rank-card .btn {
  justify-content: center;
}

/* ============================================
   PLAYER MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 6, 14, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

body.modal-open {
  overflow: hidden !important;
}

.modal {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 92%;
  max-width: 520px;
  padding: 28px 24px 24px;
  box-shadow: var(--shadow-xl), 0 0 80px rgba(0, 200, 150, 0.06);
  position: relative;
  z-index: 1;
  isolation: isolate;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
}

.modal-overlay.show .modal {
  transform: translateY(0) scale(1);
}

.close-modal {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--fs-md);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.close-modal::before {
  content: '';
  position: absolute;
  inset: -6px;
}

.close-modal:hover {
  color: var(--text);
  background: var(--surface);
  border-color: var(--primary);
  transform: rotate(90deg);
}

.modal h3 {
  margin-bottom: 18px;
  font-size: var(--fs-md);
  font-weight: 700;
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: var(--fs-2xs);
  font-weight: 700;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(0, 200, 150, 0.15), rgba(0, 143, 107, 0.1));
  color: var(--primary);
  border: 1px solid rgba(0, 200, 150, 0.2);
  letter-spacing: 0.02em;
}

.player-list {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 200, 150, 0.25) transparent;
}

.player-list::-webkit-scrollbar {
  width: 5px;
}

.player-list::-webkit-scrollbar-track {
  background: transparent;
}

.player-list::-webkit-scrollbar-thumb {
  background: rgba(0, 200, 150, 0.25);
  border-radius: var(--radius-sm);
}

.player-list::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 200, 150, 0.4);
}

/* Search bar */
.player-search-wrapper {
  position: relative;
  margin-bottom: 14px;
}

.player-search-wrapper .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: var(--fs-xs);
  pointer-events: none;
  transition: color 0.2s;
}

.player-search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: var(--fs-xs);
  font-family: var(--font-body);
  outline: none;
  transition: all 0.25s ease;
}

.player-search-input::placeholder {
  color: var(--text-muted);
}

.player-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 200, 150, 0.12);
  background: var(--surface-solid);
}

.player-search-wrapper:focus-within .search-icon {
  color: var(--primary);
}

/* Player grid (2-column) */
.player-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.player-grid-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
  animation: playerCardIn 0.3s ease both;
}

@keyframes playerCardIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.player-grid-item:hover {
  background: var(--surface-solid);
  border-color: rgba(0, 200, 150, 0.25);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.player-grid-item img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  image-rendering: pixelated;
  flex-shrink: 0;
  border: 2px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
}

.player-grid-item:hover img {
  border-color: rgba(0, 200, 150, 0.35);
  transform: scale(1.08);
}

.player-grid-item .player-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.player-grid-item .player-name {
  font-weight: 700;
  font-size: var(--fs-xs);
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-view-link {
  font-size: var(--fs-2xs);
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  opacity: 0.7;
  transition: opacity 0.2s, gap 0.2s;
}

.player-view-link i {
  font-size: var(--fs-2xs);
  transition: transform 0.2s;
}

.player-grid-item:hover .player-view-link {
  opacity: 1;
}

.player-grid-item:hover .player-view-link i {
  transform: translateX(2px);
}

.no-match-message {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 30px 20px;
  color: var(--text-muted);
  text-align: center;
}

.no-match-message i {
  font-size: var(--fs-xl);
  opacity: 0.5;
}

.no-match-message p {
  font-size: var(--fs-xs);
}

.player-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: var(--surface-hover);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.player-list-item img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  image-rendering: pixelated;
}

.player-list-item span {
  font-weight: 600;
  color: var(--text);
}

@media (max-width: 540px) {
  .modal {
    max-width: 95%;
    padding: 22px 16px 18px;
  }

  .player-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .player-grid-item {
    padding: 9px 10px;
  }

  .player-grid-item img {
    width: 32px;
    height: 32px;
  }

  .modal h3 {
    font-size: var(--fs-md);
  }
}

/* ============================================
   LEADERBOARD SECTION (1200px 2-Column Split)
   ============================================ */
.leaderboard-section {
  position: relative;
  padding: var(--section-padding) 0;
}

.lb-split-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 36px;
  align-items: stretch;
}

.lb-split-layout>* {
  min-width: 0;
}

.lb-info-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  gap: 24px;
}

.lb-info-col h2 {
  font-size: var(--fs-2xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.lb-info-desc {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  line-height: 1.7;
  max-width: 440px;
}

.lb-quick-cards {
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 100%;
  margin: 0;
}

.leaderboard-card {
  width: 100%;
  max-width: 100%;
  margin: 0;
  background: var(--surface);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition);
}

.leaderboard-card:hover {
  border-color: var(--border-strong);
}

/* ── Tabs (Nested Radius: 16px outer - 8px padding = 8px) ── */
.lb-tabs {
  display: flex;
  background: rgba(11, 13, 20, 0.6);
  border-bottom: 1px solid var(--border);
  position: relative;
  padding: 8px;
  gap: 4px;
}

.lb-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 8px;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
  position: relative;
  z-index: 1;
}

.lb-tab:hover {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
}

.lb-tab:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.lb-tab.active {
  color: var(--text);
  font-weight: 600;
  text-shadow: none;
  background: var(--surface-hover);
  border-color: var(--border-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.lb-tab.active i,
.lb-tab.active .shard-glyph {
  color: var(--primary);
}

.lb-tab i {
  font-size: var(--fs-sm);
}

.shard-glyph {
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ── Body ─────────────────────────────────── */
.lb-body {
  padding: 8px 16px 16px;
  min-height: 384px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* ── Loading Skeleton ─────────────────────── */
.lb-loading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0;
}

.lb-skeleton-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  animation: lbSkeletonFadeIn 0.4s ease-out both;
  animation-delay: var(--delay, 0s);
}

.lb-skeleton {
  background: linear-gradient(90deg,
      var(--border) 25%,
      var(--surface-hover) 50%,
      var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-xs);
}

.lb-sk-rank {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  flex-shrink: 0;
}

.lb-sk-avatar {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  flex-shrink: 0;
}

.lb-sk-name {
  height: 16px;
  flex: 1;
  max-width: 160px;
}

.lb-sk-value {
  width: 72px;
  height: 16px;
  margin-left: auto;
}

@keyframes lbSkeletonFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Player Rows ──────────────────────────── */
.lb-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0;
}

.lb-list.lb-animate-in .lb-row {
  animation: lbRowSlideIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes lbRowSlideIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lb-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  transition: background-color var(--transition), border-color var(--transition);
}

.lb-row:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

/* Top 1 player styling — clean raised step, no rainbow bar */
.lb-row-top {
  background: var(--surface-hover);
  border: 1px solid rgba(255, 183, 0, 0.24);
  position: relative;
}

.lb-row-top::before {
  display: none;
}

.lb-row-top:hover {
  background: #222734;
  border-color: rgba(255, 183, 0, 0.36);
}

/* Top 2 & Top 3 Podium Accents */
.lb-list>.lb-row:nth-child(2) {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
}

.lb-list>.lb-row:nth-child(3) {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.025);
}

/* Rank Badge */
.lb-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  font-size: var(--fs-xs);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace, var(--font-heading);
}

.lb-rank-gold {
  background: rgba(255, 183, 0, 0.14);
  border: 1px solid rgba(255, 183, 0, 0.35);
  color: #fbbf24;
  font-size: var(--fs-xs);
  box-shadow: none;
  animation: none;
}

/* Avatar */
.lb-avatar {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  image-rendering: pixelated;
  flex-shrink: 0;
  border: 1px solid var(--border);
  transition: border-color var(--transition);
}

.lb-row:hover .lb-avatar {
  border-color: var(--border-strong);
}

.lb-row-top .lb-avatar {
  border-color: rgba(255, 183, 0, 0.35);
}

/* Username */
.lb-username {
  flex: 1;
  font-weight: 500;
  font-size: var(--fs-sm);
  color: var(--text);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lb-row-top .lb-username {
  color: var(--text);
  font-weight: 600;
  background: none;
  -webkit-text-fill-color: currentColor;
}

/* Value */
.lb-value {
  font-family: 'JetBrains Mono', monospace, var(--font-heading);
  font-weight: 500;
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.lb-row-top .lb-value {
  color: #fbbf24;
  font-weight: 600;
  font-size: var(--fs-sm);
}

/* ── Empty State ──────────────────────────── */
.lb-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 40px 20px;
  color: var(--text-muted);
}

.lb-empty i {
  font-size: var(--fs-2xl);
  opacity: 0.5;
}

.lb-empty p {
  font-size: var(--fs-sm);
}

/* ── Error State ──────────────────────────── */
.lb-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 20px;
  color: var(--text-muted);
}

.lb-error i {
  font-size: var(--fs-2xl);
  color: #e5484d;
  opacity: 0.7;
}

.lb-error p {
  font-size: var(--fs-sm);
}

/* ── Footer ───────────────────────────────── */
.lb-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: rgba(11, 13, 20, 0.5);
}

.lb-refresh-hint {
  font-size: var(--fs-2xs);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.lb-refresh-hint::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--secondary);
  animation: pulse-dot 2s ease-in-out infinite;
}

.lb-view-full {
  font-size: var(--fs-xs) !important;
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 1024px) {
  .lb-split-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .lb-info-col {
    display: contents;
  }

  .lb-info-top {
    order: 1;
    width: 100%;
    text-align: left;
  }

  .lb-info-desc {
    max-width: 100%;
  }

  .leaderboard-card {
    order: 2;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .lb-quick-cards {
    order: 3;
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .lb-split-layout {
    gap: 20px;
  }

  .lb-info-col h2,
  .lb-info-top h2 {
    font-size: var(--fs-xl);
    margin-bottom: 10px;
  }

  .leaderboard-card {
    border-radius: var(--radius-lg);
    margin: 0;
    width: 100%;
    max-width: 100%;
  }

  .lb-quick-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .lb-tabs {
    gap: 2px;
    padding: 4px;
  }

  .lb-tab {
    min-height: 44px;
    padding: 10px 6px;
    font-size: var(--fs-2xs);
    gap: 4px;
  }

  .lb-tab span {
    display: none;
  }

  .lb-tab i {
    font-size: var(--fs-md);
  }

  .lb-tab.active span {
    display: inline;
  }

  .lb-body {
    padding: 6px 10px 12px;
    min-height: 330px;
  }

  .lb-row,
  .lb-skeleton-row {
    padding: 10px 12px;
    gap: 10px;
  }

  .lb-rank,
  .lb-sk-rank {
    width: 28px;
    height: 28px;
    font-size: var(--fs-2xs);
  }

  .lb-avatar,
  .lb-sk-avatar {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-xs);
  }

  .lb-username {
    font-size: var(--fs-xs);
  }

  .lb-value {
    font-size: var(--fs-xs);
  }

  .lb-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 16px;
  }

  .lb-refresh-hint {
    order: 2;
    justify-content: center;
  }

  .lb-view-full {
    width: 100%;
    justify-content: center;
  }
}

/* --- Hover link utility --- */
.hover-link {
  color: var(--text);
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s;
}

.hover-link:hover {
  color: var(--primary);
}

/* --- Discord icon hover --- */
.discord-hover {
  color: var(--primary);
  font-size: var(--fs-xl);
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s;
}

.discord-hover:hover {
  transform: scale(1.1);
}

/* --- Prefers Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal-stagger {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --- Skip to Content Link --- */
.skip-link {
  position: absolute;
  top: -9999px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  z-index: 10000;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

/* ============================================
   Modern Footer
   ============================================ */
.site-footer {
  margin-top: 80px;
  position: relative;
  background: var(--surface);
  border-top: 1px solid var(--border);
  overflow-x: hidden;
  max-width: 100%;
}

.footer-wave {
  position: absolute;
  top: -60px;
  left: 0;
  width: 100%;
  max-width: 100%;
  height: 60px;
  overflow: hidden;
  line-height: 0;
}

.footer-wave svg {
  width: 100%;
  max-width: 100%;
  height: 100%;
  display: block;
}

.footer-main {
  padding: 50px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 0;
}

/* Brand Section */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 16px;
}

.footer-logo img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  image-rendering: pixelated;
}

.footer-logo span {
  font-size: var(--fs-lg);
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--text);
}

.footer-tagline {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(0, 200, 150, 0.08);
  border: 1px solid rgba(0, 200, 150, 0.15);
  color: var(--primary);
  font-size: var(--fs-md);
  text-decoration: none;
  transition: all var(--transition);
}

.social-icon:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 200, 150, 0.3);
}

/* Link Sections */
.footer-links h4,
.footer-links h3,
.footer-links .footer-col-title {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h4::after,
.footer-links h3::after,
.footer-links .footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius-xs);
}

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

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

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--fs-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
  padding: 4px 0;
}

.footer-links a i {
  font-size: var(--fs-2xs);
  opacity: 0;
  transform: translateX(-8px);
  transition: all var(--transition);
  color: var(--primary);
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(6px);
}

.footer-links a:hover i {
  opacity: 1;
  transform: translateX(0);
}

/* Server Info Section */
.footer-server h4,
.footer-server h3,
.footer-server .footer-col-title {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}

.footer-server h4::after,
.footer-server h3::after,
.footer-server .footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius-xs);
}

.server-ip-box {
  background: linear-gradient(135deg, rgba(0, 200, 150, 0.08), rgba(0, 143, 107, 0.05));
  border: 1px solid rgba(0, 200, 150, 0.2);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 16px;
}

.server-ip-box:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 200, 150, 0.15);
}

.server-label {
  font-size: var(--fs-2xs);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.server-address {
  font-size: var(--fs-lg);
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--primary);
}

.server-copy-hint {
  font-size: var(--fs-2xs);
  color: var(--text-muted);
  margin-top: 6px;
  opacity: 0;
  transition: opacity var(--transition);
}

.server-ip-box:hover .server-copy-hint {
  opacity: 1;
}

.server-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.server-detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: var(--fs-xs);
}

.server-detail-item i {
  color: var(--primary);
  width: 16px;
  text-align: center;
}

.status-online {
  color: var(--primary);
}

/* Bottom Bar */
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copyright {
  color: var(--text-muted);
  font-size: var(--fs-xs);
  margin: 0;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--fs-xs);
  transition: color var(--transition);
}

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

.footer-legal .separator {
  color: var(--text-muted);
  user-select: none;
}

.footer-dev {
  color: var(--text-muted);
  font-size: var(--fs-xs);
  margin: 0;
}

.footer-dev a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition);
}

.footer-dev a:hover {
  text-decoration: underline;
}

.footer-dev i {
  color: #ff5050;
  font-size: var(--fs-2xs);
  animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-main {
    padding: 36px 0 20px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal {
    order: 2;
  }

  .footer-dev {
    order: 3;
  }

  .footer-wave {
    top: -40px;
    height: 40px;
    width: 100%;
  }

  .server-ip-box {
    padding: 12px;
    margin-bottom: 12px;
  }

  .server-address {
    font-size: var(--fs-md);
  }

  .server-label {
    font-size: var(--fs-2xs);
    margin-bottom: 2px;
  }

  .server-copy-hint {
    margin-top: 4px;
    font-size: var(--fs-2xs);
  }
}

/* ============================================
   Player Search Modal
   ============================================ */
.search-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 6, 14, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: flex-start;
  padding: 80px 20px 20px;
}

.search-modal-overlay.show {
  display: flex;
}

.search-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 520px;
  box-shadow: var(--shadow-xl);
  animation: searchModalIn 0.3s ease;
  overflow: hidden;
}

@keyframes searchModalIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.search-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.search-modal-header h3 {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-modal-header h3 i {
  color: var(--primary);
}

.search-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: var(--fs-xl);
  cursor: pointer;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  position: relative;
  transition: all var(--transition);
}

.search-close::before {
  content: '';
  position: absolute;
  inset: -4px;
}

.search-close:hover {
  background: rgba(255, 80, 80, 0.1);
  color: #ff5050;
}

.search-input-wrapper {
  position: relative;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}

.search-icon-inside {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  pointer-events: none;
}

.search-input {
  padding: 14px 44px 14px 42px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  outline: none;
  transition: border-color var(--transition);
}

.search-input:focus {
  border-color: var(--primary);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-clear {
  position: absolute;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 80, 80, 0.1);
  border: none;
  color: #ff5050;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: var(--fs-xs);
  transition: all var(--transition);
}

.search-clear::before {
  content: '';
  position: absolute;
  inset: -7px;
}

.search-clear:hover {
  background: rgba(255, 80, 80, 0.2);
}

.search-results {
  max-height: 400px;
  overflow-y: auto;
  padding: 8px 0;
}

.search-results::-webkit-scrollbar {
  width: 6px;
}

.search-results::-webkit-scrollbar-track {
  background: transparent;
}

.search-results::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: var(--radius-xs);
}

.search-empty {
  text-align: center;
  padding: 40px 24px;
  color: var(--text-muted);
}

.search-empty i {
  font-size: var(--fs-2xl);
  margin-bottom: 12px;
  opacity: 0.4;
}

.search-empty p {
  font-size: var(--fs-sm);
  margin: 0;
}

.search-loading {
  text-align: center;
  padding: 40px 24px;
  color: var(--text-muted);
}

.search-loading i {
  font-size: var(--fs-lg);
  margin-bottom: 8px;
  color: var(--primary);
}

.search-loading p {
  font-size: var(--fs-xs);
  margin: 0;
}

.search-results-header {
  padding: 10px 24px;
  font-size: var(--fs-2xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.search-results-list {
  padding: 0 12px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition);
}

.search-result-item:hover {
  background: rgba(0, 200, 150, 0.06);
}

.search-result-item img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  image-rendering: pixelated;
  background: rgba(0, 0, 0, 0.2);
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-name {
  font-weight: 700;
  color: var(--text);
  font-size: var(--fs-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-stats {
  font-size: var(--fs-2xs);
  color: var(--text-muted);
  margin-top: 2px;
}

.search-result-arrow {
  color: var(--text-muted);
  font-size: var(--fs-2xs);
  opacity: 0;
  transform: translateX(-8px);
  transition: all var(--transition);
}

.search-result-item:hover .search-result-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--primary);
}

/* Responsive */
@media (max-width: 640px) {
  .search-modal-overlay {
    padding: 60px 12px 12px;
  }

  .search-modal {
    max-width: 100%;
  }

  .search-results {
    max-height: 60vh;
  }
}

/* ============================================
   IMPROVED NAVBAR - Grouped Dropdown
   ============================================ */
.nav-more-wrapper {
  position: relative;
}

.nav-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--font-body);
  line-height: 1;
}

.nav-more-btn i {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-more-btn .more-chevron {
  font-size: var(--fs-2xs);
  margin-left: -2px;
  transition: transform 0.25s ease;
}

.nav-more-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.nav-more-btn:hover i {
  color: var(--primary);
}

.nav-more-wrapper.open .nav-more-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.nav-more-wrapper.open .nav-more-btn .more-chevron {
  transform: rotate(180deg);
}

.nav-more-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, #009e75 100%);
  color: #ffffff !important;
  font-weight: 600;
  border-color: rgba(0, 200, 150, 0.4);
  box-shadow: 0 4px 14px rgba(0, 200, 150, 0.35);
}

.nav-more-btn.active i {
  color: #ffffff !important;
}

.nav-more-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 210px;
  background: rgba(14, 18, 28, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 1px rgba(255, 255, 255, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1001;
  overflow: hidden;
  padding: 6px;
}

.nav-more-wrapper.open .nav-more-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-more-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.18s ease;
  border: 1px solid transparent;
}

.nav-more-dropdown a i {
  width: 18px;
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--primary);
  opacity: 0.85;
}

.nav-more-dropdown a:hover {
  color: #ffffff;
  background: rgba(0, 200, 150, 0.1);
  border-color: rgba(0, 200, 150, 0.2);
  transform: translateX(3px);
}

.nav-more-dropdown a:hover i {
  opacity: 1;
  transform: scale(1.1);
}

.nav-more-dropdown a.active {
  color: #ffffff;
  background: rgba(0, 200, 150, 0.18);
  border-color: rgba(0, 200, 150, 0.35);
  font-weight: 600;
}

/* -- Responsive Adjustments ---------------- */
@media (max-width: 768px) {
  .profile-header-info {
    flex-direction: column;
    text-align: center;
  }

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

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

  .profile-login-input-group {
    flex-direction: column;
  }

  .profile-share-bar {
    flex-direction: column;
  }
}

.nav-quick-action {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff !important;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 12px rgba(0, 200, 150, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-quick-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 200, 150, 0.35);
  background: linear-gradient(135deg, var(--secondary), var(--primary));
}

@media (max-width: 500px) {
  .nav-quick-action .quick-action-text {
    display: none;
  }

  .nav-quick-action {
    padding: 8px 12px;
  }
}


/* Mobile Overflow Fix — only hide horizontal overflow */
html {
  overflow-x: hidden;
}

/* Hero Stats Grid Added */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto 16px;
}

.hero-stat-card {
  background: var(--surface);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* CSS-only entrance animation */
  animation: heroCardIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-stat-card:nth-child(1) {
  animation-delay: 0.1s;
}

.hero-stat-card:nth-child(2) {
  animation-delay: 0.25s;
}

.hero-stat-card:nth-child(3) {
  animation-delay: 0.4s;
}

.hero-stat-card:nth-child(4) {
  animation-delay: 0.55s;
}

@keyframes heroCardIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Top accent line */
.hero-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-stat-card:hover::before {
  opacity: 1;
}

/* Category accent colors per card */
.hero-stat-card:nth-child(1)::before {
  background: linear-gradient(90deg, #00c896, #3b82f6);
}

.hero-stat-card:nth-child(2)::before {
  background: linear-gradient(90deg, #3b82f6, #6366f1);
}

.hero-stat-card:nth-child(3)::before {
  background: linear-gradient(90deg, #6366f1, #f59e0b);
}

.hero-stat-card:nth-child(4)::before {
  background: linear-gradient(90deg, #f59e0b, #00c896);
}

.hero-stat-card.clickable {
  cursor: pointer;
}

.hero-stat-card.clickable:hover {
  border-color: var(--primary);
  background: var(--surface-hover);
}

.hero-stat-icon {
  font-size: var(--fs-xl);
  color: var(--primary);
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

.hero-stat-card:hover .hero-stat-icon {
  transform: scale(1.2);
}

/* Color per icon */
.hero-stat-card:nth-child(2) .hero-stat-icon {
  color: #3b82f6;
}

.hero-stat-card:nth-child(3) .hero-stat-icon {
  color: #a855f7;
}

.hero-stat-card:nth-child(4) .hero-stat-icon {
  color: #f59e0b;
}

.hero-stat-value {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 6px;
}

.hero-stat-label {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  font-weight: 500;
}

.hero-stat-header {
  margin-bottom: 8px;
}

/* Loading skeleton shimmer */
.loading-skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--surface-hover) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-xs);
}

@keyframes skeletonShimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

@media (max-width: 900px) {
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 500px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .hero-stat-card {
    padding: 18px 12px;
  }

  .hero-stat-value {
    font-size: var(--fs-lg);
  }
}

@media (max-width: 360px) {
  .container {
    padding: 0 12px;
  }

  .hero-stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-stat-card {
    padding: 16px 12px;
  }
}

/* ============================================
   PRINT STYLESHEET
   Optimized for printing profiles, leaderboards, etc.
   ============================================ */
@media print {

  /* Hide non-essential UI elements */
  .navbar,
  .nav-overlay,
  .hamburger,
  .site-footer,
  .footer-wave,
  .toast,
  .modal-overlay,
  .search-modal-overlay,
  .skip-link,
  .hero-buttons,
  .cta-section,
  .social-section,
  .quick-nav-section,
  .btn,
  .copy-ip-btn,
  .server-ip-display,
  .lb-footer,
  .lb-tabs,
  #footer-placeholder,
  #navbar-placeholder {
    display: none !important;
  }

  /* Reset backgrounds and shadows for clean print */
  body,
  body::before,
  body::after {
    background: #fff !important;
    color: #000 !important;
  }

  * {
    box-shadow: none !important;
    text-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Ensure readable text */
  body,
  p,
  span,
  div,
  td,
  th,
  li,
  a {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
    page-break-after: avoid;
  }

  /* Make surfaces transparent for print */
  .hero-stat-card,
  .feature-card,
  .step-card,
  .faq-item,
  .testimonial-card,
  .leaderboard-card,
  .player-card {
    background: transparent !important;
    border: 1px solid #ddd !important;
  }

  /* Remove animations */
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  /* Ensure images are printable */
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  /* Layout adjustments */
  .hero {
    padding-top: 20px !important;
  }

  section {
    padding: 20px 0 !important;
    page-break-inside: avoid;
  }

  .container {
    max-width: 100% !important;
  }

  /* Show link URLs in print */
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666 !important;
    -webkit-text-fill-color: #666 !important;
  }

  /* Don't show URL for nav/internal links */
  .nav-links a::after,
  .footer-links a::after,
  .quick-card::after {
    content: none !important;
  }
}

/* ==============================================================================
   HavenCraft — Snappy & Butter-Smooth Page Entrance (Universal Zero-FOUC)
   ============================================================================== */
body {
  animation: hvnPageFadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

main {
  animation: hvnMainSlideIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes hvnPageFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes hvnMainSlideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  body,
  main {
    animation: none !important;
    transform: none !important;
  }
}

/* ==============================================================================
   HavenCraft — Site-Wide Floating Live Chat Widget
   ============================================================================== */
.hvn-chat-widget-root {
  display: contents;
}

.hvn-chat-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  outline: none;
  box-shadow: 0 8px 28px rgba(0, 200, 150, 0.45);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  will-change: transform;
  animation: bubbleBreathe 3s ease-in-out infinite;
}

@keyframes bubbleBreathe {

  0%,
  100% {
    box-shadow: 0 8px 28px rgba(0, 200, 150, 0.4);
  }

  50% {
    box-shadow: 0 8px 36px rgba(0, 200, 150, 0.6), 0 0 60px rgba(0, 200, 150, 0.15);
  }
}

.hvn-chat-bubble:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 200, 150, 0.6);
}

.hvn-chat-bubble:active {
  transform: scale(0.95);
}

.hvn-chat-bubble i {
  font-size: 1.45rem;
  transition: transform 0.25s ease;
}

.hvn-chat-bubble.open i {
  transform: rotate(90deg);
}

.hvn-chat-bubble-label {
  position: fixed;
  bottom: 34px;
  right: 90px;
  z-index: 9997;
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  pointer-events: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  animation: fadeIn 0.3s ease;
}

.hvn-chat-bubble-label span {
  color: var(--primary);
  margin-right: 4px;
}

.hvn-chat-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: #ff3b30;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
  box-shadow: 0 0 10px rgba(255, 59, 48, 0.7);
  animation: pulse 1.8s infinite;
}

.hvn-chat-drawer {
  position: fixed;
  bottom: 92px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 120px);
  z-index: 9999;
  background: var(--surface);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(24px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  will-change: transform, opacity;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease, visibility 0.22s;
}

.hvn-chat-drawer.active {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.hvn-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.hvn-drawer-agent {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hvn-drawer-avatar-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.hvn-drawer-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.hvn-drawer-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00e676;
  border: 2px solid var(--surface);
  box-shadow: 0 0 6px #00e676;
}

.hvn-drawer-title h4 {
  margin: 0;
  font-size: 0.98rem;
  font-family: var(--font-heading);
  color: var(--text);
}

.hvn-drawer-title span {
  font-size: 0.76rem;
  color: var(--text-secondary);
  display: block;
}

.hvn-drawer-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hvn-drawer-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.88rem;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}

.hvn-drawer-btn:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.hvn-drawer-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

@media (max-width: 640px) {
  .hvn-chat-bubble {
    bottom: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
  }

  .hvn-chat-bubble-label {
    display: none !important;
  }

  .hvn-chat-drawer {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100vw;
    max-width: 100vw;
    height: 85vh;
    max-height: 85vh;
    border-radius: 24px 24px 0 0;
    border-bottom: none;
  }

  .hvn-drawer-handle {
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.25);
    margin: 8px auto 4px;
  }
}

/* ==========================================================================
   HOME PAGE PRO UPGRADES (0% AI Vibes — Telemetry, Lookup, Accordion & Strip)
   ========================================================================== */

/* Monospace Architectural Section Tag */
.section-mono-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
  opacity: 0.92;
}

/* Hero Live Online Avatar Stack & Activity Pill */
.hero-live-roster {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  background: rgba(16, 20, 32, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  font-size: var(--fs-2xs);
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.hero-live-roster:hover {
  border-color: rgba(0, 200, 150, 0.35);
  background: rgba(0, 200, 150, 0.06);
  color: var(--text);
  transform: translateY(-1px);
}

.hero-avatar-stack {
  display: inline-flex;
  align-items: center;
  padding-left: 2px;
}

.hero-stack-head {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: 1.5px solid #0d1018;
  margin-left: -6px;
  image-rendering: pixelated;
  background: #141926;
  object-fit: cover;
}

.hero-stack-head:first-child {
  margin-left: 0;
}

.hero-roster-text strong {
  color: #ffffff;
  font-weight: 700;
}

.hero-roster-arrow {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-left: 2px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.hero-live-roster:hover .hero-roster-arrow {
  transform: translateX(2px);
  color: var(--primary);
}

/* Terminal Footer 1-Click Bedrock Link */
.terminal-quick-add {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.terminal-quick-add:hover {
  opacity: 0.85;
  text-decoration: underline;
}

/* Feature Card In-Game Command Badges */
.feature-cmd-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.feature-cmd-row code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(0, 200, 150, 0.1);
  border: 1px solid rgba(0, 200, 150, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 3px 9px;
  border-radius: 6px;
  letter-spacing: 0.25px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover .feature-cmd-row code {
  background: rgba(0, 200, 150, 0.15);
  border-color: rgba(0, 200, 150, 0.38);
}

/* Inline Player Profile Lookup Form in Leaderboard Section */
.home-player-lookup {
  margin-top: 22px;
  padding: 16px;
  background: rgba(16, 20, 32, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.lookup-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.lookup-label i {
  color: var(--primary);
}

.lookup-input-group {
  display: flex;
  gap: 8px;
}

.lookup-input {
  flex: 1;
  min-width: 0;
  background: rgba(9, 12, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-xs);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lookup-input::placeholder {
  color: var(--text-muted);
  font-family: var(--font-body);
}

.lookup-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 200, 150, 0.14);
}

.lookup-submit {
  flex-shrink: 0;
}

/* Interactive FAQ Accordion */
.faq-support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-acc-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition), background-color var(--transition);
}

.faq-acc-item:hover {
  border-color: var(--border-strong);
}

.faq-acc-item[open] {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.faq-acc-summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.faq-acc-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}

.faq-acc-summary::-webkit-details-marker {
  display: none;
}

.faq-acc-summary span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}

.faq-acc-chevron {
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
  flex-shrink: 0;
}

.faq-acc-item[open] .faq-acc-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-acc-content {
  padding: 0 20px 16px 44px;
  color: var(--text-secondary);
  font-size: var(--fs-xs);
  line-height: 1.65;
}

.faq-acc-content p {
  margin: 0;
}

.faq-acc-content code,
.cta-pro-copy code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  color: var(--primary);
  background: rgba(0, 200, 150, 0.08);
  border: 1px solid rgba(0, 200, 150, 0.18);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Streamlined Pro Action Banner Strip */
.cta-pro-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 36px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-pro-strip::before {
  display: none;
}

.cta-pro-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.cta-pro-copy h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 8px;
}

.cta-pro-copy p {
  margin: 0 0 12px;
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.cta-pro-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.cta-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--text-secondary);
  white-space: nowrap;
}

.cta-meta-pill i {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.cta-meta-pill strong {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.cta-pro-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .hero-live-roster {
    margin: 0 auto;
  }

  .cta-pro-strip {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  .cta-pro-actions {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .lookup-input-group {
    flex-direction: column;
  }

  .lookup-submit {
    width: 100%;
  }

  .faq-acc-summary {
    padding: 16px;
  }

  .faq-acc-content {
    padding: 0 16px 16px 16px;
  }

  .cta-pro-actions {
    flex-direction: column;
  }

  .cta-pro-actions .btn {
    width: 100%;
  }
}