/**
 * Promo download APK pelanggan — kartu modern
 */

.auth-apk-promo {
  --apk-green: #16a34a;
  --apk-green-dark: #15803d;
  --apk-blue: #2563eb;
  --apk-surface: #f0fdf4;
  position: relative;
  border-radius: 1.1rem;
  overflow: hidden;
}

/* ── Mobile card ── */
.auth-apk-promo--mobile {
  margin-top: 0.5rem;
  padding: 1rem;
  background: linear-gradient(160deg, #f0fdf4 0%, #eff6ff 55%, #faf5ff 100%);
  border: 1px solid rgba(22, 163, 74, 0.18);
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.04),
    0 16px 32px rgba(22, 163, 74, 0.08);
}

.auth-apk-promo__glow {
  position: absolute;
  top: -40px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2), transparent 70%);
  pointer-events: none;
}

.auth-apk-promo__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.65rem;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.15);
}

.auth-apk-promo__header {
  position: relative;
  z-index: 1;
}

.auth-apk-promo__head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.auth-apk-promo__icon {
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  border-radius: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: linear-gradient(145deg, var(--apk-green), var(--apk-blue));
  color: #fff;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.35);
}

.auth-apk-promo__title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  color: #111827 !important;
  letter-spacing: -0.02em;
}

.auth-apk-promo__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.auth-apk-promo__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
}

.auth-apk-promo__badge--ver {
  background: rgba(22, 163, 74, 0.12);
  color: #166534;
}

.auth-apk-promo__badge--size {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}

.auth-apk-promo__list {
  position: relative;
  z-index: 1;
  margin: 0.9rem 0 1rem;
  padding: 0;
  list-style: none;
}

.auth-apk-promo__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 0.5rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #374151;
}

.auth-apk-promo__check {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.05rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  background: rgba(22, 163, 74, 0.15);
  color: var(--apk-green);
}

/* Tombol unduh — tampilan button penuh, bukan link */
.auth-apk-promo__cta {
  position: relative;
  z-index: 1;
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.95rem;
  text-decoration: none !important;
  background: linear-gradient(135deg, var(--apk-green) 0%, #059669 45%, var(--apk-blue) 100%) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.auth-apk-promo__cta:hover,
.auth-apk-promo__cta:focus {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(22, 163, 74, 0.42);
  color: #fff !important;
}

.auth-apk-promo__cta-icon {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: rgba(255, 255, 255, 0.2);
}

.auth-apk-promo__cta-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  min-width: 0;
}

.auth-apk-promo__cta-text strong {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
}

.auth-apk-promo__cta-text small {
  font-size: 0.72rem;
  opacity: 0.88;
  font-weight: 500;
}

.auth-apk-promo__cta-arrow {
  flex: 0 0 auto;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  font-size: 1rem;
}

/* ── Desktop panel ── */
.auth-apk-promo--desktop {
  padding: 1.35rem;
  max-width: 24rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  backdrop-filter: blur(10px);
}

.auth-apk-promo--desktop .auth-apk-promo__pill {
  color: #e9d5ff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.auth-apk-promo--desktop .auth-apk-promo__icon {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.auth-apk-promo--desktop .auth-apk-promo__title {
  color: #fff !important;
}

.auth-apk-promo--desktop .auth-apk-promo__badge--ver,
.auth-apk-promo--desktop .auth-apk-promo__badge--size {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.auth-apk-promo--desktop .auth-apk-promo__list li {
  color: rgba(255, 255, 255, 0.94);
}

.auth-apk-promo--desktop .auth-apk-promo__check {
  background: rgba(255, 255, 255, 0.2);
  color: #bbf7d0;
}

.auth-apk-promo--desktop .auth-apk-promo__cta {
  background: #fff !important;
  color: var(--apk-green-dark) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.auth-apk-promo--desktop .auth-apk-promo__cta-icon {
  background: rgba(22, 163, 74, 0.12);
  color: var(--apk-green);
}

.auth-apk-promo--desktop .auth-apk-promo__cta-text strong {
  color: var(--apk-green-dark);
}

.auth-apk-promo--desktop .auth-apk-promo__cta-text small {
  color: #6b7280;
}

.auth-apk-promo--desktop .auth-apk-promo__cta-arrow {
  background: rgba(22, 163, 74, 0.12);
  color: var(--apk-green);
}

.auth-apk-promo--desktop .auth-apk-promo__cta:hover {
  color: var(--apk-green-dark) !important;
}

.auth-modern__visual.has-apk-promo .auth-modern__visual-caption {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1rem;
  height: 100%;
}

@media (max-width: 991.98px) {
  .auth-apk-promo--desktop {
    display: none !important;
  }

  .auth-apk-promo--mobile {
    display: block !important;
    margin-top: 0;
    padding: 1.1rem;
    border-radius: 1.15rem;
    border-width: 2px;
  }

  body.auth-pelanggan-login .auth-apk-promo--mobile .auth-apk-promo__title {
    font-size: 1.05rem;
  }

  body.auth-pelanggan-login .auth-apk-promo--mobile .auth-apk-promo__icon {
    width: 3.25rem;
    height: 3.25rem;
    font-size: 1.5rem;
  }

  body.auth-pelanggan-login .auth-apk-promo__cta {
    width: 100% !important;
    min-height: 58px !important;
    padding: 0.9rem 1rem !important;
    border: 0 !important;
    border-radius: 1rem !important;
    background: linear-gradient(135deg, #16a34a 0%, #059669 42%, #2563eb 100%) !important;
    color: #fff !important;
    box-shadow: 0 14px 32px rgba(22, 163, 74, 0.38) !important;
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
  }

  body.auth-pelanggan-login .auth-apk-promo__cta-text strong {
    color: #fff !important;
    font-size: 1rem;
  }

  body.auth-pelanggan-login .auth-apk-promo__cta-text small {
    color: rgba(255, 255, 255, 0.9) !important;
  }

  body.auth-pelanggan-login .auth-apk-promo__cta-icon,
  body.auth-pelanggan-login .auth-apk-promo__cta-arrow {
    background: rgba(255, 255, 255, 0.22) !important;
    color: #fff !important;
  }
}

@media (min-width: 992px) {
  .auth-apk-promo--mobile {
    display: none !important;
  }

  .auth-apk-promo--desktop {
    display: block !important;
  }
}

body.pelanggan-app.auth-pelanggan-login .auth-apk-promo,
body.pelanggan-app.auth-pelanggan-login .auth-apk-fallback {
  display: none !important;
}

.auth-apk-fallback {
  margin-top: 1rem;
}

.auth-apk-fallback__btn {
  min-height: 52px;
  font-weight: 700;
  border-radius: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, #16a34a, #2563eb) !important;
  border: 0 !important;
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.3);
}

.auth-apk-fallback__ver {
  font-size: 0.75rem;
  opacity: 0.9;
}
