/* GPIB Aplikasi — gaya halaman katalog aplikasi (gaya halaman top-up). */

.gpib-apl-main {
  --apl-radius: 16px;
  background: var(--paper, #f7f5f0);
}

/* ---------- Bilah identitas ---------- */
.gpib-apl-bilah {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--white, #fff);
  border: 1px solid var(--line, #e2e7ee);
  border-radius: var(--radius, 14px);
  padding: 12px 16px;
  box-shadow: var(--shadow-sm, 0 2px 10px rgba(11, 35, 65, .06));
  margin-bottom: 26px;
}
.gpib-apl-aku {
  margin: 0;
  font-size: 14px;
  color: var(--muted, #5f6d80);
  display: flex;
  align-items: center;
  gap: 8px;
}
.gpib-apl-aku strong { color: var(--navy, #0b2341); }
.gpib-apl-aku em { font-style: normal; color: var(--gold-2, #c28f2e); font-size: 12px; }
.gpib-apl-titik {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--green, #3f8a5f);
  box-shadow: 0 0 0 4px rgba(63, 138, 95, .16);
  flex: none;
}
.gpib-apl-keluar {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--navy, #0b2341);
  border: 1px solid var(--line, #e2e7ee);
  border-radius: 999px;
  padding: 7px 15px;
  transition: background .18s, border-color .18s, color .18s;
}
.gpib-apl-keluar:hover { background: var(--navy, #0b2341); color: #fff; border-color: var(--navy, #0b2341); }

/* ---------- Seksi ---------- */
.gpib-apl-seksi { margin-bottom: 34px; }
.gpib-apl-seksi:last-of-type { margin-bottom: 12px; }

.gpib-apl-seksi-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line, #e2e7ee);
}
.gpib-apl-seksi-no {
  font-family: var(--serif, Georgia, serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-2, #c28f2e);
  background: var(--gold-soft, #fbf1dc);
  border-radius: 8px;
  padding: 5px 9px;
  line-height: 1;
  margin-top: 2px;
  flex: none;
}
.gpib-apl-seksi-head h3 {
  margin: 0 0 2px;
  font-family: var(--serif, Georgia, serif);
  font-size: 21px;
  color: var(--navy, #0b2341);
}
.gpib-apl-seksi-head p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted, #5f6d80);
}

/* ---------- Grid kartu ---------- */
.gpib-apl-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 14px;
}
.gpib-apl-item { display: flex; }

.gpib-apl-kartu {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  width: 100%;
  padding: 18px 12px 15px;
  background: var(--white, #fff);
  border: 1px solid var(--line, #e2e7ee);
  border-radius: var(--apl-radius);
  text-decoration: none;
  color: var(--ink, #152238);
  box-shadow: var(--shadow-sm, 0 2px 10px rgba(11, 35, 65, .06));
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
a.gpib-apl-kartu:hover,
a.gpib-apl-kartu:focus-visible {
  transform: translateY(-3px);
  border-color: var(--navy-3, #1d4c7d);
  box-shadow: 0 14px 30px rgba(11, 35, 65, .14);
  outline: none;
}
.gpib-apl-kartu.is-mati { opacity: .62; }

.gpib-apl-ikon {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  background: var(--tint, #f1f4f8);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 6px;
  flex: none;
}
.gpib-apl-ikon img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.gpib-apl-inisial {
  font-family: var(--serif, Georgia, serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--navy-2, #143a63);
}
.gpib-apl-nama {
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.32;
  color: var(--navy, #0b2341);
}
.gpib-apl-badge {
  display: inline-block;
  font-style: normal;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--gold-2, #c28f2e);
  border-radius: 999px;
  padding: 2px 7px;
  margin-left: 5px;
  vertical-align: 1px;
}
.gpib-apl-ket {
  font-size: 12.5px;
  color: var(--muted, #5f6d80);
  line-height: 1.4;
}
.gpib-apl-ket-mati { color: var(--red, #c8393b); }

.gpib-apl-kaki {
  margin-top: 26px;
  font-size: 13px;
  color: var(--muted, #5f6d80);
}

/* ---------- Keadaan kosong ---------- */
.gpib-apl-kosong {
  background: var(--white, #fff);
  border: 1px dashed var(--line, #e2e7ee);
  border-radius: var(--apl-radius);
  padding: 26px;
  color: var(--muted, #5f6d80);
  font-size: 14px;
}
.gpib-apl-kosong p { margin: 0 0 6px; }

/* ---------- Gerbang masuk ---------- */
.gpib-apl-gerbang {
  display: flex;
  justify-content: center;
  padding: 8px 0 24px;
}
.gpib-apl-gerbang-kartu {
  width: 100%;
  max-width: 520px;
  text-align: center;
  background: var(--white, #fff);
  border: 1px solid var(--line, #e2e7ee);
  border-radius: 20px;
  padding: 34px 30px 30px;
  box-shadow: var(--shadow, 0 14px 40px rgba(11, 35, 65, .12));
}
.gpib-apl-gerbang-ikon {
  width: 62px; height: 62px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: linear-gradient(150deg, var(--navy, #0b2341), var(--navy-3, #1d4c7d));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.gpib-apl-gerbang-kartu h2 {
  margin: 0 0 8px;
  font-family: var(--serif, Georgia, serif);
  font-size: 23px;
  color: var(--navy, #0b2341);
}
.gpib-apl-gerbang-kartu > p {
  margin: 0 0 20px;
  font-size: 14.5px;
  color: var(--muted, #5f6d80);
  line-height: 1.6;
}
.gpib-apl-tombol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 340px;
  min-height: 52px;
  padding: 13px 22px;
  border: 1px solid var(--line, #e2e7ee);
  border-radius: 999px;
  background: var(--white, #fff);
  color: var(--navy, #0b2341);
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(11, 35, 65, .10);
  transition: box-shadow .15s, transform .15s, background .15s, border-color .15s;
}
.gpib-apl-tombol:hover { box-shadow: 0 6px 20px rgba(11, 35, 65, .16); transform: translateY(-1px); }
.gpib-apl-tombol:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(11, 35, 65, .12); }
.gpib-apl-tombol:focus-visible { outline: 3px solid var(--navy-3, #1d4c7d); outline-offset: 2px; }
.gpib-apl-tombol[aria-busy="true"] { opacity: .72; cursor: progress; }
.gpib-apl-tombol .gpib-apl-g { display: inline-flex; align-items: center; }
.gpib-apl-tombol-teks { text-align: left; }
.gpib-apl-gsi { display: flex; justify-content: center; min-height: 44px; margin-top: 12px; }
.gpib-apl-gsi[hidden] { display: none; }
.gpib-apl-pesan { min-height: 20px; margin: 12px 0 0 !important; font-size: 13.5px; color: var(--red, #c8393b); }
.gpib-apl-pesan.is-ok { color: var(--green, #3f8a5f); }
.gpib-apl-kecil { margin: 14px 0 0 !important; font-size: 12.5px; color: var(--muted, #5f6d80); }
.gpib-apl-notice {
  text-align: left;
  background: var(--gold-soft, #fbf1dc);
  border-left: 4px solid var(--gold-2, #c28f2e);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13.5px;
  color: #6b4c12;
  line-height: 1.55;
}

/* ---------- Lebar kecil ---------- */
@media (max-width: 720px) {
  .gpib-apl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gpib-apl-kartu { padding: 14px 9px 12px; border-radius: 14px; }
  .gpib-apl-ikon { width: 52px; height: 52px; margin-bottom: 4px; }
  .gpib-apl-nama { font-size: 13.5px; }
  .gpib-apl-ket { font-size: 11.5px; }
  .gpib-apl-seksi-head h3 { font-size: 18px; }
  .gpib-apl-gerbang-kartu { padding: 26px 18px 24px; }
}
@media (max-width: 380px) {
  .gpib-apl-grid { grid-template-columns: minmax(0, 1fr); }
}
