* { box-sizing: border-box; }
body { font-family: system-ui, sans-serif; margin: 0; background: #171321; color: #fff; }
main { max-width: 640px; margin: auto; padding: 20px 16px 8px; }
.topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
h1 { margin: 4px 0 8px; font-size: 30px; }
h2 { margin-top: 0; font-size: 20px; }
section { background: #241d36; border-radius: 18px; padding: 18px; margin: 16px 0; }
.balance-card { background: linear-gradient(145deg, #3a2a63, #241d36); border: 1px solid #665a86; }
.label { color: #cfc6e8; margin: 0; }
.balance { font-size: 40px; font-weight: 800; margin: 6px 0; }
.balance small { font-size: 16px; color: #f5b942; }
.sub { color: #e8e2f7; }
.warn { color: #ffd98a; font-size: 14px; line-height: 1.45; }
.status { color: #e8e2f7; line-height: 1.45; }
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.quick-actions a, .quick-actions button { text-align: center; text-decoration: none; }
label { display: block; margin: 14px 0; }
input, select { box-sizing: border-box; width: 100%; padding: 12px; margin-top: 6px; border-radius: 10px; border: 1px solid #665a86; font-size: 16px; }
button, .quick-actions a { padding: 12px 14px; border: 0; border-radius: 999px; background: #f5b942; color: #171321; font-weight: 700; font-size: 15px; cursor: pointer; }
button.secondary { background: #3a3157; color: #fff; margin-left: 8px; }
button:disabled { opacity: .55; cursor: wait; }
.badge { color: #f5b942; font-weight: 700; margin: 0; }
.catalog { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.history { padding-left: 20px; line-height: 1.6; color: #e8e2f7; }
footer { max-width: 640px; margin: auto; padding: 8px 16px 32px; color: #cfc6e8; }
footer a { color: #f5b942; }
@media (max-width: 480px) {
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
  .balance { font-size: 34px; }
  button.secondary { margin: 10px 0 0; }
}
