/* =========================================================
   Invitationsolo - Section Harga
   Warna tiap paket mengikuti namanya: Silver, Gold, Platinum, Sapphire.
   Sapphire adalah paket unggulan (Terpopuler + animasi).
   ========================================================= */

#harga { --pc-radius: 24px; }

/* ---------- Banner promo + hitung mundur ---------- */
.pc-promo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 28px;
  max-width: 760px;
  margin: 0 auto 48px;
  padding: 16px 28px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(209, 162, 33, 0.35);
  box-shadow: 0 12px 34px rgba(209, 162, 33, 0.16);
  color: #2b2b3a;
}
.pc-promo-text { margin: 0; font-size: 15px; line-height: 1.4; text-align: center; }
.pc-promo-text strong { font-weight: 700; }
.pc-count { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pc-count li {
  min-width: 54px;
  padding: 6px 6px 5px;
  border-radius: 12px;
  background: #2b2b3a;
  color: #fff;
  text-align: center;
  line-height: 1;
}
.pc-count b { display: block; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pc-count span { display: block; margin-top: 4px; font-size: 10px; opacity: 0.75; }
.pc-promo.is-ended { border-color: rgba(0, 0, 0, 0.12); box-shadow: none; }

/* ---------- Grid: tinggi semua kartu otomatis sama ---------- */
.pc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: stretch;      /* semua kartu satu baris = tinggi sama */
  padding-top: 18px;         /* ruang untuk pita Terpopuler */
}
@media (min-width: 640px)  { .pc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pc-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; } }

.pc-col { display: flex; min-width: 0; }

/* ---------- Kartu dasar ---------- */
.pc {
  --accent: #888;
  --accent-ink: #222;
  --head-bg: #ddd;
  --head-ink: #222;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: var(--pc-radius);
  background: #fff;
  color: #2b2b3a;
  text-align: left;
  box-shadow: 0 10px 30px rgba(20, 20, 40, 0.09);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s;
}
.pc:hover { transform: translateY(-8px); box-shadow: 0 26px 50px rgba(20, 20, 40, 0.16); }

.pc-head {
  padding: 26px 24px 22px;
  border-radius: calc(var(--pc-radius) - 1px) calc(var(--pc-radius) - 1px) 0 0;
  background: var(--head-bg);
  color: var(--head-ink);
  text-align: center;
}
.pc-head h3 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: 0.5px; color: inherit; }
.pc-head p { margin: 4px 0 0; font-size: 13px; opacity: 0.8; }

.pc-price {
  min-height: 150px;               /* blok harga sama tinggi di semua paket */
  padding: 22px 20px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.pc-was { display: flex; align-items: center; gap: 8px; min-height: 24px; font-size: 14px; color: #8b8b99; }
.pc-was s { text-decoration-thickness: 2px; }
.pc-off {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 700;
}
.pc-now { display: flex; align-items: flex-start; justify-content: center; line-height: 1; color: #2b2b3a; }
.pc-cur { margin: 8px 4px 0 0; font-size: 16px; font-weight: 600; opacity: 0.7; }
.pc-num { font-size: 56px; font-weight: 800; letter-spacing: -2px; font-variant-numeric: tabular-nums; }
.pc-num.is-free { font-size: 46px; letter-spacing: 0; }
.pc-sub { margin: 2px 0 0; font-size: 12.5px; color: #70707e; min-height: 18px; }

.pc-feat { flex: 1 1 auto; margin: 0; padding: 6px 26px 8px; list-style: none; }
.pc-feat li {
  position: relative;
  padding: 9px 0 9px 28px;
  font-size: 14.5px;
  line-height: 1.4;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
}
.pc-feat li:first-child { border-top: 0; }
.pc-feat li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath fill='black' d='M9 0a9 9 0 100 18A9 9 0 009 0zm4.3 6.7l-5 5a.9.9 0 01-1.3 0L4.7 9.4a.9.9 0 111.3-1.3l1.6 1.6 4.4-4.4a.9.9 0 111.3 1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath fill='black' d='M9 0a9 9 0 100 18A9 9 0 009 0zm4.3 6.7l-5 5a.9.9 0 01-1.3 0L4.7 9.4a.9.9 0 111.3-1.3l1.6 1.6 4.4-4.4a.9.9 0 111.3 1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pc-feat li strong { font-weight: 700; }

.pc-foot { padding: 14px 24px 26px; margin-top: auto; }  /* tombol selalu rata di bawah */
.pc-btn {
  position: relative;
  display: block;
  padding: 13px 18px;
  border-radius: 15px;
  background: var(--head-bg);
  color: var(--head-ink);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  overflow: hidden;
  border: 0;
  transition: transform 0.3s, box-shadow 0.3s, filter 0.3s;
}
.pc-btn:hover { color: var(--head-ink); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18); filter: brightness(1.04); }
.pc-btn:focus-visible { outline: 3px solid #2b2b3a; outline-offset: 3px; }

/* ---------- Warna per paket ---------- */
.pc-silver {
  --accent: #8d939c; --accent-ink: #fff;
  --head-bg: linear-gradient(135deg, #f7f8fa 0%, #c5c9cf 45%, #e9ebee 62%, #9ea4ad 100%);
  --head-ink: #262a31;
  border-color: #c5c9cf;
}
.pc-gold {
  --accent: #c8981a; --accent-ink: #2e2100;
  --head-bg: linear-gradient(135deg, #fbe98f 0%, #d1a221 48%, #f0cc58 64%, #a97c0d 100%);
  --head-ink: #2e2100;
  border-color: rgba(209, 162, 33, 0.55);
  box-shadow: 0 10px 30px rgba(209, 162, 33, 0.16);
}
.pc-platinum {
  --accent: #6f78b8; --accent-ink: #fff;
  --head-bg: linear-gradient(135deg, #f4f5fb 0%, #cfd4ea 45%, #eef0fa 62%, #aab1d6 100%);
  --head-ink: #1f2440;
  border-color: #c6cbe6;
}

/* ---------- Sapphire: paket unggulan ---------- */
@property --pc-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.pc-sapphire {
  --accent: #5aa7ff; --accent-ink: #04152f;
  --head-bg: transparent;
  --head-ink: #fff;
  background: linear-gradient(165deg, #123c8f 0%, #0a2760 42%, #06142f 100%);
  color: #eaf2ff;
  border: 0;
  box-shadow: 0 24px 60px rgba(10, 46, 92, 0.45), 0 0 0 1px rgba(90, 167, 255, 0.25);
  animation: pcFloat 5s ease-in-out infinite;
}
@media (min-width: 1100px) { .pc-sapphire { transform: scale(1.04); } }
.pc-sapphire:hover { animation-play-state: paused; }

/* Bingkai cahaya yang berputar */
.pc-sapphire::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  border-radius: calc(var(--pc-radius) + 3px);
  background: conic-gradient(from var(--pc-angle), #1f6bff, #9fd0ff, #ffffff, #4aa3ff, #1f6bff);
  animation: pcSpin 5s linear infinite;
}
.pc-sapphire::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: var(--pc-radius);
  background: linear-gradient(165deg, #123c8f 0%, #0a2760 42%, #06142f 100%);
}
@keyframes pcSpin { to { --pc-angle: 360deg; } }
@keyframes pcFloat { 50% { translate: 0 -8px; } }

.pc-sapphire .pc-head {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #2f7bff 0%, #1448b8 55%, #0c2f7a 100%);
  padding-top: 32px;
}
.pc-sapphire .pc-head::after {   /* kilau yang lewat pelan */
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  animation: pcShine 4.5s ease-in-out infinite;
}
@keyframes pcShine { 0%, 55% { left: -60%; } 100% { left: 130%; } }

.pc-spark { position: absolute; color: #cfe5ff; font-size: 14px; line-height: 1; animation: pcTwinkle 2.6s ease-in-out infinite; pointer-events: none; }
.pc-spark:nth-of-type(1) { top: 14px; left: 18px; }
.pc-spark:nth-of-type(2) { top: 30px; right: 22px; font-size: 18px; animation-delay: 0.8s; }
.pc-spark:nth-of-type(3) { bottom: 12px; left: 34px; font-size: 11px; animation-delay: 1.5s; }
@keyframes pcTwinkle { 0%, 100% { opacity: 0.25; transform: scale(0.7); } 50% { opacity: 1; transform: scale(1.15); } }

.pc-pop {
  position: absolute;
  top: -15px; left: 50%;
  translate: -50% 0;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffe08a, #f6b93b);
  color: #3a2700;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(246, 185, 59, 0.5);
}

.pc-sapphire .pc-now,
.pc-sapphire .pc-sub { color: #fff; }
.pc-sapphire .pc-was { color: #9db6df; }
.pc-sapphire .pc-off { background: #ffe08a; color: #3a2700; }
.pc-sapphire .pc-sub { opacity: 0.85; }

.pc-per {
  margin: 10px 0 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 13px;
  color: #fff;
}
.pc-per b { color: #ffe08a; font-weight: 700; }

.pc-sapphire .pc-feat li { border-top-color: rgba(255, 255, 255, 0.14); color: #eaf2ff; }
.pc-sapphire .pc-feat li.pc-hero {
  margin: 4px -12px 6px;
  padding: 12px 12px 12px 40px;
  border: 1px solid rgba(255, 224, 138, 0.55);
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(255, 224, 138, 0.22), rgba(255, 224, 138, 0.06));
  font-size: 16px;
  color: #fff;
}
.pc-sapphire .pc-feat li.pc-hero::before { left: 12px; top: 13px; background: #ffe08a; }
.pc-sapphire .pc-feat li.pc-hero + li { border-top: 0; }

.pc-save {
  margin: 6px 26px 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(90, 167, 255, 0.16);
  border: 1px dashed rgba(159, 208, 255, 0.55);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  color: #d8e9ff;
}
.pc-save b { color: #ffe08a; }

.pc-sapphire .pc-btn {
  background: linear-gradient(90deg, #ffe08a, #f6b93b);
  color: #3a2700;
  font-size: 16px;
  padding: 15px 18px;
  box-shadow: 0 10px 26px rgba(246, 185, 59, 0.4);
  animation: pcPulse 2.4s ease-in-out infinite;
}
.pc-sapphire .pc-btn:hover { color: #3a2700; }
.pc-sapphire .pc-btn:focus-visible { outline-color: #fff; }
@keyframes pcPulse {
  0%, 100% { box-shadow: 0 10px 26px rgba(246, 185, 59, 0.4), 0 0 0 0 rgba(255, 224, 138, 0.55); }
  50%      { box-shadow: 0 10px 26px rgba(246, 185, 59, 0.4), 0 0 0 14px rgba(255, 224, 138, 0); }
}

/* Mobile: tanpa gerak berlebihan */
@media (max-width: 639px) {
  .pc-sapphire { animation: none; }
  .pc-promo { border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .pc-sapphire, .pc-sapphire::before, .pc-sapphire .pc-head::after, .pc-spark, .pc-sapphire .pc-btn { animation: none !important; }
}

/* ---------- Penegasan warna (tema memberi teks putih pada section ini) ---------- */
#harga .pc-promo, #harga .pc-promo .pc-promo-text { color: #2b2b3a; }
#harga .pc { color: #2b2b3a; }
#harga .pc-head h3, #harga .pc-head p { color: var(--head-ink); }
#harga .pc-head h3 { text-transform: none; }
#harga .pc-sub { color: #5d5d6b; }
#harga .pc-was { color: #6f6f7d; }
#harga .pc-feat li { color: #2b2b3a; }
#harga .pc-sapphire, #harga .pc-sapphire .pc-feat li, #harga .pc-sapphire .pc-now,
#harga .pc-sapphire .pc-sub, #harga .pc-sapphire .pc-head h3, #harga .pc-sapphire .pc-head p { color: #fff; }
#harga .pc-sapphire .pc-was { color: #b6caea; }
#harga .pc-sapphire .pc-feat li.pc-hero { color: #fff; }
#harga .pc-sapphire .pc-save { color: #d8e9ff; }
#harga .pc-btn, #harga .pc-btn:hover { color: var(--head-ink); }
#harga .pc-sapphire .pc-btn, #harga .pc-sapphire .pc-btn:hover { color: #3a2700; }
#harga .pc-count li { color: #fff; }

/* Rapatkan sedikit supaya kartu tidak terlalu panjang */
.pc-feat li { padding-top: 7px; padding-bottom: 7px; }
.pc-feat li::before { top: 9px; }
.pc-sapphire .pc-feat li.pc-hero { padding-top: 10px; padding-bottom: 10px; }
.pc-sapphire .pc-feat li.pc-hero::before { top: 11px; }
.pc-price { min-height: 140px; }
.pc-per { line-height: 1.3; font-size: 12.5px; white-space: nowrap; }
