/* nedo.css - Modern Dark Neon Green Theme inspired by nedohackers.site */
@import url('https://fonts.googleapis.com/css2?family=Onest:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --color-black: #000000;
  --color-dark: #050705;
  --color-surface: #0a0d0a;
  --color-card: rgba(255, 255, 255, 0.025);
  --color-card-hover: rgba(255, 255, 255, 0.05);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(131, 255, 0, 0.35);
  
  --color-signal: #83ff00;
  --color-signal-glow: rgba(131, 255, 0, 0.35);
  --color-signal-dim: rgba(131, 255, 0, 0.12);
  
  --color-ink: #f2f4f0;
  --color-muted: #9ba39b;
  --color-dim: #5c635c;
  
  --color-red: #ef4444;
  --color-amber: #f59e0b;
  --color-blue: #3b82f6;
  --color-purple: #a855f7;

  --ease-snap: cubic-bezier(.2, 0, 0, 1);
  --ease-out-back: cubic-bezier(.34, 1.56, .64, 1);
  --ease-signal: cubic-bezier(.16, 1, .3, 1);
  --ease-sine: cubic-bezier(.37, 0, .63, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--color-black);
  color: var(--color-ink);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Background grid and radial gradients */
.bg-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-radial-top {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 700px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(131, 255, 0, 0.12) 0%, rgba(131, 255, 0, 0.03) 45%, transparent 100%);
  filter: blur(40px);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 60%, transparent 100%);
}

.bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.8) 100%);
}

/* Typography utilities */
.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

.text-signal {
  color: var(--color-signal);
}

.text-ink {
  color: var(--color-ink);
}

.text-muted {
  color: var(--color-muted);
}

.text-dim {
  color: var(--color-dim);
}

.gradient-title {
  background: linear-gradient(135deg, #ffffff 30%, #83ff00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Container */
.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 1.25rem;
  position: relative;
  z-index: 10;
}

/* FLOATING HEADER / NAVBAR (Exact nedohackers pill) */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 1rem;
  z-index: 100;
  padding-inline: 1rem;
  pointer-events: none;
}

@media (min-width: 640px) {
  .site-header {
    top: 1.5rem;
    padding-inline: 1.5rem;
  }
}

.nav-pill {
  pointer-events: auto;
  margin-inline: auto;
  display: flex;
  width: 100%;
  max-width: 1080px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 9999px;
  border: 1px solid var(--color-border);
  background: rgba(0, 0, 0, 0.72);
  padding: 0.65rem 0.85rem 0.65rem 1.4rem;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.08), 0 26px 70px -30px var(--color-signal-glow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-pill:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  position: relative;
  flex-shrink: 0;
}

.brand-glow {
  position: absolute;
  inset: -0.75rem;
  border-radius: 9999px;
  background: var(--color-signal-dim);
  opacity: 0;
  filter: blur(14px);
  transition: opacity 0.5s var(--ease-signal);
  z-index: -1;
}

.brand-link:hover .brand-glow {
  opacity: 1;
}

.brand-logo-desktop {
  height: 28px;
  width: auto;
  display: none;
}

.brand-logo-mobile {
  height: 32px;
  width: auto;
  display: block;
}

@media (min-width: 768px) {
  .brand-logo-desktop {
    display: block;
  }
  .brand-logo-mobile {
    display: none;
  }
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 992px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-link:hover {
  color: var(--color-ink);
  background-color: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  color: var(--color-signal);
  background-color: var(--color-signal-dim);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.48rem 1.15rem;
  border-radius: 9999px;
  background: var(--color-signal);
  color: #000;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0 20px -3px var(--color-signal-glow);
  transition: transform 0.2s var(--ease-out-back), background-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}

.btn-header-cta:hover {
  transform: scale(1.04);
  background: #95ff24;
  box-shadow: 0 0 30px 0 var(--color-signal-glow);
}

.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-ink);
  cursor: pointer;
  font-size: 16px;
}

@media (min-width: 992px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 5rem;
  inset-inline: 1rem;
  background: rgba(10, 13, 10, 0.95);
  border: 1px solid var(--color-border);
  border-radius: 1.5rem;
  padding: 1.5rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.8);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.mobile-drawer.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-drawer .nav-link {
  font-size: 15px;
  padding: 0.75rem 1rem;
  width: 100%;
}

/* HERO SECTION */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 7.5rem 1.25rem 4rem;
  overflow: hidden;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  background: rgba(131, 255, 0, 0.08);
  border: 1px solid rgba(131, 255, 0, 0.25);
  color: var(--color-signal);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  /* text-transform */
  margin-bottom: 1.75rem;
  box-shadow: 0 0 25px -5px rgba(131, 255, 0, 0.2);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 9999px;
  display: inline-block;
  background-color: var(--color-signal);
  box-shadow: 0 0 10px var(--color-signal);
  animation: pulse-dot 2s infinite ease-in-out;
}

.status-dot.offline {
  background-color: var(--color-red);
  box-shadow: 0 0 10px var(--color-red);
  animation: none;
}

.status-dot.starting {
  background-color: var(--color-amber);
  box-shadow: 0 0 10px var(--color-amber);
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  max-width: 920px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: var(--color-muted);
  line-height: 1.7;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

/* IP BOX WIDGET */
.ip-widget-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}

.ip-banner-card {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 9999px;
  background: rgba(12, 17, 12, 0.85);
  border: 1px solid rgba(131, 255, 0, 0.35);
  box-shadow: 0 0 35px -5px rgba(131, 255, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s var(--ease-out-back);
  user-select: none;
}

.ip-banner-card:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: var(--color-signal);
  box-shadow: 0 0 45px -2px rgba(131, 255, 0, 0.35);
}

.ip-banner-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
}

.ip-banner-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-signal);
  background: rgba(131, 255, 0, 0.15);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(131, 255, 0, 0.3);
  transition: background-color 0.2s, color 0.2s;
}

.ip-banner-card:hover .ip-banner-copy-btn {
  background: var(--color-signal);
  color: #000;
}

.ip-hint {
  font-size: 13px;
  color: var(--color-dim);
  transition: color 0.3s;
}

/* Action CTA buttons */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 2.75rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.85rem;
  border-radius: 9999px;
  background: var(--color-signal);
  color: #000;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0 30px -5px var(--color-signal-glow);
  transition: transform 0.2s var(--ease-out-back), background-color 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  background: #99ff2e;
  box-shadow: 0 0 45px 0 var(--color-signal-glow);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.85rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  color: var(--color-ink);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.2s var(--ease-out-back);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Live Server Status Card */
.server-card {
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  border-radius: 1.5rem;
  border: 1px solid var(--color-border);
  background: rgba(14, 18, 14, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.35rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-align: left;
}

.server-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.server-metric-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 14px;
}

.server-metric-val {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--color-signal);
}

.players-online-bar {
  font-size: 13px;
  color: var(--color-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.player-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.15rem 0.55rem 0.15rem 0.35rem;
  border-radius: 9999px;
  font-size: 12px;
  color: #fff;
}

.player-head {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  image-rendering: pixelated;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  background: rgba(0, 0, 0, 0.2);
}

/* SECTION STYLING (nedohackers section cadence) */
.content-section {
  padding-block: 5.5rem;
  position: relative;
  z-index: 10;
}

@media (min-width: 768px) {
  .content-section {
    padding-block: 7.5rem;
  }
}

.section-header {
  margin-bottom: 3.5rem;
  max-width: 700px;
}

.section-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--color-signal);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.8vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--color-ink);
  margin-bottom: 0.85rem;
}

.section-desc {
  font-size: 15.5px;
  color: var(--color-muted);
  line-height: 1.7;
}

/* RUBRICS LIST (nedohackers style items) */
.rubrics-list {
  display: flex;
  flex-direction: column;
}

.rubric-item {
  position: relative;
  border-top: 1px solid var(--color-border);
  transition: background-color 0.3s var(--ease-signal);
}

.rubric-item:last-child {
  border-bottom: 1px solid var(--color-border);
}

.rubric-item:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.rubric-accent-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 2px;
  background-color: var(--color-signal);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.4s var(--ease-signal);
}

.rubric-item:hover .rubric-accent-bar {
  transform: scaleY(1);
}

.rubric-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: 2.25rem 0.5rem;
}

@media (min-width: 640px) {
  .rubric-inner {
    grid-template-columns: 3rem 1fr;
    align-items: start;
    padding: 2.5rem 1.5rem;
  }
}

.rubric-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-dim);
  transition: color 0.3s;
  padding-top: 0.35rem;
}

.rubric-item:hover .rubric-num {
  color: var(--color-signal);
}

.rubric-body h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}

.rubric-body p {
  font-size: 15px;
  color: var(--color-muted);
  line-height: 1.75;
  max-width: 860px;
}

.rubric-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

@media (min-width: 640px) {
  .rubric-meta {
    text-align: right;
    align-items: flex-end;
  }
}

.rubric-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--color-signal);
  background: var(--color-signal-dim);
  border: 1px solid rgba(131, 255, 0, 0.25);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  text-transform: uppercase;
}

/* CARDS GRID (nedohackers 3-column links / features) */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sleek-card {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: 1.5rem;
  padding: 1.75rem;
  transition: border-color 0.3s var(--ease-signal), background-color 0.3s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.sleek-card:hover {
  border-color: var(--color-border-hover);
  background: rgba(255, 255, 255, 0.035);
  transform: translateY(-2px);
}

.sleek-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--color-signal-dim);
  border: 1px solid rgba(131, 255, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-signal);
  font-size: 16px;
  flex-shrink: 0;
}

.sleek-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: -0.02em;
}

.sleek-card-desc {
  font-size: 13.5px;
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* Card Link List */
.card-link-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.card-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  font-size: 13px;
  color: var(--color-muted);
  text-decoration: none;
  background: transparent;
  transition: background-color 0.15s, color 0.15s;
}

.card-link-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-ink);
}

.link-arrow {
  opacity: 0;
  transform: translateX(-6px);
  color: var(--color-signal);
  transition: opacity 0.15s var(--ease-signal), transform 0.15s var(--ease-signal);
  font-weight: bold;
}

.card-link-item:hover .link-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* MODS SPECIFIC CARDS */
.mod-download-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.btn-mod-dl {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.95rem;
  border-radius: 0.75rem;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.2s var(--ease-out-back);
}

.btn-mod-dl:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-mod-dl.fabric:hover {
  border-color: #5a87e5;
  background: rgba(90, 135, 229, 0.15);
}

.btn-mod-dl.neoforge:hover {
  border-color: #d97706;
  background: rgba(217, 119, 6, 0.15);
}

.btn-mod-dl.forge:hover {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.15);
}

.btn-mod-dl.vt {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.3);
  color: #d8b4fe;
}

.btn-mod-dl.vt:hover {
  background: rgba(168, 85, 247, 0.25);
  border-color: #a855f7;
  color: #fff;
}

.btn-mod-dl.video {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  cursor: pointer;
}

.btn-mod-dl.video:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #fff;
}

/* RULES FILTER TABS & ACCORDION (nedohackers FAQ style) */
.rules-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.tab-pill {
  padding: 0.5rem 1.15rem;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-muted);
  cursor: pointer;
  transition: all 0.2s var(--ease-signal);
}

.tab-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-ink);
}

.tab-pill.active {
  background: var(--color-signal-dim);
  border-color: rgba(131, 255, 0, 0.4);
  color: var(--color-signal);
}

.search-rules-box {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin-bottom: 2.25rem;
}

.search-rules-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-rules-input:focus {
  border-color: var(--color-signal);
  box-shadow: 0 0 20px -5px var(--color-signal-glow);
}

.search-rules-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-dim);
  font-size: 14px;
}

/* Accordion Item */
.accordion-group {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-border);
}

.accordion-item {
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.2s;
}

.accordion-header {
  padding: 1.25rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  user-select: none;
}

.accordion-header:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.accordion-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
}

.accordion-rule-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-signal);
  flex-shrink: 0;
}

.accordion-title {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--color-ink);
  line-height: 1.5;
}

.accordion-chevron {
  color: var(--color-dim);
  font-size: 14px;
  transition: transform 0.25s var(--ease-signal);
  flex-shrink: 0;
}

.accordion-item.active .accordion-chevron {
  transform: rotate(180deg);
  color: var(--color-signal);
}

.accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, visibility 0.4s;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
}

.accordion-item.active .accordion-content {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
}

.accordion-content > div {
  min-height: 0;
  overflow: hidden;
}

.accordion-body {
  padding: 0 0.5rem 1.5rem 2.35rem;
  color: var(--color-muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.punishment-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  font-size: 13px;
  font-weight: 500;
}

/* Callout Warning Card */
.callout-box {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 1.25rem;
  padding: 1.5rem;
  margin-top: 2rem;
}

.callout-box.amber {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.3);
}

.callout-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fca5a5;
  margin-bottom: 0.5rem;
}

.callout-box.amber .callout-title {
  color: #fbbf24;
}

/* MAP SECTION FRAME */
.map-frame-wrapper {
  width: 100%;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: rgba(10, 13, 10, 0.8);
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.map-frame-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.02);
}

.map-status-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--color-signal);
}

.map-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-map-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-map-control:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.map-iframe {
  width: 100%;
  height: 65vh;
  border: none;
  display: block;
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding-block: 4rem 2.5rem;
  background: rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 10;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: space-between;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    align-items: flex-start;
  }
}

.footer-brand p {
  font-size: 14px;
  color: var(--color-dim);
  max-width: 320px;
  margin-top: 0.65rem;
}

.footer-links-group {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-ink);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: var(--color-signal);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--color-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* MODALS (Video & Alerts - Nedohackers Style) */
body.modal-open {
  overflow: hidden !important;
  touch-action: none !important;
}

.custom-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.25s var(--ease-signal);
  overscroll-behavior: contain;
}

.custom-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.custom-modal-window {
  position: relative;
  width: 100%;
  max-width: 760px;
  background: #080b08;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.75rem;
  box-shadow: 0 25px 70px -15px rgba(0, 0, 0, 0.9), 0 0 40px -10px var(--color-signal-glow);
  padding: 1.5rem;
  transform: scale(0.92) translateY(10px);
  transition: transform 0.3s var(--ease-out-back);
}

.custom-modal-overlay.active .custom-modal-window {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-muted);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: rotate(90deg);
}

.custom-modal-window video {
  width: 100%;
  border-radius: 1.25rem;
  display: block;
  outline: none;
}

/* Alert Modal Box - Ultra Sleek Nedohackers style */
.alert-modal-box {
  max-width: 460px;
  text-align: center;
  padding: 3rem 2.25rem 2.5rem;
  background: linear-gradient(180deg, #0e120e 0%, #060806 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2rem;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 30px 80px -20px rgba(0, 0, 0, 0.95),
    0 0 50px -10px rgba(131, 255, 0, 0.2);
}

.alert-modal-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 1.25rem;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: #ff4757;
  font-size: 1.85rem;
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.25);
  animation: modal-icon-bounce 2s infinite ease-in-out;
}

@keyframes modal-icon-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.alert-modal-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f2f4f0;
  line-height: 1.55;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.alert-modal-actions {
  display: flex;
  justify-content: center;
}

.btn-alert-close-nedo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 140px;
  padding: 0.8rem 2.25rem;
  border-radius: 9999px;
  background: var(--color-signal);
  color: #000;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 25px -3px var(--color-signal-glow);
  transition: transform 0.2s var(--ease-out-back), background-color 0.2s, box-shadow 0.2s;
}

.btn-alert-close-nedo:hover {
  transform: translateY(-2px) scale(1.04);
  background: #9bff2e;
  box-shadow: 0 0 40px 0 var(--color-signal-glow);
}


.brand-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  position: relative;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 15px rgba(131, 255, 0, 0.3);
  border: 1px solid rgba(131, 255, 0, 0.3);
}

.brand-title {
  font-family: 'Onest', sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #f2f4f0;
}

.mode-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--color-signal);
  background: rgba(131, 255, 0, 0.12);
  border: 1px solid rgba(131, 255, 0, 0.3);
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
  letter-spacing: 0.05em;
}


.mod-loader-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.mod-loader-row .btn-mod-dl {
  flex: 1;
}

.btn-mod-vt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 0.85rem;
  border-radius: 0.75rem;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #d8b4fe;
  transition: all 0.2s var(--ease-out-back);
  white-space: nowrap;
}

.btn-mod-vt:hover {
  background: rgba(168, 85, 247, 0.25);
  border-color: #a855f7;
  color: #fff;
  transform: translateY(-1px);
}


/* Rules Search Empty State */
.rules-empty-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: rgba(14, 15, 14, 0.6);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  margin: 1.5rem 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.rules-empty-state .empty-icon {
  font-size: 2.5rem;
  color: var(--color-dim);
  margin-bottom: 1rem;
  opacity: 0.7;
}

.rules-empty-state .empty-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  font-family: 'Onest', sans-serif;
}

.rules-empty-state .empty-desc {
  color: var(--color-muted);
  font-size: 0.95rem;
  max-width: 500px;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.rules-empty-state .empty-desc strong {
  color: var(--color-signal);
  word-break: break-all;
}

.rules-empty-state .btn-clear-search {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 8px 20px;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Onest', sans-serif;
}

.rules-empty-state .btn-clear-search:hover {
  background: var(--color-signal);
  color: #000;
  border-color: var(--color-signal);
  transform: translateY(-1px);
}


/* Fullscreen Game Modal */
.game-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  flex-direction: column;
}

.game-modal-overlay.active {
  display: flex !important;
}

.game-modal-header {
  height: 56px;
  background: rgba(14, 17, 14, 0.98);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  flex-shrink: 0;
  z-index: 10;
}

.game-modal-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  font-family: 'Onest', sans-serif;
}

.game-modal-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-game-control {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-game-control:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-game-close {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Onest', sans-serif;
}

.btn-game-close:hover {
  background: var(--color-red);
  color: #fff;
  border-color: var(--color-red);
  transform: translateY(-1px);
}

.game-modal-frame-container {
  flex: 1;
  width: 100%;
  height: calc(100vh - 56px);
  position: relative;
  background: #f7f7f7;
  overflow: hidden;
}

.game-modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}


/* Mods notice banner */
.mods-notice-banner-nedo {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-signal);
  border-radius: 0.85rem;
  padding: 1.15rem 1.4rem;
  margin-bottom: 2rem;
}

.mods-notice-headline {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.mods-notice-subtext {
  font-size: 13.5px;
  color: var(--color-muted);
  line-height: 1.6;
}
