:root {
    --blue: #2b5fd9;
    --blue-dark: #1c3f9c;
    --bg: #f5f7fb;
    --text: #1a1f2b;
    --border: #e1e5ee;
    --danger: #d64545;
    --ok: #2b8a3e;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
    background: var(--bg);
    color: var(--text);
}
.wrap {
    max-width: 420px;
    margin: 0 auto;
    min-height: 100vh;
    background: #fff;
    box-shadow: 0 0 24px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
}
.header {
    padding: 18px 20px;
    font-size: 18px;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header a { color: var(--text); text-decoration: none; }
.main { flex: 1; padding: 20px; }
.balance-card {
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}
.balance-card .label { font-size: 13px; opacity: 0.85; }
.balance-card .amount { font-size: 32px; font-weight: 800; margin-top: 6px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; margin-bottom: 6px; color: #555; }
.field input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
}
.btn {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: var(--blue);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}
.btn.secondary { background: #fff; color: var(--blue); border: 1px solid var(--blue); }
.btn-row { display: flex; flex-direction: column; gap: 10px; }
.flash {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
}
.flash.ok { background: #eaf7ec; color: var(--ok); }
.flash.error { background: #fdeaea; color: var(--danger); }
.muted { color: #888; font-size: 13px; }
.list-empty { text-align: center; padding: 40px 0; color: #999; }
