
/* Page header */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px var(--px) 25px;
}
.greeting {
  font-size: 12px;
  color: var(--ink-muted);
  font-weight: 500;
}
.h-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
}

/* Nav header (back-button screens) */
.nav-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--px);
  background: #ffffff;
}
.nav-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  flex: 1;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-spacer {
  width: 40px;
}
.icon-btn-plain {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

/* Icon button */
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--blue-surface);
  border: 1px solid #E4DEF5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--blue);
  transition: background var(--transition), border-color var(--transition);
}
.icon-btn:hover {
  background: var(--blue-bg);
  border-color: var(--blue-mid);
}

/* Balance card */
.bal-card {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
  border-radius: 10px;
  padding: 20px 22px;
  color: #ffffff;
  box-shadow: var(--shadow-card);
  margin: 20px var(--px) 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bal-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  opacity: 0.8;
}
.bal-amount {
  font-size: 34px;
  font-weight: 800;
  display: flex;
  align-items: baseline;
}
.bal-cents {
  font-size: 20px;
  font-weight: 700;
  opacity: 0.9;
}
.bal-sub {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.85;
}
.progress-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 3px;
  transition: width 0.3s ease;
}
.cycle-row {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  opacity: 0.75;
  font-weight: 600;
}

/* Callout */
.callout {
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  margin: 12px 0;
}
.callout-green {
  background: var(--green-bg);
  color: var(--green);
}

/* Info banner */
.info-banner {
  background: var(--gold-warm);
  border-radius: var(--r-md);
  border-left: 3px solid var(--gold);
  padding: 10px 14px;
  display: flex;
  gap: 8px;
  font-size: 11.5px;
  color: var(--gold-dark);
  margin: 12px 0;
  align-items: flex-start;
}

/* Buttons (all variants) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  font-family: var(--font);
  font-weight: 700;
  border-radius: var(--r-md);
  height: 46px;
  font-size: 13px;
  width: 100%;
  cursor: pointer;
  transition: background var(--transition), transform 0.1s ease, box-shadow var(--transition);
}
.btn-primary {
  background: var(--blue);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--blue-mid);
}
.btn-primary:active {
  transform: scale(0.98);
}
.btn-outline {
  background: var(--blue-surface);
  border: 1.5px solid var(--blue);
  color: var(--blue);
}
.btn-outline:hover {
  background: var(--blue-bg);
}
.btn-outline:active {
  transform: scale(0.98);
}
.btn-lg {
  height: 50px;
  font-size: 14px;
  border-radius: var(--r-lg);
}
.btn-wrap {
  padding: 0 0 20px;
  width: 100%;
}
.sm-btn {
  height: 30px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--r-sm);
  border: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), transform 0.1s ease;
}
.sm-primary {
  background: var(--blue);
  color: #ffffff;
}
.sm-primary:hover {
  background: var(--blue-mid);
}
.sm-danger {
  background: var(--tangerine-bg);
  border: 1px solid var(--tangerine-bdr);
  color: var(--tangerine);
}
.sm-danger:hover {
  background: #fddcd8;
}

/* Section header */
.sec-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px var(--px) 8px;
}
.sec-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.sec-link {
  font-size: 11px;
  color: var(--blue);
  font-weight: 600;
}

/* Transaction rows */
.tx-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-lt);
  background: #ffffff;
}
.tx-row.last {
  border-bottom: none;
}
.tx-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tx-icon.deposit {
  background: var(--green-bg);
  color: var(--green);
}
.tx-icon.withdrawal {
  background: var(--tangerine-bg);
  color: var(--tangerine);
}
.tx-icon.fee {
  background: var(--gold-bg);
  color: var(--gold-dark);
}
.tx-body {
  flex: 1;
}
.tx-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.tx-date {
  font-size: 11px;
  color: var(--ink-muted);
}
.tx-amt {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  margin-left: auto;
}
.tx-amt.deposit {
  color: var(--green);
}
.tx-amt.withdrawal {
  color: var(--tangerine);
}
.tx-amt.fee {
  color: var(--gold-dark);
}

/* Filter tabs */
.filter-tabs {
  display: flex;
  gap: 6px;
  padding: 8px var(--px);
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
}
.filter-tabs::-webkit-scrollbar {
  display: none; /* Safari/Chrome */
}
.ftab {
  padding: 10px 16px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.ftab.active {
  background: var(--blue);
  color: #ffffff;
}
.ftab:not(.active) {
  background: #F2F2F5;
  color: #666666;
}

/* Group label (month separator) */
.group-label {
  padding: 10px var(--px) 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Avatar */
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
  border-radius: 5px;
}

/* Chips */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 15px;
  border-radius: var(--r-pill);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: capitalize;
}
.chip-green {
  background: var(--green-chip);
  color: var(--green);
}
.chip-red {
  background: var(--tangerine-bg);
  color: var(--tangerine);
}
.chip-yellow {
  background: var(--gold-bg);
  color: var(--gold-dark);
}
.chip-blue {
  background: var(--blue-bg);
  color: var(--blue);
}

/* Bottom navigation */
.bottom-nav {
  display: flex;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(4px);
  padding: 8px 0 11px;
  width: 92%;
  margin: 0 auto 5%;  
  border-radius: 55px;
  border: 1px solid #adbcff;
}
.bni {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 9.5px;
  font-weight: 500;
  color: #525253;
  text-decoration: none;
  padding: 4px 0;
  cursor: pointer;
  transition: color var(--transition);
}
.bni svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: stroke var(--transition);
}
.bni.act {
  color: var(--blue);
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 4px var(--px) 12px;
}
.stat-card {
  border-radius: var(--r-lg);
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.sc-label {
  font-size: 10px;
  color: #8888AA;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}
.sc-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}
.sc-sub {
  font-size: 10px;
  color: var(--ink-faint);
  margin-top: 3px;
}

/* Bar chart */
.chart-section {
  margin: 4px var(--px) 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px;
}
.chart-title {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ink);
}
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 72px;
}
.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  height: 100%;
  justify-content: flex-end;
}
.bar {
  width: 100%;
  border-radius: 4px 4px 0 0;
  transition: height 0.3s ease;
  background: var(--blue-bg);
}
.bar.active {
  background: var(--blue);
}
.bar-lbl {
  font-size: 9px;
  color: var(--ink-faint);
}
.bar-lbl.current {
  color: var(--blue);
  font-weight: 700;
}

/* Quick action buttons */
.quick-actions {
  display: flex;
  gap: 8px;
  padding: 0 var(--px) 16px;
}
.qa-btn {
  flex: 1;
  height: 58px;
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: #ffffff;
  cursor: pointer;
  color: var(--ink);
  box-shadow: var(--shadow-card);
  transition: transform 0.1s ease, background-color var(--transition);
}
.qa-btn:active {
  transform: scale(0.97);
}
.qa-btn svg {
  width: 18px;
  height: 18px;
  color: var(--blue);
}

/* Saver rows */
.saver-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px var(--px);
  border-bottom: 1px solid var(--border-lt);
  text-decoration: none;
  color: inherit;
  background: #ffffff;
}
.saver-row.last {
  border-bottom: none;
}
.sr-info {
  flex: 1;
}
.sr-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.sr-meta {
  font-size: 11px;
  color: var(--ink-muted);
}
.sr-right {
  text-align: right;
}
.sr-date {
  font-size: 10.5px;
  color: var(--ink-faint);
  margin-bottom: 4px;
}
.sr-amt {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
}

/* Add saver form components */
.av-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px;
  background: var(--surface);
  border: 2px dashed #E8E8EC;
  border-radius: var(--r-xl);
  cursor: pointer;
  margin-bottom: 18px;
  transition: border-color var(--transition);
}
.av-upload:hover {
  border-color: var(--blue);
}
.av-placeholder {
  width: 54px;
  height: 54px;
  border-radius: var(--r-pill);
  background: #EAEAF0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.av-hint {
  font-size: 10.5px;
  color: var(--ink-muted);
  font-weight: 600;
}
.field {
  margin-bottom: 14px;
  width: 100%;
}
.field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}
.f-input {
  height: 46px;
  background: var(--surface);
  border-radius: var(--r-md);
  border: 1.5px solid #E8E8EC;
  display: flex;
  align-items: center;
  padding: 0 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.f-input.focused {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46,5,194,0.1);
  background: #ffffff;
}
.f-input input, .f-input select {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  width: 100%;
}
.f-input input::placeholder {
  color: var(--ink-muted);
  font-weight: 500;
}
.phone-pfx, .cur-pfx {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-right: 6px;
}
.f-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.freq-toggle {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.ft-btn {
  flex: 1;
  height: 44px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 700;
  border: 1.5px solid #E8E8EC;
  background: var(--surface);
  color: #888888;
  cursor: pointer;
  transition: var(--transition);
}
.ft-btn.active {
  background: var(--blue);
  color: #ffffff;
  border-color: var(--blue);
}

/* Progress banner */
.progress-banner {
  background: var(--blue-bg);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px var(--px);
}
.pb-count {
  font-size: 17px;
  font-weight: 800;
  color: var(--blue);
}
.pb-sub {
  font-size: 11px;
  color: #6644CC;
  font-weight: 600;
  margin-top: 2px;
}
.pb-circle {
  width: 48px;
  height: 48px;
  border-radius: var(--r-pill);
  background: var(--blue);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Date chip */
.date-chip {
  height: 28px;
  padding: 0 12px;
  background: #F2F2F5;
  border-radius: var(--r-sm);
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: #555555;
}

/* Reminder card */
.rem-card {
  margin: 0 var(--px) 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}
.rem-card.overdue {
  border: 1.5px solid var(--tangerine-bdr);
  background: #FFFAF9;
}
.rem-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.rem-meta {
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 2px;
}

/* Withdrawal card */
.wd-card {
  margin: 0 var(--px) 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}
.wd-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.wd-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.wd-date {
  font-size: 11px;
  color: var(--ink-muted);
}
.wd-amt {
  font-size: 19px;
  font-weight: 800;
  color: var(--tangerine);
  margin-left: auto;
}
.wd-reason {
  background: var(--surface);
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 11px;
  color: #666666;
  font-style: italic;
  margin-bottom: 10px;
}
.wd-actions {
  display: flex;
  gap: 8px;
}
.wd-actions button {
  flex: 1;
  height: 36px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.wd-approve {
  background: var(--blue);
  color: #ffffff;
  border: none;
}
.wd-approve:hover {
  background: var(--blue-mid);
}
.wd-reject {
  background: #ffffff;
  border: 1.5px solid var(--tangerine-bdr);
  color: var(--tangerine);
}
.wd-reject:hover {
  background: var(--tangerine-bg);
}

/* Saver profile */
.profile-id {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px var(--px) 14px;
  border-bottom: 1px solid var(--border-lt);
}
.pid-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}
.pid-phone {
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-top: 2px;
}
.pid-joined {
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 1px;
}
.stats-row {
  display: flex;
  gap: 8px;
  padding: 0 var(--px) 14px;
}
.stat-pill {
  flex: 1;
  border-radius: var(--r-md);
  padding: 11px 10px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
}
.sp-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}
.sp-lbl {
  font-size: 9.5px;
  color: var(--ink-muted);
  text-transform: uppercase;
  margin-top: 2px;
  font-weight: 600;
}
.cta-row {
  padding: 0 var(--px) 14px;
  display: flex;
  gap: 8px;
}
.cta-row .btn {
  flex: 1;
  width: auto;
}

/* Toast notification */
.toast-container {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  width: 320px;
  max-width: 90%;
}
.toast {
  background: var(--ink);
  color: #ffffff;
  border-radius: var(--r-md);
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-elevated);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: auto;
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.toast.success {
  background: var(--green);
}
.toast.error {
  background: var(--tangerine);
}

/* Bottom sheet / modal */
.sheet-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 0, 22, 0.45);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.sheet-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 375px;
  max-width: 100%;
  background: #ffffff;
  border-radius: var(--r-2xl) var(--r-2xl) 0 0;
  padding: 20px var(--px) 32px;
  z-index: 501;
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-elevated);
}
.sheet.open {
  transform: translateX(-50%) translateY(0);
}
.sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: var(--r-pill);
  margin: 0 auto 20px;
}
.sheet-title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--ink);
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, #F0EFF5 25%, #E8E7EF 50%, #F0EFF5 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
  border-radius: var(--r-sm);
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-text {
  height: 12px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.skeleton-avatar {
  border-radius: var(--r-pill);
}
.skeleton-card {
  height: 90px;
  border-radius: var(--r-lg);
}

/* Search bar */
.search-bar {
  margin: 15px var(--px) 10px;
  height: 42px;
  background: var(--surface);
  border-radius: var(--r-md);
  border: 1.5px solid #E8E8EC;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 8px;
  transition: border-color var(--transition);
}
.search-bar:focus-within {
  border-color: var(--blue);
}
.search-bar input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 13px;
  font-family: var(--font);
  color: var(--ink);
}
.search-bar input::placeholder {
  color: #BBBBC8;
}
.search-bar svg {
  width: 18px;
  height: 18px;
  color: var(--ink-muted);
}

/* Pagination */
.load-more-btn {
  width: calc(100% - 2 * var(--px));
  margin: 10px var(--px);
  height: 44px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), color var(--transition);
}
.load-more-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* Add saver button */
.add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  background: var(--blue);
  color: #ffffff;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

/* Empty state */
.empty-state {
  padding: 48px var(--px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.empty-icon {
  width: 64px;
  height: 64px;
  background: var(--blue-bg);
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}
.empty-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.empty-body {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.55;
  max-width: 260px;
}

/* Callout extensions */
.callout-error {
  background: var(--tangerine-bg);
  color: var(--tangerine);
  border: 1px solid var(--tangerine-bdr);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Password strength indicator */
.password-strength {
  margin-top: 8px;
}
.strength-bar-track {
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  margin-bottom: 4px;
  width: 100%;
}
.strength-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 0%;
}
.strength-0 {
  width: 20%;
  background: var(--tangerine);
}
.strength-1 {
  width: 40%;
  background: #FF8C42;
}
.strength-2 {
  width: 60%;
  background: var(--gold);
}
.strength-3 {
  width: 80%;
  background: #7BC67E;
}
.strength-4 {
  width: 100%;
  background: var(--green);
}
.strength-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-muted);
}

/* Phase 3 additions */
.callout-yellow {
  background: var(--gold-bg);
  color: var(--gold-dark);
  border: 1px solid var(--gold);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.callout-blue {
  background: var(--blue-bg);
  color: var(--blue);
  border: 1px solid rgba(46, 5, 194, 0.2);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.f-textarea {
  display: flex;
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font);
  font-size: 13px;
  color: var(--ink);
  background: var(--surface);
  transition: border-color var(--transition), background var(--transition);
  outline: none;
  height: auto;
  min-height: 90px;
  padding: 12px 14px;
  resize: vertical;
  align-items: flex-start;
}
.f-textarea:focus {
  border-color: var(--blue);
  background: #ffffff;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px var(--px);
  border-bottom: 1px solid var(--border-lt);
}
.detail-row:last-child {
  border-bottom: none;
}
.detail-label {
  font-size: 12px;
  color: var(--ink-muted);
  font-weight: 500;
}
.detail-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}
.section-card {
  margin: 0 var(--px) 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #ffffff;
}
.security-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--px);
  cursor: pointer;
  background: #ffffff;
  border-bottom: 1px solid var(--border-lt);
  transition: background var(--transition);
}
.security-row:hover {
  background: var(--surface);
}
.security-row:last-child {
  border-bottom: none;
}
.security-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.security-row svg.chevron {
  color: var(--ink-faint);
}

/* Phase 4 additions */
.field-hint {
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 5px;
  font-weight: 500;
}
.sp-val-gold {
  color: var(--gold-dark);
}
.sheet-error {
  background: var(--tangerine-bg);
  border: 1px solid var(--tangerine-bdr);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--tangerine);
  margin-bottom: 12px;
  display: none;
}
.sheet-error.visible {
  display: block;
}
.chip-blue {
  background: var(--blue-bg);
  color: var(--blue);
}

/* Phase 5 additions */
.rem-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}
.sm-remind {
  height: 30px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border);
  background: white;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: border-color var(--transition), color var(--transition);
}
.sm-remind:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.wd-rejection-note {
  background: var(--tangerine-bg);
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 11px;
  color: var(--tangerine);
  margin-bottom: 10px;
  font-style: italic;
}
.wd-status-row {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
  border-top: 1px solid var(--border-lt);
  margin-top: 8px;
}
.pay-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 24px var(--px);
}
.pay-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}
.pay-brand {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}
.pay-card {
  width: 100%;
  max-width: 375px;
  background: white;
  border-radius: var(--r-xl);
  padding: 28px 24px;
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: var(--shadow-elevated);
}
.pay-greeting {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 4px;
  font-weight: 500;
}
.pay-heading {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}
.pay-body {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.pay-sub {
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 8px;
}
.pay-amount-box {
  background: var(--blue-bg);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 20px;
}
.pay-amount-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.pay-amount-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.1;
}
.pay-amount-sub {
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 4px;
}
.pay-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 20px;
  font-weight: 500;
}
.pay-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 10.5px;
  color: var(--ink-faint);
  margin-top: 12px;
  font-weight: 500;
}
.pay-error-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--tangerine);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pay-success-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Phase 6 error page additions */
.error-page-icon {
  width: 64px;
  height: 64px;
  background: var(--blue-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.error-page-code {
  font-size: 48px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 8px;
}
.error-page-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}
.error-page-body {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Phase 6 search page additions */
.search-hint {
  padding: 40px var(--px) 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  color: var(--ink-faint);
  font-size: 13px;
  font-weight: 500;
}
.search-results-count {
  padding: 8px var(--px) 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─── Notification Panel ──────────────────────────────────────── */
.notif-bell-wrap {
  position: relative;
}
.notif-badge {
  display: none; /* shown via JS style.display when unread count > 0 */
  position: absolute;
  top: 1px;
  right: 1px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: #E3170A;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  border-radius: 99px;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  line-height: 1;
  border: 1.5px solid #fff;
}
.notif-panel {
  display: none;
  position: fixed;
  z-index: 200;
  width: 400px;
  flex-direction: column;
  background: var(--bg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 12px 12px;
  max-height: 72vh;
  overflow: hidden;
}
@media (max-width: 480px) {
  .notif-panel {
    width: 100%;
    left: 0;
    right: 0;
  }
}
.notif-panel.open {
  display: flex;
  animation: notif-drop-in 0.18s ease-out;
}
@keyframes notif-drop-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes notif-slide-out {
  from { transform: translateX(0);     opacity: 1; }
  to   { transform: translateX(-110%); opacity: 0; }
}
.notif-item.clearing {
  animation: notif-slide-out 0.5s ease-in forwards;
  pointer-events: none;
}
.notif-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--px) 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.notif-panel-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.2px;
}
.notif-panel-actions {
  display: flex;
  gap: 6px;
}
.notif-action-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1;
}
.notif-action-btn:hover {
  background: var(--blue-surface);
  color: var(--blue);
  border-color: var(--blue);
}
.notif-clear-btn {
  color: #E3170A;
  border-color: rgba(227,23,10,0.25);
}
.notif-clear-btn:hover {
  background: rgba(227,23,10,0.06);
  color: #E3170A;
  border-color: #E3170A;
}
.notif-body-wrap {
  position: relative;
  flex: 1;
  overflow: hidden;
  min-height: 200px;
}
.notif-list {
  position: relative;
  z-index: 1;
  overflow-y: auto;
  height: 100%;
  -webkit-overflow-scrolling: touch;
}
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px var(--px);
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
  position: relative;
}
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { background: var(--blue-surface); }
.notif-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.notif-icon.ni-green { background: rgba(27,138,74,0.12);  color: #1B8A4A; }
.notif-icon.ni-red   { background: rgba(227,23,10,0.1);   color: #E3170A; }
.notif-icon.ni-gold  { background: rgba(138,94,0,0.10);   color: #8A5E00; }
.notif-icon.ni-blue  { background: rgba(46,5,194,0.10);   color: var(--blue); }
.notif-content { flex: 1; min-width: 0; }
.notif-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
  line-height: 1.3;
}
.notif-body {
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.4;
  margin-bottom: 4px;
}
.notif-time {
  font-size: 10px;
  color: var(--ink-faint);
  font-weight: 600;
}
.notif-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  margin-top: 5px;
  opacity: 0;
  transition: opacity 0.15s;
}
.notif-item.unread .notif-dot { opacity: 1; }
.notif-empty {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px var(--px) 48px;
  text-align: center;
  background: var(--bg);
}
.notif-empty-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--blue-surface);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.notif-empty-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 4px;
}
.notif-empty-sub {
  font-size: 12px;
  color: var(--ink-faint);
}
.notif-load-wrap {
  padding: 10px var(--px);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.notif-load-btn {
  width: 100%;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  padding: 9px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.notif-load-btn:hover {
  background: var(--blue-surface);
  color: var(--blue);
  border-color: var(--blue);
}
.notif-skeleton {
  display: flex;
  gap: 10px;
  padding: 13px var(--px);
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.sk-box {
  background: var(--border);
  border-radius: 6px;
  animation: sk-pulse 1.4s ease-in-out infinite;
}
@keyframes sk-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}






