.restricted-page {
  background: radial-gradient(circle at center, #070c10 0%, #020305 100%);
  color: rgba(255,255,255,0.8);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.restricted-container {
  margin-left: 10vw;
  max-width: 600px;
}

/* LOG */
.restricted-log {
  font-size: 13px;
  line-height: 1.8;
}

/* lignes */
.restricted-log div {
  opacity: 0.7;
  margin-bottom: 8px;
}

/* glitch */
.glitch {
  animation: glitch 0.2s infinite;
}

@keyframes glitch {
  0% { opacity: 0.3; transform: translateX(-1px); }
  50% { opacity: 1; transform: translateX(1px); }
  100% { opacity: 0.3; transform: translateX(0); }
}

/* BACK */
.restricted-action {
  margin-top: 40px;
}

.back-button {
  font-size: 12px;
  letter-spacing: 2px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
}

.back-button:hover {
  color: white;
}

.barcode-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  transform: scaleY(1);

  pointer-events: none;
}

.barcode-overlay svg {
  width: 70%;
}

.barcode-overlay.active {
  animation:
    barcodeAppear 0.8s ease forwards,
    barcodeGlow 4s ease-in-out infinite;
}

@keyframes barcodeAppear {
  from {
    opacity: 0;
    transform: scaleY(1.4);
    filter: blur(6px);
  }
  to {
    opacity: 0.1;
    transform: scaleY(1);
    filter: blur(1px);
  }
}

@keyframes barcodeGlow {
  0%, 100% {
    filter: drop-shadow(0 0 4px rgba(255,255,255,0.04));
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.08));
  }
}

.barcode-overlay.collapse {
  animation: barcodeCollapse 0.6s ease forwards;
}

@keyframes barcodeCollapse {
  0% {
    opacity: 0.06;
    transform: scaleY(1);
  }

  40% {
    transform: scaleY(0.3);
    opacity: 0.1;
  }

  70% {
    transform: scaleY(0.05);
    opacity: 0.2;
  }

  100% {
    transform: scaleY(0);
    opacity: 0;
  }
}

.scan-line {
  position: absolute;
  width: 60%;
  height: 2px;
  background: rgba(255,255,255,0.2);

  animation: scan 2s linear infinite;
}

@keyframes scan {
  from { transform: translateY(-80px); }
  to { transform: translateY(80px); }
}

.barcode-overlay.glitch svg {
  animation: glitchBarcode 0.3s infinite;
}

@keyframes glitchBarcode {
  0% { transform: translateX(0); }
  20% { transform: translateX(-2px); }
  40% { transform: translateX(2px); }
  60% { transform: translateX(-1px); }
  100% { transform: translateX(0); }
}

.barcode-overlay rect {
  transform-origin: center;
  transition: 
    transform 0.6s ease,
    opacity 0.6s ease;
}