/* ===== Sultan Top Up — Halaman fitur (Cek Transaksi, Leaderboard, Kalkulator) ===== */

.feature-page {
  padding: 30px 0 60px;
}

.feature-page .page-head {
  margin-bottom: 24px;
}

.feature-page .page-head h1 {
  margin: 0 0 6px;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.feature-page .page-head p {
  margin: 0;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.7;
}

.panel {
  background: linear-gradient(180deg, rgba(21, 21, 21, 0.96), rgba(11, 11, 11, 0.92));
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 26px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
  padding: 26px;
}

.panel + .panel {
  margin-top: 22px;
}

.panel h2 {
  margin: 0 0 16px;
  font-size: 1.2rem;
}

/* ---------- Search / filter row ---------- */
.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.inline-form label {
  flex: 1;
  min-width: 200px;
}

.inline-form .btn {
  flex-shrink: 0;
}

.seg {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  flex-wrap: wrap;
}

.seg button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.seg button.is-active {
  background: rgba(255, 216, 102, 0.12);
  border-color: rgba(212, 175, 55, 0.4);
  color: var(--text);
}

/* ---------- Status pill ---------- */
.status-pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.status-pill.menunggu { background: rgba(255, 216, 102, 0.12); color: var(--gold-light); border-color: rgba(212, 175, 55, 0.4); }
.status-pill.diproses { background: rgba(122, 162, 255, 0.14); color: #a9c0ff; border-color: rgba(122, 162, 255, 0.4); }
.status-pill.selesai  { background: rgba(42, 195, 139, 0.14); color: #7ce0b8; border-color: rgba(42, 195, 139, 0.4); }
.status-pill.batal    { background: rgba(255, 107, 107, 0.14); color: #ffb1b1; border-color: rgba(255, 107, 107, 0.4); }

/* ---------- Result cards (Cek Transaksi) ---------- */
.result-list {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.txn-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
}

.txn-card .txn-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.txn-card .txn-id {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.txn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.txn-grid div span {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.txn-grid div strong {
  font-size: 0.98rem;
}

.txn-grid .accent strong {
  color: var(--gold-light);
}

/* ---------- Empty / message states ---------- */
.state-msg {
  margin-top: 20px;
  padding: 26px;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed rgba(212, 175, 55, 0.3);
  border-radius: 18px;
}

.state-msg strong {
  color: var(--text);
}

/* ---------- Leaderboard ---------- */
.lb-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.lb-table th,
.lb-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lb-table th {
  color: var(--text-muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lb-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.lb-rank {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lb-table tr.top-1 .lb-rank { background: linear-gradient(135deg, #ffe487, #d4af37); color: #1d1400; border: none; }
.lb-table tr.top-2 .lb-rank { background: linear-gradient(135deg, #e8e8e8, #a9a9a9); color: #1d1d1d; border: none; }
.lb-table tr.top-3 .lb-rank { background: linear-gradient(135deg, #f0b17a, #b3763d); color: #1d1400; border: none; }

.lb-table tr.top-1 td,
.lb-table tr.top-2 td,
.lb-table tr.top-3 td {
  background: rgba(255, 216, 102, 0.04);
}

.lb-name {
  font-weight: 700;
}

.lb-podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.podium-card {
  text-align: center;
  padding: 22px 16px;
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: rgba(255, 255, 255, 0.02);
}

.podium-card .medal {
  font-size: 1.8rem;
}

.podium-card .p-name {
  margin: 10px 0 4px;
  font-weight: 800;
  font-size: 1.05rem;
  word-break: break-word;
}

.podium-card .p-amount {
  color: var(--gold-light);
  font-weight: 700;
}

.podium-card .p-meta {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ---------- Calculator ---------- */
.calc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 22px;
  align-items: start;
}

.calc-output {
  position: sticky;
  top: 96px;
}

.calc-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.calc-line strong {
  color: var(--text);
}

.calc-line.grand {
  border-bottom: none;
  padding-top: 16px;
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-size: 1.05rem;
}

.calc-line.grand strong {
  color: var(--gold-light);
  font-size: 1.4rem;
}

.calc-big {
  text-align: center;
  padding: 18px 0 8px;
}

.calc-big span {
  display: block;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.calc-big strong {
  display: block;
  margin-top: 6px;
  font-size: 2.2rem;
  color: var(--gold-light);
}

.calc-note {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.field-hint {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
}

@media (max-width: 980px) {
  .calc-layout {
    grid-template-columns: 1fr;
  }

  .calc-output {
    position: static;
  }

  .lb-podium {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .lb-table th:nth-child(4),
  .lb-table td:nth-child(4) {
    display: none;
  }
}
