@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500&family=Manrope:wght@600;700;800&display=swap");

/* Recovery Bank design system.
   Bright, airy and calm: cool light canvas, white cards, one confident blue, navy for depth.
   The hero card and sign-in panel run from bright blue down into deep navy. */
:root {
  color-scheme: light;

  --bg: #f3f6fc;
  --surface: #ffffff;
  --surface-2: #eef2fa;       /* insets, tab tracks, icon wells */
  --hover: rgba(29, 68, 184, 0.06);

  --text: #0b1b3a;
  --muted: #5f6f8c;
  --border: #e2e8f3;
  --border-strong: #cbd5e6;

  --accent: #1d44b8;          /* primary blue */
  --accent-strong: #16358f;
  --accent-ink: #ffffff;
  --accent-soft: #e6ebf8;
  --navy: #08163d;

  --positive: #0b8f6a;
  --positive-soft: #e3f6ee;
  --danger: #d92d20;
  --danger-soft: #fdecea;
  --warn: #8a5a00;
  --warn-soft: #fff4db;

  --shadow: 0 1px 2px rgba(11, 27, 58, 0.05), 0 10px 28px rgba(11, 27, 58, 0.07);
  --radius: 18px;

  --display: "Manrope", Inter, system-ui, sans-serif;
  --hero-gradient: linear-gradient(160deg, #2650c4 0%, #14307f 55%, #070f2e 100%);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.center { text-align: center; }
.positive { color: var(--positive); }

h1, h2, h3 { font-family: var(--display); color: var(--text); }
h2 { font-size: 18px; margin: 0; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 15px; margin: 0 0 12px; font-weight: 700; }

/* Top bar */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1040px; margin: 0 auto; padding: 22px 16px;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; color: var(--navy);
}
.logo {
  width: 36px; height: 36px; border-radius: 11px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #2f5bd6 0%, #14307f 100%);
  box-shadow: 0 6px 16px rgba(29, 68, 184, 0.28);
}
.logo svg { width: 22px; height: 22px; display: block; }
.user { display: flex; align-items: center; gap: 10px; }
.user-name { font-weight: 600; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 700; font-size: 13px;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}

.eyebrow { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* Buttons */
.btn {
  font: inherit; font-weight: 600; cursor: pointer;
  border-radius: 12px; padding: 11px 16px; border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.05s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .chip:focus-visible, .icon-btn:focus-visible, .link-btn:focus-visible {
  outline: 3px solid rgba(29, 68, 184, 0.35); outline-offset: 2px;
}
.btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 16px rgba(29, 68, 184, 0.28); }
.btn.primary:hover { background: var(--accent-strong); }
.btn.primary:disabled { opacity: 0.55; cursor: default; box-shadow: none; }
.btn.secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn.secondary:hover { background: var(--bg); }
.btn.block { width: 100%; }
.btn.small { padding: 7px 13px; font-size: 13px; border-radius: 10px; }

/* Activity */
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.filters { display: flex; gap: 6px; }
.chip {
  font: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  transition: color 0.15s, background 0.15s;
}
.chip:hover { color: var(--text); background: var(--bg); }
.chip.active { background: var(--accent-soft); color: var(--accent); border-color: transparent; font-weight: 600; }
.empty { text-align: center; padding: 36px 0; }

/* Dialogs */
.sheet {
  width: min(430px, calc(100vw - 32px));
  border: none; border-radius: 22px;
  background: var(--surface); color: var(--text);
  padding: 26px; box-shadow: 0 30px 70px rgba(6, 16, 50, 0.3);
}
.sheet::backdrop { background: rgba(6, 16, 50, 0.5); backdrop-filter: blur(3px); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.icon-btn {
  font: inherit; font-size: 22px; line-height: 1; cursor: pointer;
  width: 34px; height: 34px; border-radius: 10px;
  border: none; background: var(--surface-2); color: var(--muted);
}
.icon-btn:hover { background: var(--border); color: var(--text); }

.field { display: block; margin-bottom: 15px; }
.field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.field em { font-style: normal; font-weight: 400; }
input {
  width: 100%; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px;
  padding: 11px 13px;
}
input::placeholder { color: #9aa7bf; }
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(29, 68, 184, 0.14); }
.money-input { position: relative; }
.money-input > span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.money-input input { padding-left: 27px; font-family: "JetBrains Mono", ui-monospace, monospace; }

.error { color: var(--danger); font-size: 13px; min-height: 18px; margin: 0 0 10px; }
.hint { font-size: 12px; margin: 10px 0 0; text-align: center; }

.confirm-amount { font-family: var(--display); font-weight: 800; font-size: 40px; text-align: center; margin: 10px 0 0; letter-spacing: -0.03em; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }

.copy-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 11px 13px;
}
hr { border: none; border-top: 1px solid var(--border); margin: 22px 0; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
  background: var(--navy); color: #fff;
  padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600;
  box-shadow: 0 14px 34px rgba(6, 16, 50, 0.35);
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.field small { display: block; margin-top: 6px; font-size: 12px; }

/* Tabs (sign in, send mode, admin views) */
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 13px; margin-bottom: 22px; }
.tab {
  font: inherit; font-weight: 600; font-size: 14px; cursor: pointer;
  padding: 9px; border: none; border-radius: 10px; background: transparent; color: var(--muted);
  transition: color 0.15s, background 0.15s;
}
.tab:hover { color: var(--text); }
.tab.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(11, 27, 58, 0.14); }
.tab:focus-visible { outline: 3px solid rgba(29, 68, 184, 0.35); outline-offset: 2px; }

/* Banners */
.banner { text-align: center; font-size: 13px; font-weight: 500; padding: 9px 16px; }
.banner.sandbox { background: var(--warn-soft); color: var(--warn); border-bottom: 1px solid #f0dca6; }
.banner.danger { background: var(--danger-soft); color: #b42318; border-bottom: 1px solid #f6c5c0; }

/* Account details */
.small-text { font-size: 13px; }
.link-btn { font: inherit; font-size: 13px; font-weight: 600; color: var(--accent); background: none; border: none; padding: 0; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.pill { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.pill.pending { background: var(--warn-soft); color: var(--warn); }
.pill.failed, .pill.returned, .pill.frozen { background: var(--danger-soft); color: #b42318; }
.pill.completed { background: var(--positive-soft); color: var(--positive); }
.pill.admin { background: var(--accent-soft); color: var(--accent); }

/* Forms */
select {
  width: 100%; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; padding: 11px 13px;
}
select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(29, 68, 184, 0.14); }
.mono-input { font-family: "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.03em; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet { max-height: calc(100vh - 32px); }
h3.spaced { margin-top: 22px; }
.copy-row + .copy-row { margin-top: 8px; }
a.btn { text-decoration: none; display: inline-block; }

/* Avatars with photos */
.avatar { overflow: hidden; }
/* Shared balance figure (admin customer view); the dashboard hero overrides this in dashboard.css */
.balance { font-family: var(--display); font-size: 34px; font-weight: 800; letter-spacing: -0.03em; margin: 6px 0 14px; color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@media (max-width: 720px) { .user-name { display: none; } }