:root {
  --bg-dark: #0d0d1a;
  --bg-window: rgba(30, 30, 50, 0.85);
  --border-lavender: #d8bfff;
  --border-pink: #ffb6c1;
  --gradient-blue: #a3d8ff;
  --gradient-lavender: #d8bfff;
  --gradient-pink: #ffb6c1;
  --text-main: #e0e0e0;
  --text-heading: #ffffff;
  --text-navy: #1e1e32;
  --accent-purple: #9a8bbc;
  --accent-teal: #5eead4;
  --accent-green: #6bff6b;
  --accent-red: #ff6b6b;
  --accent-yellow: #ffd93d;
}

* { box-sizing: border-box; }

@keyframes scanline {
  0% { background-position: 0 0; }
  100% { background-position: 0 100%; }
}
@keyframes flicker {
  0%, 10%, 25%, 35%, 45%, 55%, 65%, 75%, 85%, 95% { opacity: 0.97; }
  5%, 20%, 40%, 60%, 80% { opacity: 0.92; }
  15%, 30%, 50%, 70%, 90%, 100% { opacity: 0.94; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(5deg); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 5px 0px rgba(216, 191, 255, 0.5); }
  50% { box-shadow: 0 0 20px 5px rgba(216, 191, 255, 0.7); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

body {
  font-family: 'VT323', monospace;
  background: linear-gradient(135deg, #0d0d1a 0%, #1a0d2e 40%, #0d1a2e 70%, #0d0d1a 100%);
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  color: var(--text-main);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  font-size: 18px;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 3px);
  pointer-events: none;
  z-index: 1000;
  animation: scanline 12s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    linear-gradient(90deg, rgba(216,191,255,0.03) 1px, transparent 1px),
    linear-gradient(rgba(163,216,255,0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 999;
}

/* ===== TOP NAVIGATION ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(13, 13, 26, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--border-lavender);
  box-shadow: 0 4px 20px rgba(216, 191, 255, 0.15);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-link img {
  height: 45px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.main-nav a,
.nav-dropdown > .nav-trigger {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-main);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a:hover,
.main-nav a.active,
.nav-dropdown:hover > .nav-trigger {
  color: #fff;
  background: rgba(216, 191, 255, 0.15);
  text-shadow: 0 0 8px rgba(216, 191, 255, 0.5);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(20, 20, 40, 0.97);
  border: 1px solid var(--border-lavender);
  border-radius: 6px;
  min-width: 200px;
  padding: 0.5rem 0;
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
  animation: slideDown 0.2s ease;
  z-index: 950;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 1rem !important;
  font-size: 0.65rem !important;
  border-radius: 0 !important;
}

.nav-dropdown-menu a:hover {
  background: rgba(216, 191, 255, 0.1) !important;
}

.login-btn {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.55rem;
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--gradient-lavender), var(--gradient-blue));
  color: var(--text-navy);
  border: none;
  border-radius: 4px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.2s ease;
  box-shadow: 0 3px 0 var(--accent-purple), 0 0 10px rgba(216, 191, 255, 0.3);
  flex-shrink: 0;
  cursor: pointer;
}

.login-btn:hover {
  transform: translateY(1px);
  box-shadow: 0 2px 0 var(--accent-purple), 0 0 15px rgba(216, 191, 255, 0.5);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-lavender);
  color: var(--text-main);
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* ===== RETRO WINDOW PANELS ===== */
.retro-window {
  background-color: var(--bg-window);
  border: 2px solid var(--border-lavender);
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 12px rgba(216, 191, 255, 0.2);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.retro-window:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(216, 191, 255, 0.3);
}

.window-header {
  background: linear-gradient(90deg, var(--gradient-blue), var(--gradient-lavender));
  padding: 8px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--border-pink);
}

.window-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: bold;
  color: var(--text-navy);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
}

.window-controls {
  display: flex;
  gap: 8px;
}

.window-btn {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.window-btn-close { background-color: var(--accent-red); }
.window-btn-min { background-color: var(--accent-yellow); }
.window-btn-max { background-color: var(--accent-green); }

.window-body {
  padding: 1.5rem;
}

/* ===== TYPOGRAPHY ===== */
.neon-text {
  font-family: 'Orbitron', sans-serif;
  color: #fff;
  text-shadow:
    0 0 5px #fff,
    0 0 10px #fff,
    0 0 15px var(--border-lavender),
    0 0 20px var(--border-lavender),
    0 0 30px var(--border-lavender);
  font-weight: bold;
  letter-spacing: 2px;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.pixel-text {
  font-family: 'VT323', monospace;
  letter-spacing: 0.5px;
  line-height: 1.7;
  font-size: 1.1rem;
}

h1 { font-family: 'Orbitron', sans-serif; font-size: 2.5rem; line-height: 1.2; font-weight: 900; }
h2 { font-family: 'Orbitron', sans-serif; font-size: 1.6rem; line-height: 1.3; font-weight: 700; }
h3 { font-family: 'Orbitron', sans-serif; font-size: 1.2rem; line-height: 1.4; font-weight: 600; }
h4 { font-family: 'Orbitron', sans-serif; font-size: 1rem; line-height: 1.4; font-weight: 600; }

/* ===== PAGE LAYOUT ===== */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.hero-section {
  text-align: center;
  padding: 3rem 0;
}

.hero-section h1 {
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-family: 'VT323', monospace;
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 700px;
  margin: 0 auto;
}

.section-gap {
  margin-bottom: 3rem;
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  font-family: 'VT323', monospace;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.5);
  padding: 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--gradient-blue);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: #fff;
  text-decoration: underline;
}

.breadcrumbs .sep {
  color: rgba(255,255,255,0.3);
}

/* ===== BUTTONS ===== */
.pixel-btn {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.65rem;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--gradient-lavender), var(--gradient-blue));
  color: var(--text-navy);
  border: none;
  border-radius: 4px;
  box-shadow: 0 4px 0 var(--accent-purple), 0 0 10px rgba(216, 191, 255, 0.3);
  transition: all 0.15s ease;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  letter-spacing: 1px;
}

.pixel-btn:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--accent-purple), 0 0 15px rgba(216, 191, 255, 0.5);
}

.pixel-btn:active {
  transform: translateY(4px);
  box-shadow: none;
}

.pixel-btn-outline {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.6rem;
  padding: 10px 20px;
  background: transparent;
  color: var(--gradient-lavender);
  border: 2px solid var(--gradient-lavender);
  border-radius: 4px;
  transition: all 0.2s ease;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.pixel-btn-outline:hover {
  background: rgba(216, 191, 255, 0.1);
  box-shadow: 0 0 15px rgba(216, 191, 255, 0.3);
}

/* ===== CARDS / GRID ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card .window-body {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid var(--border-lavender);
  flex-shrink: 0;
}

/* ===== NEWS CARDS ===== */
.news-card {
  transition: transform 0.2s ease;
}

.news-card:hover {
  transform: translateY(-4px);
}

.news-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-bottom: 2px solid var(--border-pink);
}

.news-card .news-date {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  color: var(--gradient-blue);
  margin-bottom: 0.5rem;
}

.news-card .news-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.news-card .news-excerpt {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
}

.news-card a {
  color: var(--gradient-blue);
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.news-card a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ===== ONION LINK BOXES ===== */
.onion-link-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(107, 255, 107, 0.3);
  border-radius: 6px;
  padding: 1rem;
  font-family: monospace;
  font-size: 0.85rem;
  color: #6bff6b;
  word-break: break-all;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.onion-link-box:hover {
  border-color: #6bff6b;
  box-shadow: 0 0 10px rgba(107, 255, 107, 0.2);
}

.onion-link-box .copy-hint {
  font-family: 'VT323', monospace;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.5rem;
  display: block;
}

.copied-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(107, 255, 107, 0.9);
  color: #0d0d1a;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
  display: none;
}

/* ===== PGP BOX ===== */
.pgp-box {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(216, 191, 255, 0.3);
  border-radius: 6px;
  padding: 1rem;
  font-family: monospace;
  font-size: 0.7rem;
  color: var(--gradient-lavender);
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 300px;
  overflow-y: auto;
  line-height: 1.4;
}

/* ===== TABLES ===== */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  background: rgba(100, 60, 150, 0.3);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(216, 191, 255, 0.2);
  text-align: left;
}

.data-table td {
  padding: 0.8rem 1rem;
  border: 1px solid rgba(216, 191, 255, 0.1);
  vertical-align: top;
}

.data-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

/* ===== ALERTS / CALLOUTS ===== */
.callout {
  padding: 1rem 1.25rem;
  border-radius: 6px;
  margin: 1.5rem 0;
}

.callout-warning {
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  color: #ff9a9a;
}

.callout-info {
  background: rgba(163, 216, 255, 0.1);
  border: 1px solid rgba(163, 216, 255, 0.3);
  color: var(--gradient-blue);
}

.callout-success {
  background: rgba(107, 255, 107, 0.1);
  border: 1px solid rgba(107, 255, 107, 0.3);
  color: #6bff6b;
}

.callout-purple {
  background: rgba(216, 191, 255, 0.1);
  border: 1px solid rgba(216, 191, 255, 0.3);
  color: var(--border-lavender);
}

/* ===== FAQ ACCORDION ===== */
.faq-item {
  border: 1px solid rgba(216, 191, 255, 0.15);
  border-radius: 6px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(216, 191, 255, 0.3);
}

.faq-question {
  padding: 1rem 1.25rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.2s;
}

.faq-question:hover {
  background: rgba(216, 191, 255, 0.08);
}

.faq-question .arrow {
  transition: transform 0.3s ease;
  font-size: 0.7rem;
  color: var(--gradient-lavender);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0 1.25rem;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0.5rem 1.25rem 1.25rem;
}

/* ===== FOOTER ===== */
.site-footer {
  background: rgba(13, 13, 26, 0.95);
  border-top: 2px solid var(--border-lavender);
  margin-top: 4rem;
  padding: 2rem 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gradient-lavender);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.25rem 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--gradient-blue);
}

.footer-disclaimer {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.5rem;
  line-height: 1.8;
  color: var(--border-pink);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(216, 191, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-date {
  font-family: 'VT323', monospace;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
  margin-top: 0.75rem;
}

/* ===== FLOATING SHAPES ===== */
.floating-shape {
  position: fixed;
  z-index: -1;
  opacity: 0.15;
  animation: float 12s ease-in-out infinite;
  pointer-events: none;
}

/* ===== STAT BARS ===== */
.stat-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gradient-blue), var(--gradient-lavender));
  transition: width 1s ease;
}

/* ===== LINKS ===== */
a.text-link {
  color: var(--gradient-blue);
  text-decoration: underline;
  text-decoration-color: rgba(163, 216, 255, 0.3);
  transition: all 0.2s;
}

a.text-link:hover {
  color: #fff;
  text-decoration-color: #fff;
}

/* ===== TAGS ===== */
.tag {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.55rem;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.tag-green { background: rgba(107,255,107,0.15); color: #6bff6b; }
.tag-blue { background: rgba(163,216,255,0.15); color: var(--gradient-blue); }
.tag-pink { background: rgba(255,182,193,0.15); color: var(--border-pink); }
.tag-purple { background: rgba(216,191,255,0.15); color: var(--border-lavender); }
.tag-yellow { background: rgba(255,217,61,0.15); color: var(--accent-yellow); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--gradient-blue), var(--gradient-lavender));
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, var(--gradient-lavender), var(--gradient-pink));
}

/* ===== STEP INDICATORS ===== */
.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--text-navy);
  background: linear-gradient(135deg, var(--gradient-blue), var(--gradient-lavender));
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(216, 191, 255, 0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1rem; }

  .header-inner { height: 60px; }

  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(13, 13, 26, 0.98);
    border-bottom: 2px solid var(--border-lavender);
    padding: 1rem;
    gap: 0;
    z-index: 950;
    max-height: 80vh;
    overflow-y: auto;
  }

  .main-nav.open a,
  .main-nav.open .nav-trigger {
    padding: 0.75rem 1rem;
    width: 100%;
  }

  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: rgba(255,255,255,0.03);
    border-radius: 0;
    padding: 0;
  }

  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown .nav-dropdown-menu {
    display: block;
  }

  .mobile-menu-btn { display: block; }

  .page-container { padding: 1rem; }

  .hero-section { padding: 2rem 0; }

  .card-grid, .card-grid-3 {
    grid-template-columns: 1fr;
  }

  .feature-card .window-body {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.3rem; }
  .pixel-btn { font-size: 0.5rem; padding: 10px 16px; }
  .login-btn { font-size: 0.45rem; padding: 6px 12px; }
}

/* ===== IMAGE OPTIMIZATION ===== */
img {
  max-width: 100%;
  height: auto;
}

.img-feature {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid var(--border-lavender);
}

.img-news {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.img-hero {
  max-width: 100%;
  border-radius: 8px;
  border: 2px solid var(--border-pink);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* ===== LIST STYLES ===== */
.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-weight: bold;
}

/* ===== CONTENT ROTATION (JS controlled) ===== */
.rotate-content { display: none; }
.rotate-content.active { display: block; }

/* ===== PRINT ===== */
@media print {
  body::before, body::after, .floating-shape, .site-header { display: none; }
  body { background: #fff; color: #000; }
  .retro-window { border-color: #ccc; box-shadow: none; }
}
