.global-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid #1f2937;
  background: #0b0f18;
}

.global-topbar-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #f3f4f6;
}

.global-topbar-logo {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: cover;
}

.global-topbar-name {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
}

[data-auth-slot] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.auth-user-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.auth-user-menu-trigger {
  cursor: pointer;
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.auth-user-menu-label {
  max-width: 14ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.auth-user-menu-caret {
  font-size: 8px;
  opacity: 0.8;
  margin-left: 1px;
}
.auth-user-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 210px;
  padding: 6px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.auth-user-menu-meta {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  color: #94a3b8;
  padding: 6px 10px 8px;
  border-bottom: 1px solid #1e293b;
  margin-bottom: 4px;
}
.auth-user-menu-meta strong {
  color: #e2e8f0;
  font-weight: 700;
}

.auth-user-menu[hidden] {
  display: none !important;
}
.auth-user-menu-item {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
  text-decoration: none;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  box-sizing: border-box;
}
.auth-user-menu-item:hover {
  background: #1e293b;
}
.auth-user-menu-item--admin {
  color: #c4b5fd;
}
.auth-user-menu-item--admin:hover {
  background: #1e1b4b;
}
.auth-user-menu-item--danger {
  color: #fca5a5;
}
.auth-user-menu-item--danger:hover {
  background: rgba(127, 29, 29, 0.35);
}

.auth-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #1f4f2f;
  background: #132318;
  color: #e5e7eb;
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 700;
}
.auth-status-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auth-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
}

.auth-signin-btn {
  text-decoration: none;
  border: 1px solid #1f4f2f;
  background: #0f1f13;
  color: #9ae6b4;
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 700;
}

.auth-logout-btn {
  border: 1px solid #374151;
  background: #111827;
  color: #cbd5e1;
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.top-nav .auth-status-pill {
  margin-left: 8px;
}

.send-process-wrap {
  max-width: 1120px;
  margin: 14px auto 8px;
  padding: 0 16px;
}

/* Sign-in (and any 2-col auth-shell): stepper was grid item 3 → only half-width;
   connectors then collapsed to 0px. Span full row so flex “rails” can grow. */
.auth-shell > #send-money-process {
  grid-column: 1 / -1;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.send-process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.send-process-card {
  border: 1px solid #1f2937;
  background: #0f131c;
  border-radius: 10px;
  padding: 12px;
}

.send-process-title {
  color: #d1d5db;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.process-steps {
  display: flex;
  align-items: center;
  gap: 4px;
}

.process-step {
  text-align: center;
  color: #9ca3af;
  font-size: 11px;
  min-width: 86px;
  flex: 0 0 auto;
}

.process-step-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid #374151;
  margin: 0 auto 6px;
  background: #111827;
}

.process-step.done {
  color: #86efac;
}

.process-step.done .process-step-dot {
  border-color: #22c55e;
  background: #14532d;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.2) inset;
}

.process-line {
  /* Empty flex items had min-width:auto → could shrink to 0; keep a visible segment */
  height: 2px;
  background: #374151;
  margin: 0 6px 18px;
  flex: 1 1 48px;
  min-width: 40px;
  align-self: center;
  border-radius: 1px;
}

.process-line.done {
  background: #22c55e;
}

.process-reset-wrap {
  margin-top: 10px;
  text-align: right;
}

.process-reset-btn {
  border: 1px solid #334155;
  background: #111827;
  color: #cbd5e1;
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 860px) {
  .send-process-grid {
    grid-template-columns: 1fr;
  }
}

.policy-footer-relocated {
  margin-top: 14px !important;
  margin-bottom: 0 !important;
  padding-bottom: 8px;
}

.policy-footer-spacer {
  height: 46px;
}

/* Inactivity session timeout (fintech-style warning + auto sign-out) */
.mavex-idle-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.55);
}

.mavex-idle-dialog {
  max-width: 400px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid #334155;
  background: #0f172a;
  padding: 20px 20px 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.mavex-idle-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  color: #f8fafc;
}

.mavex-idle-body {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #94a3b8;
}

.mavex-idle-countdown {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fdba74;
}

.mavex-idle-continue {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #16a34a;
  background: #22c55e;
  color: #052e16;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 12px;
  cursor: pointer;
}

/* Brand tagline — shared across app and marketing pages */
.mavex-tagline {
  margin: 0 0 12px;
  line-height: 1.45;
  color: #94a3b8;
  font-size: 0.95rem;
}
.mavex-tagline .brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  vertical-align: baseline;
  white-space: nowrap;
}
.mavex-tagline .brand-lockup .mavex-inline-stripe,
.mavex-tagline .brand-lockup .mavex-inline-circle {
  height: 0.92em;
  width: auto;
  vertical-align: -0.14em;
  margin: 0;
}

/**
 * “Powered by Stripe · Settled via Circle” — logos plus visible rail names (footers, flow pages, certificates).
 */
.mavex-rails-attribution {
  margin: 0;
  line-height: 1.5;
  color: #9ca3af;
  font-size: 11px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.mavex-rails-attribution .brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  color: #e5e7eb;
  font-weight: 600;
}
.mavex-rails-attribution .mavex-inline-stripe,
.mavex-rails-attribution .mavex-inline-circle {
  height: 14px;
  width: auto;
  vertical-align: -2px;
  margin: 0;
}
.mavex-rails-attribution .rails-attribution-sep {
  color: #4b5563;
  user-select: none;
  font-weight: 400;
}
.dashboard-footer .mavex-rails-attribution {
  justify-content: center;
  width: 100%;
  margin: 0 0 14px;
  font-size: inherit;
  color: #64748b;
}
.mavex-static-footer .mavex-rails-attribution {
  justify-content: center;
  width: 100%;
  margin: 0 0 14px;
  font-size: 0.82rem;
}
.mavex-rails-attribution--flow {
  justify-content: center;
  margin-top: 24px;
  font-size: 12px;
}

/* Global savings — `GET {api}/stats` → `total_saved_usd`; placed before policy/footer links (auth-status.js) */
.global-savings-strip {
  max-width: 980px;
  margin: 0 auto;
  box-sizing: border-box;
  text-align: center;
  padding: 22px 16px 20px;
  border-top: 1px solid #24314a;
}
.global-savings-strip--wide {
  grid-column: 1 / -1;
  max-width: none;
  width: 100%;
}
.global-savings-inner {
  max-width: 640px;
  margin: 0 auto;
}
.global-savings-label {
  color: #92a0b8;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}
.global-savings-amount {
  font-size: clamp(1.85rem, 4.8vw, 2.65rem);
  font-weight: 800;
  color: #f7faff;
  margin: 10px 0 8px;
  line-height: 1.1;
  text-shadow: 0 0 28px rgba(99, 102, 241, 0.28);
}
.global-savings-sub {
  color: #a5b4fc;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.35;
}
.global-savings-sub--muted {
  color: #94a3b8;
  font-weight: 500;
  font-size: 0.82rem;
}
.global-savings-mission {
  margin: 14px auto 0;
  max-width: 560px;
  color: #a5b4fc;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.45;
}
.global-savings-copy-invite-btn {
  margin-top: 16px;
  background: #6366f1;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: inherit;
}
.global-savings-copy-invite-btn:hover:not(:disabled) {
  background: #4f46e5;
}
.global-savings-copy-invite-btn:disabled {
  opacity: 0.85;
  cursor: default;
}
