/* ============================================================
   PRIMESTAKE — Footer
   ============================================================ */

.ps-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border-card);
  position: relative;
  overflow: hidden;
  max-width: 100vw;
}

.ps-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(108,99,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Footer Top ───────────────────────────────────────────── */
.ps-footer__top {
  padding: var(--space-5xl) 0 var(--space-3xl);
}

.ps-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
}

/* ── Brand Column ─────────────────────────────────────────── */
.ps-footer__brand .ps-logo {
  margin-bottom: var(--space-lg);
}

.ps-footer__tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  max-width: 280px;
}

.ps-footer__social {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.ps-footer__social-link {
  width: 38px;
  height: 38px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.ps-footer__social-link:hover {
  background: rgba(108,99,255,0.15);
  border-color: var(--accent-violet);
  color: var(--accent-violet);
  transform: translateY(-2px);
}

.ps-footer__badges {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.ps-footer__badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 6px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.ps-footer__badge span { font-size: 1rem; }

/* ── Link Columns ─────────────────────────────────────────── */
.ps-footer__col-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.ps-footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ps-footer__link {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ps-footer__link::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-violet);
  opacity: 0;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.ps-footer__link:hover {
  color: var(--text-primary);
  padding-left: 4px;
}

.ps-footer__link:hover::before { opacity: 1; }

/* ── Footer Divider ───────────────────────────────────────── */
.ps-footer__mid {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
}

.ps-footer__mid-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.ps-footer__mid-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.ps-footer__payments {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.ps-footer__payment-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

/* ── Real-logo variant: uniform white pills with centered SVGs ─ */
.ps-footer__payment-chip.ps-footer__payment-chip--img {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 38px;
  padding: 6px 10px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}
.ps-footer__payment-chip.ps-footer__payment-chip--img:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 184, 0, 0.45);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}
.ps-footer__payment-chip.ps-footer__payment-chip--img img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Per-brand visual balance — each logo's intrinsic aspect ratio
   is different, so tweak the internal height cap so they read
   at a consistent optical weight inside the same-size pill. */
.ps-footer__payment-chip--img img          { max-height: 22px; }
.ps-footer__payment-chip--bkash img        { max-height: 18px; }
.ps-footer__payment-chip--nagad img        { max-height: 16px; }
.ps-footer__payment-chip--rocket img       { max-height: 22px; }
.ps-footer__payment-chip--upay img         { max-height: 26px; }
.ps-footer__payment-chip--visa img         { max-height: 14px; }
.ps-footer__payment-chip--mastercard img   { max-height: 26px; }
.ps-footer__payment-chip--bank-transfer img{ max-height: 22px; }

/* Mobile: shrink pills proportionally */
@media (max-width: 720px) {
  .ps-footer__payment-chip.ps-footer__payment-chip--img {
    width: 72px;
    height: 34px;
    padding: 5px 8px;
  }
  .ps-footer__payment-chip--img img          { max-height: 20px; }
  .ps-footer__payment-chip--bkash img        { max-height: 16px; }
  .ps-footer__payment-chip--nagad img        { max-height: 14px; }
  .ps-footer__payment-chip--visa img         { max-height: 12px; }
  .ps-footer__payment-chip--upay img         { max-height: 22px; }
  .ps-footer__payment-chip--mastercard img   { max-height: 22px; }
}

/* ── Footer Bottom ────────────────────────────────────────── */
.ps-footer__bottom {
  padding: var(--space-xl) 0;
}

.ps-footer__bottom-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.ps-footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 600px;
}

.ps-footer__copy a {
  color: var(--accent-violet);
  transition: var(--transition-fast);
}

.ps-footer__copy a:hover { color: var(--accent-violet2); }

.ps-footer__legal-links {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.ps-footer__legal-link {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.ps-footer__legal-link:hover { color: var(--text-primary); }


/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 900px) {
  .ps-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .ps-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .ps-footer__grid {
    grid-template-columns: 1fr;
  }

  .ps-footer__mid-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .ps-footer__bottom-inner {
    flex-direction: column;
  }
}

/* ══════════════════════════════════════════════════════
   STICKY MOBILE CTA BAR (v2)
   ══════════════════════════════════════════════════════ */
.ps-sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: var(--z-sticky);
  display: none;
  gap: var(--space-sm);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--bg-glass);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--border-card);
  box-shadow: 0 -8px 30px rgba(0,0,0,0.35);
  transition: transform var(--transition-base);
  will-change: transform;
}
.ps-sticky-cta.is-hidden { transform: translateY(110%); }
.ps-sticky-cta__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  transition: transform var(--transition-fast), box-shadow var(--transition-base);
}
.ps-sticky-cta__btn:active { transform: scale(0.97); }
.ps-sticky-cta__btn--primary {
  background: var(--grad-violet);
  color: #0B0F14;
  box-shadow: 0 8px 24px var(--shadow-violet);
  flex: 1.6;
}
.ps-sticky-cta__btn--ghost {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-card);
}
.ps-sticky-cta__icon { font-size: 1.2rem; line-height: 1; }
.ps-sticky-cta__label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.ps-sticky-cta__label strong { font-size: 0.92rem; font-weight: 700; }
.ps-sticky-cta__label small { font-size: 0.7rem; opacity: 0.85; font-weight: 500; }
.ps-sticky-cta__btn--ghost .ps-sticky-cta__label { align-items: center; }

/* Show only on mobile. Add body padding so content isn't covered. */
@media (max-width: 768px) {
  .ps-sticky-cta { display: flex; }
  body { padding-bottom: 72px; }
}
