:root {
  --bg: #121010; --card: #1d1a17; --card2: #26221e; --line: #3a332c;
  --text: #F3EBDD; --muted: #A89A86; --gold: #C9A45C; --gold-dark: #a8853f;
  --red: #D9443B; --green: #6BBF59; --orange: #E8A33D;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
button, input, select, textarea { font: inherit; }
.hidden { display: none !important; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 5; }
.brand { display: flex; align-items: center; gap: 10px; font-family: Georgia, serif; font-size: 18px; color: var(--gold); }
.brand b { font-weight: normal; color: var(--text); }
.mono { width: 34px; height: 34px; border: 1.5px solid var(--gold); border-radius: 50%; display: grid; place-items: center; font-size: 13px; }
.top-actions { display: flex; gap: 6px; }
main { max-width: 860px; margin: 0 auto; padding: 16px; }
.center { display: grid; place-items: center; min-height: 50vh; text-align: center; }
.narrow { max-width: 420px; margin: 0 auto; }
h1 { font-family: Georgia, serif; font-weight: normal; color: var(--gold); margin: 8px 0 4px; font-size: 26px; }
h2 { font-size: 18px; margin: 20px 0 8px; }
h3 { font-size: 16px; margin: 0 0 6px; }
p, .muted { color: var(--muted); }
.small { font-size: 13px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 12px 0; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.balance { font-size: 32px; color: var(--gold); font-weight: 600; }
label { display: block; color: var(--muted); font-size: 13px; margin: 10px 0 4px; }
input, select, textarea { width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card2); color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); border-color: transparent; }
.btn { display: inline-block; padding: 11px 18px; border-radius: 10px; border: 0; background: var(--gold); color: #121010; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--gold-dark); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.block { display: block; width: 100%; margin-top: 14px; }
.btn.ghost { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.btn.danger { background: transparent; color: var(--red); border: 1px solid var(--red); }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.link { background: none; border: 0; color: var(--gold); cursor: pointer; padding: 6px 8px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin: 8px 0 4px; }
.tab { padding: 8px 14px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); color: var(--text); cursor: pointer; white-space: nowrap; }
.tab.on { background: var(--gold); color: #121010; border-color: var(--gold); }
.chip { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; border: 1px solid currentColor; }
.chip.pending { color: var(--orange); } .chip.approved, .chip.active { color: var(--green); }
.chip.rejected, .chip.stopped { color: var(--red); } .chip.ended { color: var(--muted); }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.amount.plus { color: var(--green); } .amount.minus { color: var(--text); }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.choice { padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card2); cursor: pointer; text-align: left; color: var(--text); }
.choice.on { border-color: var(--gold); outline: 1px solid var(--gold); }
.choice b { display: block; }
.thumb { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--card2); flex: none; }
.proof { max-width: 100%; max-height: 360px; border-radius: 10px; display: block; margin-top: 8px; cursor: zoom-in; }
.note { background: var(--card2); border-left: 3px solid var(--gold); padding: 10px 12px; border-radius: 8px; color: var(--text); }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--card2); border: 1px solid var(--gold); color: var(--text); padding: 10px 16px; border-radius: 10px; max-width: 90vw; z-index: 20; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
table { width: 100%; border-collapse: collapse; }
td, th { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: normal; font-size: 13px; }
@media (max-width: 560px) { .hide-sm { display: none; } .balance { font-size: 28px; } }
.bubbles { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.bubble { max-width: 85%; background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; align-self: flex-start; }
.bubble.me { align-self: flex-end; border-color: var(--gold-dark); }
.bubble .msg { white-space: pre-wrap; word-wrap: break-word; }
.clickable { cursor: pointer; }
.clickable:hover { background: var(--card2); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-right: 6px; vertical-align: middle; }
