/* ===== V15 Stealth VPN Tunnel — Base Layout ===== */
/* Panel components → style-panel-components.css */
@import url('style-panel-components.css');

:root {
  --primary: #1e40af;
  --secondary: #06b6d4;
  --accent: #38bdf8;
  --surface: rgba(5, 10, 30, 0.85);
  --text: #e0f2fe;
  --text-dim: rgba(224, 242, 254, 0.55);
  --glow: rgba(56, 189, 248, 0.4);
  --glow-strong: rgba(56, 189, 248, 0.8);
  --border: rgba(56, 189, 248, 0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #020814;
  color: var(--text);
  font-family: 'Space Mono', monospace;
  height: 100vh;
  overflow: hidden;
}

/* ===== Three.js Canvas Container ===== */
#three-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

#three-container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* ===== UI Overlay ===== */
.ui-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

/* ===== HUD Corners ===== */
.hud-tl,
.hud-tr {
  position: absolute;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-dim);
}

.hud-tl { left: 24px; border-left: 2px solid var(--secondary); padding-left: 10px; }
.hud-tr { right: 24px; border-right: 2px solid var(--secondary); padding-right: 10px; text-align: right; }

.hud-tl em,
.hud-tr em {
  color: var(--accent);
  font-style: normal;
  text-shadow: 0 0 8px var(--accent);
}

/* ===== Bottom HUD Bar ===== */
.hud-bottom {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 32px;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.hud-bottom em {
  color: var(--accent);
  font-style: normal;
  text-shadow: 0 0 6px var(--accent);
}

/* ===== Connection Panel (Glassmorphism) ===== */
.conn-panel {
  pointer-events: all;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 36px 44px;
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow:
    0 0 40px rgba(30, 64, 175, 0.3),
    0 0 80px rgba(6, 182, 212, 0.1),
    inset 0 0 20px rgba(56, 189, 248, 0.05);
  min-width: 340px;
  position: relative;
}

/* ===== Status Row ===== */
.status-row {
  display: flex;
  gap: 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  width: 100%;
  justify-content: space-between;
}

.status-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.status-label {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--text-dim);
}

.status-value {
  font-size: 13px;
  color: var(--secondary);
  text-shadow: 0 0 8px var(--secondary);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.status-value.active {
  color: #22d3ee;
  text-shadow: 0 0 12px #22d3ee;
}

/* ===== Utility ===== */
.hidden { display: none !important; }

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  .shield-body,
  .pulse-ring,
  .status-msg,
  .result-msg,
  .redirect-btn { animation: none !important; }

  .connect-btn:hover,
  .redirect-btn:hover { transform: none; }
}
