/* 🛸 K-OS CYBERPUNK 2077 TECH GAME NODE STYLES */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,400;0,700;0,900;1,800&display=swap');

:root {
  --bg: #03060c;
  --card-bg: rgba(6, 14, 28, 0.92);
  --border: rgba(0, 255, 204, 0.35);
  --primary: #00ffcc;
  --accent: #ff0055;
  --yellow: #ffe600;
  --purple: #aa00ff;
  --text: #f1f5f9;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: none !important;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

/* Atmospheric 2077 Cyber Lighting */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 10% 20%, rgba(0, 255, 204, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(255, 0, 85, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(170, 0, 255, 0.05) 0%, transparent 60%),
    radial-gradient(circle at center, transparent 30%, rgba(2, 4, 10, 0.92) 100%);
  pointer-events: none;
  z-index: 1;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.2) 0px, rgba(0, 0, 0, 0.2) 1px, transparent 1px, transparent 2px);
  pointer-events: none;
  z-index: 2;
}

#root {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 10;
}

.tech-loading-screen,
.app-loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #051322 0%, #02060e 100%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  transition: opacity 0.5s ease, visibility 0.5s ease;
  overflow: hidden;
}

.app-loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.app-loading-screen .vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 40%, rgba(0,0,0,0.85) 100%);
  pointer-events: none;
  z-index: 2;
}

.k-loading-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  clip-path: none;
  backdrop-filter: none;
}

/* 🛸 K-OS IGNITE SPHERE ORB */
.ignite-orb-wrapper {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

.ignite-orb-wrapper .ring-1 {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px dashed rgba(0, 255, 204, 0.5);
  animation: spin 20s linear infinite;
}

.ignite-orb-wrapper .ring-2 {
  position: absolute;
  width: 85%;
  height: 85%;
  border-radius: 50%;
  border: 2px solid rgba(0, 255, 204, 0.2);
  border-top-color: #00ffcc;
  animation: spin 10s linear infinite reverse;
}

.ignite-core-sphere {
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #0e2d42 0%, #020b18 60%, #000 100%);
  border: 1px solid rgba(0, 255, 204, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  animation: telemetry-ignite 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 85px rgba(0, 255, 204, 0.95), 0 0 130px rgba(0, 255, 204, 0.6), inset 0 0 45px rgba(0, 255, 204, 0.7);
}

.ignite-k-logo {
  height: 52px;
  width: auto;
  filter: drop-shadow(0 0 25px rgba(0, 255, 204, 1)) drop-shadow(0 0 50px rgba(0, 255, 204, 0.85));
  animation: logo-ignite 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ignite-scan-beam {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #00ffcc;
  box-shadow: 0 0 12px #00ffcc, 0 0 24px #00ffcc;
  animation: scanBeam 2s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes telemetry-ignite {
  0% {
    transform: scale(0.92);
    border-color: rgba(0, 255, 204, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.2), inset 0 0 10px rgba(0, 255, 204, 0.1);
  }
  35% {
    transform: scale(0.96);
    box-shadow: 0 0 35px rgba(0, 255, 204, 0.4), inset 0 0 20px rgba(0, 255, 204, 0.25);
  }
  100% {
    transform: scale(1.05);
    border-color: rgba(0, 255, 204, 1);
    box-shadow: 0 0 95px rgba(0, 255, 204, 0.95), 0 0 140px rgba(0, 255, 204, 0.65), inset 0 0 50px rgba(0, 255, 204, 0.7);
  }
}

@keyframes logo-ignite {
  0% {
    opacity: 0.6;
    transform: scale(0.92);
    filter: drop-shadow(0 0 8px rgba(0, 255, 204, 0.3));
  }
  35% {
    opacity: 0.85;
    transform: scale(0.97);
    filter: drop-shadow(0 0 18px rgba(0, 255, 204, 0.6));
  }
  100% {
    opacity: 1;
    transform: scale(1.08);
    filter: drop-shadow(0 0 30px rgba(0, 255, 204, 1)) drop-shadow(0 0 60px rgba(0, 255, 204, 0.9));
  }
}

@keyframes scanBeam {
  0% { top: 0%; }
  100% { top: 100%; }
}

.loading-title {
  margin-top: 20px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 5px;
  color: #00ffcc;
  text-shadow: 0 0 12px rgba(0, 255, 204, 0.8), -1px -1px 1px rgba(0, 0, 0, 0.9);
}

.loading-sub {
  margin-top: 6px;
  margin-bottom: 20px;
  font-size: 10px;
  letter-spacing: 3px;
  color: #a1a1aa;
  font-weight: 900;
  text-shadow: 0 0 6px rgba(161, 161, 170, 0.3);
}

.loading-bar {
  width: 260px;
  height: 4px;
  background: rgba(0, 255, 204, 0.1);
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 0 12px rgba(0, 255, 204, 0.2);
}

.loading-bar .progress {
  width: 50%;
  height: 100%;
  background: var(--primary);
  box-shadow: 0 0 16px var(--primary);
  animation: loadingAnim 1.5s infinite ease-in-out;
}

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

.tech-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
}

.tech-header {
  height: 58px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  background: rgba(4, 9, 20, 0.88);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.8);
}

.brand-title {
  font-weight: 900;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  letter-spacing: 3px;
}

.status-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--primary);
  border: none;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 255, 204, 0.5);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.9;
}

.status-badge::before {
  content: "::";
  color: #48546a;
  font-weight: 900;
  letter-spacing: 1px;
}

.tech-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.status-badge {
  font-size: 11px;
  color: var(--primary);
  padding: 4px 8px;
  background: rgba(0, 255, 204, 0.1);
  border: 1px solid var(--border);
}

.tech-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}