/* =========================================================
   AxisVPN Mini App - Isolated Buttons Design Elements
   ========================================================= */

/* Generic Pill Button */
.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transform: translateZ(0);
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s ease, filter 0.15s ease;
}

.pill-btn:active {
  transform: scale(0.95);
  filter: brightness(0.95);
}

/* Primary Action Button (Brand Gradient + Shimmer Sweep) */
.pill-btn-primary {
  background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 50%, #5B21B6 100%);
  color: var(--text-white);
  box-shadow: 0 6px 20px -2px rgba(109, 40, 217, 0.38);
  position: relative;
  overflow: hidden;
}

.pill-btn-primary::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: rotate(25deg);
  animation: btnSweep 5.6s infinite cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* Eco & VIP Button Variants */
.pill-btn-eco {
  background: var(--eco-tier);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.pill-btn-vip {
  background: var(--vip-tier);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

/* Outline & Ghost Buttons */
.pill-btn-outline {
  background: transparent;
  color: var(--brand-purple);
  border: 1.5px solid var(--brand-purple);
}

.pill-btn-outline:active {
  background: var(--surface-frost-purple);
}

.pill-btn-ghost {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-primary);
}

.pill-btn-ghost:active {
  background: rgba(0, 0, 0, 0.08);
}

/* Circular Icon Button */
.icon-btn {
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.icon-btn:active {
  transform: scale(0.92);
}

/* Animated Top-Up Hero Pill Button */
.hero-topup-pill-btn {
  background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 45%, #6D28D9 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 9999px;
  padding: 9px 18px;
  font-size: 0.86rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  animation: topUpPulseGlow 3.8s ease-in-out infinite;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  user-select: none;
  backdrop-filter: blur(8px);
}

.hero-topup-pill-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: topUpShimmerSweep 4.5s ease-in-out infinite;
  pointer-events: none;
}

.hero-topup-pill-btn:active {
  transform: scale(0.92) !important;
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.4) !important;
}

.hero-topup-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: topUpIconPulse 3.8s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}
