/* ==========================================================================
   PyrMaker - Staging PIN Gate Styles
   ========================================================================== */

#staging-pin-gate {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #111827 0%, #060911 100%);
  font-family: 'Cairo', 'Tajawal', system-ui, -apple-system, sans-serif;
  color: #f3f4f6;
  direction: rtl;
  text-align: right;
  padding: 20px;
  box-sizing: border-box;
}

.pin-gate-card {
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(245, 158, 11, 0.18);
  border-radius: 24px;
  width: 100%;
  max-width: 440px;
  padding: 38px 32px;
  text-align: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: pinCardPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

@keyframes pinCardPop {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(14px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.pin-gate-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.pin-gate-title {
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.pin-gate-desc {
  font-size: 14px;
  color: #9ca3af;
  line-height: 1.6;
  margin: 0 0 24px 0;
}

.pin-input-group {
  position: relative;
  margin-bottom: 18px;
}

.pin-gate-input {
  width: 100%;
  padding: 14px 46px 14px 16px;
  background: rgba(15, 23, 42, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  color: #fbbf24;
  font-size: 24px;
  letter-spacing: 6px;
  text-align: center;
  font-weight: 800;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
  font-family: monospace, system-ui;
}

.pin-gate-input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
  background: rgba(15, 23, 42, 1);
}

.pin-toggle-btn {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 18px;
  padding: 6px;
  line-height: 1;
  transition: color 0.15s ease;
}

.pin-toggle-btn:hover {
  color: #f3f4f6;
}

.pin-submit-btn {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
}

.pin-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(245, 158, 11, 0.5);
  filter: brightness(1.08);
}

.pin-submit-btn:active {
  transform: translateY(0);
}

.pin-error-msg {
  color: #ef4444;
  font-size: 13px;
  font-weight: 700;
  margin-top: 14px;
  display: none;
}

.pin-error-shake {
  animation: pinShake 0.4s ease-in-out;
}

@keyframes pinShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-10px); }
  40%, 80% { transform: translateX(10px); }
}

#btn-staging-lock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

#btn-staging-lock:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: #ef4444;
  color: #ffffff;
}
