.admin-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: -apple-system, 'Segoe UI', Arial, sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.admin-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.admin-modal {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 22px;
  padding: 34px 28px 28px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.14);
  text-align: center;
  color: #1a1a1a;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s ease;
}
.admin-overlay.active .admin-modal {
  transform: translateY(0) scale(1);
}
.admin-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-icon svg {
  width: 32px;
  height: 32px;
}
.admin-icon.spinner {
  border: 4px solid rgba(0, 0, 0, 0.08);
  border-top-color: #1a1a1a;
  animation: admin-spin 0.9s linear infinite;
}
.admin-icon.success { background: #e8f5e9; color: #2e7d32; }
.admin-icon.fail { background: #ffebee; color: #c62828; }
.admin-icon.warn { background: #fff3e0; color: #ef6c00; }
.admin-icon.info { background: #e3f2fd; color: #1565c0; }
@keyframes admin-spin { to { transform: rotate(360deg); } }
.admin-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.25;
}
.admin-body {
  font-size: 15px;
  color: #555;
  line-height: 1.5;
  margin: 0 0 22px;
}
.admin-input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1.5px solid #d5d5d5;
  border-radius: 12px;
  font-size: 17px;
  text-align: center;
  letter-spacing: 1px;
  outline: none;
  margin-bottom: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.admin-input:focus {
  border-color: #1a1a1a;
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.08);
}
.admin-input.error {
  border-color: #c62828;
  animation: admin-shake 0.35s ease;
}
@keyframes admin-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
.admin-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: #1a1a1a;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}
.admin-btn:hover { background: #333; }
.admin-btn:active { transform: scale(0.98); }
.admin-btn.secondary {
  background: #f2f2f2;
  color: #1a1a1a;
  margin-top: 10px;
}
.admin-btn.secondary:hover { background: #e5e5e5; }
.admin-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.admin-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1a1a1a;
  animation: admin-bounce 1.1s infinite ease-in-out both;
}
.admin-dots span:nth-child(1) { animation-delay: -0.32s; }
.admin-dots span:nth-child(2) { animation-delay: -0.16s; }
.admin-dots span:nth-child(3) { animation-delay: 0s; }
@keyframes admin-bounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }
.admin-small {
  font-size: 13px;
  color: #888;
  margin-top: 14px;
}
