/* Halaman Akun Saya (dashboard pemain). */
.account { display: grid; gap: 18px; padding: 28px 0 56px; }

/* Profil */
.profile { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; }
.avatar {
  width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center;
  background: var(--sun); color: #5a3a00; font-family: var(--display); font-size: 40px;
  box-shadow: 0 4px 0 var(--sun-dark);
}
.profile h1 { font-size: clamp(30px, 5vw, 42px); color: var(--ink); overflow-wrap: anywhere; }
.profile-sub { color: var(--muted); margin-top: 2px; }

/* Saldo: satu blok besar dengan pembatas, bukan tiga kartu seragam */
.money {
  display: grid; grid-template-columns: 1.2fr 1fr; background: var(--card); border-radius: 22px;
  box-shadow: var(--shadow); overflow: hidden;
}
.money-item { padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.money-item + .money-item { border-left: 2px dashed var(--line); }
.money-label { font-weight: 600; color: var(--muted); font-size: 15px; }
.money-item strong { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 3.4vw, 32px); line-height: 1.15; overflow-wrap: anywhere; }
.money-game { background: var(--leaf-soft); }
.money-game strong { color: var(--leaf-dark); }
.rek {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 6px 10px;
  border: 0; border-radius: 10px; background: var(--sky-soft); color: #0f4b72; font: inherit; font-size: 14px; cursor: pointer;
}
.rek code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 14px; color: var(--ink); }
.rek-hint { font-weight: 700; }
.rek.copied { background: var(--leaf-soft); color: var(--leaf-dark); }

/* Panel */
.panel { background: var(--card); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); }
.panel h2 { font-size: 26px; color: var(--leaf-dark); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-note { color: var(--muted); font-size: 15px; margin-top: 6px; }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; margin: 12px 0 0; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.badge.on { background: var(--leaf-soft); color: var(--leaf-dark); }
.badge.off { background: #eef2f6; color: var(--muted); }

/* Riwayat */
.history { list-style: none; margin: 14px 0 0; padding: 0; }
.tx { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.tx:first-child { border-top: 0; }
.tx-title { font-weight: 700; font-size: 18px; }
.tx-reward { color: var(--muted); font-size: 15px; }
.tx-meta { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.tx-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.tx-price { font-family: var(--display); font-size: 20px; }
.status { padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.status.ok { background: var(--leaf-soft); color: var(--leaf-dark); }
.status.wait { background: var(--sun-soft); color: #7a5400; }
.status.bad { background: #fdecea; color: #a1281e; }
.tx-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.empty { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; margin-top: 14px; padding: 16px; border-radius: 14px; background: var(--paper); border: 2px dashed var(--line); }

@media (max-width: 760px) {
  .profile { grid-template-columns: auto 1fr; }
  .profile-cta { grid-column: 1 / -1; }
  .money { grid-template-columns: 1fr; }
  .money-item + .money-item { border-left: 0; border-top: 2px dashed var(--line); }
  .facts { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .avatar { width: 60px; height: 60px; font-size: 32px; border-radius: 18px; }
  .panel { padding: 18px 16px; }
  .tx { grid-template-columns: 1fr; }
  .tx-right { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
  .tx-actions .btn { flex: 1 1 auto; padding-inline: 12px; }
}
