* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: #0f1420;
  color: #e6e9ef;
}
.wrap { max-width: 960px; margin: 0 auto; padding: 16px; }
h1 { font-size: 1.4rem; margin: 0; }
h2 { font-size: 1.1rem; margin: 0 0 12px; }
.card {
  background: #182033;
  border: 1px solid #26304a;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}
.login { max-width: 360px; margin: 15vh auto; }
.login h1 { margin-bottom: 16px; }
.top {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.top .balance { margin-left: auto; }
.top .balance strong { color: #4ade80; }
.logout { color: #94a3b8; }
label { display: block; margin-bottom: 12px; font-size: .9rem; color: #94a3b8; }
input, select {
  display: block; width: 100%; margin-top: 4px;
  padding: 10px 12px; font-size: 1rem;
  background: #0f1420; color: #e6e9ef;
  border: 1px solid #2f3a57; border-radius: 8px;
}
input:focus, select:focus { outline: 2px solid #3b82f6; border-color: transparent; }
button {
  background: #3b82f6; color: #fff; border: 0;
  padding: 10px 18px; font-size: 1rem; border-radius: 8px; cursor: pointer;
}
button:hover { background: #2563eb; }
button.small { padding: 6px 12px; font-size: .85rem; }
.hint { color: #94a3b8; font-size: .85rem; margin: -4px 0 12px; }
.total { margin: 4px 0 14px; }
.err { color: #f87171; }
.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; }
.flash.ok { background: #14532d; }
.flash.error { background: #7f1d1d; }
.row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.row h2 { margin: 0; }
.table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid #26304a; white-space: nowrap; }
th { color: #94a3b8; font-weight: 500; }
td.link { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
td.link a { color: #93c5fd; }
.st { padding: 2px 8px; border-radius: 999px; font-size: .8rem; background: #334155; }
.st-completed { background: #166534; }
.st-in-progress, .st-processing { background: #1e40af; }
.st-partial { background: #854d0e; }
.st-canceled, .st-refunded { background: #7f1d1d; }
