/* ==========================================================================
   TOPUPGAMEZ CHECK TRANSACTION REPLICA — Scoped strictly to body.tgz-invoices
   Reverse-Engineered from https://topupgamez.id/id/check-transaction via Chrome & REA
   ========================================================================== */

.tgz-trx-main {
  min-height: calc(100vh - 140px);
  padding: 24px 0 56px;
}

.tgz-trx-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 900px) {
  .tgz-trx-layout {
    flex-direction: row;
    align-items: flex-start;
  }
}

.tgz-trx-left {
  flex: 7 1 0%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tgz-trx-right {
  flex: 3 1 0%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 900px) {
  .tgz-trx-right {
    position: sticky;
    top: 124px;
  }
}

/* ---------- HERO BANNER CARD (exact TopupGamez min-h-40 rounded-lg) ---------- */
.tgz-trx-hero {
  position: relative;
  min-height: 160px;
  padding: 18px 20px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  background-color: #111111;
  background-image: linear-gradient(135deg, rgba(235, 178, 59, 0.16) 0%, rgba(17, 17, 17, 0.96) 55%, #000000 100%);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.25), 0 2px 4px -2px rgba(0, 0, 0, 0.18);
}

.tgz-trx-hero h1 {
  margin: 0;
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
  color: #ffffff;
}

.tgz-trx-hero p {
  margin: 0;
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  max-width: 760px;
}

@media (min-width: 768px) {
  .tgz-trx-hero {
    padding: 20px 24px;
  }
  .tgz-trx-hero h1 {
    font-size: 24px;
    line-height: 32px;
  }
  .tgz-trx-hero p {
    font-size: 16px;
    line-height: 24px;
  }
}

/* ---------- SEARCH & TABLE CARD (exact TopupGamez p-3.5 rounded-lg bg-[#111111]) ---------- */
.tgz-trx-card {
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.25), 0 2px 4px -2px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (min-width: 768px) {
  .tgz-trx-card {
    padding: 16px;
  }
}

.tgz-trx-label {
  margin: 0 0 8px;
  display: block;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

/* Exact TopupGamez white rounded-full pill + 46x32 magenta pill button */
.tgz-trx-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid transparent;
  border-radius: 9999px;
  padding: 6px 6px 6px 14px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.tgz-trx-pill:focus-within {
  border-color: #EBB23B;
  box-shadow: 0 0 0 3px rgba(235, 178, 59, 0.28);
}

.tgz-trx-pill input {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  background: transparent !important;
  color: #000000 !important;
  font-size: 15px;
  line-height: 24px;
  font-weight: 400;
  padding: 0 4px !important;
  outline: none !important;
  box-shadow: none !important;
}

.tgz-trx-pill input::placeholder {
  color: #6b7280;
}

.tgz-trx-pill__btn {
  width: 46px;
  height: 32px;
  padding: 0 14px;
  flex: none;
  border: 0;
  border-radius: 9999px;
  background: #EBB23B;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.15s ease;
}

.tgz-trx-pill__btn:hover:not(:disabled) {
  background: rgba(235, 178, 59, 0.82);
}

.tgz-trx-pill__btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.tgz-trx-pill__btn.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.tgz-trx-hint {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 16px;
  color: rgba(255, 255, 255, 0.62);
}

.tgz-trx-error {
  margin: 10px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(235, 178, 59, 0.14);
  border: 1px solid rgba(235, 178, 59, 0.4);
  color: #EBB23B;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- NOT FOUND STATE (exact TopupGamez Invoice Tidak Ditemukan) ---------- */
.tgz-trx-empty {
  text-align: center;
  padding: 28px 16px;
  border-radius: 10px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.42);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.tgz-trx-empty__art {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tgz-trx-empty__art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tgz-trx-empty h2 {
  margin: 0;
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
  color: #ffffff;
}

.tgz-trx-empty p {
  margin: 0;
  font-size: 13.5px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 440px;
}

.tgz-trx-empty__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 8px 20px;
  border-radius: 10px;
  background: #EBB23B;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.tgz-trx-empty__btn:hover {
  background: rgba(235, 178, 59, 0.85);
}

/* ---------- FOUND TRANSACTION DETAIL CARD ---------- */
.tgz-trx-detail {
  padding: 18px;
  border-radius: 10px;
  background: #000000;
  border: 1px solid #EBB23B;
  box-shadow: 0 12px 30px -16px rgba(235, 178, 59, 0.4);
}

.tgz-trx-detail__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 42px;
  margin-top: 14px;
  border-radius: 10px;
  background: #EBB23B;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.tgz-trx-detail__cta:hover {
  background: rgba(235, 178, 59, 0.85);
}

/* ---------- RECENT 10 TRANSACTIONS TABLE (exact TopupGamez 5-col bordered grid) ---------- */
.tgz-trx-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: transparent;
}

.tgz-trx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 20px;
  min-width: 620px;
}

.tgz-trx-table th {
  height: 48px;
  padding: 0 10px;
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  border-right: 1px solid rgba(255, 255, 255, 0.42);
  white-space: nowrap;
}

.tgz-trx-table th:last-child {
  border-right: 0;
}

.tgz-trx-table td {
  padding: 10px;
  vertical-align: middle;
  font-size: 14px;
  line-height: 20px;
  color: #ffffff;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  border-right: 1px solid rgba(255, 255, 255, 0.42);
}

.tgz-trx-table td:last-child {
  border-right: 0;
}

.tgz-trx-table tbody tr:last-child td {
  border-bottom: 0;
}

.tgz-trx-table tbody tr:hover {
  background: rgba(235, 178, 59, 0.06);
}

.tgz-trx-table-empty {
  padding: 24px 16px;
  text-align: center;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.62);
}

/* Exact TopupGamez pastel pill status badges */
.tgz-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 9999px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  white-space: nowrap;
  text-transform: capitalize;
}

.tgz-status-pill--success {
  background: rgba(235, 178, 59, 0.16);
  color: #F5C542;
}

.tgz-status-pill--pending {
  background: rgba(245, 197, 66, 0.16);
  color: #EBB23B;
}

.tgz-status-pill--failed {
  background: rgba(255, 255, 255, 0.08);
  color: #D4D4D8;
}

/* ---------- RIGHT SIDEBAR CARDS (Exact TopupGamez anatomy) ---------- */
.tgz-invoices .tgz-reseller-card {
  display: flex !important;
  flex: none !important;
  min-height: auto;
  justify-content: flex-start;
  padding: 20px;
  border-radius: 10px;
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.25), 0 2px 4px -2px rgba(0, 0, 0, 0.18);
}

/* Help Center Card ("Ada Kendala?") */
.tgz-help-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-radius: 10px;
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.25), 0 2px 4px -2px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.tgz-help-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.tgz-help-card__body h3 {
  margin: 0;
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
  color: #ffffff;
}

.tgz-help-card__body p {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  color: rgba(255, 255, 255, 0.78);
}

.tgz-help-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 6px 20px;
  border-radius: 10px;
  background: #EBB23B;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.tgz-help-card__btn:hover {
  background: rgba(235, 178, 59, 0.85);
}

.tgz-help-card__art {
  width: 84px;
  height: 84px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tgz-help-card__art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Social Media Card (Exact TopupGamez full-bleed 2:1 top banner + bottom title & icons) */
.tgz-social-card {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.25), 0 2px 4px -2px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.tgz-social-card__banner {
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: #000000;
}

.tgz-social-card__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tgz-social-card__body {
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tgz-social-card__body h3 {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  color: #ffffff;
}

@media (min-width: 1024px) {
  .tgz-social-card__body h3 {
    font-size: 18px;
    line-height: 26px;
  }
}

.tgz-social-card__links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tgz-social-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.tgz-social-card__icon:hover {
  background: rgba(235, 178, 59, 0.22);
  color: #EBB23B !important;
}

/* Preserve legacy .tgz-side-card used by leaderboard & calculators */
.tgz-side-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  background: var(--tgz-third);
  border: 1px solid var(--tgz-border-secondary);
  overflow: hidden;
}

.tgz-side-card h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.tgz-side-card p {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--tgz-text-secondary);
  line-height: 1.45;
}

.tgz-side-card img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  flex: none;
}
