/* ============================================================
   DESIGN TOKENS & GLOBAL
   ============================================================ */
:root {
  --bg-0: #07090d;
  --bg-1: #0b1017;
  --bg-2: #101824;
  --panel: rgba(10, 20, 32, 0.86);
  --panel-2: rgba(13, 28, 45, 0.92);
  --panel-3: rgba(9, 19, 30, 0.96);
  --line: rgba(108, 232, 255, 0.22);
  --line-strong: rgba(108, 232, 255, 0.45);
  --amber: #ffc46b;
  --amber-2: #ff9f43;
  --cyan: #6ce8ff;
  --cyan-2: #3fb7ff;
  --text: #dff9ff;
  --muted: #8fb7c4;
  --danger: #ff6f6f;
  --ok: #87ff9b;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  --glow-cyan: 0 0 0 1px rgba(108, 232, 255, 0.18), 0 0 18px rgba(63, 183, 255, 0.12);
  --glow-amber: 0 0 0 1px rgba(255, 196, 107, 0.15), 0 0 16px rgba(255, 159, 67, 0.12);
  --header-h: 82px;
  --nav-w: 94px;
  --radius: 18px;
  --radius-sm: 12px;
  --font-main: "Segoe UI", "Inter", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* ============================================================
   BODY & BACKGROUND EFFECTS
   ============================================================ */
body {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  font-family: var(--font-main);
  color: var(--text);
  background:
    radial-gradient(circle at 14% 12%, rgba(63, 183, 255, 0.13), transparent 24%),
    radial-gradient(circle at 84% 18%, rgba(255, 159, 67, 0.1), transparent 20%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 42%, var(--bg-0) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(140, 220, 255, 0.048) 0px,
    rgba(140, 220, 255, 0.048) 1px,
    rgba(0, 0, 0, 0) 1px,
    rgba(0, 0, 0, 0) 4px
  );
  mix-blend-mode: screen;
  opacity: 0.55;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0)),
    linear-gradient(90deg, rgba(108, 232, 255, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(108, 232, 255, 0.02) 1px, transparent 1px);
  background-size: auto, 40px 40px, 40px 40px;
  opacity: 0.3;
}

a {
  color: inherit;
}

/* ============================================================
   HEADER
   ============================================================ */
header {
  height: var(--header-h);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 24px 0 28px;
  background: linear-gradient(180deg, rgba(6, 10, 16, 0.96), rgba(8, 13, 20, 0.88));
  border-bottom: 1px solid rgba(108, 232, 255, 0.28);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(108, 232, 255, 0.8) 12%,
    rgba(255, 196, 107, 0.75) 50%,
    rgba(108, 232, 255, 0.8) 88%,
    transparent 100%
  );
  box-shadow: 0 0 14px rgba(108, 232, 255, 0.25);
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  user-select: none;
}

.logo svg {
  color: var(--cyan);
  filter: drop-shadow(0 0 10px rgba(108, 232, 255, 0.28));
  flex-shrink: 0;
}

.logo span {
  position: relative;
  text-shadow: 0 0 12px rgba(108, 232, 255, 0.15);
}

.logo span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent 82%);
  opacity: 0.85;
}

/* ============================================================
   STATUS BAR
   ============================================================ */
.status-bar {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  font-size: 0.74rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid rgba(108, 232, 255, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(135, 255, 155, 0.08), 0 0 12px rgba(135, 255, 155, 0.65);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  bottom: 0;
  width: var(--nav-w);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 10px;
  background: linear-gradient(180deg, rgba(8, 13, 20, 0.98), rgba(5, 8, 13, 0.96));
  border-right: 1px solid rgba(108, 232, 255, 0.12);
  box-shadow: inset -1px 0 0 rgba(255, 196, 107, 0.08);
}

.nav-item {
  width: 100%;
  min-height: 68px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  transition: 0.25s ease;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(108, 232, 255, 0.12);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.01);
}

.nav-item svg {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.nav-item::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(108, 232, 255, 0.08);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  pointer-events: none;
}

.nav-item:hover,
.nav-item.active {
  color: var(--text);
  border-color: rgba(108, 232, 255, 0.36);
  background: linear-gradient(180deg, rgba(63, 183, 255, 0.18), rgba(255, 196, 107, 0.08));
  box-shadow: var(--glow-cyan);
}

.nav-item:hover svg,
.nav-item.active svg {
  transform: scale(1.08);
}

/* Tooltip */
.nav-item:hover::after {
  content: attr(data-title);
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(180deg, rgba(63, 183, 255, 0.2), rgba(255, 196, 107, 0.08));
  color: var(--cyan);
  font-size: 0.85rem;
  font-weight: 900;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 18px;
  white-space: nowrap;
  border: 1px solid rgba(108, 232, 255, 0.6);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  box-shadow: 0 0 10px rgba(108, 232, 255, 0.5), 0 0 20px rgba(108, 232, 255, 0.2);
  text-shadow: 0 0 5px #6ce8ff, 0 0 10px #3fb7ff;
  backdrop-filter: blur(6px);
  z-index: 1000;
  animation: fadeInTooltip 0.2s ease;
}

.nav-item.active:hover::after {
  color: var(--amber);
  border-color: rgba(255, 196, 107, 0.7);
  box-shadow: 0 0 15px rgba(255, 196, 107, 0.7), 0 0 25px rgba(108, 232, 255, 0.4);
  text-shadow: 0 0 6px #ffc46b;
}

@keyframes fadeInTooltip {
  from { opacity: 0; transform: translateY(-50%) translateX(-8px); }
  to   { opacity: 1; transform: translateY(-50%) translateX(0); }
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
main {
  position: relative;
  z-index: 1;
  margin-left: var(--nav-w);
  padding: 26px 26px 40px;
  max-width: 1480px;
}

section {
  display: none;
  animation: fadeIn 0.35s ease;
}

section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   HERO BANNER
   ============================================================ */
.hero-banner {
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  background:
    linear-gradient(135deg, rgba(63, 183, 255, 0.08), rgba(255, 196, 107, 0.06)),
    rgba(8, 15, 24, 0.88);
  border: 1px solid rgba(108, 232, 255, 0.22);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
  isolation: isolate;
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(108, 232, 255, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(108, 232, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.3;
  z-index: 0;
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, transparent 0 58%, rgba(255, 196, 107, 0.06) 58% 100%),
    linear-gradient(165deg, rgba(63, 183, 255, 0.05) 0 32%, transparent 32% 100%);
  opacity: 0.9;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 300px;
  display: grid;
  grid-template-columns: minmax(320px, 1.15fr) minmax(260px, 0.85fr);
  gap: 24px;
  align-items: center;
  padding: 30px;
}

.hero-copy {
  max-width: 760px;
  position: relative;
}

.hero-copy::before {
  content: "";
  position: absolute;
  left: -18px;
  top: -8px;
  width: 3px;
  height: 82px;
  background: linear-gradient(180deg, var(--cyan), transparent);
  box-shadow: 0 0 12px rgba(108, 232, 255, 0.22);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 196, 107, 0.34);
  background: rgba(255, 196, 107, 0.09);
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
}

.hero-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 12px rgba(255, 196, 107, 0.45);
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 0.92;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  text-shadow: 0 0 18px rgba(108, 232, 255, 0.08);
  margin-bottom: 14px;
  max-width: 12ch;
}

.hero-title .accent { color: var(--cyan); }

.hero-desc {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
  margin-bottom: 18px;
}

.hero-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-stat {
  min-width: 160px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(108, 232, 255, 0.12);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.hero-stat-label {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: var(--font-mono);
  margin-bottom: 6px;
}

.hero-stat-value {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
  transition: 0.2s ease;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.hero-btn.primary {
  color: #051119;
  background: linear-gradient(90deg, var(--cyan), #90f1ff);
  border: 1px solid rgba(108, 232, 255, 0.4);
  box-shadow: 0 0 18px rgba(108, 232, 255, 0.14);
}

.hero-btn.secondary {
  background: rgba(255, 255, 255, 0.035);
  color: var(--amber);
  border: 1px solid rgba(255, 196, 107, 0.25);
}

.hero-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
  cursor: pointer;
  color: var(--cyan);
  border: 1px solid rgba(108, 232, 255, 0.22);
  background: rgba(255, 255, 255, 0.03);
  transition: 0.2s ease;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
}

.back-btn:hover {
  border-color: rgba(108, 232, 255, 0.42);
  transform: translateY(-1px);
  box-shadow: var(--glow-cyan);
}

/* ============================================================
   CARDS & GRID
   ============================================================ */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    rgba(8, 15, 24, 0.88);
  border: 1px solid rgba(108, 232, 255, 0.14);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  cursor: pointer;
  min-height: 145px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(140deg, rgba(63, 183, 255, 0.08), transparent 42%),
    linear-gradient(320deg, rgba(255, 196, 107, 0.05), transparent 48%);
  pointer-events: none;
  opacity: 0.95;
}

.card::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; top: 12px; bottom: 12px;
  border: 1px solid rgba(108, 232, 255, 0.06);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(108, 232, 255, 0.34);
  box-shadow: var(--shadow), var(--glow-cyan);
}

.card-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  border: 1px solid rgba(108, 232, 255, 0.16);
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.04);
  position: relative;
  z-index: 1;
}

.card h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-description {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.56;
  margin-bottom: 6px;
}

/* ============================================================
   SECTION HEADERS & TITLES
   ============================================================ */
h1, h2, h3 { color: var(--text); }

section > h1 {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding: 12px 18px;
  font-size: clamp(1.35rem, 2vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  background: linear-gradient(90deg, rgba(108, 232, 255, 0.1), rgba(255, 196, 107, 0.06));
  border: 1px solid rgba(108, 232, 255, 0.22);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  box-shadow: var(--shadow);
}

section > h1::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 12px rgba(255, 196, 107, 0.35);
  flex-shrink: 0;
}

.cat-title {
  margin: 28px 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(255, 196, 107, 0.07);
  border: 1px solid rgba(255, 196, 107, 0.25);
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
}

.cat-title::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(108, 232, 255, 0.1), 0 0 10px rgba(108, 232, 255, 0.22);
  flex-shrink: 0;
}

/* ============================================================
   LINKS & DOC-LINK
   ============================================================ */
.doc-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  width: fit-content;
  padding: 0 14px;
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #07111b;
  font-family: var(--font-mono);
  background: linear-gradient(90deg, var(--amber), #ffd89c);
  border: 1px solid rgba(255, 196, 107, 0.32);
  transition: transform 0.18s ease, filter 0.18s ease;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
}

.doc-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

/* ============================================================
   CONTENT BOX & TABLES
   ============================================================ */
.content-box {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(8, 15, 24, 0.92);
  border: 1px solid rgba(108, 232, 255, 0.15);
  padding: 24px;
  box-shadow: var(--shadow);
  color: var(--text);
  line-height: 1.75;
  white-space: pre-wrap;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}

.table-container {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(108, 232, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(8, 15, 24, 0.9);
  box-shadow: var(--shadow);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}

table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
}

th {
  position: sticky;
  top: 0;
  background: linear-gradient(90deg, rgba(63, 183, 255, 0.2), rgba(255, 196, 107, 0.12));
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  padding: 16px 18px;
  border-bottom: 1px solid rgba(108, 232, 255, 0.1);
  text-align: left;
}

td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(108, 232, 255, 0.08);
  vertical-align: top;
  color: var(--text);
}

tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* ============================================================
   WEAPON TAGS
   ============================================================ */
.weapon-tags-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.weapon-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
  border: 1px solid rgba(108, 232, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  white-space: nowrap;
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
}

.tag-primary   { background: rgba(63, 183, 255, 0.12); border-color: rgba(63, 183, 255, 0.35); color: #c7f7ff; }
.tag-secondary { background: rgba(255, 255, 255, 0.03); border-color: rgba(108, 232, 255, 0.16); color: #dff9ff; }
.tag-explosive { background: rgba(255, 111, 111, 0.1);  border-color: rgba(255, 111, 111, 0.35);  color: #ffc7c7; }
.tag-rare      { background: rgba(255, 196, 107, 0.12); border-color: rgba(255, 196, 107, 0.36); color: #ffe5b5; }

/* ============================================================
   IFRAME (Google Sheets)
   ============================================================ */
.sheet-iframe {
  display: block;
  width: 100%;
  min-height: 680px;
  border: none;
  background: #fff;
}

/* ============================================================
   MISC
   ============================================================ */
.subtle-note {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 18px;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(108, 232, 255, 0.45), rgba(255, 196, 107, 0.35));
  border-radius: 999px;
}

/* ============================================================
   DISTANCE CALCULATOR
   ============================================================ */
.map-select {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(108, 232, 255, 0.3);
  border-radius: 8px;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236ce8ff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.map-viewer {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)), rgba(8, 15, 24, 0.92);
  border: 1px solid rgba(108, 232, 255, 0.15);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
  padding: 16px;
  margin-top: 20px;
}

.map-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(108, 232, 255, 0.1);
}

.tool-btn {
  background: rgba(108, 232, 255, 0.15);
  border: 1px solid rgba(108, 232, 255, 0.4);
  color: var(--cyan);
  padding: 8px 16px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.2s;
}
.tool-btn:hover { background: rgba(108, 232, 255, 0.25); }
.tool-btn.active { background: var(--amber); border-color: var(--amber); color: #000; }

.scale-display, .result-display {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
}
.result-display {
  color: var(--amber);
  font-weight: 800;
  margin-left: auto;
}

.map-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  cursor: crosshair;
  background: rgba(0,0,0,0.3);
  text-align: center;
}
.map-container img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Map markers & lines */
.marker {
  position: absolute;
  width: 4px; height: 4px;
  background: #ff0000;
  border: 1px solid #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 5;
  box-shadow: 0 0 2px rgba(255,0,0,0.5);
}

.mortar-marker {
  position: absolute;
  width: 6px; height: 6px;
  background: #ffc46b;
  border: 1px solid #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 6;
  filter: drop-shadow(0 0 1px #ff9f43);
  background-image: none;
}

.measure-line {
  position: absolute;
  height: 2px;
  background: #ff6f6f;
  transform-origin: left center;
  pointer-events: none;
  z-index: 4;
  box-shadow: 0 0 6px rgba(255,0,0,0.4);
}

.mortar-range {
  position: absolute;
  border-radius: 50%;
  border: 2px dashed rgba(255, 111, 111, 0.8);
  background: radial-gradient(circle, rgba(255, 100, 100, 0.15) 10%, rgba(255, 100, 100, 0.05) 80%);
  pointer-events: none;
  z-index: 3;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.3);
}

.measure-label {
  position: absolute;
  background: rgba(10, 20, 32, 0.9);
  border: 1px solid var(--amber);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 7;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(255,196,107,0.3);
}

/* ============================================================
   IMAGE OVERLAY
   ============================================================ */
.image-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
  backdrop-filter: blur(4px);
  padding: 20px;
}

.image-overlay img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border: 1px solid rgba(108, 232, 255, 0.3);
  box-shadow: 0 0 30px rgba(108, 232, 255, 0.3);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.5);
}

/* ============================================================
   WEAPON PREVIEW OVERLAY
   ============================================================ */
.weapon-preview-overlay {
  position: fixed;
  z-index: 10000;
  pointer-events: none;
  background: rgba(10, 20, 32, 0.95);
  border: 1px solid var(--amber);
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 0 20px rgba(255,196,107,0.4);
  display: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.weapon-preview-overlay.visible { opacity: 1; }
.weapon-preview-overlay img {
  max-width: 200px;
  max-height: 150px;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}
.weapon-preview-overlay .weapon-name {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-align: center;
  margin-top: 4px;
  font-weight: 800;
  text-transform: uppercase;
}

/* ============================================================
   ADMIN PANEL
   ============================================================ */
#admin-login-btn:hover { border-color: #ffc46b !important; }

.admin-input, .admin-textarea {
  width: 100%; max-width: 500px; padding: 8px 12px; display: block;
  background: rgba(0,0,0,0.5); border: 1px solid rgba(108,232,255,0.3);
  color: #dff9ff; font-family: monospace; font-size: 0.85rem;
  border-radius: 6px; outline: none; margin-bottom: 8px;
}
.admin-textarea { resize: vertical; min-height: 120px; }

.admin-block-btn {
  padding: 6px 12px; border: 1px solid rgba(108,232,255,0.3);
  background: rgba(108,232,255,0.08); color: #dff9ff;
  font-family: monospace; font-size: 0.75rem; border-radius: 6px; cursor: pointer;
}
.admin-block-btn.blocked { background: rgba(255,111,111,0.2); border-color: #ff6f6f; color: #ff6f6f; }

/* ============================================================
   SECTION BLOCK (Тех. работы)
   ============================================================ */
.section-blocked {
  position: relative; pointer-events: none; user-select: none;
}
.section-blocked > * { filter: blur(6px); }
.section-blocked::before {
  content: "ТЕХНИЧЕСКИЕ РАБОТЫ";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: monospace; font-size: 2.5rem; font-weight: 900;
  color: rgba(108,232,255,0.5); background: rgba(0,0,0,0.4);
  z-index: 10; letter-spacing: 0.15em;
}

/* ============================================================
   CONTEXT MENU
   ============================================================ */
.context-menu {
  position: fixed;
  z-index: 99999;
  background: linear-gradient(180deg, rgba(10, 20, 35, 0.98), rgba(5, 12, 20, 0.98));
  border: 1px solid rgba(108, 232, 255, 0.4);
  border-radius: 16px;
  padding: 16px;
  min-width: 280px;
  max-width: 360px;
  box-shadow:
    0 0 30px rgba(108, 232, 255, 0.15),
    0 0 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 0.82rem;
  color: #dff9ff;
  display: none;
  backdrop-filter: blur(12px);
  animation: ctxFadeIn 0.15s ease;
}
@keyframes ctxFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.context-menu .title {
  color: #ffc46b;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(108, 232, 255, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: monospace;
}

.context-menu .info {
  color: #8fb7c4;
  margin-bottom: 8px;
  line-height: 1.4;
}
.context-menu .info strong {
  color: #6ce8ff;
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.context-menu input,
.context-menu textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(108, 232, 255, 0.3);
  color: #dff9ff;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-family: monospace;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}
.context-menu input:focus,
.context-menu textarea:focus {
  border-color: #ffc46b;
  box-shadow: 0 0 8px rgba(255, 196, 107, 0.2);
}

.context-menu img {
  max-width: 100%;
  max-height: 180px;
  border-radius: 10px;
  margin: 8px 0;
  display: block;
  border: 1px solid rgba(108, 232, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.context-menu .action {
  color: #87ff9b;
  margin-top: 10px;
  font-weight: 600;
  font-size: 0.78rem;
  padding-top: 8px;
  border-top: 1px solid rgba(108, 232, 255, 0.1);
  font-family: monospace;
}

.context-menu button {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(108, 232, 255, 0.3);
  background: rgba(108, 232, 255, 0.1);
  color: #6ce8ff;
  font-weight: 700;
  font-family: monospace;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.context-menu button:hover {
  background: rgba(108, 232, 255, 0.2);
  border-color: #6ce8ff;
}
.context-menu button#ctx-cancel {
  background: rgba(255, 111, 111, 0.1);
  border-color: rgba(255, 111, 111, 0.3);
  color: #ff6f6f;
}
.context-menu button#ctx-cancel:hover {
  background: rgba(255, 111, 111, 0.2);
  border-color: #ff6f6f;
}

/* ============================================================
   BLOCKED TAB (Заморожено)
   ============================================================ */
.tab-blocked {
  position: relative;
  pointer-events: none;
  user-select: none;
}
.tab-blocked > * { filter: blur(8px); }
.tab-blocked::before {
  content: attr(data-blocked-text);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255, 111, 111, 0.6);
  text-shadow: 0 0 30px rgba(255, 111, 111, 0.4);
  background: rgba(7, 9, 13, 0.5);
  backdrop-filter: blur(2px);
  z-index: 100;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ============================================================
   MEDIA QUERIES
   ============================================================ */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-title { max-width: none; }
  .hero-art { justify-content: flex-start; }
  .hud-panel { max-width: 100%; }
}

@media (max-width: 900px) {
  :root {
    --header-h: 72px;
    --nav-w: 0px;
  }

  header { padding: 0 16px; }
  .logo { letter-spacing: 0.12em; gap: 10px; }
  .logo span { font-size: 0.95rem; }
  .status-bar { gap: 8px; }
  .status-item { padding: 7px 10px; font-size: 0.68rem; }

  nav {
    top: auto; bottom: 0; width: 100%; height: 72px;
    flex-direction: row; justify-content: space-around;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    border-right: none;
    border-top: 1px solid rgba(108, 232, 255, 0.12);
    background: linear-gradient(180deg, rgba(8, 13, 20, 0.96), rgba(5, 8, 13, 0.98));
    backdrop-filter: blur(12px);
  }

  .nav-item {
    border-radius: 16px;
    clip-path: none;
  }
  .nav-item::before {
    border-radius: 12px;
    clip-path: none;
  }
  .nav-item:hover::after {
    border-radius: 12px;
    clip-path: none;
  }

  main { margin-left: 0; padding: 18px 14px 110px; }
  .hero-inner { padding: 18px; min-height: auto; }
  .hero-kicker { font-size: 0.68rem; margin-bottom: 12px; }
  .hero-desc { font-size: 0.94rem; }
  .hero-stats { gap: 10px; }
  .hero-stat { min-width: calc(50% - 5px); }
  section > h1 { font-size: 1.05rem; padding: 10px 14px; margin-bottom: 18px; }
  .grid-container { grid-template-columns: 1fr; gap: 14px; }
  .card { min-height: 124px; padding: 16px; }
  .card-image { height: 150px; }
  .content-box { padding: 18px; font-size: 0.9rem; }
  .sheet-iframe { min-height: 460px; }
}

@media (max-width: 560px) {
  .status-bar { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-btn { width: 100%; }
  .hero-title { font-size: 1.9rem; }
  .doc-link { width: 100%; }
  .card h3 { font-size: 0.95rem; }
  .card-description { font-size: 0.86rem; }
  .hero-stat { min-width: 100%; }
  .hud-footer { grid-template-columns: 1fr; }
}