body {
  background-color: #020617;
  color: #e2e8f0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: 'Fira Code', 'Inter', sans-serif;
  /* Prevent rubber-band scrolling on iOS */
  position: fixed;
  width: 100%;
  height: 100%;
}


#root {
  width: 100%;
  height: 100%;
}

.custom-scroll::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

.custom-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scroll::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 2px;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

.glass-panel {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(34, 211, 238, 0.1);
}

@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

.scanline {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(0deg, transparent, rgba(34, 211, 238, 0.05), transparent);
  pointer-events: none;
  z-index: 100;
  animation: scanline 8s linear infinite;
}

.grid-bg {
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.window-shadow {
  box-shadow: 0 10px 50px -10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(34, 211, 238, 0.03);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.traffic-light:hover .symbol {
    opacity: 1;
}

.symbol {
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 8px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0,0,0,0.5);
}

/* GNN Viz Animation */
@keyframes dash {
  to {
    stroke-dashoffset: 0;
  }
}

.gnn-path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: dash 5s linear forwards;
}

/* ================================
   MOBILE LAYOUT
   ================================ */

.mobile-layout {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  background-color: #020617;
  overflow: hidden;
  position: relative;
}

/* Top Bar */
.mobile-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 44px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  flex-shrink: 0;
  z-index: 100;
}

.mobile-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mobile-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Fira Code', monospace;
  font-size: 9px;
  font-weight: 700;
  color: #4ade80;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.mobile-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
  animation: pulse 2s ease-in-out infinite;
}

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

.mobile-clock {
  font-family: 'Fira Code', monospace;
  font-size: 12px;
  font-weight: 700;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

/* Page Header */
.mobile-page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(34, 211, 238, 0.1);
  background: rgba(15, 23, 42, 0.6);
  flex-shrink: 0;
}

.mobile-page-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mobile-page-title {
  font-family: 'Fira Code', monospace;
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
  line-height: 1.2;
}

.mobile-page-sub {
  font-family: 'Fira Code', monospace;
  font-size: 9px;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 2px 0 0 0;
}

.mobile-live-dot {
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* Content */
.mobile-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  -webkit-overflow-scrolling: touch;
}

.mobile-content::-webkit-scrollbar {
  width: 3px;
}

.mobile-content::-webkit-scrollbar-track {
  background: transparent;
}

.mobile-content::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 2px;
}

/* Bottom Nav */
.mobile-nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 64px;
  background: rgba(9, 12, 26, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  flex-shrink: 0;
  padding: 0 4px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 100;
}

.mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
  height: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #475569;
  transition: color 0.2s ease;
  position: relative;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-btn-active {
  color: #22d3ee;
}

.mobile-nav-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-indicator {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  box-shadow: 0 0 6px currentColor;
}

.mobile-nav-label {
  font-family: 'Fira Code', monospace;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
}

