/* =========================
   TABLE STYLE
   ========================= */
.modern-table {
  border-radius: 15px;
  overflow: hidden;
}

.modern-table tbody tr {
  transition: 0.2s ease;
}

.modern-table tbody tr:hover {
  background-color: #f8fbff;
  transform: scale(1.003);
}

.modern-table thead {
  background: linear-gradient(90deg, #f8f9fa, #ffffff);
}

.btn i {
  font-size: 14px;
}

/* =========================
   KARTU PEMBAYARAN UTAMA
   ========================= */

#kartuTahunan {
  display: block;
  /* justify-content: center; */
  width: 100%;
}

.kartu-scale-wrap {
  width: 100%;
  display: flex; /* jangan flex */
  justify-content: center;
}

#areaCetak.kartu-gold {
  width: 27%;
  max-width: 100%;
  margin: 0;
  /* width: min(720px, 100%); */
  /* aspect-ratio: 720 / 450; */
  border-radius: 10px;
  padding: 2px;
  color: #f5d47a;
  font-family: "Segoe UI", sans-serif;
  position: relative;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(255, 215, 0, 0.15),
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 215, 0, 0.08),
      transparent 40%
    ),
    linear-gradient(135deg, #0d0d0d, #1a1a1a 40%, #0f0f0f);
}

/* Glow background */
.kartu-gold::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.15), transparent 70%);
  transform: rotate(25deg);
}

/* =========================
   HEADER
   ========================= */

.kartu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  padding-bottom: 6px;
}

.kartu-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(255, 215, 0, 0.2),
    gold,
    rgba(255, 215, 0, 0.2)
  );
}

.header-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-rt {
  width: 20px;
  object-fit: contain;
  /* filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.6)); */
}

.header-text h6 {
  margin: 0;
  font-weight: 100;
}

/* .header-text small {
  opacity: 0.8;
} */

/* =========================
   BADGE STATUS
   ========================= */

.badge-lunas {
  margin-left: auto;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  background: linear-gradient(135deg, #00c853, #69f0ae);
  color: black;
  box-shadow: 0 0 12px rgba(0, 200, 83, 0.7);
  display: flex;
  align-items: center;
  gap: 6px;
  animation: glowPulse 2s infinite;
}

/* =========================
   BODY
   ========================= */

.kartu-body {
  flex: 1;
  margin: 6px;
}

/* .kartu-body h3 {
  font-weight: 700;
  letter-spacing: 1px;
} */

.namaWargaCetak,
.tahunCetak {
  font-size: 12px;
}

/* GRID BULAN */
.grid-bulan {
  margin-top: 1px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 6px;
}

.bulan-item {
  border-radius: 10px;
  padding: 2px;
  font-size: 8px;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.3);
  text-align: center;
}

.bulan-title {
  color: red;
  background-color: yellow;
  border-radius: 10px;
}

.bulan-item .bulan-title {
  font-weight: bold;
  margin-bottom: 2px;
}

/* STATUS */
.lunas {
  background: linear-gradient(135deg, #00c853, #69f0ae);
  color: black;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(0, 200, 83, 0.6);
}

.belum {
  background: rgba(255, 0, 0, 0.2);
  border: 1px solid red;
  color: #ffb3b3;
}

/* =========================
   FOOTER
   ========================= */

.kartu-footer {
  margin-left: 6px;
  font-size: 8px;
  opacity: 0.8;
}

/* =========================
   ICON
   ========================= */

.icon-check {
  font-weight: bold;
}

.icon-cross {
  font-weight: bold;
  color: #ffcccc;
}

/* =========================
   ANIMATION
   ========================= */

@keyframes glowPulse {
  0% {
    box-shadow: 0 0 8px rgba(0, 200, 83, 0.4);
  }
  50% {
    box-shadow: 0 0 16px rgba(0, 200, 83, 0.9);
  }
  100% {
    box-shadow: 0 0 8px rgba(0, 200, 83, 0.4);
  }
}

/* =========================
   PREMIUM MOBILE CARD (LIST)
   ========================= */

.premium-card {
  background: linear-gradient(145deg, #ffffff, #f8fbff);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease;
}

.premium-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.bulan-badge {
  background: #eef4ff;
  color: #0d6efd;
  padding: 7px 14px;
  border-radius: 12px;
  font-size: 13px;
}

.nominal-section {
  font-size: 20px;
  font-weight: bold;
  color: #00a651;
}

.nominal-inline {
  font-weight: bold;
  font-size: 16px;
  color: #00a651;
}

/* =========================
   ACCORDION
   ========================= */

.accordion-button {
  border-radius: 15px !important;
}

.accordion-item {
  border-radius: 20px;
  overflow: hidden;
}

.accordion-body {
  background: transparent;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 576px) {
  #listIuranGang tr {
    display: table-row !important;
  }

  #listIuranGang td {
    display: table-cell !important;
    white-space: nowrap;
    vertical-align: middle;
  }
}

@media (max-width: 768px) {
  #listIuranGang tr {
    display: table-row !important;
  }

  #listIuranGang td {
    display: table-cell !important;
    white-space: nowrap;
    vertical-align: middle;
  }

  #kartuTahunan {
    display: block;
    /* justify-content: center; */
    width: 100%;
  }

  .kartu-scale-wrap {
    width: 100%;
    display: block; /* jangan flex */
  }

  #areaCetak.kartu-gold {
    width: 100%; /* full lebar layar */
    max-width: 100%;
    margin: 0;
    border-radius: 10px;
  }

  .logo-rt {
    width: 40px;
  }

  .header-text h6 {
    font-size: 1rem;
  }

  .header-text small {
    font-size: 0.75rem;
  }

  .kartu-body h3 {
    font-size: 1.05rem;
  }

  .namaWargaCetak,
  .tahunCetak {
    font-size: 8px;
    margin-bottom: 3px;
  }

  .grid-bulan {
    margin-top: 1px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 12px;
  }

  .bulan-item {
    font-size: 8px;
    padding: 1px;
  }

  .badge-lunas {
    background: linear-gradient(135deg, #00c853, #69f0ae);
    color: black;
    font-size: 8px;
    padding: 3px 6px;
    border-radius: 25px;
    font-weight: 600;
  }

  .kartu-footer {
    margin-left: 6px;
  }
}

@media (max-width: 480px) {
  #areaCetak.kartu-gold {
    padding: 2px;
  }

  .grid-bulan {
    gap: 6px;
  }

  .bulan-item {
    font-size: 8px;
    padding: 1px;
  }
}
