/* =========================================================================
   Alif Topup — custom stylesheet
   Layered on top of Tailwind CDN utilities. Keep this file for anything
   Tailwind's utility classes can't express cleanly (keyframes, pseudo-
   element decoration, component-level composition).
   ========================================================================= */

:root {
  --brand-navy: #0b1130;
  --brand-red: #e21f1f;
  --brand-cyan: #22d3ee;
}

html {
  scroll-behavior: smooth;
}

/* -------------------------------------------------------------------------
   Hero slider
   ------------------------------------------------------------------------- */

#heroSlider {
  /* subtle animated glow behind the artwork, evokes the neon gaming theme */
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.hero-slide {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: #cbd5e1;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 0;
  padding: 0;
}

.slider-dot.active {
  width: 22px;
  background-color: var(--brand-red);
}

/* -------------------------------------------------------------------------
   Product cards
   ------------------------------------------------------------------------- */

.product-card {
  background: #ffffff;
  border-radius: 0.75rem;
  overflow: hidden;
  border-bottom: 3px solid var(--brand-red);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(15, 23, 42, 0.25);
}

.product-card__badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

/* -------------------------------------------------------------------------
   Category / product-detail page (product.php)
   ------------------------------------------------------------------------- */

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  background-color: var(--brand-red);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Step 1 — recharge package selector */
.recharge-option {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.625rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.recharge-option:hover {
  border-color: var(--brand-cyan);
}

.recharge-option.selected {
  border-color: var(--brand-red);
  background-color: rgba(226, 31, 31, 0.04);
}

.recharge-option__radio {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 9999px;
  border: 2px solid #cbd5e1;
  flex-shrink: 0;
  position: relative;
}

.recharge-option.selected .recharge-option__radio {
  border-color: var(--brand-red);
}

.recharge-option.selected .recharge-option__radio::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 9999px;
  background-color: var(--brand-red);
}

/* Step 3 — payment method selector */
.payment-option {
  position: relative;
  border-radius: 0.625rem;
  overflow: hidden;
  border: 2px solid #e2e8f0;
  cursor: pointer;
  transition: border-color 0.15s ease;
  text-align: left;
  padding: 0;
}

.payment-option:hover {
  border-color: var(--brand-cyan);
}

.payment-option.selected {
  border-color: var(--brand-red);
}

.payment-option__check {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  background-color: var(--brand-red);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* -------------------------------------------------------------------------
   Account panel (slide-in drawer triggered by the header avatar)
   ------------------------------------------------------------------------- */

.account-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.5);
  z-index: 50;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.account-backdrop.is-open {
  opacity: 1;
}

.account-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  max-width: 320px;
  background-color: #ffffff;
  z-index: 51;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 24px -8px rgba(15, 23, 42, 0.25);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.account-panel.is-open {
  transform: translateX(0);
}

.account-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  transition: background-color 0.15s ease;
}

.account-nav-item:hover {
  background-color: #f8fafc;
}

.account-nav-item svg {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  color: var(--brand-red);
}

/* -------------------------------------------------------------------------
   Footer components
   ------------------------------------------------------------------------- */

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #e2e8f0;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.social-icon:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--brand-cyan);
}

.support-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.support-card:hover {
  border-color: var(--brand-cyan);
  background-color: rgba(255, 255, 255, 0.04);
}

.support-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  flex-shrink: 0;
}

/* -------------------------------------------------------------------------
   Floating quick-help button — gentle pulse to draw the eye without
   being distracting.
   ------------------------------------------------------------------------- */

#quickHelpBtn {
  animation: pulseShadow 2.4s ease-in-out infinite;
}

@keyframes pulseShadow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(226, 31, 31, 0.35);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(226, 31, 31, 0);
  }
}

/* Respect users who've asked for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  #quickHelpBtn {
    animation: none;
  }
}