/* ==========================================================================
   Reusable Components
   ========================================================================== */

/* ---------- Typography helpers ---------- */
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-secondary); }
.text-muted { color: var(--color-muted); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11.5px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }

.btn-primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-primary-light); }

.btn-secondary { background: var(--color-secondary); color: #fff; }
.btn-secondary:hover { filter: brightness(1.05); }

.btn-outline { background: var(--color-surface); color: var(--color-primary); border-color: var(--color-border-strong); }
.btn-outline:hover { background: var(--color-surface-alt); }

.btn-ghost { background: transparent; color: var(--color-text); }
.btn-ghost:hover { background: var(--color-surface-alt); }

.btn-danger { background: var(--color-blood); color: #fff; }
.btn-danger:hover { filter: brightness(1.05); }

.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-block { width: 100%; }
.btn-icon { width: 44px; height: 44px; padding: 0; border-radius: var(--radius-full); }
.btn-icon.btn-sm { width: 36px; height: 36px; }

.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Card ---------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration-base) var(--ease-standard), transform var(--duration-base) var(--ease-standard);
}
.card-hover:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-pad { padding: 18px; }

/* ---------- Section header ---------- */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}
.section-header h2 { font-size: 17px; font-weight: 700; }
.section-header .link { font-size: 13px; font-weight: 600; color: var(--color-secondary); display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }

/* ---------- Avatar ---------- */
.avatar {
  border-radius: var(--radius-full);
  object-fit: cover;
  background: var(--color-surface-alt);
  flex-shrink: 0;
}
.avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--color-secondary-light);
  color: var(--color-primary);
  font-weight: 700;
  flex-shrink: 0;
}
/* Square variant — same avatar/placeholder, corners rounded instead of a full circle. */
.avatar-square { border-radius: var(--radius-lg); }

/* ---------- Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.6;
}
.badge-primary { background: var(--color-secondary-light); color: var(--color-primary); }
.badge-success { background: var(--color-success-bg); color: var(--color-success); }
.badge-warning { background: var(--color-warning-bg); color: #92640A; }
.badge-danger { background: var(--color-danger-bg); color: var(--color-danger); }
.badge-accent { background: var(--color-accent-light); color: #8A6413; }
.badge-blood { background: var(--color-blood-bg); color: var(--color-blood); }
.badge-neutral { background: var(--color-surface-alt); color: var(--color-muted); }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Quick action / stat card ---------- */
.quick-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  min-height: 44px;
}
.quick-action-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  background: var(--color-secondary-light);
  color: var(--color-primary);
}
.quick-action-icon svg { width: 20px; height: 20px; }
.quick-action span { font-size: 13.5px; font-weight: 600; }

.stat-card {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-card .value { font-size: 24px; font-weight: 800; color: var(--color-primary-dark); }
.stat-card .label { font-size: 12.5px; color: var(--color-muted); font-weight: 600; }

/* ---------- Member card ---------- */
.member-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  align-items: center;
}
.member-card .info { flex: 1; min-width: 0; }
.member-card .name { font-weight: 700; font-size: 14.5px; }
.member-card .role { font-size: 12.5px; color: var(--color-secondary); font-weight: 600; margin-top: 1px; }
.member-card .meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 4px;
}
.member-card .meta-row > span { min-width: 0; }
.member-card .actions { display: flex; gap: 6px; flex-shrink: 0; }

/* Members directory grid — self-adapting: as many ~300px+ columns as the
   window fits, instead of a fixed column count that cramps cards (and
   truncates names to nothing) at in-between window widths like 768–1366px. */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}

/* ---------- Leadership card ---------- */
.leadership-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 16px;
  gap: 4px;
}
.leadership-card .avatar, .leadership-card .avatar-placeholder { width: 76px; height: 76px; font-size: 24px; margin-bottom: 8px; }
.leadership-card.featured { padding: 28px 20px; background: linear-gradient(180deg, var(--color-primary-dark), var(--color-primary)); color: #fff; }
.leadership-card.featured .avatar, .leadership-card.featured .avatar-placeholder { width: 96px; height: 96px; font-size: 30px; border: 3px solid rgba(255,255,255,.35); }
.leadership-card.featured .role { color: rgba(255,255,255,.75); }
.leadership-card.featured .name { color: #fff; }
.leadership-card .name { font-weight: 700; font-size: 15px; }
.leadership-card .role { font-size: 12.5px; color: var(--color-secondary); font-weight: 600; }
.leadership-card .business { font-size: 11.5px; color: var(--color-muted); max-width: 100%; margin-top: 2px; }
.leadership-card.featured .business { color: rgba(255,255,255,.75); }
.leadership-card .contact-row { display: flex; gap: 8px; margin-top: 10px; }

/* ---------- Event card ---------- */
.event-card { overflow: hidden; }
.event-card .thumb {
  height: 140px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  position: relative;
  display: flex; align-items: flex-end;
}
.event-card .thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.event-card .date-chip {
  position: relative; z-index: 1;
  margin: 12px;
  background: rgba(255,255,255,.94);
  color: var(--color-primary-dark);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  text-align: center;
  font-weight: 800;
  line-height: 1.1;
}
.event-card .date-chip .mon { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.event-card .date-chip .day { font-size: 17px; }
.event-card .body { padding: 14px; }
.event-card .title { font-weight: 700; font-size: 14.5px; margin-bottom: 6px; }
.event-card .meta-row { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--color-muted); margin-bottom: 4px; }
.event-card .meta-row svg { width: 14px; height: 14px; flex-shrink: 0; }
.event-card.featured { position: relative; color: #fff; min-height: 220px; display: flex; align-items: flex-end; background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary) 55%, var(--color-secondary)); }
.event-card.featured img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.event-card.featured::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,39,72,.92), rgba(11,39,72,.15)); }
.event-card.featured .content { position: relative; z-index: 1; padding: 20px; width: 100%; }
.event-card.featured .title { font-size: 19px; color: #fff; }
.event-card.featured .meta-row { color: rgba(255,255,255,.85); }

/* ---------- Zone & National Event cards (deliberately distinct from Event card) ---------- */
.jci-event-featured { display: flex; align-items: stretch; overflow: hidden; padding: 0; }
.jci-event-featured-img {
  flex: 0 0 220px;
  min-height: 160px;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.85);
}
.jci-event-featured-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jci-event-featured-img svg { width: 36px; height: 36px; }
.jci-event-featured-body { padding: 16px 18px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.jci-event-featured-body .title { font-weight: 700; font-size: 16.5px; margin-bottom: 8px; }
.jci-event-featured-body .meta-row { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--color-muted); margin-bottom: 4px; }
.jci-event-featured-body .meta-row svg { width: 14px; height: 14px; flex-shrink: 0; }
@media (max-width: 640px) {
  .jci-event-featured { flex-direction: column; }
  .jci-event-featured-img { flex-basis: auto; height: 160px; }
}

.jci-event-list { display: flex; flex-direction: column; gap: 10px; }
.jci-event-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.jci-event-row-thumb {
  flex: 0 0 56px; width: 56px; height: 56px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.85); overflow: hidden;
}
.jci-event-row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jci-event-row-thumb svg { width: 22px; height: 22px; }
.jci-event-row-body { min-width: 0; flex: 1; }
.jci-event-row-date { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--color-secondary); margin-bottom: 3px; }
.jci-event-row .title { font-weight: 700; font-size: 14px; margin-bottom: 3px; }
.jci-event-row .meta-row { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--color-muted); }
.jci-event-row .meta-row svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ---------- Birthday card ---------- */
.birthday-card { display: flex; align-items: center; gap: 12px; padding: 14px; }
.birthday-card .cake { width: 40px; height: 40px; border-radius: var(--radius-full); background: var(--color-accent-light); display: flex; align-items: center; justify-content: center; color: #8A6413; flex-shrink: 0; }

/* ---------- Award card ---------- */
.award-card { padding: 18px; display: flex; gap: 14px; align-items: flex-start; }
.award-card .icon { width: 46px; height: 46px; border-radius: var(--radius-md); background: var(--color-accent-light); color: #8A6413; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.award-card .year { font-size: 12px; font-weight: 700; color: var(--color-accent); }
.award-card .title { font-weight: 700; font-size: 15px; margin: 2px 0 4px; }

/* ---------- Donor card ---------- */
.donor-card { display: flex; align-items: center; gap: 12px; padding: 14px; }
.blood-chip { width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--color-blood-bg); color: var(--color-blood); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12.5px; flex-shrink: 0; }

/* ---------- Notification card ---------- */
.notif-card { display: flex; gap: 12px; padding: 14px; align-items: flex-start; position: relative; }
.notif-card.unread { background: var(--color-secondary-light); }
.notif-card .icon { width: 38px; height: 38px; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notif-card .icon svg { width: 18px; height: 18px; }
.notif-card .icon.events { background: var(--color-info-bg); color: var(--color-info); }
.notif-card .icon.birthdays { background: var(--color-accent-light); color: #8A6413; }
.notif-card .icon.announcements { background: var(--color-success-bg); color: var(--color-success); }
.notif-card .icon.important { background: var(--color-danger-bg); color: var(--color-danger); }
.notif-card .title { font-weight: 700; font-size: 14px; }
.notif-card .msg { font-size: 13px; color: var(--color-muted); margin-top: 2px; }
.notif-card .time { font-size: 11.5px; color: var(--color-muted-2); margin-top: 4px; }
.notif-card .unread-dot { position: absolute; top: 16px; right: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--color-secondary); }

/* ---------- Info row ---------- */
/* align-items: flex-start (not center) so a long, wrapped value (Address,
   Business Address, Company, Industry, ...) keeps the icon anchored to
   the top of the row instead of centered against a now-taller block. */
.info-row { display: flex; align-items: flex-start; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--color-border); }
.info-row:last-child { border-bottom: none; }
.info-row .icon { width: 34px; height: 34px; border-radius: var(--radius-sm); background: var(--color-surface-alt); display: flex; align-items: center; justify-content: center; color: var(--color-primary); flex-shrink: 0; }
.info-row .icon svg { width: 16px; height: 16px; }
.info-row .label { font-size: 12px; color: var(--color-muted); }
.info-row .value { font-size: 14px; font-weight: 600; margin-top: 1px; word-break: break-word; }

/* ---------- Search bar ---------- */
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0 14px;
  height: 46px;
}
.search-bar svg { width: 18px; height: 18px; color: var(--color-muted); flex-shrink: 0; }
.search-bar input { flex: 1; border: none; background: none; outline: none; font-size: 14px; height: 100%; }
.search-bar input::placeholder { color: var(--color-muted-2); }
.search-bar:focus-within { border-color: var(--color-secondary); box-shadow: var(--shadow-focus); }
.search-bar .clear-btn { color: var(--color-muted); padding: 4px; border-radius: 50%; }

/* ---------- Filter chips ---------- */
.filter-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 2px; }
.filter-chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--duration-fast) var(--ease-standard);
}
.chip.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.chip:hover:not(.active) { background: var(--color-surface-alt); }

/* ---------- Blood group grid ---------- */
.bloodgroup-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.bloodgroup-btn {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  font-weight: 800;
  font-size: 16px;
  color: var(--color-text);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--duration-fast) var(--ease-standard);
}
.bloodgroup-btn.active { background: var(--color-blood); border-color: var(--color-blood); color: #fff; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; background: var(--color-surface-alt); padding: 4px; border-radius: var(--radius-md); }
.tab-btn {
  flex: 1;
  min-height: 40px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-muted);
}
.tab-btn.active { background: var(--color-surface); color: var(--color-primary); box-shadow: var(--shadow-sm); }

/* ---------- Skeleton ---------- */
.skeleton {
  background: linear-gradient(90deg, var(--color-surface-alt) 25%, #E9EEF5 37%, var(--color-surface-alt) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.skeleton-avatar { width: 48px; height: 48px; border-radius: 50%; }
.skeleton-line { height: 12px; border-radius: 4px; }

/* ---------- Empty / error state ---------- */
.state-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 48px 20px;
  color: var(--color-muted);
}
.state-block .state-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--color-surface-alt);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-muted-2);
  margin-bottom: 4px;
}
.state-block .state-icon svg { width: 26px; height: 26px; }
.state-block .state-title { font-weight: 700; font-size: 15px; color: var(--color-text); }
.state-block .state-desc { font-size: 13.5px; max-width: 280px; }
.state-block.error .state-icon { background: var(--color-danger-bg); color: var(--color-danger); }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(11,20,38,.55);
  z-index: var(--z-modal-backdrop);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-standard);
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal-sheet {
  background: var(--color-surface);
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(24px);
  transition: transform var(--duration-slow) var(--ease-standard);
  z-index: var(--z-modal);
}
.modal-backdrop.open .modal-sheet { transform: translateY(0); }
.modal-handle { width: 40px; height: 4px; border-radius: var(--radius-full); background: var(--color-border-strong); margin: 0 auto 14px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-header h3 { font-size: 16px; font-weight: 700; }

@media (min-width: 640px) {
  .modal-backdrop { align-items: center; }
  .modal-sheet { border-radius: var(--radius-lg); transform: translateY(12px) scale(.98); }
  .modal-backdrop.open .modal-sheet { transform: translateY(0) scale(1); }
}

/* ---------- Lightbox (full-screen image viewer) ---------- */
.lightbox-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.92);
  z-index: var(--z-lightbox);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-standard);
}
.lightbox-backdrop.open { opacity: 1; pointer-events: auto; }
.lightbox-img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: var(--radius-md); }
.lightbox-close, .lightbox-nav {
  position: absolute;
  width: 44px; height: 44px; border-radius: var(--radius-full);
  background: rgba(255,255,255,.12); border: none; color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-standard);
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,.24); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }
.lightbox-counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.9); font-size: 12.5px; font-weight: 700;
  background: rgba(255,255,255,.14); padding: 5px 14px; border-radius: var(--radius-full);
}

/* ---------- More menu (full screen mobile) ---------- */
.more-panel {
  position: fixed; inset: 0;
  background: var(--color-background);
  z-index: var(--z-modal);
  transform: translateX(100%);
  transition: transform var(--duration-slow) var(--ease-standard);
  overflow-y: auto;
}
.more-panel.open { transform: translateX(0); }

/* ---------- Toast ---------- */
.toast-stack {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bottomnav-height) + env(safe-area-inset-bottom) + 16px);
  transform: translateX(-50%);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(360px, calc(100vw - 32px));
}
@media (min-width: 1024px) { .toast-stack { bottom: 24px; } }
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-primary-dark);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 13.5px;
  font-weight: 600;
  animation: toast-in var(--duration-slow) var(--ease-standard);
}
.toast svg { width: 18px; height: 18px; flex-shrink: 0; }
.toast.success { background: var(--color-success); }
.toast.danger { background: var(--color-danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Form ---------- */
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--color-text); }
.form-field input, .form-field select, .form-field textarea {
  height: 46px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0 14px;
  background: var(--color-surface);
  font-size: 14px;
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-focus);
}
.form-field .hint { font-size: 12px; color: var(--color-muted); }
.password-field { position: relative; }
.password-field input { padding-right: 46px; }
.password-field .toggle-visibility {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  background: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  cursor: pointer;
  flex-shrink: 0;
}
.password-field .toggle-visibility svg { width: 18px; height: 18px; }
.password-field .toggle-visibility:hover { background: var(--color-surface-alt); color: var(--color-text); }

/* ---------- Timeline (past presidents / about) ---------- */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 4px; bottom: 4px; width: 2px; background: var(--color-border); }
.timeline-item { position: relative; padding-bottom: 22px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: -28px; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--color-surface); border: 3px solid var(--color-secondary); }
.timeline-year { font-weight: 800; color: var(--color-primary); font-size: 13px; }

/* ---------- Offline banner ---------- */
.offline-banner {
  display: none;
  align-items: center;
  gap: 8px;
  justify-content: center;
  background: var(--color-warning-bg);
  color: #8A5A05;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  text-align: center;
}
.offline-banner.show { display: flex; }
.offline-banner svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--color-border); margin: 16px 0; }
.pill-tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-full); background: var(--color-surface-alt); color: var(--color-muted); }
