/* Pegadaian — tema profesional + animasi */

:root {
  --pg-teal: #0c4a3e;
  --pg-teal-light: #0f6b58;
  --pg-burgundy: #5c1a2e;
  --pg-gold-shine: #f0d78c;
  --pg-glass: rgba(255, 255, 255, 0.08);
}

/* ── Keyframes ── */
@keyframes pg-fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pg-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pg-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes pg-pulse-ring {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}

@keyframes pg-gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pg-scale-in {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* ── Header upgrade ── */
.site-header {
  background: rgba(255, 255, 255, 0.98);
  transition: box-shadow 0.3s ease;
}

@media (min-width: 1200px) {
  .site-header {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.92);
  }
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(12, 74, 62, 0.12);
}

.top-bar {
  background: linear-gradient(90deg, var(--pg-teal), var(--color-gold), var(--pg-teal));
  background-size: 200% auto;
  animation: pg-gradient-shift 4s ease infinite;
}

.logo:hover .logo-img {
  opacity: 0.9;
}

.main-nav a {
  position: relative;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), var(--pg-teal-light));
  border-radius: 2px;
  transition: width 0.25s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

/* ── Hero ── */
.pg-hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 300px);
  gap: 1.5rem;
  align-items: center;
  overflow: hidden;
}

.pg-hero--solo {
  grid-template-columns: 1fr;
  padding-bottom: 2.5rem;
}

.pg-hero--solo .pg-hero__content {
  max-width: 42rem;
}

.pg-hero__bg {
  position: absolute;
  inset: -2rem -1rem auto;
  height: calc(100% + 4rem);
  border-radius: 0 0 32px 32px;
  background: linear-gradient(135deg, var(--pg-teal) 0%, #0a2f28 40%, var(--pg-burgundy) 100%);
  background-size: 200% 200%;
  animation: pg-gradient-shift 8s ease infinite;
  z-index: 0;
}

.pg-hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(201, 162, 39, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 40%);
  border-radius: inherit;
}

.pg-hero__content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 1.5rem 0;
}

.pg-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--pg-glass);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 999px;
  animation: pg-fade-up 0.8s ease both;
}

.pg-hero__badge i {
  color: var(--color-gold-light);
}

.pg-hero__title {
  margin: 1rem 0 0;
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  animation: pg-fade-up 0.8s ease 0.1s both;
}

.pg-hero__gold {
  background: linear-gradient(90deg, var(--color-gold-light), var(--color-gold), var(--pg-gold-shine));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pg-shimmer 3s linear infinite;
}

.pg-hero__lead {
  margin: 1rem 0 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 32rem;
  line-height: 1.6;
  animation: pg-fade-up 0.8s ease 0.2s both;
}

.pg-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  animation: pg-fade-up 0.8s ease 0.3s both;
}

.pg-btn-shine {
  position: relative;
  overflow: hidden;
}

.pg-btn-shine::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.35) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: pg-shimmer 2.5s ease infinite;
}

.pg-hero__cta .btn-gold-outline {
  color: var(--color-gold-light);
  border-color: rgba(232, 212, 139, 0.6);
}

.pg-hero__cta .btn-gold-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.pg-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  animation: pg-fade-up 0.8s ease 0.4s both;
}

.pg-hero__stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-gold-light);
}

.pg-hero__stat span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pg-hero__widget {
  position: relative;
  z-index: 1;
  animation: pg-scale-in 0.7s ease 0.25s both;
}

.pg-hero__widget .gold-price-widget__icon {
  position: relative;
}

.pg-hero__widget .gold-price-widget__icon::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--color-gold);
  animation: pg-pulse-ring 2s ease-out infinite;
}

/* ── Section headers ── */
.section-title {
  position: relative;
  display: inline-block;
}

.pg-section-head {
  text-align: center;
  margin-bottom: 2rem;
}

.pg-section-head .section-title {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
}

.pg-section-head .section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 0.6rem auto 0;
  background: linear-gradient(90deg, var(--pg-teal), var(--color-gold));
  border-radius: 3px;
}

.pg-section-sub {
  margin: 0.5rem 0 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* ── Category cards ── */
.category-grid {
  gap: 1rem;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.35rem 1rem;
  border-radius: 16px;
  background: var(--color-white);
  border: 2px solid transparent;
  box-shadow: var(--shadow);
  font-weight: 600;
  text-decoration: none;
  color: var(--color-navy);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}

.category-card:hover {
  text-decoration: none;
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(12, 74, 62, 0.14);
  border-color: rgba(201, 162, 39, 0.4);
}

.category-card.is-active {
  border-color: var(--color-gold);
  background: linear-gradient(180deg, #fffef8 0%, #fff 100%);
}

.category-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 1.25rem;
  color: var(--color-gold-dark);
  background: linear-gradient(135deg, rgba(201,162,39,0.15) 0%, rgba(12,74,62,0.08) 100%);
  transition: transform 0.3s ease, background 0.3s ease;
}

.category-card:hover .category-card__icon {
  transform: scale(1.1) rotate(-5deg);
  background: linear-gradient(135deg, var(--color-gold-light) 0%, rgba(201,162,39,0.3) 100%);
}

/* ── Product cards ── */
.product-card {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(12, 74, 62, 0.14);
}

.product-img-wrap {
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.product-img-wrap img {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.06);
}

.product-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.product-name a:hover {
  color: var(--pg-teal);
  text-decoration: none;
}

.product-img-wrap {
  display: block;
  text-decoration: none;
}

.product-card__badge {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--pg-teal);
  background: rgba(12, 74, 62, 0.08);
  border-radius: 6px;
}

/* ── Feature banner ── */
.feature-banner {
  background: linear-gradient(135deg, var(--pg-teal) 0%, #0a2f28 50%, var(--pg-burgundy) 100%);
  background-size: 200% 200%;
  animation: pg-gradient-shift 10s ease infinite;
}

.feature-banner-inner h2 {
  animation: pg-fade-in 1s ease;
}

/* ── Benefits ── */
.benefit-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(12, 74, 62, 0.06);
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(12, 74, 62, 0.1);
}

.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(201,162,39,0.2), rgba(12,74,62,0.1));
  transition: transform 0.3s ease;
}

.benefit-card:hover .benefit-icon {
  transform: scale(1.15);
}

.benefit-icon i {
  color: var(--pg-teal);
}

/* ── Cara berbelanja ── */
.pg-steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.pg-step-card {
  position: relative;
  padding: 1.75rem 1.5rem;
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(12, 74, 62, 0.06);
  text-align: center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.pg-step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(12, 74, 62, 0.12);
}

.pg-step-card__num {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-gold);
  opacity: 0.7;
}

.pg-step-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: var(--pg-teal);
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.18), rgba(12, 74, 62, 0.08));
  border-radius: 14px;
  transition: transform 0.3s ease;
}

.pg-step-card:hover .pg-step-card__icon {
  transform: scale(1.1);
}

.pg-step-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--color-navy);
}

.pg-step-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.55;
}

/* ── Trust strip ── */
.pg-trust-strip {
  max-width: var(--max);
  margin: 0 auto 2rem;
  padding: 0 1.25rem;
}

.pg-trust-strip__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(12, 74, 62, 0.06);
}

.pg-trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-navy);
}

.pg-trust-item i {
  color: var(--color-gold);
  font-size: 1.1rem;
}

/* ── Product detail specs ── */
.pd-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
}

.pd-spec {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pg-teal);
  background: rgba(12, 74, 62, 0.07);
  border-radius: 8px;
}

.pd-spec i {
  color: var(--color-gold-dark);
  font-size: 0.75rem;
}

/* ── Auth pages ── */
.auth-page {
  background: linear-gradient(160deg, #f0f7f5 0%, var(--color-bg) 40%, #faf8f3 100%);
}

.auth-card {
  animation: pg-scale-in 0.5s ease both;
  border: 1px solid rgba(201, 162, 39, 0.15);
  box-shadow: 0 20px 60px rgba(12, 74, 62, 0.1);
}

.auth-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin: 0.5rem 0 0;
  background: linear-gradient(90deg, var(--pg-teal), var(--color-gold));
  border-radius: 3px;
}

/* ── Admin branding ── */

.admin-sidebar {
  background: linear-gradient(180deg, var(--pg-teal) 0%, #0a2f28 100%);
}

.admin-nav__link--active {
  background: rgba(201, 162, 39, 0.2) !important;
  border-left-color: var(--color-gold) !important;
}

/* ── Footer (terang — kontras dengan teks hijau logo Pegadaian) ── */
.site-footer {
  background: linear-gradient(180deg, #f7fbf9 0%, #edf5f2 100%);
  color: var(--color-navy);
  border-top: 1px solid rgba(12, 74, 62, 0.1);
}

.site-footer h4 {
  color: var(--pg-teal);
}

.site-footer a {
  color: var(--pg-teal);
}

.site-footer a:hover {
  color: var(--color-gold-dark);
}

.footer-brand p {
  color: var(--color-muted);
  opacity: 1;
}

.footer-contact__title {
  color: var(--pg-teal) !important;
}

.footer-contact__item {
  color: var(--color-navy);
}

.footer-contact__svg {
  color: var(--pg-teal-light);
}

.footer-contact__item a {
  color: var(--pg-teal);
}

.footer-contact__item a:hover {
  color: var(--color-gold-dark);
}

.footer-badges {
  color: var(--color-muted);
  opacity: 1;
}

.newsletter input {
  border: 1px solid rgba(12, 74, 62, 0.18);
  background: var(--color-white);
  color: var(--color-navy);
}

.newsletter input::placeholder {
  color: rgba(15, 39, 68, 0.45);
}

.footer-bottom {
  background: #e3ece8;
  color: var(--color-muted);
  border-top: 1px solid rgba(12, 74, 62, 0.1);
}

.footer-bottom a {
  color: var(--pg-teal);
}

.footer-bottom a:hover {
  color: var(--color-gold-dark);
}

.footer-col h4,
.footer-col .footer-contact__title {
  margin: 0 0 0.85rem;
}

/* ── Header shell + drawer ── */
.header-shell--drawer .main-nav a::after,
.site-header--drawer .main-nav a::after {
  display: none;
}

.header-shell--drawer {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
}

.header-shell--drawer .site-header {
  position: static;
  background: transparent;
  box-shadow: none;
}

.header-shell--drawer .site-header.scrolled {
  box-shadow: none;
}

/* Desktop: nav inline di baris header */
@media (min-width: 1200px) {
  .header-shell--drawer {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1px 0 rgba(15, 39, 68, 0.06);
  }

  .header-shell--drawer.menu-open,
  .header-shell--drawer .site-header.menu-open {
    box-shadow: 0 1px 0 rgba(15, 39, 68, 0.06);
  }

  .header-shell__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }

  .header-shell--drawer .site-header {
    display: block;
    flex-shrink: 0;
  }

  .header-shell--drawer .nav-wrap {
    display: flex;
    align-items: center;
    padding: 0;
  }

  .header-shell--drawer .nav-menu-toggle {
    display: none;
  }

  .header-shell--drawer .nav-drawer-panel {
    display: flex;
    flex: 1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: static;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    width: auto;
    background: transparent;
    box-shadow: none;
    padding: 0;
    overflow: visible;
  }

  .header-shell--drawer .main-nav {
    flex-direction: row;
    gap: 1.5rem;
  }

  .header-shell--drawer .nav-actions {
    flex-direction: row;
    align-items: center;
    margin: 0;
    padding: 0;
    border: none;
  }

  .nav-backdrop {
    display: none !important;
  }
}

/* Mobile + tablet: drawer slide dari kanan */
@media (max-width: 1199px) {
  :root {
    --header-bar-offset: calc(4px + 4.25rem);
  }

  .header-shell--drawer {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--color-white);
    z-index: 100;
  }

  .header-shell--drawer.menu-open {
    z-index: 1280;
  }

  .header-shell__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0.6rem max(1rem, env(safe-area-inset-left)) 0.6rem max(1rem, env(safe-area-inset-right));
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand toggle";
    align-items: center;
    gap: 0.5rem 0.75rem;
  }

  .header-shell--drawer .site-header,
  .header-shell--drawer .nav-wrap {
    display: contents;
  }

  .header-shell--drawer .logo {
    grid-area: brand;
    min-width: 0;
    max-width: 100%;
  }

  .header-shell--drawer .logo-img {
    height: 3rem;
    max-width: min(220px, 58vw);
  }

  .header-shell--drawer {
    --header-bar-offset: calc(4px + 4.25rem);
  }

  .header-shell--drawer .nav-menu-toggle {
    grid-area: toggle;
    margin-left: 0;
    position: relative;
    z-index: 2;
  }

  .header-shell--drawer .nav-drawer-panel {
    display: flex;
    flex-direction: column;
    position: fixed;
    z-index: 1270;
    top: var(--header-bar-offset);
    right: 0;
    bottom: 0;
    width: min(100vw, 18.5rem);
    max-width: 100%;
    padding: 0.75rem 1.15rem max(1.25rem, env(safe-area-inset-bottom));
    background: var(--color-white);
    box-shadow: -8px 0 32px rgba(15, 39, 68, 0.15);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: manipulation;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.28s ease, visibility 0.28s;
  }

  .header-shell--drawer.menu-open .nav-drawer-panel {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    z-index: 1260;
    top: var(--header-bar-offset);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 39, 68, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s;
  }

  .header-shell--drawer.menu-open + .nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .header-shell--drawer .main-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    width: 100%;
    justify-content: flex-start;
  }

  .header-shell--drawer .main-nav a {
    padding: 0.9rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 1;
    cursor: pointer;
    border-bottom: 1px solid rgba(15, 39, 68, 0.08);
    -webkit-tap-highlight-color: rgba(15, 39, 68, 0.08);
  }

  .header-shell--drawer .main-nav a:last-of-type {
    border-bottom: none;
  }

  .header-shell--drawer .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(15, 39, 68, 0.1);
  }

  .header-shell--drawer .nav-actions .btn {
    min-height: 44px;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    width: 100%;
    justify-content: center;
  }

  .header-shell--drawer .nav-user {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    text-align: center;
    color: var(--color-muted);
  }
}

/* ── Footer mobile ── */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 2rem max(1rem, env(safe-area-inset-left)) 1.25rem max(1rem, env(safe-area-inset-right));
    text-align: left;
  }

  .footer-col--brand {
    text-align: center;
    padding-bottom: 1.5rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid rgba(12, 74, 62, 0.12);
  }

  .footer-col--brand .logo {
    display: inline-flex;
    justify-content: center;
  }

  .footer-col--brand p {
    margin-left: auto;
    margin-right: auto;
    max-width: 22rem;
  }

  .footer-col:not(.footer-col--brand) {
    padding: 1.15rem 0;
    border-bottom: 1px solid rgba(12, 74, 62, 0.08);
  }

  .footer-col--news {
    border-bottom: none;
    padding-bottom: 0.5rem;
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem 1rem;
  }

  .footer-links li {
    margin-bottom: 0;
  }

  .footer-contact__list {
    max-width: 100%;
  }

  .footer-contact__item {
    align-items: flex-start;
    word-break: break-word;
  }

  .footer-contact__item a {
    overflow-wrap: anywhere;
  }

  .footer-badges {
    margin-bottom: 1rem;
    line-height: 1.5;
  }

  .newsletter {
    flex-direction: column;
    align-items: stretch;
    max-width: 100%;
  }

  .newsletter input,
  .newsletter .btn {
    width: 100%;
    min-width: 0;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    padding: 1rem max(1rem, env(safe-area-inset-left)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-right));
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .pg-hero {
    grid-template-columns: 1fr;
    padding-top: 1.5rem;
  }

  .pg-hero__bg {
    height: 100%;
    border-radius: 0 0 24px 24px;
  }

  .pg-steps__grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .pg-trust-strip__inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
    justify-items: start;
  }

  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .category-card {
    padding: 1rem 0.5rem;
    font-size: 0.82rem;
  }

  .category-card__icon {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .feature-banner {
    min-height: 240px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-list-page,
  .news-detail-page {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .news-detail-breadcrumb {
    overflow-wrap: anywhere;
    line-height: 1.45;
  }

  .news-source-box__btn {
    width: 100%;
    justify-content: center;
  }

  .co-page,
  .pd-page,
  .pay-page {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
}

@media (max-width: 600px) {
  html,
  body {
    overflow-x: hidden;
  }

  .pg-hero {
    padding: 1.25rem max(1rem, env(safe-area-inset-left)) 1.75rem max(1rem, env(safe-area-inset-right));
  }

  .pg-hero__bg {
    inset: -1rem -0.5rem auto;
    border-radius: 0 0 20px 20px;
  }

  .pg-hero__title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .pg-hero__lead {
    font-size: 0.95rem;
  }

  .pg-hero__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .pg-hero__cta .btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .pg-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    text-align: center;
  }

  .pg-hero__stat strong {
    font-size: 1.2rem;
  }

  .pg-hero__stat span {
    font-size: 0.72rem;
  }

  .pg-trust-strip {
    padding: 0 max(1rem, env(safe-area-inset-left)) 0 max(1rem, env(safe-area-inset-right));
  }

  .pg-trust-strip__inner {
    padding: 1rem;
    gap: 0.85rem 1rem;
  }

  .pg-trust-item {
    font-size: 0.78rem;
  }

  .pg-steps__grid {
    padding: 0 max(1rem, env(safe-area-inset-left)) 0 max(1rem, env(safe-area-inset-right));
  }

  .pg-step-card {
    padding: 1.35rem 1.15rem;
  }

  .pg-section-head {
    margin-bottom: 1.5rem;
  }

  .featured-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .featured-card__overlay {
    opacity: 1;
    background: linear-gradient(180deg, transparent 30%, rgba(15, 39, 68, 0.88) 100%);
    align-items: flex-end;
    justify-content: stretch;
    padding: 0.85rem;
  }

  .featured-card__inner {
    max-width: none;
    width: 100%;
    text-align: left;
  }

  .product-card__actions .btn-buy,
  .product-card__actions .btn-wa-product {
    min-height: 44px;
    font-size: 0.8rem;
  }

  .auth-main {
    padding: 1.5rem max(1rem, env(safe-area-inset-left)) 2.5rem max(1rem, env(safe-area-inset-right));
  }

  .auth-card {
    padding: 1.5rem 1.25rem;
    width: 100%;
  }

  .pay-page {
    padding-top: 1.25rem;
    padding-bottom: 2.5rem;
  }

  .pay-page__title {
    font-size: 1.45rem;
  }

  .pay-page__meta {
    font-size: 0.85rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .pay-card {
    padding: 1.15rem 1.1rem;
  }

  .pay-actions-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .pay-actions-foot .btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .pay-submit {
    width: 100%;
    min-height: 44px;
  }

  .pd-actions__row {
    flex-direction: column;
  }

  .btn-pd-beli,
  .btn-pd-wa {
    width: 100%;
    min-height: 44px;
  }

  .co-success-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .co-success-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .testimonial-group {
    padding: 0 2.25rem;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .carousel-prev {
    left: 4px;
  }

  .carousel-next {
    right: 4px;
  }
}

@media (max-width: 380px) {
  .category-grid {
    grid-template-columns: 1fr;
    max-width: 220px;
    margin: 0 auto;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .pg-trust-strip__inner {
    grid-template-columns: 1fr;
  }
}

@media (hover: none) and (pointer: coarse) {
  .product-card:hover,
  .category-card:hover,
  .benefit-card:hover,
  .pg-step-card:hover {
    transform: none;
  }

  .product-card:hover .product-img-wrap img {
    transform: none;
  }

  .category-card:hover .category-card__icon {
    transform: none;
  }
}
