/* =========================================
   VERIFY LAYOUT (RESPONSIVE CENTER)
   ========================================= */
.verify-wrapper {
  /* FIX: Force flex to override .cyber-console { display: block !important } */
  display: flex !important; 
  justify-content: center;
  align-items: center;
  
  width: 100%;
  min-height: 80vh;
  padding: 20px;
  box-sizing: border-box;
}

/* =========================================
   GATE CARD CONTAINER
   ========================================= */
.gate-card {
  width: 100%;
  max-width: 400px;
  background: rgba(12, 14, 18, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  padding: 40px;
  border-radius: 8px;
  text-align: center;
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transition: transform 0.3s ease;
  
  /* Flexbox for internal alignment */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Top Teal Line */
.gate-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-teal), transparent);
}

/* =========================================
   HEADER
   ========================================= */
.gate-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
}

.gate-status { color: #ff4444; }
.gate-id { color: #666; }

/* =========================================
   SCANNER ANIMATION
   ========================================= */
.scanner-visual {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 30px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Rotating Outer Ring */
.ring-outer {
  position: absolute;
  width: 100%; height: 100%;
  border: 1px dashed rgba(29, 205, 159, 0.3);
  border-radius: 50%;
  animation: spin 10s linear infinite;
}

/* Counter-Rotating Inner Ring */
.ring-inner {
  position: absolute;
  width: 70%; height: 70%;
  border: 1px solid rgba(29, 205, 159, 0.1);
  border-left-color: var(--neon-teal);
  border-radius: 50%;
  animation: spinReverse 5s linear infinite;
}

/* Lock Icon */
.core-icon {
  color: var(--neon-teal);
  filter: drop-shadow(0 0 10px rgba(29, 205, 159, 0.5));
  z-index: 2;
}

/* Scanning Beam */
.scan-beam {
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--neon-teal);
  box-shadow: 0 0 15px var(--neon-teal);
  opacity: 0.5;
  animation: scanSweep 3s ease-in-out infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes spinReverse { 100% { transform: rotate(-360deg); } }
@keyframes scanSweep {
  0% { top: 0%; opacity: 0; }
  50% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* =========================================
   CONTENT
   ========================================= */
.gate-content {
  width: 100%;
  margin-bottom: 30px;
}

.gate-title {
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 3px;
  color: #fff;
  margin-bottom: 10px;
  white-space: nowrap; 
}

.gate-sub {
  font-size: 11px;
  color: #888;
  line-height: 1.6;
  padding: 0 10px;
}

/* =========================================
   ACTION BUTTON
   ========================================= */
.gate-btn {
  /* Layout */
  width: 100%;
  padding: 18px;
  min-height: 50px;
  
  /* Appearance */
  background: transparent;
  border: 1px solid rgba(29, 205, 159, 0.3);
  color: var(--neon-teal);
  
  /* Text */
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: bold;
  text-transform: uppercase;
  
  /* Interaction */
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-shadow: none;
  
  /* Mobile Fixes */
  -webkit-appearance: none;
  appearance: none;
  display: block;
}

.gate-btn:hover {
  background: rgba(29, 205, 159, 0.1);
  border-color: var(--neon-teal);
  color: #fff;
  box-shadow: 0 0 15px rgba(29, 205, 159, 0.3);
  text-shadow: 0 0 5px var(--neon-teal);
}

.gate-btn:active {
  transform: scale(0.98);
}

/* =========================================
   MOBILE OPTIMIZATIONS
   ========================================= */
@media (max-width: 768px) {
  .verify-wrapper {
    /* Safe centering for small screens */
    min-height: auto; 
    padding: 60px 20px;
    align-items: flex-start;
  }

  .gate-card {
    margin: 0 auto; /* Ensure horizontal centering */
    padding: 30px 20px;
    max-width: 100%;
  }

  /* Adjust visuals size */
  .scanner-visual {
    width: 80px; 
    height: 80px;
    margin-bottom: 20px;
  }

  /* Text Scaling */
  .gate-title {
    font-size: 16px; 
    letter-spacing: 1px;
  }
  
  .gate-sub {
    font-size: 10px; 
  }

  /* Force button visibility */
  .gate-btn {
    font-size: 11px;
    letter-spacing: 1px;
    padding: 15px;
    white-space: nowrap;
    opacity: 1 !important;
    visibility: visible !important;
  }
}
