/* ========================================
   Verify Modal — Safe-Limits Theme
   Standalone component. No external deps.
   ======================================== */

.vm-backdrop,
.vm-backdrop *,
.vm-panel,
.vm-panel * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

.vm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.vm-backdrop.is-open {
  display: block;
  opacity: 1;
}

.vm-panel {
  position: fixed;
  z-index: 9010;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 92%;
  max-width: 400px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 2.5rem 2rem 2rem;
  display: none;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.03),
    0 25px 80px rgba(0, 0, 0, 0.12),
    0 0 60px rgba(37, 99, 235, 0.06);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1e293b;
}

.vm-panel.is-open {
  display: flex;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.vm-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  font-size: 18px;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
}

.vm-close:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.vm-shield {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2563eb 0%, #0d9488 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

.vm-shield svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.vm-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.375rem;
  text-align: center;
  letter-spacing: -0.01em;
}

.vm-subtitle {
  font-size: 0.875rem;
  color: #64748b;
  text-align: center;
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.vm-input-group {
  width: 100%;
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0 1rem;
  height: 52px;
  margin-bottom: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.vm-input-group:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.vm-input-prefix {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #64748b;
  margin-right: 0.5rem;
  user-select: none;
  white-space: nowrap;
}

.vm-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #1e293b;
  font-size: 1rem;
  font-family: inherit;
  letter-spacing: 0.03em;
}

.vm-input::placeholder {
  color: #94a3b8;
}

.vm-btn {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb 0%, #0d9488 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: opacity 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
  margin-bottom: 1.5rem;
}

.vm-btn:hover {
  opacity: 0.92;
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.35);
}

.vm-btn:active {
  transform: scale(0.98);
}

.vm-btn.is-loading {
  pointer-events: none;
  opacity: 0.75;
}

.vm-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: vm-spin 0.6s linear infinite;
}

.vm-btn.is-loading .vm-spinner {
  display: block;
}

.vm-btn.is-loading .vm-btn-text {
  display: none;
}

@keyframes vm-spin {
  to { transform: rotate(360deg); }
}

.vm-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  opacity: 0.45;
  transition: opacity 0.2s;
}

.vm-footer:hover {
  opacity: 0.65;
}

.vm-footer svg {
  width: 14px;
  height: 14px;
  fill: #64748b;
}

.vm-footer-text {
  font-size: 0.75rem;
  color: #64748b;
  letter-spacing: 0.02em;
}

.vm-no-scroll {
  overflow: hidden !important;
}

@media (max-width: 380px) {
  .vm-panel {
    padding: 2rem 1.5rem 1.5rem;
  }

  .vm-title {
    font-size: 1.25rem;
  }
}
