:root {
  --ink: #14213d;
  --muted: #667085;
  --line: #d9e2ec;
  --paper: #ffffff;
  --wash: #f4f7fb;
  --navy: #17233f;
  --teal: #0f766e;
  --mint: #dff7ef;
  --gold: #b7791f;
  --gold-soft: #fff4d6;
  --rose: #be123c;
  --rose-soft: #ffe4e6;
  --blue-soft: #e8f1ff;
  --shadow: 0 18px 45px rgba(20, 33, 61, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 8%, rgba(15, 118, 110, 0.14), transparent 28%),
    radial-gradient(circle at 92% 18%, rgba(183, 121, 31, 0.14), transparent 24%),
    linear-gradient(135deg, #f7fafc 0%, #eef5ff 52%, #f7fbf7 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  border-bottom: 1px solid rgba(217, 226, 236, 0.8);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
}

.brand,
.account-chip,
.profile-summary,
.sender-block,
.status-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.85rem;
}

.brand-mark,
.stat-icon,
.section-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: white;
  background: var(--navy);
}

.brand-mark {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.9rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  background: white;
  border: 1px solid rgba(217, 226, 236, 0.9);
}

.brand-mark-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.brand h1,
.brand p,
.profile-summary h2,
.profile-summary p {
  margin: 0;
}

.brand h1 {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  letter-spacing: 0;
}

.brand p,
.account-chip span,
.panel p,
.stat-card p,
.timeline-row span {
  color: var(--muted);
}

.brand p {
  font-size: 0.82rem;
}

.account-chip {
  gap: 0.75rem;
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: white;
}

.account-chip div {
  display: grid;
}

.account-chip span {
  font-size: 0.78rem;
}

.avatar,
.large-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 0.85rem;
  font-weight: 900;
}

.avatar {
  width: 2.4rem;
  height: 2.4rem;
  background: var(--blue-soft);
  color: var(--navy);
  font-size: 0.78rem;
}

.large-avatar {
  width: 4.4rem;
  height: 4.4rem;
  color: white;
  background: var(--navy);
  box-shadow: var(--shadow);
}

.icon-button,
.small-button {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0.8rem;
}

.icon-button {
  width: 2.3rem;
  height: 2.3rem;
  color: var(--navy);
  background: var(--wash);
}

.small-button {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--teal);
  background: var(--mint);
}

.small-button.warning {
  color: var(--rose);
  background: var(--rose-soft);
}

.message {
  max-width: 72rem;
  margin: 1rem auto 0;
  padding: 0.8rem 1rem;
  border-radius: 0.9rem;
  font-weight: 800;
}

.message-error {
  color: var(--rose);
  background: var(--rose-soft);
}

.message-ok {
  color: var(--teal);
  background: var(--mint);
}

.auth-stage,
.password-page,
.dashboard {
  width: min(100% - 2rem, 86rem);
  margin: 0 auto;
}

.auth-stage {
  position: relative;
  min-height: calc(100vh - 9rem);
  display: grid;
  place-items: center;
  padding: clamp(2rem, 7vw, 5rem) 0;
  overflow: hidden;
}

.auth-stage::before {
  content: "";
  position: absolute;
  inset: 1.5rem 0;
  border-radius: 1.5rem;
  background:
    linear-gradient(rgba(255, 255, 255, 0.42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.42) 1px, transparent 1px);
  background-size: 3.5rem 3.5rem;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
  pointer-events: none;
}

.auth-orb {
  position: absolute;
  width: clamp(14rem, 28vw, 26rem);
  aspect-ratio: 1;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.32;
  animation: floatAuth 9s ease-in-out infinite;
}

.auth-orb-one {
  top: 8%;
  left: 5%;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.55), transparent 68%);
}

.auth-orb-two {
  right: 7%;
  bottom: 8%;
  background: radial-gradient(circle, rgba(183, 121, 31, 0.5), transparent 68%);
  animation-delay: -4s;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: min(100%, 29rem);
  padding: clamp(1.2rem, 4vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 1.35rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.72));
  box-shadow: 0 24px 70px rgba(20, 33, 61, 0.16);
  backdrop-filter: blur(22px);
  animation: riseIn 0.55s ease both;
}

.onboarding-card {
  width: min(100%, 31rem);
}

.auth-card-header {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.55rem;
  margin-bottom: 1.35rem;
}

.auth-card-header h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  letter-spacing: 0;
}

.auth-card-header p:not(.eyebrow) {
  max-width: 22rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.auth-mark {
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 1.15rem;
  overflow: hidden;
  color: white;
  background: white;
  border: 1px solid rgba(217, 226, 236, 0.9);
  box-shadow: 0 16px 32px rgba(20, 33, 61, 0.2);
  font-weight: 900;
}

.modern-form {
  display: grid;
  gap: 1rem;
}

.form-card,
.panel {
  width: 100%;
  border: 1px solid rgba(217, 226, 236, 0.88);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.form-card {
  display: grid;
  gap: 1rem;
  padding: clamp(1.2rem, 4vw, 2rem);
}

label {
  display: grid;
  gap: 0.45rem;
  color: var(--ink);
  font-weight: 800;
}

input {
  min-height: 3rem;
  width: 100%;
  border: 0;
  padding: 0 0.35rem;
  color: var(--ink);
  background: transparent;
  outline: none;
}

select {
  min-height: 3rem;
  width: 100%;
  border: 1px solid rgba(217, 226, 236, 0.95);
  border-radius: 1rem;
  padding: 0 0.85rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  outline: none;
}

select:focus {
  border-color: var(--teal);
  background: white;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.13);
}

.field-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  min-height: 3.3rem;
  border: 1px solid rgba(217, 226, 236, 0.95);
  border-radius: 1rem;
  padding: 0 0.75rem;
  background: rgba(255, 255, 255, 0.82);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.field-shell:focus-within {
  border-color: var(--teal);
  background: white;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.13);
  transform: translateY(-1px);
}

.field-icon {
  display: grid;
  place-items: center;
  color: var(--teal);
}

.reveal-button {
  min-width: 3rem;
  border: 0;
  border-radius: 0.7rem;
  padding: 0.45rem 0.55rem;
  color: var(--navy);
  background: var(--wash);
  font-size: 0.78rem;
  font-weight: 900;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.1rem;
  border: 0;
  border-radius: 1rem;
  color: white;
  background: linear-gradient(135deg, var(--navy), #0f766e);
  font-weight: 900;
  box-shadow: 0 16px 28px rgba(20, 33, 61, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.primary-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 22px 36px rgba(20, 33, 61, 0.22);
}

.primary-button:disabled {
  opacity: 0.72;
}

.primary-button span,
.auth-submit span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.loading-dot {
  width: 0.72rem;
  height: 0.72rem;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: white;
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1rem;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  color: var(--teal);
  background: rgba(223, 247, 239, 0.82);
  font-size: 0.76rem;
  font-weight: 900;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes floatAuth {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(1rem, -1.2rem, 0) scale(1.04);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.dashboard {
  flex: 1;
  padding: 1.5rem 0 3rem;
}

.tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0.35rem;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: white;
}

.tabs button,
.group-switcher button {
  border: 0;
  border-radius: 0.75rem;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
}

.tabs button {
  padding: 0.72rem 1rem;
  white-space: nowrap;
}

.tabs button.active,
.group-switcher button.selected,
.month-card.selected {
  color: white;
  background: var(--navy);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.stat-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  min-height: 8.8rem;
  padding: 1.2rem;
  border: 1px solid rgba(217, 226, 236, 0.88);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.stat-card span,
.eyebrow,
.receiver-heading span {
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  margin-top: 0.55rem;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.stat-card p {
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
}

.stat-icon,
.section-icon {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.9rem;
}

.section-heading {
  display: grid;
  grid-template-columns: 2.9rem minmax(0, 1fr);
  align-items: start;
  gap: 0.85rem;
}

.section-heading > div,
.profile-summary > div {
  min-width: 0;
}

.section-heading .section-icon {
  margin-top: 0.12rem;
}

.main-grid,
.profile-grid,
.document-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.profile-grid {
  grid-template-columns: minmax(0, 1fr) minmax(21rem, 0.82fr);
}

.document-layout {
  grid-template-columns: 1fr;
}

.panel {
  padding: 1.2rem;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.panel-header h2,
.section-heading h2 {
  margin: 0.28rem 0 0;
  max-width: 100%;
  font-size: clamp(1.35rem, 2.1vw, 1.82rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.panel-header p {
  margin: 0.35rem 0 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  color: var(--teal);
  line-height: 1.1;
}

.group-switcher {
  display: flex;
  gap: 0.45rem;
  padding: 0.35rem;
  border-radius: 1rem;
  background: var(--wash);
}

.group-switcher button {
  width: 2.8rem;
  height: 2.4rem;
}

.flow-layout {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.month-list,
.receiver-list,
.timeline {
  display: grid;
  gap: 0.8rem;
}

.month-card {
  display: grid;
  gap: 0.25rem;
  width: 100%;
  min-height: 7.4rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  color: var(--ink);
  background: white;
  text-align: left;
}

.month-card span,
.month-card small,
.month-card em {
  color: inherit;
  opacity: 0.72;
  font-style: normal;
}

.receiver-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: linear-gradient(135deg, #ffffff, #f8fbff);
}

.receiver-heading,
.transfer-row,
.timeline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.receiver-heading h3 {
  margin: 0.1rem 0 0;
  font-size: 1.7rem;
}

.turn-window {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.receiver-heading strong {
  padding: 0.65rem 0.85rem;
  border-radius: 0.85rem;
  color: var(--teal);
  background: var(--mint);
}

.transfer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.payment-details-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  padding: 0.9rem;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 1rem;
  background: rgba(223, 247, 239, 0.58);
}

.payment-details-approved {
  border-color: rgba(15, 118, 110, 0.2);
  background: rgba(223, 247, 239, 0.58);
}

.payment-details-pending {
  border-color: rgba(183, 121, 31, 0.34);
  background: rgba(255, 244, 214, 0.72);
}

.payment-details-missing {
  border-color: rgba(183, 121, 31, 0.22);
  background: rgba(255, 244, 214, 0.62);
}

.payment-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0.7rem 0 0;
}

.payment-detail-list div {
  min-width: 0;
}

.payment-detail-list dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.payment-detail-list dd {
  margin: 0.15rem 0 0;
  color: var(--ink);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.freshness-pill {
  align-self: start;
  justify-self: end;
  min-height: 1.8rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  color: var(--teal);
  background: white;
  font-size: 0.74rem;
  font-weight: 900;
  white-space: nowrap;
}

.freshness-pill.stale {
  color: var(--gold);
}

.payment-warning,
.payment-empty {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.payment-warning.urgent {
  padding: 0.75rem;
  border-radius: 0.85rem;
  color: #92400e;
  background: rgba(255, 244, 214, 0.92);
  font-weight: 900;
}

.payment-warning.owner-note {
  padding: 0.75rem;
  border-radius: 0.85rem;
  color: var(--teal);
  background: rgba(223, 247, 239, 0.78);
  font-weight: 900;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(20, 33, 61, 0.42);
  backdrop-filter: blur(8px);
}

.review-modal {
  width: min(100%, 32rem);
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: white;
  box-shadow: var(--shadow);
}

.review-modal h2 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  line-height: 1.1;
}

.review-list {
  margin-top: 1rem;
}

.review-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  margin-top: 1rem;
}

.ghost-button {
  min-height: 2.8rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0 1rem;
  color: var(--ink);
  background: white;
  font-weight: 900;
}

.payment-profile-section {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.66);
}

.payment-details-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.payment-details-form input,
.payment-details-form select {
  border: 1px solid rgba(217, 226, 236, 0.95);
  border-radius: 1rem;
  padding: 0 0.85rem;
  background: rgba(255, 255, 255, 0.82);
}

.payment-details-form input:focus,
.payment-details-form select:focus {
  border-color: var(--teal);
  background: white;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.13);
}

.verification-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.45;
}

.payment-save-button {
  grid-column: 1 / -1;
}

.transfer-row {
  min-height: 4.6rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: white;
}

.sender-block {
  min-width: 0;
  gap: 0.7rem;
}

.sender-block div,
.timeline-row div {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.sender-block span,
.timeline-row span {
  font-size: 0.8rem;
}

.status-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.status,
.role {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.8rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.status-received,
.role-treasurer {
  color: var(--teal);
  background: var(--mint);
}

.status-pending,
.role-admin {
  color: var(--gold);
  background: var(--gold-soft);
}

.status-dispute {
  color: var(--rose);
  background: var(--rose-soft);
}

.role-member {
  color: var(--navy);
  background: var(--blue-soft);
}

.receiver-help,
.locked-help,
.account-note {
  margin: 0;
  padding: 0.8rem;
  border-radius: 0.9rem;
  font-size: 0.9rem;
  line-height: 1.55;
}

.receiver-help {
  color: var(--teal);
  background: var(--mint);
}

.locked-help {
  color: var(--muted);
  background: var(--wash);
}

.account-panel {
  align-self: start;
}

.profile-summary {
  align-items: flex-start;
  gap: 1rem;
}

.profile-summary-card {
  width: min(100%, 24rem);
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.profile-summary h2 {
  margin-top: 0.35rem;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.profile-summary p {
  margin-top: 0.25rem;
  line-height: 1.35;
}

.profile-summary .role {
  width: fit-content;
  margin-top: 0.6rem;
}

.profile-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.profile-metrics.wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-metrics div {
  display: grid;
  gap: 0.35rem;
  min-height: 5.8rem;
  padding: 0.9rem;
  border-radius: 0.95rem;
  background: var(--wash);
}

.profile-metrics span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
}

.profile-metrics strong {
  font-size: 1.25rem;
  line-height: 1.15;
}

.account-note {
  margin-top: 1rem;
  color: var(--ink);
  background: var(--blue-soft);
}

.account-note p {
  margin: 0.25rem 0 0;
}

.timeline {
  margin-top: 1rem;
}

.timeline.compact .timeline-row {
  min-height: 4rem;
}

.timeline-row {
  min-height: 4.6rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: white;
}

.timeline-row > div:last-child {
  justify-items: end;
  text-align: right;
}

.empty-state {
  margin: 0;
  padding: 1rem;
  border-radius: 0.95rem;
  color: var(--muted);
  background: var(--wash);
}

.document-panel {
  min-height: 72vh;
}

.pdf-viewer {
  width: 100%;
  height: 72vh;
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--wash);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem 1.5rem;
  margin-top: auto;
  padding: 1.1rem clamp(1rem, 4vw, 2.5rem);
  border-top: 1px solid rgba(217, 226, 236, 0.9);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.76);
  text-align: center;
  font-size: 0.86rem;
}

.site-footer div {
  display: grid;
  gap: 0.15rem;
  text-align: left;
}

.site-footer strong {
  color: var(--navy);
}

.site-footer small {
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 1040px) {
  .stats-grid,
  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-layout {
    grid-template-columns: 1fr;
  }

  .month-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar,
  .panel-header,
  .receiver-heading,
  .transfer-row,
  .timeline-row {
    align-items: stretch;
    flex-direction: column;
  }

  .account-chip {
    width: 100%;
    justify-content: space-between;
  }

  .stats-grid,
  .main-grid,
  .profile-grid,
  .profile-metrics.wide,
  .transfer-grid,
  .profile-metrics,
  .payment-details-form,
  .payment-detail-list,
  .payment-details-card {
    grid-template-columns: 1fr;
  }

  .auth-stage {
    width: min(100% - 1rem, 86rem);
    min-height: calc(100vh - 8rem);
    padding: 1.4rem 0 2rem;
  }

  .auth-card {
    border-radius: 1.1rem;
  }

  .month-list {
    grid-template-columns: 1fr;
  }

  .status-actions,
  .receiver-heading strong,
  .timeline-row > div:last-child,
  .site-footer div {
    justify-content: flex-start;
    justify-items: start;
    text-align: left;
  }

  .site-footer {
    justify-content: flex-start;
  }

  .freshness-pill {
    justify-self: start;
  }
}
