:root {
  --app-bg: #f4f7fb;
  --app-surface: #ffffff;
  --app-surface-soft: #f8fafc;
  --app-border: #dde5ef;
  --app-text: #182230;
  --app-muted: #667085;
  --app-primary: #2563eb;
  --app-primary-dark: #1d4ed8;
  --app-primary-soft: #eff6ff;
  --app-success: #087f5b;
  --app-success-soft: #e6fcf5;
  --app-danger: #c92a2a;
  --app-danger-soft: #fff5f5;
  --app-shadow: 0 14px 42px rgba(15, 23, 42, .08);
  --app-shadow-soft: 0 8px 24px rgba(15, 23, 42, .06);
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-select:focus, .form-check-input:focus {
  border-color: rgba(37, 99, 235, .55);
  box-shadow: 0 0 0 .22rem rgba(37, 99, 235, .14);
}

html {
  position: relative;
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, .09), transparent 34rem),
    linear-gradient(180deg, #f7f9fd 0%, var(--app-bg) 100%);
  color: var(--app-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}

.app-shell {
  --sidebar-rail: 72px;
  --sidebar-full: 268px;
  display: grid;
  grid-template-columns: var(--sidebar-rail) minmax(0, 1fr);
  min-height: 100vh;
  position: relative;
  transition: grid-template-columns .25s ease;
}
.app-shell.is-pinned {
  grid-template-columns: var(--sidebar-full) minmax(0, 1fr);
}

.app-sidebar {
  background: rgba(255, 255, 255, .92);
  border-right: 1px solid rgba(221, 229, 239, .85);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.25rem .85rem;
  position: sticky;
  top: 0;
  height: 100vh;
  width: var(--sidebar-rail);
  backdrop-filter: blur(18px);
  transition: width .25s ease, box-shadow .25s ease, padding .25s ease;
  z-index: 30;
}

.app-shell.is-pinned .app-sidebar {
  padding: 1.25rem;
  width: var(--sidebar-full);
}

.sidebar-header {
  align-items: center;
  display: flex;
  gap: .75rem;
  justify-content: space-between;
  min-height: 42px;
}
/* Pin button */
.sidebar-pin {
  align-items: center;
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  color: var(--app-muted);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1rem;
  height: 34px;
  justify-content: center;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .2s ease;
  width: 34px;
}

.sidebar-pin:hover {
  background: var(--app-primary-soft);
  color: var(--app-primary-dark);
}

.sidebar-pin[aria-pressed="true"] {
  background: var(--app-primary);
  border-color: var(--app-primary);
  color: #fff;
  opacity: 1;
  transform: rotate(-35deg);
}

.app-shell:not(.is-pinned) .sidebar-header {
  display: grid;
  gap: .65rem;
  justify-items: center;
}

.app-shell:not(.is-pinned) .sidebar-pin {
  background: var(--app-primary-soft);
  border-color: rgba(37, 99, 235, .18);
  color: var(--app-primary-dark);
}
/* Hide text labels when in rail mode. */
.app-shell:not(.is-pinned) .brand-text,
.app-shell:not(.is-pinned) .side-nav-link span,
.app-shell:not(.is-pinned) .side-user-meta {
  display: none;
}

.app-shell:not(.is-pinned) .brand-lockup {
  justify-content: center;
}

.app-shell:not(.is-pinned) .side-nav-link {
  justify-content: center;
  padding: .8rem 0;
}

.app-shell:not(.is-pinned) .side-user {
  height: 46px;
  justify-content: center;
  margin-inline: auto;
  padding: 0;
  width: 46px;
}

.app-shell:not(.is-pinned) .side-user-avatar {
  font-size: 1.25rem;
  height: 36px;
  margin: 0;
  width: 36px;
}

.brand-lockup,
.brand-mini {
  align-items: center;
  color: var(--app-text);
  display: flex;
  gap: .75rem;
  text-decoration: none;
}

.brand-lockup strong,
.brand-mini {
  font-weight: 800;
}

.brand-lockup small {
  color: var(--app-muted);
  display: block;
  font-size: .78rem;
  margin-top: .05rem;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, var(--app-primary), #14b8a6);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .25);
  color: #fff;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.side-nav {
  display: grid;
  gap: .4rem;
}

.side-nav-link {
  align-items: center;
  border-radius: 14px;
  color: #475467;
  display: flex;
  font-weight: 700;
  gap: .75rem;
  padding: .8rem .9rem;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}

.side-nav-link:hover,
.side-nav-link.active {
  background: var(--app-primary-soft);
  color: var(--app-primary-dark);
}

.side-nav-link:hover {
  transform: translateX(2px);
}

.side-nav-link i {
  font-size: 1.1rem;
}

.side-nav-button {
  background: none;
  border: 0;
  text-align: left;
  width: 100%;
}

.side-user {
  align-items: center;
  background: var(--app-surface-soft);
  border: 1px solid var(--app-border);
  border-radius: 14px;
  display: flex;
  gap: .65rem;
  margin-bottom: .35rem;
  padding: .65rem .75rem;
}

.side-user-avatar {
  align-items: center;
  background: var(--app-primary-soft);
  border-radius: 12px;
  color: var(--app-primary-dark);
  display: inline-flex;
  font-size: 1.4rem;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.side-user-meta {
  display: grid;
  line-height: 1.15;
  min-width: 0;
}

.side-user-meta strong {
  color: var(--app-text);
  font-size: .92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-user-meta small {
  font-size: .72rem;
  font-weight: 700;
}

.auth-shell {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 4rem);
}

.auth-panel {
  max-width: 420px;
  width: 100%;
}

.auth-brand {
  align-items: center;
  display: flex;
  gap: .85rem;
}

.app-main {
  min-width: 0;
}

.mobile-topbar {
  display: none;
}

.content-shell {
  margin: 0 auto;
  max-width: 1320px;
  padding: 1.5rem 2rem 3rem;
}

.page-header {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: .5rem 0 1.35rem;
}

.page-header h1 {
  font-size: clamp(1.85rem, 2.2vw, 2.65rem);
  font-weight: 800;
  margin: 0;
}

.page-header p,
.text-muted {
  color: var(--app-muted) !important;
}

.panel {
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(221, 229, 239, .95);
  border-radius: 8px;
  box-shadow: var(--app-shadow-soft);
  padding: 1.1rem;
}

.btn {
  border-radius: 12px;
  font-weight: 700;
  padding-inline: 1rem;
}

.btn-sm {
  border-radius: 10px;
  font-weight: 700;
}

.btn-primary {
  background: var(--app-primary);
  border-color: var(--app-primary);
  box-shadow: 0 10px 20px rgba(37, 99, 235, .18);
}

.btn-primary:hover {
  background: var(--app-primary-dark);
  border-color: var(--app-primary-dark);
}

.btn-outline-secondary {
  border-color: #c9d3df;
  color: #475467;
}

.btn-outline-secondary:hover {
  background: #f1f5f9;
  border-color: #aebdcb;
  color: var(--app-text);
}

.form-control,
.form-select,
.input-group-text {
  border-color: #d6dfeb;
  border-radius: 12px;
}

.input-group .form-control {
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
}

.input-group .input-group-text {
  background: #f8fafc;
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
  color: var(--app-muted);
  font-weight: 700;
}

.form-label,
.form-check-label {
  color: #344054;
  font-weight: 700;
}

.form-switch .form-check-input {
  height: 1.15rem;
  width: 2.2rem;
}

.table {
  --bs-table-bg: transparent;
  color: var(--app-text);
}

.table thead th {
  background: #f8fafc;
  border-bottom: 1px solid var(--app-border);
  color: #667085;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.table tbody td {
  border-color: #edf1f7;
  padding-bottom: .9rem;
  padding-top: .9rem;
}

.money-positive {
  color: var(--app-success);
  font-weight: 700;
}

.money-negative {
  color: var(--app-danger);
  font-weight: 700;
}

.money-neutral {
  color: var(--app-muted);
  font-weight: 700;
}

.report-header {
  border-bottom: 1px solid #d9dee7;
  padding-bottom: 1rem;
}

.report-summary {
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 1rem;
}

.summary-tile {
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(248, 250, 252, .94));
  border: 1px solid var(--app-border);
  border-radius: 14px;
  box-shadow: var(--app-shadow-soft);
  display: flex;
  gap: .85rem;
  padding: 1rem 1.1rem;
  position: relative;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.summary-tile::before {
  background: linear-gradient(180deg, var(--app-primary), #14b8a6);
  border-radius: 0 4px 4px 0;
  content: "";
  height: 60%;
  left: 0;
  position: absolute;
  top: 20%;
  width: 4px;
}

.summary-tile:hover {
  border-color: rgba(37, 99, 235, .35);
  box-shadow: var(--app-shadow);
  transform: translateY(-2px);
}

.summary-tile .tile-icon {
  align-items: center;
  background: var(--app-primary-soft);
  border-radius: 12px;
  color: var(--app-primary-dark);
  display: inline-flex;
  font-size: 1.25rem;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.tile-fund .tile-icon {
  background: #e6fcf5;
  color: var(--app-success);
}

.tile-transfers .tile-icon {
  background: #fff4e6;
  color: #c2410c;
}

.summary-tile span,
.section-title span,
.settlement-person span {
  color: #687789;
  display: block;
  font-size: .82rem;
}

.summary-tile strong {
  color: var(--app-text);
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  margin-top: .15rem;
}

.report-panel {
  box-shadow: var(--app-shadow-soft);
}

.section-title {
  align-items: baseline;
  border-bottom: 1px solid #edf1f7;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: .65rem;
}

.section-title h5 {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  margin: 0;
}

.member-name {
  font-weight: 700;
}

.cell-sub {
  color: var(--app-muted);
  font-size: .72rem;
  margin-top: .25rem;
}

.report-table tbody tr {
  transition: background-color .12s ease;
}

.report-table tbody tr:hover {
  background-color: rgba(37, 99, 235, .04);
}

.report-table th.col-final,
.report-table td.col-final {
  background: linear-gradient(180deg, rgba(239, 246, 255, .55), rgba(239, 246, 255, .15));
  border-left: 1px solid #e3ecfa;
}

.status-pill {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: .72rem;
  font-weight: 700;
  gap: .25rem;
  margin-top: .2rem;
  padding: .15rem .55rem;
}

.status-positive {
  background: var(--app-success-soft);
  color: var(--app-success);
}

.status-negative {
  background: var(--app-danger-soft);
  color: var(--app-danger);
}

.status-neutral {
  background: #eef2f7;
  color: #52606d;
}

.money-pill {
  border-radius: 999px;
  display: inline-block;
  font-weight: 700;
  min-width: 96px;
  padding: .3rem .65rem;
  text-align: center;
}

.money-pill-lg {
  font-size: 1rem;
  font-weight: 800;
  min-width: 120px;
  padding: .4rem .85rem;
}

.money-positive-soft {
  background: var(--app-success-soft);
  color: var(--app-success);
  font-weight: 700;
}

.money-negative-soft {
  background: var(--app-danger-soft);
  color: var(--app-danger);
  font-weight: 700;
}

.settlement-list {
  display: grid;
  gap: .75rem;
}

.settlement-card {
  align-items: center;
  background: var(--app-surface-soft);
  border: 1px solid var(--app-border);
  border-left: 4px solid #14b8a6;
  border-radius: 12px;
  display: grid;
  gap: .75rem;
  grid-template-columns: 1fr auto 1fr auto;
  padding: .9rem 1rem;
  transition: box-shadow .15s ease, transform .15s ease;
}

.settlement-card:hover {
  box-shadow: var(--app-shadow-soft);
  transform: translateY(-1px);
}

.settlement-person strong {
  display: block;
  font-size: 1rem;
}

.settlement-from strong {
  color: var(--app-danger);
}

.settlement-to strong {
  color: var(--app-success);
}

.settlement-arrow {
  color: #687789;
  font-weight: 700;
}

.settlement-amount {
  background: var(--app-success-soft);
  border-radius: 999px;
  color: var(--app-success);
  font-weight: 800;
  padding: .35rem .8rem;
  text-align: center;
  white-space: nowrap;
}

.empty-state {
  background: var(--app-surface-soft);
  border: 1px dashed #bcc7d4;
  border-radius: 12px;
  padding: 1.25rem;
}

.empty-state span {
  color: #687789;
  display: block;
}

.fund-grid {
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.fund-metric {
  background: var(--app-surface-soft);
  border: 1px solid var(--app-border);
  border-radius: 12px;
  padding: .9rem 1rem;
  position: relative;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.fund-metric:hover {
  border-color: rgba(37, 99, 235, .3);
  box-shadow: var(--app-shadow-soft);
  transform: translateY(-1px);
}

.fund-metric-icon {
  color: var(--app-primary);
  font-size: 1.05rem;
  margin-bottom: .35rem;
}

.fund-metric span {
  color: #687789;
  display: block;
  font-size: .82rem;
}

.fund-metric strong {
  color: var(--app-text);
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  margin-top: .15rem;
}

.fund-balance {
  background: linear-gradient(135deg, var(--app-primary-soft), rgba(255, 255, 255, .9));
  border-color: rgba(37, 99, 235, .35);
}

.fund-balance .fund-metric-icon {
  color: var(--app-primary-dark);
}

.fund-result {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 12px;
  display: flex;
  gap: .85rem;
  margin-top: 1rem;
  padding: .9rem 1.1rem;
}

.fund-result i {
  font-size: 1.5rem;
  line-height: 1;
}

.fund-result strong,
.fund-result span {
  display: block;
}

.fund-result strong {
  font-weight: 800;
}

.fund-surplus {
  background: var(--app-success-soft);
  border-color: rgba(8, 127, 91, .25);
  color: var(--app-success);
}

.fund-deficit {
  background: var(--app-danger-soft);
  border-color: rgba(201, 42, 42, .25);
  color: var(--app-danger);
}

.fund-even {
  background: #f1f5f9;
  border-color: #d9dee7;
  color: #52606d;
}

.expense-type {
  border-radius: 999px;
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  padding: .22rem .6rem;
}

.badge-fund {
  background: var(--app-success-soft);
  color: var(--app-success);
}

.badge-private {
  background: #eef2ff;
  color: #334eac;
}

@media (max-width: 768px) {
  .settlement-card {
    grid-template-columns: 1fr;
  }

  .member-fund-card {
    grid-template-columns: 1fr;
  }

  .member-fund-main {
    padding-top: 0;
  }

  .settlement-arrow {
    display: none;
  }

  .settlement-amount {
    justify-self: start;
  }

  .summary-tile {
    padding: .9rem;
  }
}

.checkbox-grid {
  display: grid;
  gap: .5rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.member-fund-list {
  display: grid;
  gap: .75rem;
}

.member-fund-card {
  align-items: start;
  background: var(--app-surface-soft);
  border: 1px solid var(--app-border);
  border-radius: 8px;
  display: grid;
  gap: .75rem;
  grid-template-columns: minmax(150px, 1fr) minmax(160px, 200px) minmax(200px, 1.2fr) minmax(120px, 150px);
  padding: .85rem;
}

.member-fund-card.is-included {
  background: var(--app-surface);
  border-color: rgba(37, 99, 235, .35);
  box-shadow: 0 8px 24px rgba(37, 99, 235, .08);
}

.member-fund-main {
  padding-top: 1.8rem;
}

.member-fund-card .form-label {
  color: #687789;
  font-size: .82rem;
  margin-bottom: .25rem;
}

.member-detail-list {
  display: grid;
  gap: .65rem;
}

.member-detail-card {
  align-items: center;
  background: var(--app-surface-soft);
  border: 1px solid var(--app-border);
  border-radius: 8px;
  display: flex;
  gap: .75rem;
  justify-content: space-between;
  padding: .75rem;
}

.member-detail-card strong,
.member-detail-card span {
  display: block;
}

.member-detail-card span {
  color: #687789;
  font-size: .85rem;
}

.trip-card {
  cursor: pointer;
  min-height: 190px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.trip-card:hover,
.trip-card:focus-visible {
  border-color: rgba(37, 99, 235, .4);
  box-shadow: var(--app-shadow);
  outline: none;
  transform: translateY(-2px);
}

.trip-card.has-thumbnail {
  color: #fff;
  overflow: hidden;
  position: relative;
}

.trip-card.has-thumbnail .trip-card-bg {
  background-image: var(--trip-thumb);
  background-position: center;
  background-size: cover;
  inset: 0;
  position: absolute;
  transform: scale(1.02);
  transition: transform .5s ease;
  z-index: 0;
}

.trip-card.has-thumbnail:hover .trip-card-bg {
  transform: scale(1.08);
}

.trip-card.has-thumbnail .trip-card-scrim {
  background:
    linear-gradient(180deg, rgba(8, 18, 35, .25) 0%, rgba(8, 18, 35, .82) 92%);
  inset: 0;
  position: absolute;
  z-index: 0;
}

.trip-card.has-thumbnail .trip-card-body {
  position: relative;
  z-index: 1;
}

.trip-card.has-thumbnail h5 {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}

.trip-card.has-thumbnail .trip-card-desc {
  color: rgba(255, 255, 255, .88) !important;
}

.trip-card.has-thumbnail .stat-chip {
  background: rgba(255, 255, 255, .15);
  border-color: rgba(255, 255, 255, .25);
  color: #fff;
  backdrop-filter: blur(8px);
}

.trip-card.has-thumbnail .card-icon {
  background: rgba(255, 255, 255, .18);
  color: #fff;
  backdrop-filter: blur(8px);
}

.trip-card.has-thumbnail .btn-outline-secondary {
  background: rgba(255, 255, 255, .9);
  border-color: rgba(255, 255, 255, .9);
  color: var(--app-text);
}

.trip-card .btn {
  position: relative;
  z-index: 1;
}

.trip-card h5 {
  font-weight: 800;
  margin-bottom: .45rem;
}

.stat-chip {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--app-border);
  border-radius: 999px;
  color: #475467;
  display: inline-flex;
  font-size: .85rem;
  font-weight: 700;
  gap: .35rem;
  padding: .35rem .65rem;
}

.card-icon {
  align-items: center;
  background: var(--app-primary-soft);
  border-radius: 14px;
  color: var(--app-primary-dark);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.toolbar-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.empty-collection {
  align-items: center;
  background: rgba(255, 255, 255, .85);
  border: 1px dashed #bcc7d4;
  border-radius: 8px;
  color: var(--app-muted);
  display: grid;
  justify-items: center;
  padding: 3rem 1rem;
  text-align: center;
}

.empty-collection h5 {
  font-weight: 800;
  margin-bottom: .35rem;
}

.empty-collection p {
  max-width: 520px;
}

.empty-collection i {
  color: var(--app-primary);
  font-size: 2rem;
  margin-bottom: .5rem;
}

.empty-action {
  align-items: center;
  background: #ffffff;
  border-color: rgba(37, 99, 235, .28);
  color: var(--app-primary-dark);
  display: inline-flex;
  gap: .45rem;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .08);
  padding: .7rem 1.1rem;
}

.empty-action i {
  font-size: 1rem;
  line-height: 1;
  margin: 0 !important;
}

.empty-action:hover {
  background: var(--app-primary-soft);
  border-color: rgba(37, 99, 235, .45);
  color: var(--app-primary-dark);
}

.landing-hero {
  border-radius: 8px;
  color: #fff;
  min-height: clamp(460px, 62vh, 680px);
  overflow: hidden;
  position: relative;
}

.landing-hero-bg,
.landing-hero-overlay {
  inset: 0;
  position: absolute;
}

.landing-hero-bg {
  /* Travel-themed hero image from Unsplash (free, no API key needed).
     To swap, change the URL below — a few good alternatives:
       - Travel flat lay (backpack + map + camera):
         https://images.unsplash.com/photo-1530789253388-582c481c54b0?auto=format&fit=crop&w=2000&q=80
       - Snowy mountain reflected on a lake (Banff vibe):
         https://images.unsplash.com/photo-1469474968028-56623f02e42e?auto=format&fit=crop&w=2000&q=80
       - Friends watching sunset from a car:
         https://images.unsplash.com/photo-1488646953014-85cb44e25828?auto=format&fit=crop&w=2000&q=80
     To use a custom local image, replace wwwroot/images/landing-hero.png
     and swap the URL order below so the local file sits on top.
  */
  background-image:
    url("https://images.unsplash.com/photo-1530789253388-582c481c54b0?auto=format&fit=crop&w=2000&q=80"),
    url("../images/landing-hero.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
  animation: heroPanZoom 22s ease-in-out infinite alternate;
}

@keyframes heroPanZoom {
  0%   { transform: scale(1.02) translate3d(0, 0, 0); }
  100% { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}

.landing-hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 18, 35, .88) 0%, rgba(8, 18, 35, .66) 42%, rgba(8, 18, 35, .18) 100%),
    linear-gradient(180deg, rgba(8, 18, 35, .08), rgba(8, 18, 35, .42));
}

.landing-hero-decor {
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.landing-hero-decor i {
  color: rgba(255, 255, 255, .55);
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .35));
  position: absolute;
  text-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}

.decor-float {
  animation: floatDecor 6s ease-in-out infinite;
}

.decor-float-1 { top: 14%;  right: 8%;  font-size: 2.6rem; animation-delay: 0s;   transform: rotate(-12deg); }
.decor-float-2 { top: 64%;  right: 14%; font-size: 2.1rem; animation-delay: 1.2s; }
.decor-float-3 { top: 38%;  right: 30%; font-size: 1.6rem; animation-delay: 2.4s; opacity: .8; }
.decor-float-4 { top: 22%;  right: 22%; font-size: 1.4rem; animation-delay: 0.6s; color: rgba(255, 200, 120, .85); }
.decor-float-5 { top: 76%;  right: 6%;  font-size: 1.9rem; animation-delay: 1.8s; color: rgba(255, 180, 200, .85); }

@keyframes floatDecor {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(6deg); }
}

.landing-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 680px;
  min-height: inherit;
  padding: clamp(2rem, 5vw, 4.5rem);
  position: relative;
  z-index: 1;
}

.landing-kicker {
  align-items: center;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  gap: .5rem;
  margin-bottom: 1.15rem;
  padding: .45rem .85rem;
  width: fit-content;
}

.landing-hero h1 {
  font-size: clamp(2.6rem, 5.2vw, 5.8rem);
  font-weight: 800;
  line-height: .98;
  margin: 0;
  max-width: 9.8ch;
}

.landing-hero p {
  color: rgba(255, 255, 255, .86);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  margin: 1.25rem 0 0;
  max-width: 590px;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.65rem;
}

.landing-actions .btn-light {
  background: rgba(255, 255, 255, .92);
  border-color: rgba(255, 255, 255, .92);
  color: var(--app-text);
}

.landing-overview {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}.landing-metric {
  align-items: flex-start;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(221, 229, 239, .95);
  border-radius: 8px;
  box-shadow: var(--app-shadow-soft);
  display: flex;
  gap: .85rem;
  padding: 1rem;
}

.landing-metric-icon {
  align-items: center;
  background: var(--app-primary-soft);
  border-radius: 12px;
  color: var(--app-primary-dark);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.25rem;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.landing-metric-green {
  background: var(--app-success-soft);
  color: var(--app-success);
}

.landing-metric-warm {
  background: #fff4e6;
  color: #c2410c;
}

.landing-metric strong,
.landing-metric span {
  display: block;
}

.landing-metric strong {
  font-weight: 800;
  margin-bottom: .2rem;
}

.landing-metric span {
  color: var(--app-muted);
  line-height: 1.45;
}

/* ---------- Trip gallery ---------- */

.trip-gallery-panel {
  position: relative;
}

.trip-gallery-upload {
  display: grid;
  gap: .65rem;
}

.trip-gallery-dropzone {
  align-items: center;
  background: var(--app-primary-soft);
  border: 2px dashed rgba(37, 99, 235, .35);
  border-radius: 14px;
  color: var(--app-primary-dark);
  cursor: pointer;
  display: flex;
  gap: .85rem;
  margin: 0;
  padding: 1rem 1.2rem;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}

.trip-gallery-dropzone:hover,
.trip-gallery-dropzone.is-dragover {
  background: rgba(37, 99, 235, .12);
  border-color: rgba(37, 99, 235, .6);
  transform: translateY(-1px);
}

.trip-gallery-dropzone-icon {
  align-items: center;
  background: #fff;
  border-radius: 12px;
  color: var(--app-primary-dark);
  display: inline-flex;
  font-size: 1.6rem;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.trip-gallery-dropzone strong {
  color: var(--app-text);
  display: block;
  font-weight: 800;
}

.trip-gallery-preview {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.trip-gallery-preview-chip {
  align-items: center;
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: 999px;
  display: inline-flex;
  font-size: .8rem;
  gap: .4rem;
  padding: .25rem .6rem .25rem .25rem;
}

.trip-gallery-preview-chip img {
  border-radius: 50%;
  height: 24px;
  object-fit: cover;
  width: 24px;
}

.trip-gallery-grid {
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.trip-gallery-item {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  cursor: zoom-in;
  margin: 0;
  overflow: hidden;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}

.trip-gallery-item:hover {
  box-shadow: 0 18px 38px rgba(15, 23, 42, .22);
  transform: translateY(-3px);
}

.trip-gallery-item img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
  width: 100%;
}

.trip-gallery-item:hover img {
  transform: scale(1.06);
}

.trip-gallery-item.is-thumbnail {
  outline: 3px solid var(--app-primary);
  outline-offset: -3px;
}

.trip-gallery-thumbflag {
  align-items: center;
  background: var(--app-primary);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: .7rem;
  font-weight: 800;
  gap: .25rem;
  left: .55rem;
  padding: .2rem .55rem;
  position: absolute;
  top: .55rem;
  z-index: 2;
}

.trip-gallery-overlay {
  align-items: center;
  background: linear-gradient(180deg, rgba(8, 18, 35, 0) 30%, rgba(8, 18, 35, .82) 100%);
  display: flex;
  gap: .35rem;
  inset: 0;
  justify-content: center;
  opacity: 0;
  padding: .5rem;
  position: absolute;
  transition: opacity .2s ease;
}

.trip-gallery-item:hover .trip-gallery-overlay,
.trip-gallery-item:focus-within .trip-gallery-overlay {
  opacity: 1;
}

.trip-gallery-overlay form,
.trip-gallery-overlay .btn {
  margin: 0;
}

.trip-gallery-overlay .btn {
  border-radius: 999px;
  padding: .35rem .55rem;
}

/* ---------- Lightbox ---------- */

.trip-lightbox {
  align-items: center;
  background: rgba(8, 12, 22, .94);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 2rem;
  position: fixed;
  z-index: 3000;
}

.trip-lightbox.is-open {
  display: flex;
  animation: lightboxFade .2s ease;
}

@keyframes lightboxFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.trip-lightbox-image {
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  max-height: 88vh;
  max-width: 88vw;
  object-fit: contain;
}

.trip-lightbox-close,
.trip-lightbox-nav {
  align-items: center;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 1.2rem;
  height: 44px;
  justify-content: center;
  transition: background-color .15s ease, transform .15s ease;
  width: 44px;
}

.trip-lightbox-close:hover,
.trip-lightbox-nav:hover {
  background: rgba(255, 255, 255, .25);
  transform: scale(1.08);
}

.trip-lightbox-close {
  position: absolute;
  right: 1.25rem;
  top: 1.25rem;
}

.trip-lightbox-nav {
  height: 52px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
}

.trip-lightbox-prev { left: 1.25rem; }
.trip-lightbox-next { right: 1.25rem; }

.trip-lightbox-caption {
  bottom: 1rem;
  color: rgba(255, 255, 255, .8);
  font-size: .9rem;
  left: 50%;
  position: absolute;
  text-align: center;
  transform: translateX(-50%);
}

/* ---------- Donate section ---------- */

.home-stack {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: -.5rem;
}

.home-stack > .donate-section,
.home-stack > .landing-overview {
  margin-top: 0;
}

.donate-section {
  margin-top: 1.25rem;
}

.donate-card {
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #fef6ef 55%, #fdeaf2 100%);
  border: 1px solid rgba(245, 158, 11, .25);
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  position: relative;
}

.donate-card::before {
  background: radial-gradient(circle at 0 0, rgba(245, 158, 11, .18), transparent 60%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.donate-kicker {
  align-items: center;
  background: rgba(245, 158, 11, .15);
  border-radius: 999px;
  color: #c2410c;
  display: inline-flex;
  font-weight: 800;
  gap: .4rem;
  padding: .35rem .8rem;
}

.donate-kicker i {
  animation: heartBeat 1.6s ease-in-out infinite;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  20%      { transform: scale(1.25); }
  40%      { transform: scale(0.95); }
  60%      { transform: scale(1.15); }
}

.donate-copy h2 {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 800;
  line-height: 1.18;
  margin: .85rem 0 .85rem;
}

.donate-emoji {
  display: inline-block;
  animation: tilt 2.4s ease-in-out infinite;
  transform-origin: 50% 80%;
}

@keyframes tilt {
  0%, 100% { transform: rotate(-8deg); }
  50%      { transform: rotate(12deg); }
}

.donate-copy p {
  color: var(--app-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 1rem;
}

.donate-perks {
  display: grid;
  gap: .45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.donate-perks li {
  align-items: center;
  color: #475467;
  display: flex;
  font-weight: 600;
  gap: .55rem;
}

.donate-perks i {
  color: var(--app-primary);
}

.donate-qr-frame {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.donate-qr-glow {
  background:
    conic-gradient(from 0deg, #f59e0b, #ef4444, #ec4899, #8b5cf6, #2563eb, #14b8a6, #f59e0b);
  border-radius: 28px;
  filter: blur(28px);
  inset: -22px;
  opacity: .55;
  position: absolute;
  animation: glowSpin 9s linear infinite;
  z-index: 0;
}

@keyframes glowSpin {
  to { transform: rotate(360deg); }
}

.donate-qr-card {
  background: #ffffff;
  border: 1px solid var(--app-border);
  border-radius: 22px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, .18);
  display: grid;
  gap: .85rem;
  justify-items: center;
  padding: 1.25rem;
  position: relative;
  text-align: center;
  z-index: 1;
  animation: qrPulse 2.4s ease-in-out infinite;
}

@keyframes qrPulse {
  0%, 100% { transform: translateY(0) scale(1); box-shadow: 0 30px 60px rgba(15, 23, 42, .18); }
  50%      { transform: translateY(-6px) scale(1.015); box-shadow: 0 38px 70px rgba(15, 23, 42, .22); }
}

.donate-qr-badge {
  align-items: center;
  background: var(--app-primary-soft);
  border-radius: 999px;
  color: var(--app-primary-dark);
  display: inline-flex;
  font-size: .82rem;
  font-weight: 800;
  gap: .35rem;
  padding: .3rem .7rem;
}

.donate-qr-image {
  background: #ffffff;
  border-radius: 14px;
  display: block;
  height: auto;
  max-width: 260px;
  padding: .4rem;
  transition: transform .25s ease;
  width: 100%;
}

.donate-qr-image:hover,
.donate-qr-image:focus-visible {
  transform: scale(1.04) rotate(-1.5deg);
}

.donate-qr-caption strong {
  display: block;
  font-weight: 800;
  margin-bottom: .15rem;
}

.donate-qr-caption span {
  color: var(--app-muted);
  font-size: .85rem;
}

/* ---------- Confetti canvas ---------- */

.landing-confetti {
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: 2000;
}

/* ---------- Drive-by car ---------- */

.landing-car {
  align-items: flex-end;
  display: inline-flex;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  gap: 4px;
  left: -220px;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 65vh;
  z-index: 1900;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .25));
}

.landing-car-svg {
  display: block;
  height: auto;
  width: clamp(120px, 16vw, 200px);
}

.landing-car-wheel {
  transform-box: fill-box;
  transform-origin: center;
}

.landing-car.drive-ltr .landing-car-wheel,
.landing-car.drive-rtl .landing-car-wheel {
  animation: wheelSpin .6s linear infinite;
}

@keyframes wheelSpin {
  to { transform: rotate(360deg); }
}

.landing-car-puff {
  background: rgba(255, 255, 255, .85);
  border-radius: 50%;
  display: inline-block;
  height: 16px;
  margin-right: -6px;
  opacity: 0;
  vertical-align: bottom;
  width: 16px;
}

.landing-car.drive-ltr {
  animation: carDriveLtr 4.2s cubic-bezier(.45, .05, .55, .95) forwards;
}

.landing-car.drive-rtl {
  animation: carDriveRtl 4.2s cubic-bezier(.45, .05, .55, .95) forwards;
}

.landing-car.drive-ltr .landing-car-puff {
  animation: puffFade 1.4s ease-out infinite;
}
.landing-car.drive-ltr .landing-car-puff:nth-child(2) { animation-delay: .25s; }
.landing-car.drive-ltr .landing-car-puff:nth-child(3) { animation-delay: .5s; }

.landing-car.drive-rtl {
  transform: scaleX(-1);
}

.landing-car.drive-rtl .landing-car-puff {
  animation: puffFade 1.4s ease-out infinite;
}
.landing-car.drive-rtl .landing-car-puff:nth-child(2) { animation-delay: .25s; }
.landing-car.drive-rtl .landing-car-puff:nth-child(3) { animation-delay: .5s; }

@keyframes carDriveLtr {
  0%   { transform: translateX(0)            translateY(0); opacity: 0; }
  6%   { opacity: 1; }
  50%  { transform: translateX(calc(50vw + 60px)) translateY(-3px); }
  94%  { opacity: 1; }
  100% { transform: translateX(calc(100vw + 200px)) translateY(0); opacity: 0; }
}

@keyframes carDriveRtl {
  0%   { left: auto; right: -120px; transform: scaleX(-1) translateX(0)            translateY(0); opacity: 0; }
  6%   { opacity: 1; }
  50%  { left: auto; right: -120px; transform: scaleX(-1) translateX(calc(50vw + 60px)) translateY(-3px); }
  94%  { opacity: 1; }
  100% { left: auto; right: -120px; transform: scaleX(-1) translateX(calc(100vw + 200px)) translateY(0); opacity: 0; }
}

@keyframes puffFade {
  0%   { opacity: 0; transform: translate(0, 0) scale(.4); }
  40%  { opacity: .9; }
  100% { opacity: 0; transform: translate(-25px, -10px) scale(1.4); }
}

/* ---------- Camera snap ---------- */

.landing-camera {
  left: 30vw;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 30vh;
  transform: scale(.4) rotate(-15deg);
  z-index: 1950;
}

.landing-camera-body {
  align-items: center;
  background: #0f172a;
  border: 3px solid #334155;
  border-radius: 18px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .35);
  color: #fbbf24;
  display: inline-flex;
  font-size: 2.4rem;
  height: 70px;
  justify-content: center;
  position: relative;
  width: 84px;
}

.landing-camera-check {
  align-items: center;
  background: #10b981;
  border: 2px solid #fff;
  border-radius: 50%;
  bottom: -10px;
  color: #fff;
  display: inline-flex;
  font-size: .95rem;
  height: 26px;
  justify-content: center;
  opacity: 0;
  position: absolute;
  right: -10px;
  transform: scale(.2);
  width: 26px;
}

.landing-camera-caption {
  background: rgba(15, 23, 42, .92);
  border-radius: 10px;
  color: #fff;
  display: block;
  font-size: .8rem;
  font-weight: 700;
  left: 50%;
  margin-top: .55rem;
  opacity: 0;
  padding: .25rem .6rem;
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
}

.landing-camera.is-active {
  animation: cameraPop 2.2s ease-out forwards;
}

.landing-camera.is-active .landing-camera-check {
  animation: checkPop .6s cubic-bezier(.34, 1.56, .64, 1) .7s forwards;
}

.landing-camera.is-active .landing-camera-caption {
  animation: captionFade 1.4s ease-out .8s forwards;
}

@keyframes cameraPop {
  0%   { opacity: 0; transform: scale(.4) rotate(-15deg); }
  15%  { opacity: 1; transform: scale(1.1) rotate(4deg); }
  30%  { transform: scale(1) rotate(0deg); }
  35%  { transform: scale(.94) rotate(-1deg); }   /* shutter flick */
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes checkPop {
  0%   { opacity: 0; transform: scale(.2); }
  60%  { transform: scale(1.25); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes captionFade {
  0%   { opacity: 0; transform: translate(-50%, -6px); }
  20%  { opacity: 1; transform: translate(-50%, 0); }
  80%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 4px); }
}

/* ---------- Flash overlay ---------- */

.landing-flash {
  background: #ffffff;
  inset: 0;
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  z-index: 1940;
}

.landing-flash.is-on {
  animation: flashStrike .55s ease-out;
}

@keyframes flashStrike {
  0%   { opacity: 0; }
  18%  { opacity: .9; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .landing-car,
  .landing-camera,
  .landing-flash { display: none !important; }
}

.table-responsive {
  border-radius: 8px;
}

.alert {
  border-radius: 12px;
}

@media (max-width: 992px) {
  .app-shell {
    display: block;
  }

  .app-sidebar {
    display: none;
  }

  .mobile-topbar {
    background: rgba(255, 255, 255, .9);
    border-bottom: 1px solid var(--app-border);
    display: block;
    padding: .65rem 1rem;
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
  }

  .content-shell {
    padding: 1.25rem 1rem 2rem;
  }

  .landing-overview {
    grid-template-columns: 1fr;
  }

  .donate-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .donate-perks {
    display: inline-grid;
    text-align: left;
  }

  .donate-kicker {
    margin: 0 auto;
  }

  .landing-hero-decor i {
    display: none;
  }
}

@media (max-width: 768px) {
  .page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .member-fund-card {
    grid-template-columns: 1fr;
  }

  .member-fund-main {
    padding-top: 0;
  }

  .toolbar-actions {
    width: 100%;
  }

  .toolbar-actions .btn {
    flex: 1 1 auto;
  }

  .landing-hero {
    min-height: 520px;
  }

  .landing-hero-overlay {
    background:
      linear-gradient(180deg, rgba(8, 18, 35, .84) 0%, rgba(8, 18, 35, .62) 58%, rgba(8, 18, 35, .22) 100%),
      linear-gradient(90deg, rgba(8, 18, 35, .7), rgba(8, 18, 35, .18));
  }

  .landing-hero-content {
    justify-content: flex-end;
    padding: 1.25rem;
  }

  .landing-hero h1 {
    max-width: 10.5ch;
  }

  .landing-actions .btn {
    flex: 1 1 180px;
  }
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ---------- User cards (Users/Index) ---------- */
.user-card-grid {
  margin-top: .25rem;
}

.user-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--app-border);
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem 1rem 1.1rem;
  text-align: center;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.user-card:hover,
.user-card:focus-visible {
  border-color: rgba(37, 99, 235, .45);
  box-shadow: var(--app-shadow);
  outline: none;
  transform: translateY(-2px);
}

.user-card-avatar {
  align-items: center;
  background: var(--app-primary-soft);
  border-radius: 50%;
  color: var(--app-primary-dark);
  display: flex;
  font-size: 1.6rem;
  font-weight: 800;
  height: 84px;
  justify-content: center;
  letter-spacing: .04em;
  overflow: hidden;
  width: 84px;
}

.user-card-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.user-card-avatar.is-placeholder {
  background: linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(99, 102, 241, .18));
}

.user-card-body {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  min-width: 0;
  width: 100%;
}

.user-card-name {
  color: var(--app-text);
  font-size: 1.05rem;
  font-weight: 700;
}

.user-card-meta {
  color: var(--app-muted);
  font-size: .82rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- User detail modal ---------- */
.user-detail-modal .modal-content {
  border: none;
  border-radius: 16px;
  overflow: hidden;
}

.user-detail-hero {
  align-items: center;
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.user-detail-avatar {
  align-items: center;
  background: var(--app-primary-soft);
  border-radius: 50%;
  color: var(--app-primary-dark);
  display: flex;
  font-size: 1.6rem;
  font-weight: 800;
  height: 72px;
  justify-content: center;
  overflow: hidden;
  width: 72px;
}

.user-detail-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.user-detail-avatar.is-placeholder {
  background: linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(99, 102, 241, .18));
}

.user-detail-list {
  column-gap: 1rem;
  display: grid;
  grid-template-columns: minmax(120px, auto) 1fr;
  margin: 0;
  row-gap: .5rem;
}

.user-detail-list dt {
  color: var(--app-muted);
  font-weight: 600;
}

.user-detail-list dd {
  color: var(--app-text);
  margin: 0;
  word-break: break-word;
}

/* ---------- User form avatar ---------- */
.user-form-avatar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.user-form-avatar-preview {
  align-items: center;
  background: var(--app-primary-soft);
  border-radius: 50%;
  color: var(--app-primary-dark);
  display: flex;
  font-size: 2.2rem;
  height: 96px;
  justify-content: center;
  overflow: hidden;
  width: 96px;
}

.user-form-avatar-preview img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.user-form-avatar-placeholder {
  align-items: center;
  display: flex;
  justify-content: center;
}

.user-form-avatar-controls {
  flex: 1 1 240px;
  min-width: 0;
}
