/* ==========================================================================
   นักแปลนอนน้อย (Thai Mod Collection) — Modern Sleek Gaming Dark UI
   ========================================================================== */

:root {
  /* Colors */
  --bg-darkest: #07090e;
  --bg-base: #0b0f17;
  --bg-surface: #111724;
  --bg-card: rgba(17, 23, 36, 0.7);
  --bg-card-hover: rgba(24, 33, 52, 0.85);
  
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-focus: rgba(0, 240, 255, 0.4);
  
  /* Accents */
  --accent-cyan: #00f0ff;
  --accent-emerald: #10b981;
  --accent-neon: #39ff14;
  --accent-purple: #8b5cf6;
  --accent-gradient: linear-gradient(135deg, #00f0ff 0%, #10b981 100%);
  --accent-glow: 0 0 25px rgba(0, 240, 255, 0.25);
  --emerald-glow: 0 0 25px rgba(16, 185, 129, 0.25);
  
  /* Text */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Typography */
  --font-thai: 'Kanit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
  
  /* Layout */
  --nav-height: 72px;
  --container-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  font-family: var(--font-thai);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Background Cyber Grid / Ambient Glow */
.bg-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(0, 240, 255, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  opacity: 0.9;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darkest);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* Utilities */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

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

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

/* ---------------- Typography & Accents ---------------- */
.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.neon-cyan {
  color: var(--accent-cyan);
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
}

.neon-emerald {
  color: var(--accent-emerald);
  text-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

/* Section Header */
.section-header {
  margin-bottom: 2.5rem;
  text-align: left;
}
.section-header.text-center {
  text-align: center;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin-top: 0.5rem;
}
.text-center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* ---------------- Navigation Bar ---------------- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(11, 15, 23, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: var(--transition-smooth);
}
#navbar.scrolled {
  background: rgba(7, 9, 14, 0.95);
  border-bottom-color: rgba(0, 240, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.brand-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
  object-fit: cover;
}
.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  margin-left: 0.25rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-link {
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #050b14;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 240, 255, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-facebook {
  background: linear-gradient(135deg, #1877f2 0%, #0d5bbd 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}
.btn-facebook:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(24, 119, 242, 0.5);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: var(--radius-md);
}

/* ---------------- Hero Section ---------------- */
.hero-section {
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulseAnimation 2s infinite;
}
@keyframes pulseAnimation {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-heading {
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-subheading {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

/* Stats Row */
.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}
.stat-item {
  display: flex;
  flex-direction: column;
}
.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Hero Visual / Avatar Showcase */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.avatar-card-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
}
.avatar-glow-backdrop {
  position: absolute;
  inset: -15px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.2) 0%, rgba(16, 185, 129, 0.15) 50%, transparent 75%);
  filter: blur(35px);
  z-index: 0;
  border-radius: 50%;
}
.avatar-glass-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  text-align: center;
  z-index: 1;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: var(--transition-smooth);
}
.avatar-glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 240, 255, 0.15);
}
.avatar-image-frame {
  width: 140px;
  height: 140px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  padding: 5px;
  background: var(--accent-gradient);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
}
.avatar-image-frame img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-darkest);
}
.avatar-name {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.avatar-role {
  font-size: 0.9rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  margin-bottom: 1rem;
}
.avatar-bio-pill {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
}

/* ---------------- Spotlight / Featured Mod ---------------- */
.section {
  padding: 5rem 0;
  position: relative;
}

.featured-mod-box {
  background: linear-gradient(145deg, rgba(20, 28, 44, 0.8) 0%, rgba(12, 17, 27, 0.9) 100%);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 240, 255, 0.08);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  transition: var(--transition-smooth);
}
.featured-mod-box:hover {
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 240, 255, 0.15);
}

.fm-content {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.fm-badge-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}
.badge-featured {
  background: var(--accent-gradient);
  color: #050b14;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}
.badge-version {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}
.fm-game-title {
  font-size: 0.95rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  margin-bottom: 0.4rem;
}
.fm-title {
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}
.fm-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}
.fm-highlights-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.fm-highlights-list li {
  font-size: 0.9rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.fm-highlights-list li::before {
  content: '✓';
  color: var(--accent-emerald);
  font-weight: bold;
}
.fm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.fm-visual {
  position: relative;
  overflow: hidden;
  min-height: 350px;
  background: #000;
}
.fm-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.featured-mod-box:hover .fm-visual img {
  transform: scale(1.04);
}
.fm-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 17, 27, 0.9) 0%, transparent 40%);
  pointer-events: none;
}

/* ---------------- Mods Grid & Filter ---------------- */
.filter-search-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-lg);
}

.search-input-box {
  position: relative;
  flex: 1;
  min-width: 260px;
}
.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.65rem 1rem 0.65rem 2.6rem;
  font-family: var(--font-thai);
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition-fast);
}
.search-input:focus {
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.filter-pill {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-thai);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}
.filter-pill:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}
.filter-pill.active {
  background: rgba(0, 240, 255, 0.12);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

/* Mod Card Grid */
.mods-grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.mod-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  backdrop-filter: blur(12px);
  position: relative;
}
.mod-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), 0 0 25px rgba(0, 240, 255, 0.1);
}

.mc-thumb {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #000;
}
.mc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.mod-card:hover .mc-thumb img {
  transform: scale(1.05);
}
.mc-badges-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.mc-badge-ver {
  background: rgba(11, 15, 23, 0.85);
  backdrop-filter: blur(8px);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.mc-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.mc-game-name {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  margin-bottom: 0.4rem;
}
.mc-mod-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}
.mc-desc-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mc-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  margin-bottom: 1.25rem;
}
.mc-tag-item {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mc-footer-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

/* Coming Soon Card */
.card-coming-soon {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(17, 23, 36, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  min-height: 380px;
}
.cs-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  animation: floatAnim 3s ease-in-out infinite;
}
@keyframes floatAnim {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------------- Features / Why Us Section ---------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: var(--transition-smooth);
}
.feature-box:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}
.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.feature-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.feature-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------------- Community Banner ---------------- */
.community-banner {
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.15) 0%, rgba(0, 240, 255, 0.1) 100%);
  border: 1px solid rgba(24, 119, 242, 0.3);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cb-heading {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.cb-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* ---------------- Interactive Modal ---------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 14, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(0, 240, 255, 0.15);
  position: relative;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.open .modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-fast);
}
.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.8);
  border-color: #ef4444;
}

.modal-hero-cover {
  width: 100%;
  height: 280px;
  position: relative;
  overflow: hidden;
}
.modal-hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-hero-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg-surface) 0%, transparent 60%);
}

.modal-inner-content {
  padding: 2rem 2.5rem 2.5rem;
}
.modal-game-badge {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  margin-bottom: 0.25rem;
}
.modal-title {
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.modal-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}
.modal-meta-row span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.modal-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-highlights {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.modal-highlights li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.modal-highlights li::before {
  content: '✓';
  color: var(--accent-emerald);
  font-weight: bold;
}

.modal-install-steps {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  counter-reset: step-counter;
  list-style: none;
}
.modal-install-steps li {
  counter-increment: step-counter;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.modal-install-steps li:last-child {
  margin-bottom: 0;
}
.modal-install-steps li::before {
  content: counter(step-counter);
  background: rgba(0, 240, 255, 0.15);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.modal-download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

/* ---------------- Footer ---------------- */
#site-footer {
  background: var(--bg-darkest);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.footer-brand-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 380px;
}
.footer-col-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}
.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-link-item a {
  font-size: 0.92rem;
  color: var(--text-secondary);
}
.footer-link-item a:hover {
  color: var(--accent-cyan);
}
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ---------------- Mobile Responsive ---------------- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-heading {
    font-size: 2.75rem;
  }
  .hero-subheading {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-stats-row {
    max-width: 500px;
    margin: 0 auto;
  }
  .featured-mod-box {
    grid-template-columns: 1fr;
  }
  .fm-visual {
    order: -1;
    min-height: 250px;
  }
  .fm-content {
    padding: 2rem;
  }
  .fm-visual::after {
    background: linear-gradient(0deg, rgba(12, 17, 27, 0.95) 0%, transparent 50%);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .hamburger-btn {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(11, 15, 23, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.5rem;
    flex-direction: column;
    gap: 1rem;
    transform: translateY(-150%);
    transition: transform var(--transition-smooth);
  }
  .nav-menu.open {
    transform: translateY(0);
  }
  .hero-heading {
    font-size: 2.2rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .mods-grid-layout {
    grid-template-columns: 1fr;
  }
  .modal-inner-content {
    padding: 1.5rem;
  }
  .modal-highlights {
    grid-template-columns: 1fr;
  }
  .fm-highlights-list {
    grid-template-columns: 1fr;
  }
}

/* ---------------- Translation Progress Meter ---------------- */
.mc-progress-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  transition: var(--transition-fast);
}
.mc-progress-box:hover {
  border-color: rgba(0, 240, 255, 0.25);
  background: rgba(0, 0, 0, 0.55);
}
.mc-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
  font-size: 0.82rem;
}
.mc-progress-title {
  color: var(--text-secondary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.mc-progress-pct {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.92rem;
}
.mc-progress-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}
.mc-progress-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.mc-progress-bar-fill.completed {
  background: linear-gradient(90deg, #10b981 0%, #05ffa1 100%);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
}
.mc-progress-bar-fill.in-progress {
  background: linear-gradient(90deg, #00f0ff 0%, #3b82f6 100%);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
  position: relative;
}
.mc-progress-bar-fill.in-progress::after {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background-image: linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.25) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0.25) 75%,
    transparent 75%,
    transparent
  );
  background-size: 16px 16px;
  animation: progressStripes 1.8s linear infinite;
}
@keyframes progressStripes {
  0% { background-position: 0 0; }
  100% { background-position: 32px 0; }
}
.mc-progress-bar-fill.upcoming {
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}
.mc-progress-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.45rem;
  line-height: 1.4;
}

/* Status Badges */
.brand-badge.badge-status-completed {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}
.brand-badge.badge-status-wip {
  background: rgba(0, 240, 255, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}
.brand-badge.badge-status-upcoming {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

/* Roadmap Section Showcase on Home */
.roadmap-container-box {
  background: linear-gradient(145deg, rgba(17, 23, 36, 0.85) 0%, rgba(9, 13, 20, 0.95) 100%);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 3rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 35px rgba(0, 240, 255, 0.08);
}
.roadmap-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.roadmap-card-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  backdrop-filter: blur(8px);
}
.roadmap-card-item:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 240, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 240, 255, 0.1);
}
.roadmap-thumb-wrap {
  width: 100%;
  height: 170px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1.25rem;
  position: relative;
  background: #000;
}
.roadmap-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.roadmap-card-item:hover .roadmap-thumb-wrap img {
  transform: scale(1.04);
}
.roadmap-badge-overlay {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
}
.roadmap-game-name {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  margin-bottom: 0.3rem;
}
.roadmap-item-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  line-height: 1.35;
}
.roadmap-item-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
