/* ============================================================================
   OUR VAULT — PREMIUM FINTECH DESIGN SYSTEM
   Tokens: Midnight Navy (#101B2D) | Vault Green (#0E9B74) | White (#FFFFFF)
   ============================================================================ */

:root {
  --navy-900: #101B2D;
  --navy-800: #16243B;
  --navy-700: #1E3150;
  --green-500: #0E9B74;
  --green-600: #0B805F;
  --green-soft: rgba(14, 155, 116, 0.12);

  --bg-app: #F3F6FA;
  --surface: #FFFFFF;
  --surface-muted: #F8FAFC;
  --border-color: #E2E8F0;

  --text-dark: #172033;
  --text-muted: #566273;
  --text-on-dark: #F8FAFC;
  --text-on-dark-muted: #9FB0C7;

  --danger: #D93848;
  --danger-soft: rgba(217, 56, 72, 0.12);
  --amber: #D9820B;
  --amber-soft: rgba(217, 130, 11, 0.14);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-card: 0 4px 20px rgba(16, 27, 45, 0.05);
  --shadow-hero: 0 14px 34px rgba(16, 27, 45, 0.22);

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Optional Midnight Navy Dark Theme */
body.dark-mode {
  --bg-app: #0B1320;
  --surface: #131F33;
  --surface-muted: #192842;
  --border-color: #243654;
  --text-dark: #F1F5F9;
  --text-muted: #94A3B8;
  --shadow-card: 0 6px 24px rgba(0, 0, 0, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-dark);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

.mt-12 {
  margin-top: 12px;
}

.mb-12 {
  margin-bottom: 12px;
}

.text-green {
  color: var(--green-500) !important;
}

.text-danger {
  color: var(--danger) !important;
}

.muted-text {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0;
}

/* ============================================================================
   SCREEN 1: LOGIN / WELCOME
   ============================================================================ */

.auth-screen {
  min-height: 100dvh;
  background: radial-gradient(circle at top right, #1C2E4C 0%, var(--navy-900) 65%);
  color: var(--text-on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(24px + var(--safe-top)) 16px calc(24px + var(--safe-bottom));
}

.auth-container {
  width: 100%;
  max-width: 410px;
}

.auth-brand {
  text-align: center;
  margin-bottom: 24px;
}

.vault-emblem {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  display: grid;
  place-items: center;
  padding: 10px;
}

.private-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #34D399;
  background: rgba(14, 155, 116, 0.18);
  border: 1px solid rgba(14, 155, 116, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.auth-wordmark {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #FFFFFF;
}

.auth-tagline {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--text-on-dark-muted);
}

.auth-card {
  background: #FFFFFF;
  color: #172033;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.auth-welcome h2 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: #101B2D;
}

.auth-welcome p {
  margin: 0 0 20px;
  font-size: 13.5px;
  color: #566273;
}

.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrap input {
  padding-right: 62px;
}

.icon-ghost-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: #566273;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px;
}

.auth-footer-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #E2E8F0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #566273;
}

.auth-footer-note svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--green-500);
}

/* ============================================================================
   FORMS & BUTTONS
   ============================================================================ */

.form-group {
  margin-bottom: 14px;
}

.form-group.compact {
  margin-bottom: 0;
}

label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="search"],
select,
textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-dark);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(14, 155, 116, 0.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 700;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: transform 0.1s ease, background-color 0.15s ease, opacity 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-full {
  width: 100%;
}

.btn-sm {
  padding: 8px 13px;
  font-size: 13px;
}

.btn-primary {
  background: var(--green-500);
  color: #FFFFFF;
}

.btn-primary:hover:not(:disabled) {
  background: var(--green-600);
}

.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border: 1.5px solid var(--border-color);
}

.btn-amber {
  background: var(--amber);
  color: #FFFFFF;
}

.btn-danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.btn-glass-sm {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.text-link-btn {
  background: none;
  border: none;
  color: var(--green-500);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0;
}

.inline-alert {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 14px;
}

.inline-alert-danger {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid rgba(217, 56, 72, 0.25);
}

/* ============================================================================
   APP SHELL, HEADER & NAVIGATION
   ============================================================================ */

.app-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.offline-banner {
  background: var(--amber);
  color: #FFFFFF;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 16px;
}

.top-header {
  background: var(--navy-900);
  color: #FFFFFF;
  padding: calc(12px + var(--safe-top)) 16px 14px;
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mini-emblem {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  display: grid;
  place-items: center;
  padding: 4px;
  flex-shrink: 0;
}

.header-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.header-title {
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.currency-chip {
  font-size: 10px;
  font-weight: 800;
  background: rgba(14, 155, 116, 0.22);
  color: #34D399;
  padding: 2px 6px;
  border-radius: 5px;
}

.header-subtitle {
  margin: 1px 0 0;
  font-size: 11.5px;
  color: var(--text-on-dark-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-icon-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.badge-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--danger);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.user-avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1.5px solid var(--green-500);
  background: var(--navy-700);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}

.main-content {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  padding: 16px 16px calc(92px + var(--safe-bottom));
  flex: 1;
}

.view-section {
  display: none;
  animation: fadeSlideUp 0.2s ease;
}

.view-section.active {
  display: block;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================================
   DASHBOARD HERO CARD & SURFACES
   ============================================================================ */

.hero-vault-card {
  background: linear-gradient(155deg, var(--navy-900) 0%, #192A46 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-hero);
  margin-bottom: 14px;
}

.hero-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hero-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-on-dark-muted);
}

.status-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}

.status-neutral {
  background: rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
}

.status-matched {
  background: rgba(14, 155, 116, 0.25);
  color: #34D399;
}

.status-variance {
  background: rgba(217, 130, 11, 0.28);
  color: #FBBF24;
}

.hero-balance {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 8px 0 14px;
  font-variant-numeric: tabular-nums;
}

.hero-sub-balances {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 14px;
}

.sub-bal-item {
  flex: 1;
}

.sub-bal-label {
  display: block;
  font-size: 11px;
  color: var(--text-on-dark-muted);
}

.sub-bal-value {
  font-size: 13.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sub-bal-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 12px;
}

.sub-bal-divider.dark {
  background: var(--border-color);
}

.bank-verify-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(14, 155, 116, 0.12);
  border: 1px solid rgba(14, 155, 116, 0.28);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 16px;
}

.bank-verify-info {
  display: flex;
  flex-direction: column;
}

.bank-verify-title {
  font-size: 11px;
  color: #A7F3D0;
  font-weight: 600;
}

.bank-verify-amount {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
}

.bank-verify-time {
  font-size: 11px;
  color: var(--text-on-dark-muted);
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.quick-action-btn {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  padding: 11px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.quick-action-btn.qa-primary {
  background: var(--green-500);
  border-color: var(--green-500);
}

.surface-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-card);
  margin-bottom: 14px;
}

.action-alert-card {
  background: var(--amber-soft);
  border: 1px solid rgba(217, 130, 11, 0.35);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.action-alert-text strong {
  display: block;
  font-size: 14px;
  color: var(--text-dark);
}

.action-alert-text p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

.metrics-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.metric-card {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.metric-value {
  font-size: 17px;
  font-weight: 800;
  margin: 4px 0 2px;
  font-variant-numeric: tabular-nums;
}

.metric-hint {
  font-size: 11.5px;
  color: var(--text-muted);
}

.card-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.card-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
}

.card-subtitle {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

.percent-pill {
  background: var(--green-soft);
  color: var(--green-500);
  font-size: 12px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
}

.progress-track {
  width: 100%;
  height: 9px;
  background: var(--surface-muted);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-500), #16C796);
  border-radius: 999px;
  transition: width 0.35s ease;
}

/* ============================================================================
   LISTS, MEMBER BREAKDOWN, GOALS & TRANSACTIONS
   ============================================================================ */

.stack-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.member-contrib-item {
  padding: 10px 12px;
  background: var(--surface-muted);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.member-contrib-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.member-id-badge {
  display: flex;
  align-items: center;
  gap: 9px;
}

.avatar-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy-900);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.avatar-circle.partner {
  background: var(--green-500);
}

.tx-list {
  display: flex;
  flex-direction: column;
}

.tx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
}

.tx-row:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}

.tx-left {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.tx-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex-shrink: 0;
}

.tx-icon.deposit {
  background: var(--green-soft);
  color: var(--green-500);
}

.tx-icon.withdrawal {
  background: var(--danger-soft);
  color: var(--danger);
}

.tx-meta {
  min-width: 0;
}

.tx-desc {
  display: block;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tx-sub {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

.tx-right {
  text-align: right;
  flex-shrink: 0;
}

.tx-amount {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* ============================================================================
   SECTION HEADERS, FILTERS, WITHDRAWALS & GOALS
   ============================================================================ */

.section-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-heading {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
}

.section-subheading {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

.info-callout {
  background: var(--surface-muted);
  border-left: 3.5px solid var(--green-500);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.info-callout strong {
  display: block;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.filter-chips-row {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 12px;
}

.chip {
  background: var(--surface);
  border: 1.5px solid var(--border-color);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.chip.active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #FFFFFF;
}

.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.wd-card,
.goal-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 15px;
  box-shadow: var(--shadow-card);
}

.wd-card-top,
.goal-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.state-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
}

.state-pending {
  background: var(--amber-soft);
  color: var(--amber);
}

.state-approved {
  background: rgba(37, 99, 235, 0.12);
  color: #2563EB;
}

.state-completed {
  background: var(--green-soft);
  color: var(--green-500);
}

.state-rejected,
.state-cancelled {
  background: var(--danger-soft);
  color: var(--danger);
}

.wd-actions-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

.allocation-banner-card {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.alloc-stat {
  text-align: center;
}

.alloc-stat strong {
  display: block;
  font-size: 16px;
  margin-top: 2px;
}

/* ============================================================================
   SETTINGS, TOGGLES & BOTTOM NAVIGATION
   ============================================================================ */

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border-color);
  cursor: pointer;
}

.toggle-row span strong {
  display: block;
  font-size: 14px;
  color: var(--text-dark);
}

.toggle-row span small {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

.toggle-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--green-500);
}

.action-stack {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.privacy-note {
  font-size: 13px;
  color: var(--text-muted);
  margin: 6px 0 0;
}

.ledger-disclaimer {
  text-align: center;
  font-size: 11.5px;
  color: var(--text-muted);
  margin: 16px 8px 4px;
}

.recon-box {
  background: var(--surface-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy-900);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-around;
  padding: 8px 6px calc(8px + var(--safe-bottom));
  z-index: 40;
}

.nav-item {
  background: none;
  border: none;
  color: var(--text-on-dark-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 10px;
  min-width: 58px;
}

.nav-item.active {
  color: #34D399;
}

.nav-icon-wrap {
  position: relative;
  display: grid;
  place-items: center;
}

.nav-dot {
  position: absolute;
  top: -2px;
  right: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}

/* ============================================================================
   MODALS, RECEIPTS & TOASTS
   ============================================================================ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 17, 29, 0.72);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 100;
  padding: 12px;
}

@media (min-width: 540px) {
  .modal-backdrop {
    align-items: center;
  }
}

.modal-sheet {
  width: 100%;
  max-width: 460px;
  max-height: 88dvh;
  overflow-y: auto;
  background: var(--surface);
  color: var(--text-dark);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  animation: fadeSlideUp 0.18s ease;
}

.modal-sheet-tall {
  min-height: 55dvh;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-close-btn {
  background: var(--surface-muted);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.modal-helper {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--text-muted);
}

.readonly-identity-pill {
  background: var(--green-soft);
  border: 1px solid rgba(14, 155, 116, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 14px;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.receipt-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 13.5px;
}

.receipt-row span {
  color: var(--text-muted);
}

.receipt-row strong {
  text-align: right;
  word-break: break-word;
}

.empty-state,
.empty-mini {
  text-align: center;
  color: var(--text-muted);
  font-size: 13.5px;
  padding: 20px 12px;
}

.toast-container {
  position: fixed;
  top: calc(16px + var(--safe-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: calc(100% - 32px);
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--navy-900);
  color: #FFFFFF;
  border-left: 4px solid var(--green-500);
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  animation: fadeSlideUp 0.2s ease;
}

.toast.error {
  border-left-color: var(--danger);
}