/* Bisapay Modern Branded Loading Animation */
.bp-loader-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999999;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.bp-loader-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.bp-loader-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 36px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 28px;
  box-shadow: 0 25px 60px -15px rgba(18, 86, 114, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  width: 230px;
  text-align: center;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bp-loader-overlay.active .bp-loader-card {
  transform: scale(1);
}

.bp-logo-orbit {
  position: relative;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.bp-orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3.5px solid rgba(18, 86, 114, 0.1);
  border-top-color: #125672;
  border-right-color: #0ea5e9;
  animation: bpSpin 1.1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.bp-orbit-glow {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.18) 0%, rgba(18, 86, 114, 0) 70%);
  animation: bpGlowPulse 2s ease-in-out infinite;
}

.bp-loader-img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 14px;
  position: relative;
  z-index: 2;
  animation: bpPulseLogo 1.8s ease-in-out infinite;
  filter: drop-shadow(0 6px 12px rgba(18, 86, 114, 0.25));
}

.bp-brand-name {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #125672;
  margin-top: 4px;
  text-transform: uppercase;
}

.bp-brand-caption {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.bp-loading-dots span {
  display: inline-block;
  width: 4px;
  height: 4px;
  background-color: #0ea5e9;
  border-radius: 50%;
  margin: 0 1.5px;
  animation: bpDots 1.4s infinite ease-in-out both;
}

.bp-loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.bp-loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.bp-loading-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes bpSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes bpPulseLogo {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes bpGlowPulse {
  0%, 100% { opacity: 0.5; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.15); }
}

@keyframes bpDots {
  0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}

.bp-loader-close-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}
.bp-loader-close-btn:hover {
  color: #1e293b;
  background: #f1f5f9;
}

/* ==========================================================================
   BISAPAY MICRO-INTERACTIONS & TOUCH BOUNCE (Option B)
   ========================================================================== */
.service-grid-item,
.app-action-btn,
.service-icon-box,
.promo-banner-card,
.balance-action-btn,
.profile-list-item,
.btn,
.action-btn,
.nav-tab-item {
  -webkit-tap-highlight-color: transparent;
  transform: translateZ(0);
  will-change: transform;
}

.service-grid-item:active,
.balance-action-btn:active,
.promo-banner-card:active {
  transform: scale(0.94);
  transition: transform 0.12s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.app-action-btn:active,
.btn:active,
.action-btn:active {
  transform: scale(0.97);
  transition: transform 0.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-tab-item:active {
  transform: scale(0.92);
  transition: transform 0.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.profile-list-item:active {
  background-color: #f8fafc;
  transform: scale(0.985);
  transition: transform 0.1s, background-color 0.1s;
}

/* ==========================================================================
   BISAPAY SKELETON SHIMMER LOADING (Option A)
   ========================================================================== */
.bp-skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: bpShimmer 1.5s infinite linear;
  border-radius: 8px;
  display: inline-block;
  pointer-events: none;
}

.bp-skeleton-card {
  padding: 16px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  border: 1px solid #f1f5f9;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bp-skeleton-line {
  height: 14px;
  border-radius: 6px;
}

.bp-skeleton-line.title {
  width: 60%;
  height: 18px;
}

.bp-skeleton-line.subtitle {
  width: 40%;
  height: 12px;
}

.bp-skeleton-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

@keyframes bpShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
