body.database-page {
  background: radial-gradient(circle at center, #0b141b 0%, #04070a 100%);
}

/* GATE */
.barcode-gate {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle, #0f1a22, #05080c);
  z-index: 10;
  cursor: pointer;
  transition: opacity 0.6s ease;
}

.barcode-gate.fade-out {
  opacity: 0;
  pointer-events: none;
}

.barcode svg {
  width: 80%;
  max-width: 500px;
  transform: translateX(35px);
}

.scan-text {
  position: relative;
  margin-top: 20px;
  font-size: 12px;
  letter-spacing: 2px;

  color: rgba(255,255,255,0.75);
  text-shadow: 0 0 6px rgba(255,255,255,0.15);

  transition: letter-spacing 0.4s ease;
}

/* glitch layer */
.scan-text::after {
  content: "";
  position: absolute;
  inset: 0;

  background-image: repeating-linear-gradient(
    to left,
    rgba(255,255,255,0.35) 0px,
    rgba(255,255,255,0.45) 1px,
    transparent 1px,
    transparent 3px
  );

  opacity: 0.2;
  pointer-events: none;

  animation: scanFlow 2s linear infinite;
}

/* UN SEUL hover propre */
.barcode-gate:hover .scan-text {
  letter-spacing: 5px;
}

.barcode-gate:hover .scan-text::after {
  opacity: 0.5;
  animation: scanFlow 0.5s linear infinite;
}

/* DATABASE */
.database-content {
  opacity: 0;
  transition: opacity 0.8s ease;
  min-height: 100vh;
}

.database-content.active {
  opacity: 1;
}

/* LOGO */
.database-logo {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.database-logo svg {
  width: 60vw;
  opacity: 0.03;
}

/* LAYOUT */
.database-ui {
  display: flex;
  justify-content: space-between;
  padding: 120px 10vw;
}

/* SYSTEM */
.system-panel {
  width: 50%;
  max-width: 500px;
}

.system-log {
  font-size: 12px;
  opacity: 0.7;
  line-height: 1.6;
}

/* USERS */
.users-panel {
  width: 300px;
  opacity: 0;
  transform: translateX(40px);
  transition: 0.6s;
}

.users-panel.visible {
  opacity: 1;
  transform: translateX(0);
}

.users-panel h1 {
  letter-spacing: 3px;
  margin-bottom: 10px;
}

.system-prompt {
  font-size: 12px;
  opacity: 0.5;
  margin-bottom: 20px;
}

/* ENTITY */
.entity {
  margin-bottom: 20px;
  cursor: pointer;
  opacity: 0.6;
  transition: 0.2s;
}

.entity:hover {
  opacity: 1;
  transform: translateX(6px);
}

.name {
  font-weight: 600;
  letter-spacing: 1px;
}

.details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: 0.4s;
}

.entity.active .details {
  max-height: 200px;
  opacity: 1;
}

.info {
  font-size: 12px;
  opacity: 0.7;
  padding-left: 10px;
}

.corrupted {
  opacity: 0.5;
}



