:root {
  --primary: #00bcd4;
  --primary-light: #00d4e8;
  --primary-dark: #0097a7;
  --secondary: #ffd700;
  --bg-dark: #0a0e27;
  --bg-darker: #050810;
  --bg-card: rgba(15, 25, 50, 0.6);
  --text-primary: #ffffff;
  --text-secondary: #b0bec5;
  --text-tertiary: #90a4ae;
  --accent-green: #4caf50;
  --accent-red: #f44336;
  --accent-blue: #2196f3;
  --accent-purple: #9c27b0;
  --accent-orange: #ff9800;
  --glow-primary: rgba(0, 188, 212, 0.5);
  --glow-secondary: rgba(255, 215, 0, 0.3);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Space Mono", monospace;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* ── Background ─────────────────────────────────────────── */
.background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
.grid-background {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(
      0deg,
      transparent 24%,
      rgba(0, 188, 212, 0.05) 25%,
      rgba(0, 188, 212, 0.05) 26%,
      transparent 27%,
      transparent 74%,
      rgba(0, 188, 212, 0.05) 75%,
      rgba(0, 188, 212, 0.05) 76%,
      transparent 77%
    ),
    linear-gradient(
      90deg,
      transparent 24%,
      rgba(0, 188, 212, 0.05) 25%,
      rgba(0, 188, 212, 0.05) 26%,
      transparent 27%,
      transparent 74%,
      rgba(0, 188, 212, 0.05) 75%,
      rgba(0, 188, 212, 0.05) 76%,
      transparent 77%
    );
  background-size: 50px 50px;
}
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: pulseOrb 8s ease-in-out infinite;
}
.glow-orb-1 {
  width: 300px;
  height: 300px;
  background: var(--primary);
  top: 5%;
  left: 5%;
}
.glow-orb-2 {
  width: 250px;
  height: 250px;
  background: var(--accent-purple);
  top: 45%;
  right: 5%;
  animation-delay: 2s;
}
.glow-orb-3 {
  width: 200px;
  height: 200px;
  background: var(--secondary);
  bottom: 10%;
  left: 40%;
  animation-delay: 4s;
}
@keyframes pulseOrb {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.15;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.25;
  }
}

/* ── Header ─────────────────────────────────────────────── */
.page-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  background: rgba(5, 8, 16, 0.88);
  border-bottom: 2px solid var(--primary);
  backdrop-filter: blur(14px);
  box-shadow: 0 0 30px rgba(0, 188, 212, 0.2);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
}
.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--bg-dark);
  box-shadow: 0 0 18px var(--glow-primary);
  animation: spinSlow 4s linear infinite;
}

.logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.3));
}

@keyframes spinSlow {
  to {
    transform: rotate(360deg);
  }
}
.logo-text {
  font-family: "Audiowide", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--primary);
  text-shadow: 0 0 18px var(--glow-primary);
}
.header-back {
  margin-left: auto;
  background: transparent;
  border: 1.5px solid rgba(0, 188, 212, 0.3);
  color: var(--text-secondary);
  font-family: "Space Mono", monospace;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-back:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 14px var(--glow-primary);
}

/* ── Main container ─────────────────────────────────────── */
.page-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

/* ── Tab bar ────────────────────────────────────────────── */
.tab-bar {
  display: flex;
  gap: 0;
  background: rgba(5, 8, 16, 0.7);
  border: 2px solid rgba(0, 188, 212, 0.2);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 32px;
}
.tab-btn {
  flex: 1;
  padding: 13px 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: "Audiowide", sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-right: 1px solid rgba(0, 188, 212, 0.12);
}
.tab-btn:last-child {
  border-right: none;
}
.tab-btn:hover {
  color: var(--primary);
  background: rgba(0, 188, 212, 0.06);
}
.tab-btn.active {
  background: rgba(0, 188, 212, 0.14);
  color: var(--primary);
  text-shadow: 0 0 10px var(--glow-primary);
  box-shadow: inset 0 -2px 0 var(--primary);
}
.tab-btn i {
  font-size: 14px;
}

/* ── Tab content ────────────────────────────────────────── */
.tab-panel {
  display: none;
  animation: fadeInUp 0.35s ease-out;
}
.tab-panel.active {
  display: block;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Hero ───────────────────────────────────────────────── */
.doc-hero {
  background: linear-gradient(
    135deg,
    rgba(0, 188, 212, 0.08),
    rgba(255, 215, 0, 0.04)
  );
  border: 2px solid var(--primary);
  border-radius: 16px;
  padding: 28px 24px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 188, 212, 0.1);
}
.doc-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.06), transparent);
  pointer-events: none;
}
.doc-hero-icon {
  font-size: 28px;
  margin-bottom: 12px;
  color: var(--primary);
  text-shadow: 0 0 18px var(--glow-primary);
}
.doc-hero-title {
  font-family: "Orbitron", sans-serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 3px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.doc-hero-sub {
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.doc-hero-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 5px 12px;
  background: rgba(0, 188, 212, 0.1);
  border: 1px solid rgba(0, 188, 212, 0.25);
  border-radius: 6px;
  font-size: 10px;
  color: var(--primary);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ── Section ────────────────────────────────────────────── */
.doc-section {
  background: var(--bg-card);
  border: 2px solid rgba(0, 188, 212, 0.15);
  border-radius: 14px;
  padding: 22px 20px;
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
  transition: border-color 0.3s ease;
  opacity: 0;
  transform: translateY(12px);
}
.doc-section.revealed {
  animation: sectionReveal 0.5s ease forwards;
}
@keyframes sectionReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.doc-section:hover {
  border-color: rgba(0, 188, 212, 0.32);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  cursor: pointer;
  user-select: none;
}
.section-num {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Orbitron", sans-serif;
  font-size: 12px;
  font-weight: 900;
  color: var(--bg-darker);
  box-shadow: 0 0 14px var(--glow-primary);
}
.section-title {
  font-family: "Audiowide", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-primary);
  flex: 1;
}
.section-icon {
  font-size: 14px;
  color: var(--primary);
  text-shadow: 0 0 8px var(--glow-primary);
  transition: transform 0.3s ease;
}
.section-header:hover .section-icon {
  transform: rotate(90deg);
}
.section-body {
  padding-top: 4px;
}

/* ── List items ─────────────────────────────────────────── */
.item-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.item-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}
.item-list li::before {
  content: "▸";
  color: var(--primary);
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
  text-shadow: 0 0 8px var(--glow-primary);
}
.item-list strong {
  color: var(--text-primary);
}
.item-list a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 188, 212, 0.3);
  transition: all 0.2s ease;
}
.item-list a:hover {
  color: var(--secondary);
  border-bottom-color: var(--secondary);
}

/* ── Warning / info boxes ───────────────────────────────── */
.info-box {
  padding: 14px 16px;
  border-radius: 10px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 14px;
}
.info-box i {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}
.info-box.warn {
  background: rgba(255, 152, 0, 0.08);
  border: 1px solid rgba(255, 152, 0, 0.25);
  color: var(--accent-orange);
}
.info-box.note {
  background: rgba(33, 150, 243, 0.08);
  border: 1px solid rgba(33, 150, 243, 0.25);
  color: var(--accent-blue);
}
.info-box.ok {
  background: rgba(76, 175, 80, 0.08);
  border: 1px solid rgba(76, 175, 80, 0.25);
  color: var(--accent-green);
}

/* ── Contact pill ───────────────────────────────────────── */
.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  margin-top: 14px;
  background: rgba(0, 188, 212, 0.1);
  border: 1.5px solid rgba(0, 188, 212, 0.3);
  border-radius: 8px;
  color: var(--primary);
  font-size: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.contact-pill:hover {
  background: rgba(0, 188, 212, 0.18);
  box-shadow: 0 0 18px var(--glow-primary);
  transform: translateX(4px);
}

/* ── Divider ────────────────────────────────────────────── */
.cyber-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 6px;
  font-size: 9px;
  color: var(--primary);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
}
.cyber-divider::before,
.cyber-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 188, 212, 0.4),
    transparent
  );
}

/* ── Bottom nav ─────────────────────────────────────────── */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: rgba(5, 8, 16, 0.92);
  border-top: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  backdrop-filter: blur(14px);
  box-shadow: 0 -4px 30px rgba(0, 188, 212, 0.15);
  padding: 0 20px;
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 2px;
  font-family: "Space Mono", monospace;
}
.bottom-bar i {
  color: var(--primary);
  text-shadow: 0 0 8px var(--glow-primary);
}

/* ── Scroll indicator ───────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 68px;
  right: 18px;
  width: 38px;
  height: 38px;
  background: rgba(0, 188, 212, 0.15);
  border: 1.5px solid rgba(0, 188, 212, 0.4);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 14px;
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
}
.scroll-top.visible {
  opacity: 1;
  pointer-events: all;
}
.scroll-top:hover {
  background: rgba(0, 188, 212, 0.25);
  box-shadow: 0 0 14px var(--glow-primary);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .doc-hero-title {
    font-size: 15px;
  }
  .tab-btn span {
    display: none;
  }
  .tab-btn {
    padding: 13px;
  }
}
