/* Buttons, inputs, chips and form controls. */
/* ============ buttons & inputs ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s, border-color .2s;
  border: 1px solid transparent; white-space: nowrap; letter-spacing: .01em;
}
.btn:active { transform: scale(.98); }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold) 70%); color: var(--gold-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 10px 26px -14px rgba(217, 180, 108, .75); }
:root[data-theme="light"] .btn-gold { background: linear-gradient(135deg, #b98b3a, #8c6220); }
.btn-gold:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 16px 34px -14px rgba(217, 180, 108, .9); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-2); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn .spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn { position: relative; width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%; transition: background .2s; }
.icon-btn:hover { background: var(--surface-2); }
.pill-btn { height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.pill-btn:hover { border-color: var(--gold); color: var(--gold); }
.badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--vermilion); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.badge.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.input, .select, textarea.input {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--bg-2); transition: border-color .2s, box-shadow .2s;
}
textarea.input { height: auto; min-height: 88px; padding: 12px 14px; resize: vertical; }
.input:focus, .select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(217, 180, 108, .15); }
.field.has-error .input { border-color: var(--vermilion); }
.field-error { color: var(--vermilion); font-size: 12.5px; min-height: 0; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; transition: all .2s var(--ease); background: transparent;
}
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed="true"], .chip.active { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.chip .swatch { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.chip .count { color: var(--faint); font-size: 12px; }
.chip.active .count, .chip[aria-pressed="true"] .count { color: inherit; opacity: .7; }

