/* Connection closed — cyberpunk sci-fi overlay */

.hv-gcc-overlay {
  --gcc-cyan: #00f0ff;
  --gcc-red: #ff3b5c;
  --gcc-amber: #ffb020;
  --gcc-bg: #04060d;
  --gcc-panel: rgba(6, 10, 22, 0.96);

  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  animation: hvGccFadeIn 0.4s ease;
}

.hv-gcc-overlay[hidden] {
  display: none !important;
}

@keyframes hvGccFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes hvGccScan {
  0% { transform: translateY(-120%); }
  100% { transform: translateY(120vh); }
}

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

@keyframes hvGccGlitch {
  0%, 90%, 100% { transform: translate(0); }
  92% { transform: translate(-2px, 1px); }
  94% { transform: translate(2px, -1px); }
  96% { transform: translate(-1px, 0); }
}

.hv-gcc-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 40%, rgba(255, 59, 92, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(0, 240, 255, 0.08), transparent 55%),
    linear-gradient(180deg, #060a14 0%, var(--gcc-bg) 100%);
}

.hv-gcc-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hv-gcc-scanline {
  position: absolute;
  left: 0;
  width: 100%;
  height: 28%;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(0, 240, 255, 0.06),
    transparent
  );
  animation: hvGccScan 4.5s linear infinite;
  pointer-events: none;
}

.hv-gcc-panel {
  position: relative;
  width: min(520px, 100%);
  padding: 36px 32px 28px;
  background: var(--gcc-panel);
  border: 1px solid rgba(0, 240, 255, 0.28);
  box-shadow:
    0 0 0 1px rgba(255, 59, 92, 0.12),
    0 24px 80px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: hvGccGlitch 5s steps(1) infinite;
}

.hv-gcc-panel::before,
.hv-gcc-panel::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--gcc-cyan);
  border-style: solid;
  opacity: 0.85;
}

.hv-gcc-panel::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.hv-gcc-panel::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 2px 2px 0;
}

.hv-gcc-kicker {
  margin: 0 0 10px;
  font-family: "Orbitron", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: rgba(0, 240, 255, 0.7);
  text-transform: uppercase;
}

.hv-gcc-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 59, 92, 0.45);
  background: rgba(255, 59, 92, 0.1);
  font-family: "Orbitron", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #ff8a9a;
  text-transform: uppercase;
}

.hv-gcc-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gcc-red);
  box-shadow: 0 0 10px rgba(255, 59, 92, 0.9);
  animation: hvGccPulse 1.4s ease-in-out infinite;
}

.hv-gcc-title {
  margin: 0 0 8px;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(22px, 4.5vw, 30px);
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.15;
  color: #f4fbff;
  text-shadow:
    0 0 18px rgba(255, 59, 92, 0.45),
    0 0 40px rgba(0, 240, 255, 0.2);
  text-transform: uppercase;
}

.hv-gcc-subtitle {
  margin: 0 0 22px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(180, 210, 230, 0.75);
}

.hv-gcc-reason-block {
  margin: 0 0 28px;
  padding: 14px 16px;
  border-left: 2px solid var(--gcc-amber);
  background: rgba(255, 176, 32, 0.06);
}

.hv-gcc-reason-label {
  display: block;
  margin-bottom: 6px;
  font-family: "Orbitron", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--gcc-amber);
  text-transform: uppercase;
}

.hv-gcc-reason {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.03em;
  color: #e8f4ff;
  white-space: pre-wrap;
  word-break: break-word;
}

.hv-gcc-actions {
  display: flex;
  justify-content: flex-end;
}

.hv-gcc-home-btn {
  min-width: 160px;
  height: 44px;
  padding: 0 22px;
  border: 1px solid rgba(0, 240, 255, 0.55);
  background: linear-gradient(180deg, rgba(0, 200, 220, 0.22), rgba(0, 80, 100, 0.35));
  color: #e8ffff;
  font-family: "Orbitron", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    0 0 20px rgba(0, 240, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.hv-gcc-home-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 240, 255, 0.9);
  box-shadow:
    0 0 28px rgba(0, 240, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.hv-gcc-home-btn:active {
  transform: translateY(0);
}

@media (max-width: 480px) {
  .hv-gcc-panel {
    padding: 28px 20px 22px;
  }

  .hv-gcc-actions {
    justify-content: stretch;
  }

  .hv-gcc-home-btn {
    width: 100%;
  }
}
