.btn {
  min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1.5px solid transparent;
  font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; transition: transform .12s ease, filter .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-gold { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #25190a; }
.btn-gold:hover:not([disabled]) { filter: brightness(1.06); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--paper); }
.btn-ghost:hover:not([disabled]) { border-color: var(--gold); }
.btn-danger { background: transparent; border-color: var(--bad); color: var(--bad); }
.btn-block { width: 100%; }

.card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card-gold { border-color: var(--gold-lo); background: linear-gradient(180deg, #241c0f, var(--ink-2)); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .85rem; color: var(--muted); }
.input {
  min-height: 50px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--ink);
  padding: 0 14px; width: 100%;
}
.input:focus { border-color: var(--gold); outline: none; }
.input-ltr { direction: ltr; text-align: left; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { min-height: 44px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 700; }
.seg button[aria-pressed="true"] { background: var(--gold); color: #25190a; }
.seg button[data-side="sell"][aria-pressed="true"] { background: var(--paper); }

.chip { display: inline-block; border-radius: 999px; padding: 2px 12px; font-size: .78rem; font-weight: 700; }
.chip-good { background: rgb(95 191 134 / 16%); color: var(--good); }
.chip-warn { background: rgb(227 176 74 / 16%); color: var(--warn); }
.chip-bad { background: rgb(224 103 93 / 16%); color: var(--bad); }
.chip-muted { background: var(--ink-3); color: var(--muted); }

.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button { width: 52px; height: 52px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--ink); font-size: 1.5rem; }
.stepper input { flex: 1; text-align: center; font-size: 1.6rem; font-weight: 800; }

.row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.divider { border: 0; border-top: 1px dashed var(--line); margin: 4px 0; }

.otp { display: flex; gap: 8px; direction: ltr; justify-content: center; }
.otp input { width: 46px; height: 56px; text-align: center; font-size: 1.4rem; font-weight: 700; padding: 0; }

#toasts { position: fixed; inset-inline: 16px; bottom: calc(86px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; z-index: 50; pointer-events: none; }
.toast { background: var(--paper); color: var(--ink); border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow); font-weight: 600; }
.toast.error { background: var(--bad); color: #fff; }

.skeleton { background: linear-gradient(90deg, var(--ink-2), var(--ink-3), var(--ink-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 10px; min-height: 20px; }
@keyframes shimmer { to { background-position: -200% 0; } }
