:root {
  --bg: #ffffff;
  --surface: #f4fbf9;
  --border: #cdeae3;
  --text: #201e1f;
  --muted: #63706d;
  --accent: #0f8f78;
  --accent-soft: #92ddce;
  --cta: #4ac6ad;
  --err: #b3261e;
  --err-bg: #fdecea;
  --ok-bg: #e6f6f2;
  --warn-bg: #fff6e0;
  --warn: #8a5a00;
  --radius: 14px;
  --display: 'Secular One', 'Segoe UI', Arial, sans-serif;
  --body: 'Assistant', 'Segoe UI', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--surface); }
body { margin: 0; font-family: var(--body); font-size: 16px; color: var(--text); background: var(--surface); line-height: 1.55; direction: rtl; text-align: right; }
.top { background: var(--bg); border-bottom: 1px solid var(--border); padding-block: 10px; padding-inline: 16px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); max-width: 980px; margin: 0 auto; }
.logo { height: 40px; width: auto; direction: ltr; }
.app-name { font-family: var(--display); font-size: 22px; border-inline-start: 2px solid var(--border); padding-inline-start: 14px; }
.wrap { max-width: 980px; margin: 0 auto; padding-block: 22px 60px; padding-inline: 16px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0 0 12px; line-height: 1.3; }
h1 { font-size: 26px; }
h2 { font-size: 20px; }
h3 { font-size: 17px; }
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.card.alert { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ok-bg); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat b { font-size: 18px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.spacer { flex: 1; }

button, .btn { font: inherit; font-weight: 700; border-radius: 10px; padding: 10px 18px; border: 2px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer; text-decoration: none; display: inline-block; }
button.secondary, .btn.secondary { background: var(--bg); color: var(--accent); }
button.danger { border-color: var(--err); background: var(--bg); color: var(--err); }
button.link { border: 0; background: none; color: var(--accent); padding: 4px 6px; text-decoration: underline; font-weight: 600; }
button:disabled { opacity: .6; cursor: wait; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }

.msg { margin: 8px 0 0; padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 15px; }
.msg.ok { background: var(--ok-bg); color: var(--accent); }
.msg.err { background: var(--err-bg); color: var(--err); }
.msg.warn { background: var(--warn-bg); color: var(--warn); }
.field-err { color: var(--err); font-size: 14px; margin: 4px 0 0; font-weight: 600; }

label { display: block; font-weight: 600; margin: 12px 0 4px; }
label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; margin: 10px 0; }
label.check input { margin-top: 5px; }
input[type=text], input[type=email], input[type=password], input[type=search], select, textarea { font: inherit; width: 100%; max-width: 480px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); }
textarea { max-width: 100%; min-height: 150px; }
input[aria-invalid=true] { border-color: var(--err); }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: right; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 14px; }
.num { direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.pill { display: inline-block; font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--accent); border-color: var(--accent-soft); }
.pill.wait { background: var(--warn-bg); color: var(--warn); border-color: #f0d9a0; }
.pill.err { background: var(--err-bg); color: var(--err); border-color: #f3b8b3; }

.pending-item { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.pending-item:last-child { border-bottom: 0; }
.amount { font-family: var(--display); font-size: 22px; direction: ltr; unicode-bidi: isolate; }
.big-amount { font-family: var(--display); font-size: 40px; direction: ltr; unicode-bidi: isolate; display: inline-block; }
.bank-text { background: var(--surface); border: 1px dashed var(--border); border-radius: 10px; padding: 8px 12px; font-weight: 600; }

.cust-list { max-height: 260px; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; padding: 4px 10px; max-width: 480px; background: var(--bg); }
.cust-list label.check { margin: 6px 0; }
.list-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.list-row:last-child { border-bottom: 0; }
.hint { font-size: 14px; color: var(--muted); margin: 4px 0 0; }
.steps { margin: 0; padding-inline-start: 20px; }
.steps li { margin-bottom: 6px; }

@media (max-width: 520px) {
  .app-name { font-size: 18px; }
  .logo { height: 32px; }
  .big-amount { font-size: 32px; }
  button, .btn { width: 100%; text-align: center; }
  button.link { width: auto; }
}
.mt { margin-top: 14px; }
.mt-lg { margin-top: 22px; }
.block { display: block; }
