/* ── Reset & base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:      #16a34a;
  --green-light:#dcfce7;
  --green-dark: #15803d;
  --red:        #dc2626;
  --red-light:  #fee2e2;
  --amber:      #d97706;
  --amber-light:#fef3c7;
  --blue:       #2563eb;
  --gray-50:    #f9fafb;
  --gray-100:   #f3f4f6;
  --gray-200:   #e5e7eb;
  --gray-400:   #9ca3af;
  --gray-600:   #4b5563;
  --gray-800:   #1f2937;
  --radius:     12px;
  --shadow:     0 2px 12px rgba(0,0,0,.08);
  --font:       'DM Sans', system-ui, sans-serif;
  --nav-h:      64px;
  --top-h:      52px;
}

html, body {
  font-family: var(--font);
  font-size: 15px;
  background: var(--gray-50);
  color: var(--gray-800);
  height: 100%;
  -webkit-font-smoothing: antialiased;
}

/* ── App shell ───────────────────────────────────────────────────────── */
.app-shell {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  position: relative;
}

/* ── Top bar ─────────────────────────────────────────────────────────── */
.top-bar {
  height: var(--top-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}
.top-bar-left { display: flex; align-items: center; gap: 10px; }
.top-bar-title { font-weight: 700; font-size: 1rem; color: var(--gray-800); }
.top-bar-logout {
  background: none; border: none; cursor: pointer;
  color: var(--gray-400); padding: 6px;
  border-radius: 8px; transition: color .2s;
}
.top-bar-logout:hover { color: var(--red); }

/* ── Page content ────────────────────────────────────────────────────── */
.page-content {
  flex: 1;
  overflow-y: auto;
  padding: 0 0 calc(var(--nav-h) + 8px);
}

/* ── Bottom nav ──────────────────────────────────────────────────────── */
.bottom-nav {
  height: var(--nav-h);
  display: flex;
  align-items: stretch;
  background: #fff;
  border-top: 1px solid var(--gray-200);
  position: sticky;
  bottom: 0;
  z-index: 100;
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--gray-400);
  font-size: 10px;
  font-weight: 500;
  transition: color .2s;
}
.nav-item svg { width: 22px; height: 22px; }
.nav-item.active { color: var(--green); }
.nav-item:hover  { color: var(--green); }

/* ── Login page ──────────────────────────────────────────────────────── */
.login-wrap {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background: #f0fdf4;
}
.login-brand {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 32px;
}
.login-wordmark { font-size: 1.3rem; font-weight: 700; color: var(--gray-800); }
.login-tag      { font-size: .78rem; color: var(--green); font-weight: 600; }
.login-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,.10);
  padding: 36px 28px;
  width: 100%;
  max-width: 400px;
}
.login-title    { font-size: 1.4rem; font-weight: 700; color: var(--gray-800); margin-bottom: 6px; }
.login-subtitle { font-size: .88rem; color: var(--gray-600); margin-bottom: 24px; }
.login-alert {
  background: var(--red-light); color: var(--red);
  border-radius: 8px; padding: 10px 14px;
  font-size: .88rem; margin-bottom: 18px;
}
.login-field  { margin-bottom: 18px; }
.login-label  { display: block; font-size: .82rem; font-weight: 600; color: var(--gray-600); margin-bottom: 6px; }
.login-input  {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px; font-size: .95rem;
  font-family: var(--font); transition: border-color .2s;
  background: #fff; color: var(--gray-800);
}
.login-input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,163,74,.12); }
.login-input.error { border-color: var(--red); }
.login-error-text { font-size: .78rem; color: var(--red); margin-top: 4px; }
.login-btn {
  width: 100%; padding: 13px;
  background: var(--green); color: #fff;
  border: none; border-radius: 10px;
  font-size: 1rem; font-weight: 600;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 10px;
  transition: background .2s;
  margin-top: 6px;
}
.login-btn:hover:not(:disabled) { background: var(--green-dark); }
.login-btn:disabled { opacity: .6; cursor: not-allowed; }
.login-help { font-size: .8rem; color: var(--gray-400); text-align: center; margin-top: 18px; }

/* ── Spinners ─────────────────────────────────────────────────────────── */
.spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.spinner-ring {
  width: 32px; height: 32px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.page-loading, .list-loading {
  display: flex; justify-content: center;
  padding: 60px 0;
}

/* ── Dashboard ───────────────────────────────────────────────────────── */
.dashboard { padding: 0 0 16px; }
.dash-header {
  padding: 20px 16px 12px;
  display: flex; align-items: center; justify-content: space-between;
}
.dash-greeting { font-size: 1.2rem; font-weight: 700; color: var(--gray-800); }
.dash-sub      { font-size: .82rem; color: var(--gray-400); margin-top: 2px; }

.balance-card {
  margin: 0 16px 20px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  border-radius: 16px;
  padding: 24px;
  color: #fff;
}
.balance-label  { font-size: .82rem; opacity: .85; margin-bottom: 6px; }
.balance-amount { font-size: 2rem; font-weight: 700; }
.balance-amount.overdue { color: #fca5a5; }
.balance-warning{ font-size: .82rem; margin-top: 6px; background: rgba(255,255,255,.15); border-radius: 6px; padding: 4px 10px; display: inline-block; }
.balance-cta {
  margin-top: 16px; background: rgba(255,255,255,.2);
  border: none; color: #fff; padding: 8px 16px;
  border-radius: 8px; font-size: .85rem; font-weight: 600;
  cursor: pointer; transition: background .2s;
}
.balance-cta:hover { background: rgba(255,255,255,.3); }

.stats-row {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 10px; padding: 0 16px 20px;
}
.stat-card {
  background: #fff; border: 1.5px solid var(--gray-200);
  border-radius: 12px; padding: 14px 10px; text-align: center;
  cursor: pointer; transition: border-color .2s, box-shadow .2s;
}
.stat-card:hover { border-color: var(--green); box-shadow: 0 2px 8px rgba(22,163,74,.12); }
.stat-card-alert { border-color: #f59e0b !important; background: #fffbeb !important; }
.stat-number { font-size: 1.5rem; font-weight: 700; color: var(--green); }
.stat-number-alert { color: #f59e0b !important; }
.stat-label  { font-size: .75rem; color: var(--gray-400); margin-top: 4px; }

.section-title {
  font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--gray-400); padding: 0 16px 10px;
}

.quick-actions {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; padding: 0 16px 20px;
}
.qa-btn {
  background: #fff; border: 1.5px solid var(--gray-200);
  border-radius: 12px; padding: 16px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: pointer; font-size: .88rem; font-weight: 600;
  color: var(--gray-800); transition: border-color .2s;
}
.qa-btn:hover { border-color: var(--green); }
.qa-icon { font-size: 1.4rem; }

.bulletins { padding: 0 16px; display: flex; flex-direction: column; gap: 10px; }
.bulletin-card {
  background: #fff; border-radius: 12px;
  padding: 14px 16px; border-left: 4px solid var(--gray-200);
}
.bulletin-card.priority-high      { border-left-color: var(--red); }
.bulletin-card.priority-normal    { border-left-color: var(--green); }
.bulletin-card.priority-low       { border-left-color: var(--gray-400); }
.bulletin-category { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-400); margin-bottom: 4px; }
.bulletin-title    { font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
.bulletin-body     { font-size: .85rem; color: var(--gray-600); line-height: 1.5; }
.bulletin-date     { font-size: .75rem; color: var(--gray-400); margin-top: 8px; }

/* ── Page header ─────────────────────────────────────────────────────── */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 12px;
}
.page-title { font-size: 1.2rem; font-weight: 700; }
.back-btn {
  background: none; border: none; cursor: pointer;
  font-size: .88rem; font-weight: 600; color: var(--green);
  padding: 6px 0;
}

/* ── Filter pills ────────────────────────────────────────────────────── */
.filter-pills {
  display: flex; gap: 8px; padding: 0 16px 14px;
  overflow-x: auto; scrollbar-width: none;
}
.filter-pills::-webkit-scrollbar { display: none; }
.pill {
  flex-shrink: 0;
  background: var(--gray-100); border: 1.5px solid var(--gray-200);
  border-radius: 20px; padding: 5px 14px;
  font-size: .82rem; font-weight: 600; cursor: pointer;
  color: var(--gray-600); transition: all .2s;
}
.pill-active { background: var(--green-light); border-color: var(--green); color: var(--green); }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn-primary {
  background: var(--green); color: #fff;
  border: none; border-radius: 10px;
  padding: 11px 20px; font-size: .9rem;
  font-weight: 600; cursor: pointer; font-family: var(--font);
  transition: background .2s;
}
.btn-primary:hover:not(:disabled) { background: var(--green-dark); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.btn-primary.btn-sm { padding: 7px 14px; font-size: .82rem; }
.btn-secondary {
  background: var(--gray-100); color: var(--gray-800);
  border: 1.5px solid var(--gray-200); border-radius: 10px;
  padding: 11px 20px; font-size: .9rem;
  font-weight: 600; cursor: pointer; font-family: var(--font);
}
.btn-ghost {
  background: none; border: 1.5px solid var(--gray-200);
  border-radius: 8px; padding: 7px 14px; font-size: .85rem;
  cursor: pointer; font-family: var(--font); color: var(--gray-600);
}
.btn-ghost:disabled { opacity: .4; cursor: not-allowed; }
.btn-danger {
  background: var(--red-light); color: var(--red);
  border: none; border-radius: 10px;
  padding: 11px 20px; font-size: .9rem;
  font-weight: 600; cursor: pointer; font-family: var(--font);
  width: 100%;
}
.btn-danger-sm {
  background: none; color: var(--red);
  border: 1.5px solid var(--red-light);
  border-radius: 8px; padding: 5px 12px;
  font-size: .8rem; font-weight: 600;
  cursor: pointer; font-family: var(--font);
}
.btn-link {
  background: none; border: none; cursor: pointer;
  color: var(--green); font-weight: 600; font-family: var(--font);
  font-size: inherit; text-decoration: underline;
}

/* ── Alerts ──────────────────────────────────────────────────────────── */
.alert-error {
  background: var(--red-light); color: var(--red);
  border-radius: 8px; padding: 10px 14px;
  font-size: .88rem; margin-bottom: 14px;
}
.alert-success {
  background: var(--green-light); color: var(--green-dark);
  border-radius: 8px; padding: 10px 14px;
  font-size: .88rem; margin-bottom: 14px;
}

/* ── Forms ───────────────────────────────────────────────────────────── */
.form-card {
  background: #fff; border-radius: 14px;
  margin: 0 16px 16px; padding: 20px;
  box-shadow: var(--shadow);
}
.form-group  { margin-bottom: 14px; }
.form-label  { display: block; font-size: .82rem; font-weight: 600; color: var(--gray-600); margin-bottom: 5px; }
.form-control {
  width: 100%; padding: 10px 13px;
  border: 1.5px solid var(--gray-200); border-radius: 9px;
  font-size: .9rem; font-family: var(--font);
  color: var(--gray-800); background: #fff;
  transition: border-color .2s;
}
.form-control:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,163,74,.1); }
textarea.form-control { resize: vertical; }
.form-row    { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-section-title {
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--gray-400);
  margin-bottom: 12px; margin-top: 4px;
}
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }
.req { color: var(--red); }

/* Priority pills inside form */
.priority-pills { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Ticket list ─────────────────────────────────────────────────────── */
.ticket-list { padding: 0 16px; display: flex; flex-direction: column; gap: 10px; }
.ticket-card {
  background: #fff; border-radius: 12px;
  border: 1.5px solid var(--gray-200);
  padding: 14px 16px; cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.ticket-card:hover { border-color: var(--green); box-shadow: 0 2px 10px rgba(22,163,74,.1); }
.ticket-top    { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
.ticket-title  { font-weight: 600; font-size: .92rem; flex: 1; }
.ticket-meta   { font-size: .78rem; color: var(--gray-400); display: flex; align-items: center; gap: 5px; }
.ticket-cat    { color: var(--gray-600); }
.meta-sep      { color: var(--gray-200); }
.priority-dot  { font-size: 10px; }
.priority-dot.priority-low       { color: var(--gray-400); }
.priority-dot.priority-normal    { color: var(--green); }
.priority-dot.priority-high      { color: var(--amber); }
.priority-dot.priority-emergency { color: var(--red); }

/* Status badges */
.status-badge {
  flex-shrink: 0; font-size: .72rem; font-weight: 700;
  padding: 3px 8px; border-radius: 20px;
}
.status-submitted   { background: #dbeafe; color: #1d4ed8; }
.status-acknowledged{ background: #fef3c7; color: #92400e; }
.status-inprogress  { background: #fef3c7; color: #92400e; }
.status-resolved    { background: var(--green-light); color: var(--green-dark); }
.status-completed   { background: var(--gray-100); color: var(--gray-600); }
.status-cancelled   { background: var(--red-light); color: var(--red); }

/* ── Ticket detail ────────────────────────────────────────────────────── */
.detail-card { margin: 0 16px; background: #fff; border-radius: 14px; padding: 20px; box-shadow: var(--shadow); }
.detail-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.detail-title { font-size: 1.1rem; font-weight: 700; flex: 1; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.meta-chip {
  background: var(--gray-100); border-radius: 20px;
  padding: 3px 10px; font-size: .78rem; font-weight: 600; color: var(--gray-600);
}
.priority-chip-low       { background: var(--gray-100); }
.priority-chip-normal    { background: var(--green-light); color: var(--green-dark); }
.priority-chip-high      { background: var(--amber-light); color: var(--amber); }
.priority-chip-emergency { background: var(--red-light); color: var(--red); }
.detail-desc { font-size: .9rem; color: var(--gray-600); line-height: 1.6; margin-bottom: 20px; }

/* Timeline */
.timeline { margin-bottom: 20px; }
.timeline-item {
  display: flex; gap: 12px; padding-bottom: 16px;
  position: relative;
}
.timeline-item:not(:last-child)::before {
  content: ''; position: absolute; left: 7px; top: 18px;
  width: 2px; bottom: 0; background: var(--gray-200);
}
.tl-dot {
  width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  margin-top: 2px;
  background: var(--gray-200); border: 2px solid var(--gray-200);
}
.timeline-item.done .tl-dot { background: var(--green); border-color: var(--green); }
.tl-label { font-size: .88rem; font-weight: 600; color: var(--gray-800); }
.tl-date  { font-size: .78rem; color: var(--gray-400); margin-top: 2px; }
.tl-est   { font-size: .78rem; color: var(--amber); margin-top: 2px; }
.tl-notes { font-size: .82rem; color: var(--gray-600); margin-top: 4px; font-style: italic; }

/* Updates */
.updates-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.update-item  { background: var(--gray-50); border-radius: 10px; padding: 12px 14px; }
.update-header{ display: flex; justify-content: space-between; margin-bottom: 4px; }
.update-by    { font-size: .8rem; font-weight: 700; color: var(--green-dark); }
.update-time  { font-size: .75rem; color: var(--gray-400); }
.update-title { font-weight: 600; font-size: .88rem; margin-bottom: 4px; }
.update-msg   { font-size: .85rem; color: var(--gray-600); line-height: 1.5; }

/* Rating */
.rating-section { border-top: 1px solid var(--gray-100); padding-top: 16px; }
.star-row { display: flex; gap: 6px; margin: 8px 0; }
.star { font-size: 2rem; background: none; border: none; cursor: pointer; color: var(--gray-200); transition: color .15s; }
.star-on { color: #f59e0b; }
.rated-banner { background: var(--amber-light); border-radius: 8px; padding: 10px 14px; font-size: .88rem; color: var(--amber); margin-top: 12px; }

/* ── Statements ──────────────────────────────────────────────────────── */
.balance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px 20px; }
.balance-summary-card {
  border-radius: 14px; padding: 18px; background: #fff;
  box-shadow: var(--shadow);
}
.balance-summary-card.good    { border-left: 4px solid var(--green); }
.balance-summary-card.overdue { border-left: 4px solid var(--red); }
.balance-summary-card.neutral { border-left: 4px solid var(--gray-200); }
.bs-label  { font-size: .78rem; font-weight: 600; color: var(--gray-400); margin-bottom: 6px; }
.bs-amount { font-size: 1.05rem; font-weight: 700; }
.bs-note   { font-size: .75rem; margin-top: 4px; color: var(--green-dark); }
.bs-note.overdue-note { color: var(--red); }

.tx-list { padding: 0 16px; display: flex; flex-direction: column; gap: 1px; }
.tx-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--gray-100);
}
.tx-icon {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700;
}
.tx-credit { background: var(--green-light); color: var(--green-dark); }
.tx-debit  { background: var(--red-light);   color: var(--red); }
.tx-body   { flex: 1; }
.tx-desc   { font-size: .9rem; font-weight: 600; }
.tx-meta   { font-size: .78rem; color: var(--gray-400); margin-top: 2px; display: flex; gap: 5px; }
.tx-amount { font-size: .95rem; font-weight: 700; flex-shrink: 0; }
.tx-amount-credit { color: var(--green-dark); }
.tx-amount-debit  { color: var(--red); }

/* ── Invitations ─────────────────────────────────────────────────────── */
.invite-list { padding: 0 16px; display: flex; flex-direction: column; gap: 10px; }
.invite-card {
  background: #fff; border-radius: 12px;
  border: 1.5px solid var(--gray-200); padding: 14px 16px;
}
.invite-top  { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.invite-name { font-weight: 700; }
.invite-phone{ font-size: .82rem; color: var(--gray-400); margin-top: 2px; }
.invite-meta { font-size: .82rem; color: var(--gray-600); display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.invite-code { font-size: .82rem; color: var(--gray-600); }
.invite-code strong { color: var(--green-dark); font-size: 1rem; }

/* Invitation status badges */
.inv-badge { font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 20px; }
.inv-pending   { background: #fef3c7; color: #92400e; }
.inv-sent      { background: #dbeafe; color: #1d4ed8; }
.inv-confirmed { background: #dbeafe; color: #1d4ed8; }
.inv-validated { background: var(--green-light); color: var(--green-dark); }
.inv-completed { background: var(--gray-100); color: var(--gray-600); }
.inv-cancelled { background: var(--red-light); color: var(--red); }
.inv-expired   { background: var(--gray-100); color: var(--gray-400); }

/* Invite success */
.invite-success { text-align: center; padding: 10px 0; }
.invite-success-icon { font-size: 2.8rem; color: var(--green); margin-bottom: 10px; }
.invite-success-title{ font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.invite-success-sub  { font-size: .88rem; color: var(--gray-600); margin-bottom: 14px; }
.invite-success-note { font-size: .82rem; color: var(--gray-400); margin-top: 8px; }
.access-code {
  font-size: 2.4rem; font-weight: 800; letter-spacing: 6px;
  color: var(--green); background: var(--green-light);
  border-radius: 12px; padding: 16px; display: inline-block;
}

/* ── Profile ─────────────────────────────────────────────────────────── */
.profile-hero {
  text-align: center; padding: 24px 16px 20px;
}
.profile-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--green); color: #fff;
  font-size: 1.6rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.profile-name  { font-size: 1.15rem; font-weight: 700; }
.profile-unit  { font-size: .85rem; color: var(--gray-400); margin-top: 3px; }
.profile-status{ display: inline-block; margin-top: 8px; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.status-active { background: var(--green-light); color: var(--green-dark); }
.status-other  { background: var(--gray-100); color: var(--gray-600); }

.info-card {
  background: #fff; border-radius: 14px;
  margin: 0 16px 16px; box-shadow: var(--shadow); overflow: hidden;
}
.info-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 16px; border-bottom: 1px solid var(--gray-100);
}
.info-row:last-child { border-bottom: none; }
.info-label { font-size: .82rem; font-weight: 600; color: var(--gray-400); }
.info-value { font-size: .9rem; font-weight: 500; }
.text-danger { color: var(--red); }

.profile-signout { padding: 4px 16px 24px; }

/* ── Pagination ──────────────────────────────────────────────────────── */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; padding: 20px 16px;
  font-size: .88rem; color: var(--gray-600);
}

/* ── Empty / error states ────────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 50px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.empty-icon { font-size: 2.5rem; }
.empty-text { font-size: .95rem; color: var(--gray-400); }
.error-state {
  text-align: center; padding: 50px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.not-found {
  text-align: center; padding: 60px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.not-found a { color: var(--green); font-weight: 600; }

/* ── Utilities ───────────────────────────────────────────────────────── */
.mt-1 { margin-top: 6px; }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 16px; }
.app-loading { display: flex; justify-content: center; align-items: center; height: 100dvh; }

/* ── Responsive tweaks ───────────────────────────────────────────────── */
@media (max-width: 380px) {
  .form-row { grid-template-columns: 1fr; }
  .balance-grid { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: 1fr 1fr; }
}
