/* =============================================================================
   act-paket-kredit.css — Antarmuka Modal & Kartu Paket Kredit Berjenjang cont-ACT
   AutoClaryTech (ACT) - Sesuai Dhawuh Bapak & Mas Bey (Duitku Payment Gateway)
============================================================================= */

.modal-paket-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-paket-overlay.aktif {
  display: flex;
  opacity: 1;
}

.modal-paket-card {
  background: #0F172A;
  border: 1px solid #1E293B;
  border-radius: 18px;
  max-width: 680px;
  width: 100%;
  box-sizing: border-box;
  padding: 24px;
  color: #E2E8F0;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  max-height: 94vh;
  overflow-y: auto;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-paket-overlay.aktif .modal-paket-card {
  transform: translateY(0) scale(1);
}

.modal-paket-tutup {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #1E293B;
  border: none;
  color: #94A3B8;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.15s ease;
}

.modal-paket-tutup:hover {
  background: #334155;
  color: #F8FAFC;
}

/* Switcher Tab */
.paket-tab-switcher {
  display: flex;
  background: #1E293B;
  padding: 4px;
  border-radius: 12px;
  margin: 16px 0 20px;
  gap: 4px;
}

.paket-tab-btn {
  flex: 1;
  padding: 9px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #94A3B8;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.paket-tab-btn.aktif {
  background: #0F172A;
  color: #38BDF8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Grid Paket */
.grid-paket-kartu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .grid-paket-kartu {
    grid-template-columns: 1fr;
  }
}

.kartu-paket-item {
  background: #1E293B;
  border: 1.5px solid #334155;
  border-radius: 14px;
  padding: 16px 14px;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.kartu-paket-item:hover {
  border-color: #0284C7;
  transform: translateY(-2px);
}

.kartu-paket-item.terpilih {
  border-color: #00D2B4;
  background: #132337;
  box-shadow: 0 0 0 2px rgba(0, 210, 180, 0.3);
}

.kartu-paket-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #059669, #10B981);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.kartu-paket-badge.gold {
  background: linear-gradient(135deg, #D97706, #F59E0B);
}

.kartu-paket-nama {
  font-size: 14px;
  font-weight: 800;
  color: #F8FAFC;
  margin-bottom: 6px;
}

.kartu-paket-harga {
  font-size: 22px;
  font-weight: 800;
  color: #38BDF8;
  margin-bottom: 4px;
  font-family: inherit;
}

.kartu-paket-satuan {
  font-size: 11px;
  color: #94A3B8;
  margin-bottom: 12px;
}

.kartu-paket-fitur {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  font-size: 11.5px;
  color: #CBD5E1;
  text-align: left;
  line-height: 1.5;
}

.kartu-paket-fitur li {
  margin-bottom: 6px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.kartu-paket-fitur li svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  stroke: #00D2B4;
  margin-top: 1px;
}

/* Form Identitas Pembeli */
.box-form-checkout {
  background: #162032;
  border: 1px solid #1E293B;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.input-wa-checkout {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1.5px solid #334155;
  background: #0F172A;
  color: #F8FAFC;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.input-wa-checkout:focus {
  border-color: #38BDF8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

/* Tombol Bayar Instan */
.btn-bayar-instan {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 18px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #059669, #00A896);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
  transition: all 0.2s ease;
}

.btn-bayar-instan:hover {
  background: linear-gradient(135deg, #047857, #028090);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.45);
}

.btn-bayar-instan:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
