/* --- ROOT THEME --- */
:root {
  --bg1: #0a0314;
  --bg2: #06020f;
  --panel: rgba(12, 8, 28, 0.88);
  --border: rgba(255,255,255,0.12);
  --glow: rgba(255,255,255,0.06);

  --cyan: #2de3ff;
  --pink: #ff2da8;
  --vio: #b76cff;
  --gold: #ffd86b;

  --text-main: #eef0ff;
  --text-dim: #8e90b3;
  --mono: "JetBrains Mono", monospace;
}

/* --- GLOBAL --- */
html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 20% 0%, #2d0057 0%, #000014 65%);
  color: var(--text-main);
  font-family: system-ui, sans-serif;
  overflow-x: hidden;
}

.bg {
  position: fixed;
  inset: 0;
  background-image:
    url("assets/noise.png"),
    url("assets/scan.png");
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: soft-light;
  z-index: 0;
}

/* --- HEADER --- */
.header {
  text-align: center;
  padding: 32px 12px;
}

.header h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.header .sub {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  margin-top: 4px;
}

/* NAV GRID */
.nav-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.nav-btn {
  background: rgba(255,255,255,0.06);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  border: 1px solid var(--border);
  color: var(--text-main);
  text-decoration: none;
  backdrop-filter: blur(8px);
}

.nav-btn:hover {
  background: rgba(255,255,255,0.14);
}

/* --- PANELS --- */
.panel {
  margin: 32px auto;
  max-width: 800px;
  background: var(--panel);
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 0 22px var(--glow);
  position: relative;
  z-index: 1;
}

.panel h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 10px 18px;
  font-size: 14px;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
  font-weight: 600;
}

.btn:hover {
  opacity: 0.85;
}

/* --- LIVE FEED --- */
.feed-box {
  margin-top: 22px;
  padding: 18px;
  background: rgba(0,0,0,0.3);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-main);
}

.feed-line {
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.3s ease-out;
}

.feed-line.show {
  opacity: 1;
  transform: translateY(0);
}

.feed-label {
  font-size: 12px;
  margin-bottom: 4px;
  color: var(--cyan);
  letter-spacing: 0.16em;
}

/* --- LOGIN GATE --- */
#loginGate {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.4s ease-out;
}

#loginGate.hidden {
  opacity: 0;
  pointer-events: none;
}

.login-box {
  background: #0c081c;
  padding: 32px;
  border-radius: 12px;
  border: 1px solid var(--border);
  width: 270px;
  text-align: center;
  box-shadow: 0 0 28px rgba(0,0,0,0.8);
}

.login-box input {
  width: 100%;
  margin: 8px 0;
  padding: 8px 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-main);
}

.login-box button {
  margin-top: 12px;
  padding: 8px 14px;
  width: 100%;
  border: none;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--vio), var(--cyan));
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.login-error {
  margin-top: 8px;
  font-size: 12px;
  color: #ff4b7a;
  min-height: 16px;
}

/* --- BOOT SCREEN --- */
#bootScreen {
  position: fixed;
  inset: 0;
  background: #000;
  color: var(--cyan);
  font-family: var(--mono);
  z-index: 99990;
  padding: 20px;
  overflow-y: auto;
  font-size: 13px;
  white-space: pre-line;
}

#bootScreen.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s;
}