/* ═══════════════════════════════════════════
   NexPay — Page Transitions & Loader
   ═══════════════════════════════════════════ */

/* ── Page loader ── */
#nx-page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .38s ease, visibility .38s ease;
}
#nx-page-loader.nx-fade-out {
  opacity: 0; visibility: hidden; pointer-events: none;
}

/* ── Container dos ponteiros centralizado ── */
.nx-loader-ticks {
  position: relative;
  width: 56px;
  height: 56px;
}

/* Remover estilos antigos se existirem */
.nx-loader-inner { display: flex; align-items: center; justify-content: center; }
.nx-loader-logo-img { display: none; }

/* Cada ponteiro posicionado ao redor do centro */
.nx-tick {
  position: absolute;
  left: 50%; top: 50%;
  width: 4px; height: 11px;
  background: var(--site-color-button-primary, #fff);
  border-radius: 3px;
  transform-origin: center 26px;
  margin-left: -2px;
  margin-top: -26px;
}

/* Posições fixas + animação sequencial de apagar */
.nx-tick:nth-child(1)  { transform: rotate(0deg);   animation: nxTickSeq 1.2s linear infinite; animation-delay: 0s; }
.nx-tick:nth-child(2)  { transform: rotate(30deg);  animation: nxTickSeq 1.2s linear infinite; animation-delay: 0.1s; }
.nx-tick:nth-child(3)  { transform: rotate(60deg);  animation: nxTickSeq 1.2s linear infinite; animation-delay: 0.2s; }
.nx-tick:nth-child(4)  { transform: rotate(90deg);  animation: nxTickSeq 1.2s linear infinite; animation-delay: 0.3s; }
.nx-tick:nth-child(5)  { transform: rotate(120deg); animation: nxTickSeq 1.2s linear infinite; animation-delay: 0.4s; }
.nx-tick:nth-child(6)  { transform: rotate(150deg); animation: nxTickSeq 1.2s linear infinite; animation-delay: 0.5s; }
.nx-tick:nth-child(7)  { transform: rotate(180deg); animation: nxTickSeq 1.2s linear infinite; animation-delay: 0.6s; }
.nx-tick:nth-child(8)  { transform: rotate(210deg); animation: nxTickSeq 1.2s linear infinite; animation-delay: 0.7s; }
.nx-tick:nth-child(9)  { transform: rotate(240deg); animation: nxTickSeq 1.2s linear infinite; animation-delay: 0.8s; }
.nx-tick:nth-child(10) { transform: rotate(270deg); animation: nxTickSeq 1.2s linear infinite; animation-delay: 0.9s; }
.nx-tick:nth-child(11) { transform: rotate(300deg); animation: nxTickSeq 1.2s linear infinite; animation-delay: 1.0s; }
.nx-tick:nth-child(12) { transform: rotate(330deg); animation: nxTickSeq 1.2s linear infinite; animation-delay: 1.1s; }

/* Apaga e acende em sequência, não todos juntos */
@keyframes nxTickSeq {
  0%   { opacity: 1; }
  8%   { opacity: 0.1; }
  25%  { opacity: 0.1; }
  33%  { opacity: 1; }
  100% { opacity: 1; }
}

/* ── Content animations ── */
.nx-content-wrap {
  animation: nxFadeSlideUp .42s cubic-bezier(.22,.68,0,1.2) both;
}
.nx-tab-panel {
  animation: nxFadeSlideUp .3s ease both;
}

/* ── Card hover ── */
.ax-finance-card, .ax-admin-card, .ax-kpi, .ax-card {
  transition: transform .18s ease, box-shadow .18s ease;
}
.ax-finance-card:hover, .ax-admin-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 64px rgba(0,0,0,.38) !important;
}

/* ── Button press ── */
.btn, .ax-btn-primary, .ax-btn-neon {
  transition: transform .12s ease, filter .12s ease !important;
}
.btn:active, .ax-btn-primary:active {
  transform: scale(.97) !important;
}

/* ── Modal pop ── */
.nx-modal-pop {
  animation: nxModalPop .32s cubic-bezier(.22,.68,0,1.35) both;
}

/* ── Toast ── */
.nx-toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 9998;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.nx-toast {
  padding: 13px 16px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: var(--site-color-card-bg, #111); backdrop-filter: blur(12px);
  color: #fff; font-size: .86rem; font-weight: 500;
  box-shadow: 0 16px 36px rgba(0,0,0,.4);
  display: flex; align-items: center; gap: 10px;
  pointer-events: all; max-width: 320px;
  animation: nxToastIn .3s cubic-bezier(.22,.68,0,1.35) both;
}
.nx-toast.nx-toast-out { animation: nxToastOut .25s ease forwards; }
.nx-toast-success { border-color: var(--site-color-button-success, #fff); }
.nx-toast-success .nx-toast-icon { color: var(--site-color-button-success, #fff); }
.nx-toast-error   { border-color: rgba(244,63,94,.3); }
.nx-toast-error   .nx-toast-icon { color: #f43f5e; }
.nx-toast-info    { border-color: var(--site-color-button-primary, #fff); }
.nx-toast-info    .nx-toast-icon { color: #818cf8; }

/* ── Floating orbs (auth) ── */
.floating-orb {
  position: fixed; border-radius: 50%;
  pointer-events: none; z-index: 0; filter: blur(80px);
}
.floating-orb-1 {
  width: 400px; height: 400px; top: -100px; left: -100px;
  background: radial-gradient(circle, rgba(255,255,255,.04), transparent 70%);
  animation: nxFloat 8s ease-in-out infinite;
}
.floating-orb-2 {
  width: 300px; height: 300px; bottom: -80px; right: -80px;
  background: radial-gradient(circle, rgba(255,255,255,.03), transparent 70%);
  animation: nxFloat 10s ease-in-out infinite reverse;
}

/* ── Keyframes ── */
@keyframes nxFadeSlideUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes nxModalPop {
  from { opacity: 0; transform: scale(.88); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes nxToastIn {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes nxToastOut {
  to { opacity: 0; transform: translateX(32px); }
}
@keyframes nxFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-24px) scale(1.04); }
}
