:root {
  --ink: #2a1308;
  --muted: #7d6b5f;
  --line: #eadfce;
  --cream: #faf6ee;
  --surface: #fffaf2;
  --soft: #f4eadb;
  --accent: #5a2a0e;
  --gold: #f5c518;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(245, 197, 24, 0.2), transparent 34%),
    var(--cream);
}

button,
input {
  font: inherit;
}

.client-shell {
  width: min(100%, 460px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px;
}

.client-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.client-header img {
  width: 48px;
  height: 54px;
  object-fit: contain;
}

.client-header p,
.client-title-row span {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.client-header h1,
.panel h2,
.client-title-row h2 {
  margin: 0;
}

.panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(90, 42, 14, 0.13);
}

.hidden {
  display: none;
}

.panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.client-form {
  display: grid;
  gap: 10px;
}

.client-form label {
  font-size: 0.88rem;
  font-weight: 800;
}

.client-form input {
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.client-form button,
.client-title-row button {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--cream);
  font-weight: 900;
}

.client-form a {
  color: var(--accent);
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

#client-message {
  min-height: 22px;
  color: #a3321f;
  font-weight: 800;
}

.client-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.client-title-row button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.loan-list {
  display: grid;
  gap: 12px;
}

.loan-card,
.charge-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.loan-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.status {
  display: inline-flex;
  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
}

.loan-main strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 1.8rem;
}

.charges {
  display: grid;
  gap: 8px;
}

.charge-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
}

.charge-row span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.future-pay {
  margin: 0;
  padding: 10px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  font-size: 0.86rem;
}
