/* MAZA Wallet bench - dark mobile-first theme */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: #141414;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
               Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  min-height: 100vh;
}

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 12px 32px;
}

/* Cards */

.card {
  background: #1e1e1e;
  border: 1px solid #2c2c2c;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}

.card-label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b3b3b3;
}

/* Brand */

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  flex: 0 0 auto;
}

.brand-name {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #f0a000;
}

.header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 14px;
}

.header .brand-name {
  flex: 1 1 auto;
}

/* Balance */

.balance-line {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  word-break: break-all;
}

.balance-unit {
  font-size: 16px;
  font-weight: 600;
  color: #b3b3b3;
  margin-left: 6px;
}

/* Receive */

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono",
               monospace;
}

.address-block {
  background: #141414;
  border: 1px solid #2c2c2c;
  border-radius: 8px;
  padding: 10px;
  margin: 0 0 12px;
  font-size: 13px;
  word-break: break-all;
  overflow-wrap: anywhere;
  user-select: all;
  -webkit-user-select: all;
}

.qr-wrap {
  text-align: center;
  margin-bottom: 12px;
}

#qr-img {
  width: 180px;
  height: 180px;
  background: #ffffff;
  border-radius: 8px;
  padding: 6px;
}

/* Forms */

label.field-label {
  display: block;
  font-size: 13px;
  color: #b3b3b3;
  margin: 10px 0 4px;
}

input[type="text"], input[type="password"] {
  width: 100%;
  background: #141414;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  color: #ffffff;
  font-size: 16px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

input::placeholder {
  color: #8a8a8a;
}

input:focus {
  outline: 2px solid #f0a000;
  outline-offset: 1px;
}

/* Buttons */

.btn {
  display: inline-block;
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  background: #2c2c2c;
  color: #ffffff;
}

.btn-accent {
  background: #f0a000;
  color: #141414;
}

.btn-small {
  width: auto;
  padding: 8px 12px;
  font-size: 14px;
}

.btn:disabled {
  opacity: 0.55;
  cursor: default;
}

/* Status lines */

.error-line {
  margin: 10px 0 0;
  color: #ff6b6b;
  font-size: 14px;
}

.result-line {
  margin: 12px 0 0;
  font-size: 13px;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.result-line.ok {
  color: #6fd66f;
}

.result-line.err {
  color: #ff6b6b;
}

.hint-line {
  margin: 10px 0 0;
  color: #b3b3b3;
  font-size: 14px;
}

/* History */

.tx-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tx-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #2c2c2c;
  font-size: 15px;
}

.tx-item:last-child {
  border-bottom: 0;
}

.tx-arrow {
  flex: 0 0 auto;
  font-weight: 700;
}

.tx-arrow.in {
  color: #6fd66f;
}

.tx-arrow.out {
  color: #ff6b6b;
}

.tx-amount {
  flex: 1 1 auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas,
               "Liberation Mono", monospace;
  word-break: break-all;
}

.tx-meta {
  flex: 0 0 auto;
  color: #b3b3b3;
  font-size: 13px;
  white-space: nowrap;
}

/* Busy indicator */

.btn.busy::after {
  content: " ...";
}
