/*!
 * Deposit + Penarikan — layout & form rapi.
 */

.trx-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 0.75rem 0.85rem 2rem;
}

/* ---- Tab Deposit / Penarikan ---- */
.trx-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}

.trx-tabs__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 0.5rem;
  text-transform: uppercase;
  text-decoration: none !important;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff !important;
  border: 1px solid rgba(254, 216, 4, 0.35);
  background: transparent;
  min-height: 3rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.trx-tabs__item img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.trx-tabs__item:hover {
  color: #000 !important;
  background: rgba(254, 216, 4, 0.85);
  border-color: rgb(254, 216, 4);
  text-decoration: none !important;
}

.trx-tabs__item:hover img {
  filter: brightness(0);
}

.trx-tabs__item.is-active {
  color: #000 !important;
  background: rgb(254, 216, 4);
  border-color: rgb(254, 216, 4);
}

.trx-tabs__item.is-active img {
  filter: brightness(0);
}

/* ---- Meta row (riwayat / saldo) ---- */
.trx-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.trx-meta__link {
  color: #9ecbff !important;
  text-decoration: underline !important;
  font-size: 0.9rem;
}

.trx-meta__link:hover {
  color: #fff !important;
}

.trx-meta__akun {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: #bbb !important;
  text-decoration: none !important;
  font-size: 0.95rem;
  font-weight: 600;
}

.trx-meta__akun:hover {
  color: #fefb00 !important;
}

.trx-saldo {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.25;
}

.trx-saldo__label {
  color: #9a9a9a;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.trx-saldo__value {
  color: #fefb00;
  font-size: 1.05rem;
  font-weight: 700;
}

/* ---- Card / form blocks ---- */
.trx-card {
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  padding: 0.85rem 0.95rem;
  margin: 0 0 0.85rem;
}

.trx-card__label {
  display: block;
  margin: 0 0 0.5rem;
  color: #ddd;
  font-size: 0.875rem;
  font-weight: 600;
}

.trx-card__hint {
  display: block;
  margin-top: 0.45rem;
  color: #9a9a9a;
  font-size: 0.8rem;
}

.trx-card__nominal {
  display: block;
  margin-top: 0.35rem;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
}

.trx-page .form-control,
.trx-page .form-select {
  background: #1e1e1e;
  border: 1px solid #3a3a3a;
  color: #fff;
  border-radius: 4px;
  font-size: 0.9rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.7rem;
}

.trx-page .form-control:focus,
.trx-page .form-select:focus {
  background: #222;
  border-color: rgb(254, 216, 4);
  color: #fff;
  box-shadow: 0 0 0 0.15rem rgba(254, 216, 4, 0.25);
}

.trx-page .form-control::placeholder {
  color: #777;
}

.trx-page .form-select option {
  background: #1e1e1e;
  color: #fff;
}

/* Metode pembayaran grid */
.trx-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 0.5rem;
}

.trx-methods a {
  text-decoration: none !important;
  color: inherit;
}

.trx-methods .kotak-pembayaran,
.trx-methods .kotak-pembayaran-aktif {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.7rem 0.4rem;
  border-radius: 6px;
  min-height: 4.25rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.trx-methods .kotak-pembayaran img,
.trx-methods .kotak-pembayaran-aktif img {
  width: 26px;
  height: 26px;
}

/* Catatan box — pastikan lebar penuh di dalam page */
.trx-page .deposit-note {
  margin-bottom: 1rem;
  width: 100%;
}

.trx-page .deposit-note-content {
  font-size: 0.85rem;
  line-height: 1.45;
}

.trx-page .deposit-note-content ol {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
}

/* Bank info cards di dalam deposit */
.trx-page .bank-info {
  display: none;
  margin-top: 0.65rem;
}

.trx-page .bank-info.is-visible {
  display: block;
}

.trx-submit {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.85rem 1rem;
  background: rgb(254, 216, 4);
  color: #000;
  border: 0;
  border-radius: 0;
  text-transform: uppercase;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.trx-submit:hover {
  background: #ffe44a;
  color: #000;
}

.trx-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

#bonus-preview {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #d0b300;
}

@media (max-width: 420px) {
  .trx-meta {
    flex-direction: column;
    align-items: stretch;
  }

  .trx-saldo {
    align-items: flex-start;
  }
}
