@import url('https://fonts.googleapis.com/css2?family=Black+Ops+One&family=Teko:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700;800&family=Permanent+Marker&family=Caveat:wght@700&display=swap');

:root {
  --accent: #f59e0b;
  --accent-bright: #fbbf24;
  --accent-dark: #d97706;
  --accent-dim: rgba(245, 158, 11, 0.14);
  --accent-glow: 0 0 28px rgba(245, 158, 11, 0.45);

  --bg-main: #080706;
  --bg-section: #0c0a08;
  --bg-panel: rgba(14, 11, 9, 0.85);
  --bg-panel-soft: rgba(20, 16, 12, 0.90);

  --border-muted: rgba(245, 158, 11, 0.16);
  --border-strong: rgba(245, 158, 11, 0.32);

  --text-primary: #f3ede2;
  --text-muted: #a69888;
  --text3: #786c60;

  --shadow-card: 0 16px 36px rgba(0, 0, 0, 0.75);
  --shadow-accent: 0 0 30px rgba(245, 158, 11, 0.25);

  --radius-small: 8px;
  --radius-medium: 14px;
  --radius-large: 18px;

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-display: 'Black Ops One', sans-serif;
  --font-heading: 'Teko', sans-serif;

  --green: #22c55e;
  --danger: #ef4444;
}

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

html {
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
}

::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: #080706; }
::-webkit-scrollbar-thumb { background: var(--accent-dark); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font);
  background: #080706 url('/assets/plg-hero-bg.jpg?v=3') top center / cover no-repeat fixed;
  color: var(--text-primary);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 25%, rgba(8, 7, 6, 0.15) 0%, rgba(8, 7, 6, 0.65) 75%, rgba(6, 5, 4, 0.96) 100%);
  pointer-events: none;
  z-index: 0;
}

.main-container {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
}

.site-footer {
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  padding: 16px 48px;
  background: linear-gradient(180deg, rgba(8, 7, 6, 0.92) 0%, rgba(8, 7, 6, 0.60) 80%, transparent 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  border-bottom: 1px solid rgba(245, 158, 11, 0.08);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(10, 8, 6, 0.96);
  border-bottom: 1px solid rgba(245, 158, 11, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85);
  padding: 12px 48px;
}

.nav-brand, .logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 2px;
  white-space: nowrap;
  flex-shrink: 0;
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
  transition: transform 0.2s;
}
.nav-brand:hover, .logo:hover { transform: scale(1.02); }

.brand-img, .logo-img {
  height: 38px;
  width: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(245, 158, 11, 0.55);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.45);
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 2px;
  color: #ffffff;
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
}
.brand-text span, .logo span {
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow);
}

.nav-menu, .menu {
  display: flex;
  gap: 26px;
  align-items: center;
  list-style: none;
  flex-shrink: 0;
}

.nav-link, .menu a {
  position: relative;
  color: #b5a898;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 6px 2px;
  background: transparent;
  border: none;
  box-shadow: none;
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
  transition: color 240ms ease, text-shadow 240ms ease;
}

.nav-link.active, .nav-link.is-current,
.menu a.active, .menu a.is-current {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}
.nav-link::after, .menu a::after {
  content: "";
  position: absolute;
  left: 0;
  width: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  transition: width 0.25s ease;
}
.nav-link:hover::after, .nav-link.active::after, .nav-link.is-current::after,
.menu a:hover::after, .menu a.active::after, .menu a.is-current::after {
  width: 100%;
}

.nav-link:hover, .menu a:hover {
  color: #ffffff;
  text-shadow: 0 0 14px rgba(245, 158, 11, 0.5);
  outline: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.btn-nav-discord {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(22, 17, 12, 0.8);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #ffffff;
  padding: 9px 20px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.15);
  transition: all 0.25s ease;
}
.btn-nav-discord svg {
  width: 18px;
  height: 18px;
  fill: var(--accent);
  transition: fill 0.25s;
}
.btn-nav-discord:hover {
  background: var(--accent);
  color: #000000;
  border-color: var(--accent-bright);
  box-shadow: 0 0 25px var(--accent-glow);
  transform: translateY(-1px);
}
.btn-nav-discord:hover svg { fill: #000000; }

/* ══════════════════════════════════════════
   LANGUAGE SWITCHER DROPDOWN
══════════════════════════════════════════ */
.nav-lang-dropdown {
  position: relative;
  display: inline-block;
}
.nav-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #c5b8a8;
  padding: 7px 12px;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(18, 14, 10, 0.85);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  font-family: inherit;
}
.nav-lang-btn:hover,
.nav-lang-dropdown.open .nav-lang-btn {
  color: #ffffff;
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.15);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.25);
}
.lang-flag { font-size: 0.95rem; }
.lang-code { font-weight: 800; letter-spacing: 0.5px; }
.lang-arrow { font-size: 0.72rem; transition: transform 0.2s; color: var(--accent); }
.nav-lang-dropdown.open .lang-arrow { transform: rotate(180deg); }

.nav-lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(14, 11, 9, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  padding: 6px;
  min-width: 155px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.9), 0 0 15px rgba(245, 158, 11, 0.15);
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 1000;
}
.nav-lang-dropdown.open .nav-lang-menu {
  display: flex;
  animation: dropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.lang-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.18s ease;
  font-family: inherit;
}
.lang-opt:hover {
  background: rgba(245, 158, 11, 0.15);
  color: #ffffff;
}
.lang-opt.active {
  background: rgba(245, 158, 11, 0.25);
  color: var(--accent-bright);
  font-weight: 800;
}
@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════
   BUTTONS BASE
══════════════════════════════════════════ */
.btn {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: var(--radius-medium);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn.outline, .btn-ghost {
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #ffffff;
  background: rgba(22, 17, 12, 0.7);
  backdrop-filter: blur(8px);
}
.btn.outline:hover, .btn-ghost:hover {
  background: rgba(245, 158, 11, 0.18);
  border-color: var(--accent-bright);
  color: var(--accent-bright);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
  transform: translateY(-2px);
}

.btn.primary, .btn-primary, .buy-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f0c08 !important;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.45), 0 6px 18px rgba(0, 0, 0, 0.5);
}
.btn.primary:hover, .btn-primary:hover, .buy-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.7), 0 10px 24px rgba(0, 0, 0, 0.6);
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

/* ══════════════════════════════════════════
   POLICY & CONTENT PAGES (rules, faq, about, news, contact, store, legal)
══════════════════════════════════════════ */
.policy-container {
  max-width: 960px;
  margin: 110px auto 60px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  z-index: 1;
}

.policy-page-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.9), 0 0 35px rgba(245, 158, 11, 0.4);
}

.policy-meta {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  margin-top: -16px;
  margin-bottom: 12px;
}

.policy-box {
  background: var(--bg-panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-large);
  padding: 28px 34px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.policy-box:hover {
  border-color: var(--border-strong);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.85), 0 0 25px rgba(245, 158, 11, 0.18);
  transform: translateY(-2px);
}

.policy-box h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--accent);
  text-shadow: 0 0 15px rgba(245, 158, 11, 0.35);
}

.policy-box h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.8px;
  margin: 8px 0 14px;
  color: var(--accent-bright);
}

.policy-box p {
  font-size: 0.96rem;
  color: var(--text-primary);
  margin-bottom: 14px;
  line-height: 1.65;
}

.policy-box a {
  color: var(--accent-bright);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}
.policy-box a:hover {
  color: #ffffff;
  text-shadow: 0 0 10px var(--accent);
  text-decoration: underline;
}

.policy-list {
  margin: 0 0 16px 0;
  padding-left: 24px;
  color: var(--text-primary);
}

.policy-list li {
  margin-bottom: 10px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.policy-list li strong {
  color: #ffffff;
}

/* Numbered rules (rules.html) */
.policy-list.numbered {
  counter-reset: rule;
  list-style: none;
  padding-left: 0;
}

.policy-list.numbered > li {
  counter-increment: rule;
  position: relative;
  padding-left: 54px;
  margin-bottom: 14px;
}

.policy-list.numbered > li::before {
  content: var(--section) "." counter(rule);
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.rule-list > li > strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

/* Red Important Box (rules / store) */
.important-box {
  background: rgba(45, 16, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(239, 68, 68, 0.6);
  color: #fed7aa;
  border-radius: var(--radius-large);
  padding: 22px 28px;
  margin-bottom: 8px;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.25), 0 12px 30px rgba(0, 0, 0, 0.7);
  font-size: 0.96rem;
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.important-icon {
  font-size: 26px;
  color: #ef4444;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ══════════════════════════════════════════
   MODS & STORE
══════════════════════════════════════════ */
.mods-hero { padding: 130px 24px 36px; text-align: center; }
.mods-hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: 2px; color: #ffffff; text-shadow: 0 0 30px rgba(245, 158, 11, 0.4); }
.mods-hero h1 span, .mods-hero h1 .hl { color: var(--accent); text-shadow: 0 0 25px var(--accent-glow); }
.mods-hero p { color: var(--text-muted); max-width: 680px; margin: 14px auto 24px; line-height: 1.6; font-size: 1.05rem; }

.mods-cta { display: flex; gap: 16px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.mods-filters { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 8px 24px 30px; }

.mod-chip {
  background: var(--bg-panel);
  border: 1px solid var(--border-muted);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}
.mod-chip:hover { color: #ffffff; border-color: var(--accent); background: rgba(245, 158, 11, 0.12); }
.mod-chip.active { background: var(--accent); border-color: var(--accent-bright); color: #0f0c08; box-shadow: 0 0 18px var(--accent-glow); }

.mods-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; padding: 0 24px 60px; max-width: 1250px; margin: 0 auto; }
.mod-card {
  background: var(--bg-panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-large);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}
.mod-card:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: 0 22px 50px rgba(0, 0, 0, 0.85), 0 0 25px rgba(245, 158, 11, 0.22); }
.mod-thumb { position: relative; aspect-ratio: 16/9; background: #120e0a; overflow: hidden; }
.mod-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.mod-card:hover .mod-thumb img { transform: scale(1.06); }
.mod-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mod-name { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.5px; color: #ffffff; line-height: 1.35; min-height: 42px; }
.mod-meta { font-size: 0.78rem; color: var(--text-muted); display: flex; justify-content: space-between; align-items: center; }
.mod-price { color: var(--accent-bright); font-weight: 800; font-size: 0.95rem; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.site-footer {
  background: rgba(6, 5, 4, 0.96);
  border-top: 1px solid rgba(245, 158, 11, 0.1);
  padding: 48px 24px 24px;
  color: var(--text-muted);
  margin-top: 40px;
}

.footer-inner {
  max-width: 1250px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-family: var(--font-display);
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  font-size: 1.1rem;
}
.footer-brand img {
  height: 32px;
  width: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(245, 158, 11, 0.5);
}
.footer-brand span {
  color: var(--accent);
}

.footer-col h5 {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 0.95rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  color: #8c7f70;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  transition: color 0.2s, text-shadow 0.2s;
}
.footer-links a:hover {
  color: var(--accent-bright);
  text-shadow: 0 0 8px var(--accent);
}

.footer-bottom {
  max-width: 1250px;
  margin: 28px auto 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 18px;
  color: #615548;
  font-size: 0.78rem;
}
.footer-ip {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
  opacity: 0.85;
  user-select: all;
}

/* ══════════════════════════════════════════
   MOBILE RESPONSIVENESS
══════════════════════════════════════════ */
@media (max-width: 860px) {
  .navbar, .navbar.scrolled {
    height: 64px;
    padding: 0 16px;
  }
  .nav-toggle {
    display: block;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
  }
  .nav-toggle-bars {
    display: block;
    position: relative;
    width: 24px;
    height: 16px;
    margin: 0 auto;
  }
  .nav-toggle-bars span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: all 0.2s ease;
  }
  .nav-toggle-bars span:nth-child(1) { top: 0; }
  .nav-toggle-bars span:nth-child(2) { top: 7px; }
  .nav-toggle-bars span:nth-child(3) { top: 14px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 7px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

  .navbar.has-nav-toggle .menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 20px 24px;
    background: rgba(12, 9, 7, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-strong);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.85);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.2s ease;
  }
  .navbar.has-nav-toggle .menu.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }
  .navbar.has-nav-toggle .menu a {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
  }

  .policy-container { margin: 80px auto 40px; padding: 0 16px; }
  .policy-box { padding: 22px 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}
