/* ============================================
   LAYER 0: GLOBAL RESET & BASE
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; font-family: 'Times New Roman', serif; }

/* ============================================
   LAYER 1: MOZART'S GHOST - 90s BAND PAGE
   ============================================ */
#mozarts-ghost {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1a0033, #330066, #1a0033);
  overflow-y: auto; overflow-x: hidden;
  position: relative;
  transition: opacity 0.5s;
}

/* Starfield background */
#mozarts-ghost::before {
  content: '';
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background:
    radial-gradient(1px 1px at 10% 20%, #fff, transparent),
    radial-gradient(1px 1px at 30% 60%, #fff, transparent),
    radial-gradient(1px 1px at 50% 10%, #fff, transparent),
    radial-gradient(1px 1px at 70% 80%, #fff, transparent),
    radial-gradient(1px 1px at 90% 40%, #fff, transparent),
    radial-gradient(1px 1px at 15% 75%, #aaf, transparent),
    radial-gradient(1px 1px at 45% 45%, #fff, transparent),
    radial-gradient(1px 1px at 85% 15%, #aaf, transparent),
    radial-gradient(2px 2px at 25% 35%, #fff, transparent),
    radial-gradient(1px 1px at 60% 90%, #fff, transparent),
    radial-gradient(1px 1px at 5% 50%, #fff, transparent),
    radial-gradient(1px 1px at 75% 55%, #aaf, transparent);
  pointer-events: none; z-index: 0;
  animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

.band-content {
  position: relative; z-index: 1;
  max-width: 780px; margin: 0 auto; padding: 20px;
}

/* Gaudy 90s header */
.band-header {
  text-align: center; padding: 20px 0;
  border-bottom: 3px solid #ff00ff;
  margin-bottom: 20px;
}

.band-title {
  font-family: 'Times New Roman', serif;
  font-size: 56px; font-weight: bold;
  background: linear-gradient(180deg, #ffcc00, #ff6600, #ff0000, #cc0000);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(2px 2px 4px rgba(255,0,0,0.5));
  letter-spacing: 3px;
  animation: headerPulse 2s ease-in-out infinite;
}

@keyframes headerPulse {
  0%, 100% { filter: drop-shadow(2px 2px 4px rgba(255,0,0,0.5)); }
  50% { filter: drop-shadow(2px 2px 12px rgba(255,0,255,0.8)); }
}

.band-subtitle {
  color: #00ffff; font-size: 18px;
  font-family: 'Courier New', monospace;
  margin-top: 8px;
  animation: blink90s 1.5s step-end infinite;
}

@keyframes blink90s {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Horizontal rules - 90s style */
.hr90s {
  height: 4px; border: none; margin: 20px 0;
  background: linear-gradient(90deg, transparent, #ff00ff, #00ffff, #ffff00, #ff00ff, transparent);
  animation: hrScroll 3s linear infinite;
}

@keyframes hrScroll {
  0% { background-position: 0 0; }
  100% { background-position: 200px 0; }
}

/* Visitor counter */
.visitor-counter {
  text-align: center; margin: 15px 0;
  color: #00ff00; font-family: 'Courier New', monospace; font-size: 14px;
}

.counter-digits {
  display: inline-block;
  background: #000; border: 2px inset #666;
  padding: 4px 12px; font-size: 20px; color: #00ff00;
  font-family: 'Courier New', monospace; letter-spacing: 3px;
}

/* Navigation bar */
.band-nav {
  display: flex; justify-content: center; gap: 5px;
  flex-wrap: wrap; margin: 20px 0;
  background: linear-gradient(180deg, #666, #333, #666);
  border: 2px outset #999; padding: 8px;
}

.band-nav a {
  color: #ffff00; text-decoration: none;
  font-family: 'Arial', sans-serif; font-size: 14px; font-weight: bold;
  padding: 4px 12px;
  border: 2px outset #888; background: linear-gradient(180deg, #555, #333);
  cursor: pointer;
}

.band-nav a:hover {
  background: linear-gradient(180deg, #777, #555);
  color: #00ffff;
}

/* Main band content sections */
.band-section {
  background: rgba(0,0,0,0.6);
  border: 2px ridge #9933ff;
  margin: 20px 0; padding: 20px;
}

.band-section h2 {
  color: #ff00ff; font-size: 28px;
  font-family: 'Times New Roman', serif;
  text-align: center; margin-bottom: 15px;
  text-shadow: 2px 2px #000;
}

.band-section p, .band-section li {
  color: #ccccff; font-size: 15px; line-height: 1.7;
  font-family: 'Times New Roman', serif;
}

.band-section ul {
  list-style: none; padding-left: 20px;
}

.band-section ul li::before {
  content: '☠ '; color: #ff00ff;
}

/* Band members */
.member-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 15px;
}

.member-card {
  background: linear-gradient(135deg, #1a0033, #330055);
  border: 2px groove #9933ff; padding: 15px; text-align: center;
  cursor: pointer; transition: all 0.3s ease;
}

.member-card:hover {
  border-color: #ff00ff;
  box-shadow: 0 0 15px rgba(255, 0, 255, 0.5), inset 0 0 15px rgba(153, 51, 255, 0.2);
  transform: scale(1.03);
}

.member-photo {
  width: 120px; height: 120px; margin: 0 auto 10px;
  border: 3px solid #ff00ff; border-radius: 50%;
  object-fit: cover;
  transition: border-color 0.3s ease;
}

.member-card:hover .member-photo {
  border-color: #ffcc00;
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
}

.member-avatar {
  width: 80px; height: 80px; margin: 0 auto 10px;
  background: linear-gradient(135deg, #333, #666);
  border: 2px solid #ff00ff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
}

.member-name {
  color: #ffcc00; font-size: 16px; font-weight: bold;
  font-family: 'Arial', sans-serif;
}

.member-role {
  color: #00ffff; font-size: 13px;
  font-family: 'Courier New', monospace;
}

.member-click-hint {
  color: #888; font-size: 10px; margin-top: 5px;
  font-family: 'Courier New', monospace;
}

.member-bio-content {
  display: flex; gap: 20px; align-items: flex-start;
}

.member-bio-photo {
  width: 180px; min-width: 180px; height: 220px;
  object-fit: cover; border: 3px solid #ff00ff;
}

.member-bio-text {
  flex: 1;
}

.member-bio-text h3 {
  color: #ffcc00; margin: 0 0 5px 0;
  font-family: 'Arial', sans-serif; font-size: 20px;
}

.member-bio-text .bio-role {
  color: #00ffff; font-size: 14px;
  font-family: 'Courier New', monospace;
  margin-bottom: 15px;
}

.member-bio-text .bio-body {
  color: #cccccc; font-size: 14px; line-height: 1.6;
  font-family: 'Arial', sans-serif;
}

/* Tour dates table */
.tour-table {
  width: 100%; border-collapse: collapse; margin-top: 15px;
  font-family: 'Arial', sans-serif;
}

.tour-table th {
  background: linear-gradient(180deg, #660099, #330066);
  color: #ffff00; padding: 8px; font-size: 14px;
  border: 1px solid #9933ff;
}

.tour-table td {
  background: rgba(0,0,0,0.4);
  color: #ccccff; padding: 8px; font-size: 13px;
  border: 1px solid #663399;
}

.sold-out { color: #ff0000; font-weight: bold; }

/* Guestbook */
.guestbook-entry {
  background: rgba(0,0,0,0.3);
  border-left: 3px solid #ff00ff;
  padding: 10px 15px; margin: 10px 0;
}

.guestbook-entry .gb-name {
  color: #00ffff; font-weight: bold; font-size: 14px;
}

.guestbook-entry .gb-date {
  color: #666; font-size: 11px;
}

.guestbook-entry .gb-text {
  color: #ccccff; font-size: 14px; margin-top: 5px;
}

/* Gallery - 90s Polaroid style */
.gallery-grid {
  width: 100%;
  background: rgba(0,0,0,0.3);
}

.gallery-cell {
  background: rgba(20,10,30,0.8);
  text-align: center;
  padding: 10px;
  vertical-align: top;
}

.gallery-img {
  width: 100%;
  max-width: 350px;
  border: 3px solid #fff;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.5);
  display: block;
  margin: 0 auto;
}

.gallery-caption {
  color: #ccccff;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  margin-top: 6px;
  letter-spacing: 1px;
}

.gallery-corrupted {
  filter: grayscale(1) contrast(0.5);
  cursor: pointer;
}

/* Blink tag emulation */
.blink {
  animation: blink90s 1s step-end infinite;
}

/* Cursor trail sparkle */
.cursor-sparkle {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffff00;
  box-shadow: 0 0 4px #ffff00, 0 0 8px #ff00ff;
  animation: sparkleFade 0.6s ease-out forwards;
}

@keyframes sparkleFade {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0) translateY(-15px); }
}

/* Animated email icon */
.email-icon {
  display: inline-block;
  animation: emailBounce 1s ease-in-out infinite;
}

@keyframes emailBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Construction GIF for under-construction elements */
.construction-gif {
  vertical-align: middle;
  margin: 0 5px;
}

/* Email webmaster */
.webmaster {
  text-align: center; margin: 20px 0; padding: 15px;
  border-top: 2px solid #ff00ff;
  color: #888; font-size: 12px;
  font-family: 'Arial', sans-serif;
}

.webmaster a { color: #00ffff; }

/* Best viewed with */
.best-viewed {
  text-align: center; color: #666; font-size: 11px;
  font-family: 'Arial', sans-serif; margin: 10px 0;
}

/* Marquee replacement */
.faux-marquee {
  overflow: hidden; white-space: nowrap;
  background: #000; border: 2px inset #666;
  padding: 6px 0; margin: 15px 0;
}

.faux-marquee span {
  display: inline-block;
  color: #00ff00; font-family: 'Courier New', monospace; font-size: 14px;
  animation: marqueeScroll 15s linear infinite;
}

@keyframes marqueeScroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* MP3 Player - Win95 style */
.mp3-player {
  background: #c0c0c0;
  border: 2px outset #fff;
  margin: 15px 0;
  max-width: 380px;
  font-family: 'MS Sans Serif', 'Arial', sans-serif;
  font-size: 11px;
  user-select: none;
}

.mp3-titlebar {
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  padding: 2px 4px;
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 11px;
}

.mp3-titlebar-icon {
  margin-right: 4px;
}

.mp3-titlebar-text {
  flex: 1;
}

.mp3-titlebar-btn {
  width: 16px; height: 14px;
  background: #c0c0c0;
  border: 1px outset #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; cursor: pointer; line-height: 1;
}

.mp3-display {
  background: #0a0a0a;
  border: 2px inset #808080;
  margin: 6px 8px 4px 8px;
  padding: 6px 8px;
  color: #00ff00;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-shadow: 0 0 6px #00ff00;
}

.mp3-track-name {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mp3-time {
  margin-left: 10px;
  white-space: nowrap;
  font-size: 11px;
}

.mp3-progress-wrap {
  height: 14px;
  background: #fff;
  border: 2px inset #808080;
  margin: 0 8px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.mp3-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #000080, #0000ff);
  transition: width 0.1s linear;
}

.mp3-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
}

.mp3-btn {
  width: 28px; height: 24px;
  border: 2px outset #ddd;
  background: #c0c0c0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 11px;
  color: #000;
}

.mp3-btn:active {
  border: 2px inset #808080;
}

.mp3-btn-play {
  width: 34px;
  font-size: 13px;
}

.mp3-volume-wrap {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 4px;
}

.mp3-vol-icon {
  font-size: 13px;
}

.mp3-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 70px;
  height: 8px;
  background: #fff;
  border: 2px inset #808080;
  outline: none;
}

.mp3-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px; height: 18px;
  background: #c0c0c0;
  border: 2px outset #ddd;
  cursor: pointer;
}

.mp3-playlist {
  border-top: 1px solid #808080;
  margin: 0 8px 6px 8px;
  background: #fff;
  border: 2px inset #808080;
  max-height: 90px;
  overflow-y: auto;
}

.mp3-playlist-item {
  padding: 2px 6px;
  cursor: pointer;
  color: #000;
  font-size: 11px;
  font-family: 'MS Sans Serif', 'Arial', sans-serif;
}

.mp3-playlist-item:hover {
  background: #000080;
  color: #fff;
}

.mp3-playlist-item.active {
  background: #000080;
  color: #fff;
  font-weight: bold;
}

/* Playlist scrollbar - Win95 style */
.mp3-playlist::-webkit-scrollbar { width: 16px; }
.mp3-playlist::-webkit-scrollbar-track { background: #c0c0c0; border: 1px solid #808080; }
.mp3-playlist::-webkit-scrollbar-thumb { background: #c0c0c0; border: 2px outset #ddd; }
.mp3-playlist::-webkit-scrollbar-button { background: #c0c0c0; border: 2px outset #ddd; height: 16px; }

/* ============================================
   THE PI SYMBOL (BACKDOOR TRIGGER)
   ============================================ */
#pi-symbol {
  position: fixed;
  bottom: 12px; right: 14px;
  color: rgba(100, 80, 120, 0.3);
  font-size: 20px;
  font-family: 'Times New Roman', serif;
  cursor: default;
  z-index: 10;
  user-select: none;
  transition: color 0.3s, text-shadow 0.3s;
}

#pi-symbol:hover {
  color: rgba(150, 120, 180, 0.5);
}

/* ============================================
   LAYER 2: PASSWORD PROMPT OVERLAY
   ============================================ */
#password-overlay {
  display: none;
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
  justify-content: center; align-items: center;
}

#password-overlay.active {
  display: flex;
}

.password-dialog {
  background: #c0c0c0;
  border: 3px outset #fff;
  padding: 0;
  width: 380px;
  box-shadow: 5px 5px 15px rgba(0,0,0,0.8);
}

.dialog-titlebar {
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  font-family: 'Arial', sans-serif;
  font-size: 13px; font-weight: bold;
  padding: 4px 8px;
  display: flex; justify-content: space-between; align-items: center;
}

.dialog-close {
  width: 18px; height: 18px;
  background: #c0c0c0; border: 2px outset #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; cursor: pointer; font-weight: bold;
  font-family: 'Arial', sans-serif;
}

.dialog-body {
  padding: 20px;
  font-family: 'Arial', sans-serif;
}

.dialog-body p {
  font-size: 13px; color: #000; margin-bottom: 15px;
}

.dialog-icon {
  float: left; margin-right: 15px;
  font-size: 36px;
}

.dialog-input {
  width: 100%;
  padding: 4px 6px;
  font-size: 14px;
  font-family: 'Courier New', monospace;
  border: 2px inset #999;
  background: #fff;
  margin-bottom: 15px;
}

.dialog-buttons {
  display: flex; justify-content: flex-end; gap: 8px;
}

.dialog-btn {
  padding: 4px 24px;
  font-family: 'Arial', sans-serif;
  font-size: 13px;
  border: 2px outset #fff;
  background: #c0c0c0;
  cursor: pointer;
}

.dialog-btn:active {
  border-style: inset;
}

.dialog-error {
  color: #ff0000;
  font-size: 12px;
  display: none;
  margin-top: -10px;
  margin-bottom: 10px;
}

/* ============================================
   LAYER 3: HACKING TRANSITION
   ============================================ */
#hack-transition {
  display: none;
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: #000;
  z-index: 2000;
  overflow: hidden;
}

#hack-transition.active {
  display: block;
}

.hack-text {
  position: absolute;
  color: #00ff00;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  opacity: 0.8;
  white-space: pre;
  line-height: 1.4;
}

#hack-center-msg {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2001;
}

#hack-center-msg .hack-title {
  font-family: 'Courier New', monospace;
  font-size: 32px; color: #00ff00;
  text-shadow: 0 0 20px #00ff00, 0 0 40px #00ff00;
  opacity: 0;
  animation: hackFadeIn 1s ease forwards;
}

@keyframes hackFadeIn {
  0% { opacity: 0; transform: scale(0.5); }
  100% { opacity: 1; transform: scale(1); }
}

.hack-progress-bar {
  width: 400px; height: 20px;
  border: 1px solid #00ff00;
  margin: 20px auto 0;
  position: relative;
  overflow: hidden;
}

.hack-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #003300, #00ff00);
  width: 0%;
  transition: width 0.1s;
}

.hack-status {
  color: #00ff00;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  margin-top: 10px;
  opacity: 0.8;
}

/* ============================================
   LAYER 4: GATEKEEPER CONSOLE
   ============================================ */
#gatekeeper {
  display: none;
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: #0a0a0a;
  z-index: 3000;
  font-family: 'Courier New', monospace;
  overflow: hidden;
}

#gatekeeper.active {
  display: flex;
  flex-direction: column;
}

/* Gatekeeper Top Bar */
.gk-topbar {
  background: linear-gradient(180deg, #1a1a2e, #0a0a1a);
  border-bottom: 1px solid #00ff00;
  padding: 6px 15px;
  display: flex; justify-content: space-between; align-items: center;
  flex-shrink: 0;
}

.gk-logo {
  display: flex; align-items: center; gap: 10px;
}

.gk-logo-icon {
  width: 32px; height: 32px;
  border: 2px solid #00ff00;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #00ff00; font-size: 16px; font-weight: bold;
  animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { box-shadow: 0 0 5px #00ff00; }
  50% { box-shadow: 0 0 20px #00ff00, 0 0 40px rgba(0,255,0,0.3); }
}

.gk-logo-text {
  color: #00ff00; font-size: 18px; letter-spacing: 4px;
  text-shadow: 0 0 10px rgba(0,255,0,0.5);
}

.gk-logo-sub {
  color: #008800; font-size: 10px; letter-spacing: 2px;
}

.gk-status-bar {
  display: flex; gap: 20px; align-items: center;
  font-size: 11px;
}

.gk-status-item {
  color: #008800;
}

.gk-status-item .val { color: #00ff00; }

.gk-status-dot {
  width: 8px; height: 8px;
  background: #00ff00;
  border-radius: 50%;
  display: inline-block;
  animation: dotBlink 1s ease-in-out infinite;
}

@keyframes dotBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Gatekeeper Main Layout */
.gk-main {
  flex: 1; display: flex;
  overflow: hidden;
}

/* Left Sidebar */
.gk-sidebar {
  width: 220px;
  background: linear-gradient(180deg, #0d1117, #0a0e14);
  border-right: 1px solid #003300;
  display: flex; flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
}

.gk-sidebar-title {
  color: #00ff00; font-size: 12px;
  padding: 12px 15px 8px;
  border-bottom: 1px solid #003300;
  letter-spacing: 2px;
}

.gk-nav-item {
  padding: 10px 15px;
  color: #00aa00;
  font-size: 12px;
  cursor: pointer;
  border-bottom: 1px solid rgba(0,51,0,0.3);
  transition: all 0.2s;
  display: flex; align-items: center; gap: 8px;
}

.gk-nav-item:hover {
  background: rgba(0,255,0,0.05);
  color: #00ff00;
  text-shadow: 0 0 5px rgba(0,255,0,0.3);
}

.gk-nav-item.active {
  background: rgba(0,255,0,0.1);
  color: #00ff00;
  border-left: 3px solid #00ff00;
}

.gk-nav-icon { font-size: 14px; width: 20px; text-align: center; }

/* Main Content Area */
.gk-content {
  flex: 1; display: flex; flex-direction: column;
  overflow: hidden;
}

/* Terminal Panel */
.gk-panel {
  display: none;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
}

.gk-panel.active {
  display: flex;
}

.gk-panel-header {
  background: #0d1117;
  border-bottom: 1px solid #003300;
  padding: 8px 15px;
  color: #00ff00; font-size: 12px;
  display: flex; justify-content: space-between; align-items: center;
}

.gk-panel-body {
  flex: 1; padding: 15px;
  overflow-y: auto;
  background: #0a0a0a;
}

/* Terminal output */
.terminal-line {
  color: #00cc00; font-size: 13px; line-height: 1.6;
  font-family: 'Courier New', monospace;
}

.terminal-line .prompt { color: #00ff00; }
.terminal-line .cmd { color: #ffffff; }
.terminal-line .info { color: #00aa00; }
.terminal-line .warn { color: #ffaa00; }
.terminal-line .err { color: #ff4444; }
.terminal-line .highlight { color: #00ffff; }
.terminal-line .classified { color: #ff0000; font-weight: bold; }

/* Terminal input */
.terminal-input-line {
  display: flex; align-items: center; gap: 0;
  margin-top: 5px;
}

.terminal-input-line .prompt {
  color: #00ff00; font-size: 13px;
  font-family: 'Courier New', monospace;
}

#terminal-input {
  flex: 1;
  background: transparent; border: none; outline: none;
  color: #ffffff;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  caret-color: #00ff00;
}

/* Database Panel */
.db-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
}

.db-card {
  background: linear-gradient(135deg, #0d1117, #111820);
  border: 1px solid #003300;
  padding: 15px;
  transition: all 0.3s;
  cursor: pointer;
}

.db-card:hover {
  border-color: #00ff00;
  box-shadow: 0 0 15px rgba(0,255,0,0.1);
}

.db-card-title {
  color: #00ff00; font-size: 14px;
  margin-bottom: 8px; letter-spacing: 1px;
}

.db-card-meta {
  color: #006600; font-size: 11px;
  margin-bottom: 5px;
}

.db-card-status {
  display: inline-block;
  padding: 2px 8px; font-size: 10px;
  border: 1px solid;
  margin-top: 8px;
}

.db-card-status.online { color: #00ff00; border-color: #00ff00; }
.db-card-status.restricted { color: #ffaa00; border-color: #ffaa00; }
.db-card-status.classified { color: #ff0000; border-color: #ff0000; }

/* Network Map */
.network-display {
  width: 100%; height: 100%;
  position: relative;
}

#networkCanvas {
  width: 100%; height: 100%;
  display: block;
}

/* File Browser */
.file-list { list-style: none; }

.file-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(0,51,0,0.3);
  color: #00aa00; font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}

.file-item:hover {
  background: rgba(0,255,0,0.05);
  color: #00ff00;
}

.file-icon { width: 20px; text-align: center; font-size: 14px; }
.file-name { flex: 1; }
.file-size { color: #006600; font-size: 11px; }
.file-date { color: #006600; font-size: 11px; }

/* Surveillance Panel */
.surv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  height: 100%;
}

.surv-feed {
  background: #000;
  border: 1px solid #003300;
  display: flex; flex-direction: column;
  overflow: hidden;
}

.surv-feed-header {
  background: #0d1117;
  padding: 5px 10px;
  color: #00ff00; font-size: 10px;
  display: flex; justify-content: space-between;
  border-bottom: 1px solid #003300;
}

.surv-feed-body {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}

.surv-static {
  width: 100%; height: 100%;
  position: absolute;
}

.surv-label {
  position: absolute;
  bottom: 8px; left: 8px;
  color: #00ff00; font-size: 11px;
  background: rgba(0,0,0,0.7);
  padding: 2px 6px;
  z-index: 1;
}

.surv-rec {
  position: absolute;
  top: 8px; right: 8px;
  color: #ff0000; font-size: 10px;
  z-index: 1;
  animation: blink90s 1s step-end infinite;
}

/* Scrolling data effect */
.data-stream {
  position: fixed; pointer-events: none;
  z-index: 3001;
  opacity: 0.03;
  color: #00ff00;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.2;
  white-space: pre;
  overflow: hidden;
  width: 100%; height: 100%;
  top: 0; left: 0;
}

/* Bottom status bar */
.gk-bottombar {
  background: #0d1117;
  border-top: 1px solid #003300;
  padding: 4px 15px;
  display: flex; justify-content: space-between;
  color: #006600; font-size: 10px;
  flex-shrink: 0;
}

.gk-bottombar .access-level { color: #ff0000; }

/* Scanline overlay */
.scanlines {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,0.03) 0px,
    rgba(0,0,0,0.03) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 9999;
}

/* CRT flicker */
.crt-flicker {
  animation: crtFlicker 0.1s infinite;
}

@keyframes crtFlicker {
  0% { opacity: 0.97; }
  50% { opacity: 1; }
  100% { opacity: 0.98; }
}

/* Typing cursor */
.typing-cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: #00ff00;
  animation: cursorBlink 0.7s step-end infinite;
  vertical-align: middle;
  margin-left: 2px;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Access Denied Flash */
.access-flash {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: #ff0000;
  font-family: 'Courier New', monospace;
  font-size: 48px;
  font-weight: bold;
  text-shadow: 0 0 30px #ff0000, 0 0 60px #ff0000;
  z-index: 10000;
  animation: flashPulse 0.5s ease-out forwards;
  pointer-events: none;
}

@keyframes flashPulse {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(1.5); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}

/* Detail Overlay / Modal */
#detail-overlay {
  display: none;
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.92);
  z-index: 5000;
  justify-content: center; align-items: center;
  padding: 40px;
}

#detail-overlay.active { display: flex; }

.detail-panel {
  background: #0a0e14;
  border: 1px solid #00ff00;
  box-shadow: 0 0 30px rgba(0,255,0,0.15), inset 0 0 30px rgba(0,255,0,0.02);
  width: 100%; max-width: 800px;
  max-height: 80vh;
  display: flex; flex-direction: column;
  font-family: 'Courier New', monospace;
}

.detail-header {
  background: linear-gradient(90deg, #0d1a0d, #0d1117);
  border-bottom: 1px solid #003300;
  padding: 10px 18px;
  display: flex; justify-content: space-between; align-items: center;
  flex-shrink: 0;
}

.detail-title { color: #00ff00; font-size: 14px; letter-spacing: 2px; }

.detail-close {
  color: #00ff00; cursor: pointer; font-size: 18px;
  padding: 2px 8px;
  border: 1px solid #003300;
  transition: all 0.2s;
}

.detail-close:hover {
  background: #00ff00; color: #000;
}

.detail-body {
  flex: 1; overflow-y: auto; padding: 18px;
  color: #00cc00; font-size: 13px; line-height: 1.7;
}

.detail-body .d-section {
  margin-bottom: 18px;
}

.detail-body .d-label {
  color: #008800; font-size: 11px; letter-spacing: 1px;
  margin-bottom: 4px;
}

.detail-body .d-value {
  color: #00ff00; font-size: 13px;
}

.detail-body .d-value.classified { color: #ff4444; }
.detail-body .d-value.warn { color: #ffaa00; }

.detail-body .d-divider {
  border: none; border-top: 1px solid #003300;
  margin: 14px 0;
}

.detail-body .d-table {
  width: 100%; border-collapse: collapse; margin: 10px 0;
}

.detail-body .d-table th {
  text-align: left; color: #00ff00; font-size: 11px;
  padding: 6px 10px; border-bottom: 1px solid #003300;
  background: rgba(0,255,0,0.03);
}

.detail-body .d-table td {
  padding: 5px 10px; color: #00aa00; font-size: 12px;
  border-bottom: 1px solid rgba(0,51,0,0.3);
}

.detail-body .d-table tr:hover td {
  background: rgba(0,255,0,0.03); color: #00ff00;
}

/* Search bar in panels */
.panel-search {
  display: flex; gap: 8px; margin-bottom: 15px;
}

.panel-search input {
  flex: 1; background: #0d1117; border: 1px solid #003300;
  color: #00ff00; padding: 8px 12px;
  font-family: 'Courier New', monospace; font-size: 13px;
  outline: none;
}

.panel-search input:focus { border-color: #00ff00; }

.panel-search button {
  background: #003300; border: 1px solid #00ff00;
  color: #00ff00; padding: 8px 18px;
  font-family: 'Courier New', monospace; font-size: 12px;
  cursor: pointer; letter-spacing: 1px;
}

.panel-search button:hover {
  background: #00ff00; color: #000;
}

/* Clickable subsystem items */
.subsystem-item {
  padding: 10px 15px;
  border: 1px solid transparent;
  margin: 4px 0;
  cursor: pointer;
  transition: all 0.2s;
  color: #00aa00;
}

.subsystem-item:hover {
  border-color: #003300;
  background: rgba(0,255,0,0.03);
  color: #00ff00;
  padding-left: 20px;
}

.subsystem-item .sub-title { font-size: 13px; }
.subsystem-item .sub-meta { font-size: 10px; color: #006600; margin-top: 2px; }

/* Loading animation for drill-downs */
.loading-dots::after {
  content: '';
  animation: loadDots 1.5s steps(4) infinite;
}

@keyframes loadDots {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
}

/* File content viewer line numbers */
.file-viewer-line {
  display: flex; gap: 15px;
  border-bottom: 1px solid rgba(0,51,0,0.15);
  padding: 1px 0;
}

.file-viewer-num {
  color: #004400; font-size: 11px; min-width: 30px;
  text-align: right; user-select: none;
}

.file-viewer-text { color: #00cc00; font-size: 12px; }
.file-viewer-text.keyword { color: #ff4444; }
.file-viewer-text.string { color: #ffaa00; }
.file-viewer-text.comment { color: #006600; font-style: italic; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #003300; }
::-webkit-scrollbar-thumb:hover { background: #006600; }
