.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat-card { padding: 20px; }
.stat-label { color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.stat-value { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.04em; margin-top: 8px; }
.stat-foot { color: var(--muted); margin-top: 8px; font-size: 13px; }
.btn { border: 0; border-radius: 11px; padding: 11px 15px; font-weight: 700; background: var(--surface-2); color: var(--text); }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-strong); }
.btn-success { background: #ecfdf5; color: var(--success); }
.btn-ghost { background: transparent; border: 1px solid var(--border); }
.section-card { padding: 20px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { margin: 0; font-size: 18px; }
.credit-list { display: grid; gap: 12px; }
.credit-item { padding: 17px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.credit-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.credit-bank { font-weight: 800; font-size: 16px; }
.credit-name { color: var(--muted); font-size: 13px; margin-top: 3px; }
.credit-amount { font-size: 18px; font-weight: 800; text-align: right; }
.meta-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.meta { padding: 10px; background: var(--surface-2); border-radius: 10px; }
.meta b { display: block; font-size: 13px; }
.meta span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.progress { height: 9px; background: #e5e7eb; border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--primary); border-radius: inherit; }
.credit-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 13px; }
.timeline { display: grid; gap: 12px; }
.timeline-item { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.timeline-item:last-child { border-bottom: 0; }
.date-badge { width: 54px; height: 54px; background: var(--surface-2); border-radius: 12px; display: grid; place-items: center; text-align: center; font-weight: 800; font-size: 12px; line-height: 1.05; }
.amount { font-weight: 800; }
.empty { text-align: center; color: var(--muted); padding: 28px 12px; }
.modal { position: fixed; inset: 0; background: rgba(15, 23, 42, .55); display: none; place-items: center; padding: 20px; z-index: 50; }
.modal.open { display: grid; }
.modal-panel { width: min(680px, 100%); max-height: 90vh; overflow: auto; background: #fff; border-radius: 20px; padding: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.modal-head h3 { margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 11px 12px; outline: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #93c5fd; box-shadow: 0 0 0 3px #dbeafe; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.toast { position: fixed; right: 22px; bottom: 22px; padding: 12px 16px; background: #111827; color: #fff; border-radius: 11px; box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); pointer-events: none; transition: .2s; z-index: 70; }
.toast.show { opacity: 1; transform: translateY(0); }
