.riwayat-wrapper {
  padding-top: 100px;
  padding-bottom: 80px;
  background: #f8fbff;
  min-height: 100vh;
}
.riwayat-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}
.riwayat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.riwayat-header h1 {
  font-size: 26px;
  font-weight: 800;
  color: #1a202c;
}
.riwayat-header p {
  font-size: 13px;
  color: #718096;
  margin-bottom: 24px;
}
.btn-refresh {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: white;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  color: #1a202c;
  transition: all 0.2s;
}
.btn-refresh:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.trx-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.trx-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #edf2f7;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.trx-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.trx-status {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}
.status-success {
  background: rgba(0,166,81,0.1);
  color: #00a651;
  border: 1px solid rgba(0,166,81,0.2);
}
.status-pending {
  background: rgba(245,197,24,0.1);
  color: #c9931c;
  border: 1px solid rgba(245,197,24,0.2);
}
.status-failed,
.status-cancelled {
  background: rgba(239,68,68,0.1);
  color: #dc2626;
  border: 1px solid rgba(239,68,68,0.2);
}
.trx-program-name {
  font-size: 16px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 4px;
  padding-right: 80px;
}
.trx-date {
  font-size: 12px;
  color: #a0aec0;
  margin-bottom: 14px;
}
.trx-amount {
  font-size: 22px;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 6px;
}
.trx-method {
  font-size: 12px;
  color: #718096;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 12px;
}
.trx-kode-label {
  font-size: 11px;
  color: #a0aec0;
  margin-bottom: 4px;
}
.trx-kode {
  font-size: 12px;
  color: #4a5568;
  font-family: monospace;
  background: #f8f9fa;
  padding: 8px 12px;
  border-radius: 8px;
  letter-spacing: 0.5px;
  word-break: break-all;
}
.btn-invoice {
  width: 100%;
  margin-top: 14px;
  padding: 10px;
  background: #f8f9fa;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  color: #4a5568;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}
.btn-invoice:hover {
  background: var(--orange);
  color: white;
}
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #a0aec0;
}
.empty-state i {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}
.empty-state p {
  font-size: 15px;
  margin-bottom: 20px;
}
.empty-state a {
  display: inline-block;
  padding: 12px 24px;
  background: var(--orange);
  color: white;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}
@media (max-width: 768px) {
  .trx-grid {
    grid-template-columns: 1fr;
  }
}

.btn-pay { width: 100%; padding: 10px; background: #1a202c; border: none; border-radius: 10px; font-weight: 600; font-size: 12px; cursor: pointer; color: white; display: flex; align-items: center; justify-content: center; gap: 6px; transition: all 0.2s; } .btn-pay:hover { background: #2d3748; } .btn-cancel { padding: 10px 16px; background: white; border: 1px solid #ef4444; border-radius: 10px; font-weight: 600; font-size: 12px; cursor: pointer; color: #ef4444; display: flex; align-items: center; justify-content: center; gap: 6px; transition: all 0.2s; } .btn-cancel:hover { background: #fef2f2; }
