/* ==========================================================================
   DualSub (دوآل‌ساب) - UI Components
   Header, Hero, Game Cards, Download Box, Subtitle Widget, Silo Breadcrumbs & FAQ
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  transition: all var(--transition-smooth);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 1.5rem;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-logo {
  height: 56px;
  width: auto;
  max-width: 60px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.35));
  transition: all var(--transition-fast);
}

.brand-wrapper:hover .brand-logo {
  transform: scale(1.08) rotate(-2deg);
  filter: drop-shadow(0 0 18px rgba(0, 240, 255, 0.7)) drop-shadow(0 0 25px rgba(234, 179, 8, 0.45));
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-en);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #ffffff 0%, #00f0ff 60%, #eab308 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: nowrap;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: #94a3b8;
  position: relative;
  padding: 0.5rem 0;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--neon-cyan);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0%;
  height: 2px;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
  transition: width var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

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

.search-trigger-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(19, 25, 38, 0.7);
  border: 1px solid var(--border-card);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.search-trigger-btn:hover {
  border-color: var(--neon-cyan);
  color: #fff;
}

.search-key-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-family: var(--font-en);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.audio-toggle-btn {
  position: relative;
  background: rgba(19, 25, 38, 0.7);
  border: 1px solid var(--border-card);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-cyan);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.audio-toggle-btn:hover {
  background: var(--neon-cyan-dim);
  border-color: var(--neon-cyan);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   2. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding: 4rem 0 5rem 0;
  overflow: hidden;
}

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

.hero-badge-tag {
  margin-bottom: 1.25rem;
  display: inline-flex;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.hero-desc {
  font-size: 1.15rem;
  color: #94a3b8;
  line-height: 1.8;
  margin-bottom: 2.25rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.hero-stats-strip {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-value {
  font-family: var(--font-en);
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--neon-cyan);
  text-shadow: 0 0 12px var(--neon-cyan-glow);
  direction: ltr;
  display: inline-block;
  letter-spacing: 0.5px;
}

.stat-value.stat-value-fa {
  font-family: var(--font-fa);
  font-weight: 800;
  font-size: 1.45rem;
  direction: rtl;
  letter-spacing: normal;
}

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

/* Hero Showcase Visual */
.hero-visual {
  position: relative;
}

.hero-art-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 240, 255, 0.2);
  border: 1px solid var(--border-cyan);
}

.hero-art-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.hero-art-container:hover .hero-art-img {
  transform: scale(1.03);
}

.hero-floating-hud {
  position: absolute;
  bottom: 20px;
  right: 20px;
  left: 20px;
  background: rgba(12, 16, 26, 0.88);
  border: 1px solid var(--neon-cyan);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  backdrop-filter: blur(16px);
  z-index: 5;
}

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

.hud-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.hud-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   3. Interactive Subtitle / Dubbing Showcase Widget
   -------------------------------------------------------------------------- */
.subtitle-showcase-section {
  padding: 4.5rem 0;
  background: linear-gradient(180deg, transparent 0%, rgba(12, 16, 26, 0.6) 50%, transparent 100%);
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3rem auto;
}

.section-tag {
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.section-subtitle {
  color: #94a3b8;
  font-size: 1.05rem;
}

.sub-tester-box {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-cyan);
  background: #05070a;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 240, 255, 0.15);
}

.sub-cinematic-stage {
  position: relative;
  height: 480px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 3.5rem;
}

.sub-cinematic-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(7, 9, 14, 0.85) 90%);
  pointer-events: none;
}

/* Active Subtitle Bar (In-game rendered style) */
.sub-dialogue-bar {
  position: relative;
  z-index: 10;
  max-width: 820px;
  width: 90%;
  padding: 1.25rem 2rem;
  background: rgba(0, 0, 0, 0.78);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
  transition: all 0.3s ease;
}

.sub-speaker-tag {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--neon-cyan);
  margin-bottom: 0.4rem;
  letter-spacing: 0.5px;
}

.sub-text-rendered {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.6;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 12px rgba(255, 255, 255, 0.2);
}

/* Controller bar below video */
.sub-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 1rem;
}

.sub-mode-switchers {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sub-switch-btn {
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  color: #cbd5e1;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.sub-switch-btn.active {
  background: var(--neon-cyan);
  color: #05070a;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.sub-settings {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   4. Game Cards Grid & Catalog
   -------------------------------------------------------------------------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 460px));
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2rem;
}

@media (max-width: 500px) {
  .games-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.game-card-wrapper {
  display: flex;
  flex-direction: column;
  background: var(--grad-dark-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.4s ease;
}

.game-card-wrapper:hover {
  transform: translateY(-8px);
  border-color: var(--neon-cyan);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 240, 255, 0.25);
}

.card-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #020617;
}

.card-poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 18, 29, 0.95) 0%, rgba(13, 18, 29, 0.3) 25%, transparent 60%);
  pointer-events: none;
}

.card-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.game-card-wrapper:hover .card-poster-img {
  transform: scale(1.05);
}

.card-platform-pills {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 0.4rem;
  z-index: 5;
}

.platform-pill {
  background: rgba(7, 9, 14, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  backdrop-filter: blur(8px);
}

.card-trans-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 5;
}

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-genre-tags {
  font-size: 0.8rem;
  color: var(--neon-cyan);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.card-meta-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.card-footer-action {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   5. Professional Download Box (باکس دانلود حرفه‌ای)
   -------------------------------------------------------------------------- */
.download-box-wrapper {
  background: var(--bg-card);
  border: 2px solid rgba(0, 240, 255, 0.35);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 240, 255, 0.2);
  margin: 3.5rem 0;
}

/* Game screenshot gallery */
.game-gallery-section {
  margin: 3.5rem 0 0;
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(10, 20, 32, 0.96), rgba(20, 13, 31, 0.92));
  border: 1px solid rgba(0, 240, 255, 0.28);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.48), 0 0 28px rgba(0, 240, 255, 0.08);
}

.game-gallery-heading, .admin-gallery-editor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.game-gallery-kicker {
  color: var(--neon-cyan);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  font-family: var(--font-en);
}

.game-gallery-heading h2 {
  margin: 0.25rem 0 0;
  color: #fff;
  font-size: 1.35rem;
}

.game-gallery-counter { color: #94a3b8; font-size: 0.8rem; }

.game-gallery-stage {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
}

.game-gallery-viewport {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 220px;
  max-height: min(70vh, 620px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: radial-gradient(circle at center, rgba(0, 240, 255, 0.08), #05070a 72%);
  border-radius: var(--radius-md);
}

.game-gallery-slide {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  animation: gallery-slide-next 420ms cubic-bezier(0.22, 0.75, 0.25, 1) both;
  will-change: opacity, transform, filter;
}
.game-gallery-slide.gallery-slide-prev {
  animation-name: gallery-slide-prev;
}
@keyframes gallery-slide-next {
  from { opacity: 0; transform: translateX(2.5rem) scale(0.985); filter: brightness(1.35) saturate(1.25); }
  to { opacity: 1; transform: translateX(0) scale(1); filter: brightness(1) saturate(1); }
}
@keyframes gallery-slide-prev {
  from { opacity: 0; transform: translateX(-2.5rem) scale(0.985); filter: brightness(1.35) saturate(1.25); }
  to { opacity: 1; transform: translateX(0) scale(1); filter: brightness(1) saturate(1); }
}
.game-gallery-control {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(0, 240, 255, 0.65);
  border-radius: 50%;
  background: rgba(3, 10, 18, 0.72);
  box-shadow: 0 0 0 4px rgba(0, 240, 255, 0.06), 0 0 20px rgba(0, 240, 255, 0.22), inset 0 0 14px rgba(0, 240, 255, 0.08);
  backdrop-filter: blur(8px);
  color: var(--neon-cyan);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transform: translateY(-50%);
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.game-gallery-prev { left: 1rem; }
.game-gallery-next { right: 1rem; }
.game-gallery-control:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 5px rgba(0, 240, 255, 0.1), 0 0 28px rgba(0, 240, 255, 0.4), inset 0 0 18px rgba(0, 240, 255, 0.16);
  transform: translateY(-50%) scale(1.08);
}
.game-gallery-control svg { display: block; margin: auto; }
.game-gallery-control:active { transform: translateY(-50%) scale(0.94); }
.game-gallery-control[hidden] { visibility: hidden; }
.game-gallery-dots { display: flex; direction: ltr; justify-content: center; gap: 0.45rem; margin-top: 0.85rem; }
.game-gallery-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: #475569; cursor: pointer; }
.game-gallery-dot.active { background: var(--neon-cyan); box-shadow: 0 0 10px var(--neon-cyan); }

.admin-gallery-editor {
  margin: 1.25rem 0;
  padding: 1rem;
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 8px;
  background: rgba(0, 240, 255, 0.035);
}
.admin-gallery-upload-btn { cursor: pointer; white-space: nowrap; color: var(--neon-cyan); }
.admin-gallery-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.75rem; }
.admin-gallery-item { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid rgba(255,255,255,0.14); border-radius: 6px; background: #05070a; }
.admin-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-gallery-item button { position: absolute; top: 0.35rem; left: 0.35rem; padding: 0.15rem 0.45rem; border: 0; border-radius: 4px; background: rgba(244, 63, 94, 0.9); color: #fff; cursor: pointer; }

.download-box-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-cyber);
}

/* Platform Switcher Tabs */
.download-platform-tabs {
  display: flex;
  background: var(--bg-darkest);
  border-bottom: 1px solid var(--border-card);
  overflow-x: auto;
}

.platform-tab-btn {
  flex: 1;
  min-width: 170px;
  padding: 1.2rem 1.5rem;
  background: transparent;
  border: none;
  border-left: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-fa);
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all var(--transition-fast);
  position: relative;
}

.platform-tab-btn:hover {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}

.platform-tab-btn.active {
  background: rgba(0, 240, 255, 0.08);
  color: var(--neon-cyan);
}

.platform-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--neon-cyan);
  box-shadow: 0 0 12px var(--neon-cyan);
}

/* Download Box Body */
.download-box-body {
  padding: 2.25rem;
}

/* Meta Grid */
.download-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  background: rgba(7, 9, 14, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.meta-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.meta-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--neon-cyan-dim);
  color: var(--neon-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

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

.meta-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.meta-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

/* Multi-Version Selector Box */
.download-version-box {
  background: rgba(0, 240, 255, 0.03);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.5rem;
}

.version-tabs-list {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.version-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-fa);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.version-tab-btn:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.35);
  color: #fff;
}

.version-tab-btn.active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
}

.version-badge-tag {
  background: rgba(0, 240, 255, 0.12);
  color: var(--neon-cyan);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-family: var(--font-en);
}

/* Download Action Buttons */
.download-action-group {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.primary-download-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: var(--grad-cyan-btn);
  color: #05070a;
  border-radius: var(--radius-md);
  font-size: 1.15rem;
  font-weight: 900;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.35);
  transition: all var(--transition-smooth);
}

.primary-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.6);
}

.btn-left-tag {
  font-size: 0.85rem;
  font-weight: 700;
  background: #05070a;
  color: var(--neon-cyan);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
}

.secondary-download-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Checksum Bar */
.checksum-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: rgba(7, 9, 14, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-top: 1.5rem;
}

.checksum-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-family: var(--font-en);
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checksum-hash {
  color: var(--neon-cyan);
  font-weight: 600;
}

.copy-hash-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-card);
  color: #ffffff;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-fa);
  transition: all var(--transition-fast);
  position: relative;
}

.copy-hash-btn:hover {
  background: var(--neon-cyan);
  color: #05070a;
}

/* Installation Guide Accordion */
.install-guide-accordion {
  margin-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
}

.install-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: rgba(19, 25, 38, 0.6);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.install-accordion-header:hover {
  border-color: var(--neon-cyan);
}

.install-accordion-body {
  display: none;
  padding: 1.5rem;
  background: rgba(7, 9, 14, 0.5);
  border: 1px solid var(--border-card);
  border-top: none;
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}

.install-accordion-body.open {
  display: block;
}

.step-card-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--neon-cyan);
  color: #05070a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.step-content {
  font-size: 0.92rem;
  color: #cbd5e1;
}

.path-code-snippet {
  direction: ltr;
  display: inline-block;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: monospace;
  color: var(--neon-cyan);
  margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   6. Silo Breadcrumb
   -------------------------------------------------------------------------- */
.silo-breadcrumb-nav {
  padding: 1.5rem 0;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.breadcrumb-item a {
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

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

.breadcrumb-item.current {
  color: #ffffff;
  font-weight: 700;
}

.breadcrumb-separator {
  color: var(--text-dim);
  font-size: 0.75rem;
}

/* --------------------------------------------------------------------------
   7. Roadmap / Progress Tracker
   -------------------------------------------------------------------------- */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.roadmap-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--grad-cyan-btn);
  border-radius: var(--radius-full);
  box-shadow: 0 0 10px var(--neon-cyan);
}

/* --------------------------------------------------------------------------
   8. FAQ Accordion
   -------------------------------------------------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 100%;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: rgba(0, 240, 255, 0.4);
}

.faq-question-btn {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: var(--font-fa);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-chevron {
  transition: transform var(--transition-smooth);
  color: var(--neon-cyan);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem 1.5rem;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.8;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

.faq-item.open .faq-answer {
  display: block;
}

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-darkest);
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2rem 0;
  margin-top: 5rem;
}

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

.footer-col-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.25rem;
  position: relative;
  display: inline-block;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 0;
  width: 28px;
  height: 2px;
  background: var(--neon-cyan);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--neon-cyan);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   10. Quick Search Modal (Ctrl + K)
   -------------------------------------------------------------------------- */
.search-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 7, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
}

.search-modal-backdrop.active {
  display: flex;
}

.search-modal-box {
  width: 92%;
  max-width: 650px;
  background: var(--bg-secondary);
  border: 1px solid var(--neon-cyan);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 240, 255, 0.25);
  overflow: hidden;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-card);
  gap: 1rem;
}

.search-input-field {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-fa);
  font-size: 1.15rem;
  color: #fff;
}

.search-results-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  transition: all var(--transition-fast);
}

.search-result-item:hover {
  background: rgba(0, 240, 255, 0.1);
  border-right: 3px solid var(--neon-cyan);
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .download-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero-title {
    font-size: 2rem;
  }
  .download-meta-grid {
    grid-template-columns: 1fr;
  }
  .secondary-download-links {
    grid-template-columns: 1fr;
  }
  .primary-download-btn {
    flex-direction: column;
    gap: 0.6rem;
    text-align: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .game-gallery-heading, .admin-gallery-editor-heading { align-items: flex-start; flex-direction: column; }
  .game-gallery-control { width: 38px; height: 38px; font-size: 1.5rem; }
  .game-gallery-prev { left: 0.65rem; }
  .game-gallery-next { right: 0.65rem; }
}

/* ==========================================================================
   11. Shattered Glass Dimensional Rift: Cyber Neon x Ancient Grand Strategy
   ========================================================================== */
.shattered-hero-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.4);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 240, 255, 0.2);
  min-height: 520px;
  display: flex;
  align-items: center;
}

/* Layer 1: Ancient Civilizations & Grand Strategy Realm (Rome, Ancient Persia, Medieval Map) */
.ancient-strategy-realm {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 75% 40%, rgba(185, 28, 28, 0.35) 0%, transparent 60%),
    radial-gradient(circle at 20% 70%, rgba(217, 119, 6, 0.25) 0%, transparent 60%),
    linear-gradient(135deg, #0a0e17 0%, #15101a 50%, #080a10 100%);
  z-index: 1;
  overflow: hidden;
}

/* Vintage Strategic Map Grid & Cartography overlay */
.ancient-strategy-realm::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(rgba(245, 158, 11, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(245, 158, 11, 0.04) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

/* Ancient Imperial Emblems / Watermarks */
.ancient-emblem-watermark {
  position: absolute;
  opacity: 0.18;
  pointer-events: none;
  filter: drop-shadow(0 0 15px rgba(245, 158, 11, 0.6));
}

.emblem-persia {
  bottom: -20px;
  left: 20px;
  width: 260px;
  height: auto;
}

.emblem-rome {
  top: 15px;
  left: 35%;
  width: 200px;
  height: auto;
}

/* Layer 2: The Shattered Glass Rift Overlay */
.shatter-svg-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

/* Layer 3: Foreground Content with High-Tech Neon HUD & Historical Strategy */
.shattered-hero-content {
  position: relative;
  z-index: 5;
  padding: 3.5rem 3rem;
  max-width: 780px;
}

.strategy-focus-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(185, 28, 28, 0.25);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.tactical-compass-widget {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
  height: 280px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.45;
}

/* Strategy Badge */
.badge-gold {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
}

.badge-rome {
  background: rgba(185, 28, 28, 0.2);
  color: #f87171;
  border-color: rgba(185, 28, 28, 0.4);
}

@media (max-width: 900px) {
  .tactical-compass-widget {
    display: none;
  }
  .shattered-hero-content {
    padding: 2.5rem 1.5rem;
  }
}
