/* Premium action feedback — buttons, spinners, toasts */

.rnvs-spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  vertical-align: -2px;
}

.rnvs-spinner svg {
  display: block;
  animation: rnvs-spin 0.75s linear infinite;
}

.rnvs-check {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
  vertical-align: -2px;
  animation: rnvs-pop 320ms ease;
}

.rnvs-btn-label {
  display: inline-block;
  vertical-align: middle;
}

@keyframes rnvs-spin {
  to { transform: rotate(360deg); }
}

@keyframes rnvs-pop {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

button.is-loading,
.auth-submit.is-loading,
.panel-btn.is-loading,
.dash-btn.is-loading,
.nv-order-btn.is-loading,
.contact-btn.is-loading,
.biz-btn.is-loading {
  cursor: wait;
  opacity: 0.92;
  pointer-events: none;
}

button.is-success,
.auth-submit.is-success,
.panel-btn.is-success,
.dash-btn.is-success {
  cursor: default;
}

button.is-error {
  animation: rnvs-shake 380ms ease;
}

@keyframes rnvs-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

.rnvs-toast-host {
  position: fixed;
  z-index: 9999;
  top: 18px;
  right: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(360px, calc(100vw - 28px));
  pointer-events: none;
}

.rnvs-toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #0f1b2d;
  color: #f8fafc;
  box-shadow: 0 12px 30px rgba(15, 27, 45, 0.22);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: auto;
  font-size: 13.5px;
  line-height: 1.45;
}

.rnvs-toast.is-in {
  opacity: 1;
  transform: translateY(0);
}

.rnvs-toast.is-out {
  opacity: 0;
  transform: translateY(-6px);
}

.rnvs-toast__icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
  background: #94a3b8;
}

.rnvs-toast--success .rnvs-toast__icon { background: #22c55e; }
.rnvs-toast--error .rnvs-toast__icon { background: #ef4444; }
.rnvs-toast--warning .rnvs-toast__icon { background: #f59e0b; }
.rnvs-toast--info .rnvs-toast__icon { background: #38bdf8; }

html[data-theme="dark"] .rnvs-toast {
  background: #1e293b;
  border: 1px solid #334155;
}

.rnvs-verify-status {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 13.5px;
  font-weight: 650;
}

.rnvs-verify-status.is-visible {
  display: inline-flex;
  width: 100%;
}

.rnvs-verify-status.is-success {
  background: #ecfdf5;
  color: #047857;
}

.rnvs-verify-status.is-error {
  background: #fef2f2;
  color: #b91c1c;
}

html[data-theme="dark"] .rnvs-verify-status {
  background: #1e293b;
  color: #e2e8f0;
}

html[data-theme="dark"] .rnvs-verify-status.is-success {
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
}

html[data-theme="dark"] .rnvs-verify-status.is-error {
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
}

.auth-otp__digit.is-verifying {
  border-color: #0f1b2d;
  box-shadow: 0 0 0 3px rgba(15, 27, 45, 0.08);
}

.auth-otp__digit.is-invalid {
  border-color: #ef4444;
  animation: rnvs-shake 380ms ease;
}

.auth-otp__digit.is-success {
  border-color: #10b981;
}

.auth-switch a {
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.auth-switch a:hover {
  color: #0f1b2d;
}

@media (max-width: 640px) {
  .rnvs-toast-host {
    top: auto;
    bottom: 16px;
    right: 14px;
    left: 14px;
    width: auto;
  }
}
