/* Payno Checker — Advanced Modern FinTech Stylesheet */

@layer base {
  * {
    box-sizing: border-box;
  }
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(241, 245, 249, 0.6);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Dark textarea scrollbars */
#cardsInput::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.8);
}

#cardsInput::-webkit-scrollbar-thumb {
  background: #334155;
}

#cardsInput::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Smooth Transitions */
.tab-btn, .nav-btn, button, input, label {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Glassmorphic Surfaces */
.glass-panel {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.85);
}

/* Checkbox Custom Styling */
input[type="checkbox"] {
  accent-color: #2563eb;
}

.retorno-tag:has(input:checked) {
  background-color: #eef2ff !important;
  border-color: #c7d2fe !important;
}

.retorno-tag:has(input:checked) span {
  color: #3730a3 !important;
  font-weight: 700 !important;
}

.gateway-item:has(input:checked) {
  background-color: rgba(248, 250, 252, 0.9);
}

/* Toast Animation */
@keyframes toastSlideIn {
  from {
    transform: translateY(24px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes toastSlideOut {
  from {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  to {
    transform: translateY(24px) scale(0.9);
    opacity: 0;
  }
}

.toast-in {
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-out {
  animation: toastSlideOut 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Glow Pulses */
@keyframes subtlePulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.animate-subtle-pulse {
  animation: subtlePulse 2s ease-in-out infinite;
}

/* Monospace details */
.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Shake Animation for Invalid Auth */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.animate-shake {
  animation: shake 0.45s ease-in-out;
}

/* Login Glow Card */
.login-glow {
  box-shadow: 0 0 60px -10px rgba(37, 99, 235, 0.3), 0 25px 50px -12px rgba(15, 23, 42, 0.4);
}

/* Animated Login Background Orbs */
.login-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(100px);
  opacity: 0.38;
  mix-blend-mode: screen;
  pointer-events: none;
  will-change: transform;
}

.blob-1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.85) 0%, rgba(37, 99, 235, 0.25) 60%, transparent 100%);
  top: -12%;
  left: -8%;
  animation: floatOrb1 20s ease-in-out infinite alternate;
}

.blob-2 {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.8) 0%, rgba(139, 92, 246, 0.25) 60%, transparent 100%);
  bottom: -10%;
  right: -6%;
  animation: floatOrb2 24s ease-in-out infinite alternate;
}

.blob-3 {
  width: 390px;
  height: 390px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.75) 0%, rgba(56, 189, 248, 0.2) 60%, transparent 100%);
  top: 35%;
  left: 65%;
  animation: floatOrb3 22s ease-in-out infinite alternate;
}

.blob-4 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.6) 0%, rgba(99, 102, 241, 0.15) 60%, transparent 100%);
  bottom: 15%;
  left: 8%;
  animation: floatOrb4 26s ease-in-out infinite alternate;
}

@keyframes floatOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(110px, 70px) scale(1.12); }
  100% { transform: translate(50px, 130px) scale(0.96); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-90px, -80px) scale(1.08); }
  100% { transform: translate(-40px, -130px) scale(0.92); }
}

@keyframes floatOrb3 {
  0% { transform: translate(0, 0) scale(0.96); }
  50% { transform: translate(-100px, 50px) scale(1.1); }
  100% { transform: translate(-50px, -70px) scale(1); }
}

@keyframes floatOrb4 {
  0% { transform: translate(0, 0) scale(1.04); }
  50% { transform: translate(80px, -60px) scale(0.92); }
  100% { transform: translate(30px, -100px) scale(1.12); }
}

@keyframes gridDrift {
  0% { background-position: 0px 0px; }
  100% { background-position: 64px 64px; }
}

.animate-grid-drift {
  animation: gridDrift 45s linear infinite;
}
