:root {
  --ink: #06131c;
  --ink-soft: #5a6d79;
  --paper: #eef4f1;
  --white: #ffffff;
  --brand: #0e9a6a;
  --brand-dark: #087a53;
  --brand-soft: #def6ec;
  --accent: #efb53a;
  --line: #d5e4dc;
  --danger: #d64545;
  --ok: #0e9a6a;
  --warn: #c98412;
  --radius: 1.15rem;
  --radius-sm: 0.85rem;
  --shadow: 0 16px 40px rgba(6, 19, 28, 0.07);
  --shadow-hover: 0 24px 50px rgba(6, 19, 28, 0.13);
  --nav-h: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 400px at 8% -10%, rgba(14,154,106,.08), transparent 50%),
    radial-gradient(900px 360px at 100% 8%, rgba(239,181,58,.08), transparent 46%),
    var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .display, .navbar-brand, .stat-value {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  letter-spacing: -0.035em;
  color: var(--ink);
}

a { color: var(--brand-dark); text-decoration: none; }
a:hover { color: var(--brand); }
img { max-width: 100%; height: auto; }

.site-wrap { min-height: 100vh; display: flex; flex-direction: column; position: relative; }
.site-main { flex: 1; }

.topbar {
  background: #041017;
  color: #b7c8bf;
  font-size: 0.8rem;
  letter-spacing: .02em;
  padding: 0.5rem 0;
}
.topbar a { color: #d7e7de; }
.topbar a:hover { color: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1040;
}
.site-nav {
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
@media (min-width: 992px) {
  .site-nav {
    background: rgba(255,255,255,.86);
    backdrop-filter: blur(18px);
  }
}
.site-nav.is-scrolled {
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow);
  border-bottom-color: var(--line);
}
.navbar-toggler { border: 1px solid var(--line) !important; border-radius: 0.75rem; padding: 0.4rem 0.55rem; }
.navbar-toggler-icon {
  width: 1.3rem;
  height: 1.3rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%2306131c' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
.navbar-brand {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--ink) !important;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 8px 16px rgba(14,154,106,.28);
}
.nav-link {
  color: var(--ink-soft) !important;
  font-weight: 600;
  padding: 0.5rem 0.85rem !important;
  border-radius: 999px;
}
.nav-link:hover, .nav-link.active {
  color: var(--ink) !important;
  background: var(--brand-soft);
}
.nav-pill-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.25rem;
}
.nav-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.2;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.nav-pill:hover,
.nav-pill.is-active {
  background: var(--brand-soft);
  border-color: transparent;
  color: var(--brand-dark);
}
.dropdown-menu {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 0.5rem;
  margin-top: 0.5rem !important;
}
.dropdown-item {
  border-radius: 0.65rem;
  font-weight: 600;
  padding: 0.55rem 0.85rem;
}
.dropdown-item:hover { background: var(--brand-soft); color: var(--brand-dark); }

.btn-brand, .btn-ghost, .btn-dark-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  padding: 0.42rem 1.05rem;
  min-height: 36px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-brand {
  background: linear-gradient(180deg, #16b07a, var(--brand));
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(14, 154, 106, 0.28);
}
.btn-brand:hover { background: var(--brand-dark); transform: translateY(-2px); color: #fff !important; }
.btn-ghost {
  background: #fff;
  color: var(--ink) !important;
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark) !important; transform: translateY(-2px); }
.btn-dark-soft { background: var(--ink); color: #fff !important; }

.page-hero {
  background:
    linear-gradient(180deg, rgba(6,19,28,.15), transparent 40%),
    radial-gradient(circle at 12% 18%, rgba(14,154,106,.28), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(239,181,58,.2), transparent 26%),
    linear-gradient(165deg, #06131c 0%, #0c2736 55%, #0a3d30 100%);
  color: #fff;
  padding: 4.2rem 0 3.4rem;
  position: relative;
  overflow: hidden;
}
.hero-home {
  display: flex;
  align-items: center;
  height: 300px; /* 75% of previous 400px */
  padding: 0.85rem 0;
  min-height: 0;
  box-sizing: border-box;
}
.hero-home .container {
  width: 100%;
}
.hero-home .row {
  --bs-gutter-x: 1.25rem;
  --bs-gutter-y: 0.75rem;
}
.hero-home .eyebrow {
  margin-bottom: 0.55rem;
  font-size: 0.68rem;
  padding: 0.28rem 0.7rem;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1, .page-hero h2, .page-hero p { color: #fff; }
.page-hero .lead { color: #c5d6cd; max-width: 40rem; }
.hero-home .hero-headline,
.hero-home .display-headline {
  font-size: clamp(1.4rem, 1.8vw + 0.7rem, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin: 0 0 0.4rem;
}
.hero-home .lead {
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0 0 0.7rem !important;
  max-width: 34rem;
}
.hero-home-actions .btn-brand,
.hero-home-actions .btn-ghost {
  padding: 0.48rem 0.95rem;
  font-size: 0.86rem;
}
.page-hero .btn-ghost {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255,255,255,.28);
}
.page-hero .btn-ghost:hover {
  background: #fff;
  color: var(--ink) !important;
}
.eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  color: #d8f5e8;
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section { padding: 4.6rem 0; }
.section-tight { padding: 3.2rem 0 4.6rem; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.7rem;
  flex-wrap: wrap;
}
.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 0.35rem; }
.section-sub { color: var(--ink-soft); max-width: 38rem; margin: 0; }

.card-premium, .stat-card, .media-card, .form-card, .sidebar-card, .profile-panel {
  background: var(--white);
  border: 1px solid rgba(213,228,220,.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease;
}
.card-premium:hover, .media-card:hover, .stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}
body.modal-open .card-premium,
body.modal-open .media-card,
body.modal-open .stat-card {
  transform: none !important;
}
.media-card { overflow: hidden; }
.media-card img, .media-card .thumb, .media-placeholder img {
  width: 100%;
  height: 188px;
  object-fit: cover;
  display: block;
}
.media-card .body { padding: 1.2rem 1.25rem 1.35rem; }
.media-card .body h2, .media-card .body h3 { margin-bottom: 0.4rem; }

.chip, .badge-soft {
  display: inline-flex;
  align-items: center;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 0.18rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 700;
}
.badge-pending { background: #fff4d8; color: var(--warn); }
.badge-ok { background: var(--brand-soft); color: var(--brand-dark); }

.stat-card { padding: 1.35rem 1.25rem; }
.stat-value { font-size: 2.05rem; font-weight: 800; color: var(--brand-dark); line-height: 1.1; }
.stat-label { color: var(--ink-soft); font-size: 0.88rem; font-weight: 600; margin-top: 0.2rem; }
.hero-home .stat-card {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  box-shadow: none;
}
.hero-home .stat-value, .hero-home .stat-label { color: #fff; }
.hero-home .stat-label { color: #c9d8d0; }

.form-card { padding: 2.1rem; max-width: 460px; }
.auth-wrap {
  min-height: calc(100vh - 220px);
  display: grid;
  place-items: center;
  padding: 3rem 0;
}
.form-control, .form-select, input.input, textarea.input, select {
  border: 1px solid var(--line) !important;
  border-radius: 0.85rem !important;
  padding: 0.45rem 0.8rem !important;
  min-height: 38px;
  background: #fff;
  width: 100%;
}
.form-control:focus, .form-select:focus, input.input:focus, textarea.input:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 4px rgba(14,154,106,.14) !important;
}
label, .form-label { font-weight: 700; font-size: 0.88rem; margin-bottom: 0.35rem; color: var(--ink); }

.search-bar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.18rem 0.22rem;
  box-shadow: var(--shadow);
  align-items: center;
  flex-wrap: nowrap;
}
.search-bar .form-control {
  border: 0 !important;
  box-shadow: none !important;
  min-height: 34px !important;
  padding: 0.28rem 0.85rem !important;
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}
.search-bar .btn-brand,
.search-bar .btn-ghost {
  padding: 0.28rem 0.95rem;
  min-height: 34px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}
.data-table { margin: 0; }
.data-table thead th {
  background: #0b1c26;
  color: #fff;
  font-weight: 700;
  border: 0;
  white-space: nowrap;
  padding: 0.95rem 1rem;
}
.data-table tbody td { padding: 0.9rem 1rem; vertical-align: middle; }
.data-table tbody tr:hover { background: #f4fbf7; }
.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.btn-table {
  padding: 0.38rem 0.85rem !important;
  font-size: 0.82rem;
  min-height: 0;
  white-space: nowrap;
}

.sidebar-card {
  padding: 0.85rem;
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}
.sidebar-link {
  display: block;
  padding: 0.72rem 0.95rem;
  border-radius: 0.8rem;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 0.28rem;
}
.sidebar-link:hover, .sidebar-link.active {
  background: var(--brand);
  color: #fff !important;
}

.site-footer {
  background: #041017;
  color: #b7c8bf;
  padding: 4.2rem 0 1.4rem;
  margin-top: auto;
}
.site-footer h2, .site-footer h5 { color: #fff; }
.site-footer a { color: #c9d7cf; }
.site-footer a:hover { color: #fff; }
.footer-copy { border-top: 1px solid rgba(255,255,255,.08); margin-top: 2rem; padding-top: 1.2rem; font-size: 0.86rem; }
.footer-wa {
  background: #128C7E;
  border-radius: 999px;
  padding: .35rem .85rem;
  font-size: .85rem;
  line-height: 1;
}
.footer-wa:hover { color: #fff; background: #0f7a6d; }
.footer-wa-icon {
  display: block;
  flex-shrink: 0;
}

.alert {
  border: 0;
  border-radius: 0.95rem;
  box-shadow: var(--shadow);
}
.flash-stack {
  position: fixed;
  top: 88px;
  right: 1rem;
  z-index: 1080;
  display: grid;
  gap: 0.6rem;
  max-width: min(420px, calc(100vw - 2rem));
}
.flash-stack .alert { margin: 0; }
.js-flash { transition: opacity .35s ease, transform .35s ease; }
.js-flash.is-gone { opacity: 0; transform: translateY(-8px); }
.table-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
  align-items: center;
}
.table-toolbar .form-control,
.table-toolbar .form-select { max-width: 240px; min-height: 36px !important; padding: 0.32rem 0.7rem !important; }
.table-toolbar .btn-brand,
.table-toolbar .btn-ghost { min-height: 36px; padding: 0.32rem 0.9rem; }
.member-filters .form-control,
.member-filters .form-select {
  max-width: 220px;
  min-width: 160px;
  flex: 1 1 160px;
}
.sort-link { color: inherit; white-space: nowrap; }
.sort-link.is-active { color: var(--brand); }
.pager {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1rem;
}
.empty-state {
  width: 100%;
  text-align: center;
  padding: 3.2rem 1rem;
  color: var(--ink-soft);
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--brand);
  background: #fff;
}

.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - 140px); align-items: start; }
.admin-side {
  background: #06131c;
  color: #c9d7cf;
  padding: 1.5rem 1rem;
  position: sticky;
  top: 76px;
  max-height: calc(100vh - 76px);
  overflow-y: auto;
}
.admin-side .small { color: #8ea39a !important; }
.admin-side .sidebar-link { color: #d7e4dc; }
.admin-side .sidebar-link:hover, .admin-side .sidebar-link.active {
  background: var(--brand);
  color: #fff !important;
}
.admin-main { padding: 2rem 1.5rem 3rem; }

/* ---- Staff dashboard ---- */
.dash-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: flex-end;
  margin-bottom: 1.35rem;
  padding: 1.6rem 1.7rem;
  border-radius: calc(var(--radius) + 0.15rem);
  background:
    radial-gradient(520px 180px at 0% 0%, rgba(14,154,106,.28), transparent 55%),
    radial-gradient(420px 160px at 100% 0%, rgba(239,181,58,.18), transparent 50%),
    linear-gradient(145deg, #06131c 0%, #0a2a22 55%, #0d3d30 100%);
  color: #fff;
  box-shadow: var(--shadow);
}
.dash-hero-title {
  color: #fff;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 800;
  margin: 0.15rem 0 0.35rem;
}
.dash-hero-sub { color: #b7cfc4; max-width: 36rem; }
.dash-hero .chip {
  background: rgba(14,154,106,.22);
  color: #baf5d8;
}
.dash-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.dash-hero-actions .btn-ghost {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.16);
  color: #fff;
}
.dash-hero-actions .btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff; }

.dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.dash-kpi {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem 1.1rem 1rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.dash-kpi::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(14,154,106,.08);
}
.dash-kpi--brand { border-color: rgba(14,154,106,.28); background: linear-gradient(180deg, #fff, #f3fbf7); }
.dash-kpi--warn { border-color: rgba(201,132,18,.28); background: linear-gradient(180deg, #fff, #fff8eb); }
.dash-kpi--warn::after { background: rgba(239,181,58,.14); }
.dash-kpi--gold { border-color: rgba(239,181,58,.35); }
.dash-kpi p { margin: 0; }
.dash-kpi-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.dash-kpi-value {
  display: block;
  margin: 0.35rem 0 0.2rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.55rem, 2.2vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1.1;
}
.dash-kpi-value--sm { font-size: clamp(1.05rem, 1.6vw, 1.35rem) !important; word-break: break-word; }
.dash-kpi-meta {
  display: block;
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
  position: relative;
  z-index: 1;
}

.dash-quick {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}
.dash-quick-link {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.86rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.dash-quick-link span {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-dark);
  letter-spacing: -0.03em;
}
.dash-quick-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(14,154,106,.35);
  color: var(--ink);
}

.dash-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.25rem;
  box-shadow: var(--shadow);
}
.dash-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.dash-panel-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}
.dash-panel-sub {
  margin: 0.15rem 0 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
}
.dash-link {
  font-weight: 700;
  font-size: 0.86rem;
  white-space: nowrap;
}
.dash-chart-wrap {
  position: relative;
  height: 240px;
}
.dash-chart-wrap--tall { height: 300px; }
.dash-chart-wrap--sm { height: 210px; }
.dash-chart-empty {
  margin: 0;
  height: 100%;
  min-height: 160px;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-weight: 600;
  background: var(--paper);
  border-radius: var(--radius-sm);
}

.dash-stat-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.65rem;
}
.dash-stat-chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.dash-stat-chip strong {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand-dark);
}
.dash-stat-chip span {
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.dash-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.dash-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.85rem;
  background: var(--paper);
}
.dash-list li > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.dash-list strong {
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-list span {
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.dash-empty {
  justify-content: center !important;
  color: var(--ink-soft);
  font-weight: 600;
}

@media (max-width: 1199px) {
  .dash-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dash-quick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dash-stat-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .dash-hero { padding: 1.25rem; }
  .dash-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-chart-wrap, .dash-chart-wrap--tall, .dash-chart-wrap--sm { height: 220px; }
}

.filter-link {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 0.75rem;
  padding: 0.58rem 0.8rem;
  font-weight: 700;
  color: var(--ink);
}
.filter-link.active, .filter-link:hover { background: var(--brand-soft); color: var(--brand-dark); }

.hero-art {
  width: 100%;
  max-width: 170px;
  max-height: 170px;
  height: auto;
  object-fit: contain;
  margin-inline: auto;
  display: block;
  border-radius: 1rem;
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
  border: 3px solid rgba(255,255,255,.12);
}
.media-placeholder {
  overflow: hidden;
  background: linear-gradient(135deg, #0d2433, #0f9f6e);
  min-height: 140px;
}
.profile-panel { padding: 1.7rem; }
.profile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.profile-grid > div {
  background: var(--paper);
  border-radius: 1rem;
  padding: 1rem;
}
.profile-grid h5 { color: var(--brand-dark); font-size: 0.92rem; margin-bottom: 0.7rem; }
.profile-grid p { margin-bottom: 0.35rem; font-size: 0.92rem; }

.cause-band {
  background:
    radial-gradient(circle at 20% 20%, rgba(14,154,106,.35), transparent 32%),
    linear-gradient(160deg, #06131c, #0a342b);
  color: #fff;
}
.cause-band .stat-card {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
  box-shadow: none;
  min-width: 0;
  overflow: hidden;
}
.cause-band .stat-value, .cause-band .stat-label { color: #fff; }
.cause-band .stat-label { color: #c9d8d0; }
.cause-band .cause-stats > [class*="col-"] { min-width: 0; }
.cause-band .stat-value {
  font-size: clamp(1.05rem, 2.6vw, 2.05rem);
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.15;
}

.event-row {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.event-row:last-child { border-bottom: 0; }
.date-badge {
  min-width: 64px;
  text-align: center;
  background: var(--brand-soft);
  border-radius: 1rem;
  padding: 0.55rem 0.4rem;
}
.date-badge .stat-value { font-size: 1.45rem; }
.related-link {
  display: block;
  padding: 0.95rem 1.05rem;
  margin-bottom: 0.6rem;
  font-weight: 700;
}
.contact-tile h2 { margin-bottom: 0.35rem; }
.modal-content {
  border: 0;
  border-radius: 1.15rem;
  box-shadow: var(--shadow-hover);
}
.modal-dialog-scrollable {
  height: calc(100% - 1.5rem);
  max-height: calc(100vh - 1.5rem);
}
.modal-dialog-scrollable .modal-content {
  max-height: calc(100vh - 1.5rem);
  overflow: hidden;
}
.modal-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}
.modal-dialog-scrollable .modal-body {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.page-back { padding: 0.9rem 0 0; }
.notice-card .body { padding: 1.3rem 1.25rem 1.4rem; }
.chip.status-upcoming { background: #e7f3ff; color: #0b5cab; }
.chip.status-running { background: #fff4d8; color: #9a6a00; }
.chip.status-past { background: #eceff1; color: #546e7a; }
.chip.privacy-public { background: #e7f5ef; color: #0b6b5c; }
.chip.privacy-private { background: #f3e8ff; color: #6b21a8; }
.is-filter-active {
  background: var(--brand) !important;
  color: #fff !important;
  border-color: var(--brand) !important;
}

.banner-slider {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 20%, rgba(14,154,106,.35), transparent 28%),
    linear-gradient(160deg, #041017, #0a342b);
}
.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .7s ease;
  pointer-events: none;
}
.banner-slide.is-active {
  opacity: 1;
  position: relative;
  pointer-events: auto;
}
.banner-slide img {
  width: 100%;
  height: 78vh;
  object-fit: cover;
  display: block;
  filter: brightness(.42) saturate(1.05);
}
.banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(4,16,23,.82) 0%, rgba(4,16,23,.35) 58%, rgba(4,16,23,.15) 100%);
  color: #fff;
}
.banner-copy {
  max-width: 42rem;
  padding: 2.2rem 2rem;
  border-radius: 1.6rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(16px);
}
.banner-overlay h1, .banner-overlay p { color: #fff; }
.banner-overlay .btn-ghost {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255,255,255,.35);
}
.banner-overlay .btn-ghost:hover {
  background: #fff;
  color: var(--ink) !important;
}
.banner-dots {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
  z-index: 2;
}
.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.45);
}
.banner-dot.is-active { background: #fff; width: 26px; border-radius: 999px; }
.banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
}
.banner-prev { left: 1.2rem; }
.banner-next { right: 1.2rem; }
.banner-nav:hover { background: rgba(255,255,255,.3); }

.nav-badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: var(--accent);
  color: #06131c;
  font-size: 0.68rem;
  font-weight: 800;
  margin-left: 0.2rem;
}
.nav-badge-abs {
  position: absolute;
  top: 4px;
  right: 2px;
  margin: 0;
}
.nav-icon-link { padding-left: 0.55rem !important; padding-right: 0.55rem !important; }
.nav-icon { display: block; }
.notify-menu { min-width: 280px; }
.notify-row { border-bottom: 1px solid var(--line); }
.notify-row:last-child { border-bottom: 0; }
.notify-row.is-unread { background: #f4fbf7; }
.notify-row-btn {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 1rem 1.2rem;
}
.chat-layout { display: grid; grid-template-columns: 280px 1fr; gap: 1.2rem; align-items: start; }
.chat-side {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}
.chat-list-item {
  display: block;
  padding: 0.75rem 0.8rem;
  border-radius: 0.85rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
  background: var(--paper);
}
.chat-list-item:hover { background: var(--brand-soft); color: var(--ink); }
.chat-room-head {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
  background: #f7fbf8;
}
.chat-thread {
  height: min(58vh, 560px);
  overflow-y: auto;
  padding: 1.2rem;
  background:
    radial-gradient(circle at 10% 0%, rgba(14,154,106,.06), transparent 26%),
    #fafcfb;
}
.chat-bubble {
  max-width: 72%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem 1rem 1rem 0.3rem;
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.75rem;
}
.chat-bubble.is-mine {
  margin-left: auto;
  background: var(--brand-soft);
  border-color: #c8eadb;
  border-radius: 1rem 1rem 0.3rem 1rem;
}
.chat-compose {
  display: flex;
  gap: 0.7rem;
  padding: 0.9rem;
  border-top: 1px solid var(--line);
  background: #fff;
}
.chat-compose textarea { min-height: 48px; resize: none; }

body.is-chat { background: #111b21; }
body.is-chat .site-wrap { height: 100dvh; min-height: 100dvh; overflow: hidden; }
body.is-chat .site-main {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
body.is-chat .topbar { display: none !important; }
.messenger {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) 280px;
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: #111b21;
  color: #e9edef;
}
.messenger-side,
.messenger-main,
.messenger-right {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.messenger-side {
  background: #111b21;
  border-right: 1px solid #2a3942;
}
.messenger-right {
  background: #111b21;
  border-left: 1px solid #2a3942;
}
.messenger-right-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem 1rem 0.35rem;
}
.messenger-right-head h2 {
  font-size: 1.05rem;
  margin: 0;
  color: #fff;
}
.messenger-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem 0.4rem;
}
.messenger-side-head h1 { font-size: 1.45rem; margin: 0; color: #fff; }
.messenger-search { padding: 0.6rem 1rem; }
.messenger-search input {
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: #202c33;
  color: #e9edef;
  padding: 0.55rem 0.9rem;
}
.messenger-tabs { display: flex; gap: 0.4rem; padding: 0 1rem 0.7rem; }
.messenger-tabs a {
  color: #8696a0;
  background: #202c33;
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  font-size: 0.86rem;
}
.messenger-tabs a.is-active { background: #0a5c46; color: #fff; }
.messenger-side-head,
.messenger-search,
.messenger-tabs,
.messenger-right-head,
.messenger-head,
.messenger-compose {
  flex-shrink: 0;
}
.messenger-list {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-height: 0;
  overscroll-behavior: contain;
}
.messenger-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  color: #e9edef;
  position: relative;
}
.messenger-item:hover, .messenger-item.is-active { background: #2a3942; color: #fff; }
.messenger-item-body { min-width: 0; flex: 1; }
.messenger-item-top { display: flex; justify-content: space-between; gap: 0.5rem; }
.messenger-item-top time, .messenger-item-preview { color: #8696a0; font-size: 0.8rem; }
.messenger-item-preview { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.messenger-item-preview.is-unread { color: #fff; font-weight: 600; }
.unread-pip { width: 10px; height: 10px; border-radius: 50%; background: #53bdeb; }
.messenger-avatar { position: relative; width: 48px; height: 48px; flex: 0 0 48px; }
.messenger-avatar img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.messenger-avatar.sm, .messenger-avatar.sm img { width: 32px; height: 32px; flex-basis: 32px; }
.online-dot {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 12px;
  height: 12px;
  background: #31a24c;
  border: 2px solid #111b21;
  border-radius: 50%;
}
.messenger-members {
  padding: 0.4rem 1rem 1rem;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-height: 0;
  overscroll-behavior: contain;
}
.messenger-members h2 { font-size: 0.78rem; color: #8696a0; text-transform: uppercase; }
.messenger-mini { display: flex; align-items: center; gap: 0.5rem; color: #e9edef; padding: 0.45rem 0; }
.messenger-mini:hover { color: #fff; }
.messenger-main { background: #0b141a; }
.messenger-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 1rem;
  background: #202c33;
  border-bottom: 1px solid #2a3942;
}
.messenger-head h2 { font-size: 1rem; margin: 0; color: #fff; }
.messenger-head p { margin: 0; color: #8696a0; font-size: 0.8rem; }
.messenger-head-actions { display: flex; gap: 0.35rem; }
.messenger-icon-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #aebac1;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}
.messenger-icon-btn:hover { background: #2a3942; color: #53bdeb; }
.messenger-thread { flex: 1; min-height: 0; overflow-y: auto; padding: 1.2rem; }
.messenger-row { display: flex; gap: 0.5rem; margin-bottom: 0.7rem; align-items: flex-end; }
.messenger-row.is-mine { justify-content: flex-end; }
.messenger-bubble {
  max-width: min(72%, 520px);
  background: #202c33;
  border-radius: 1rem 1rem 1rem 0.3rem;
  padding: 0.55rem 0.8rem;
}
.messenger-row.is-mine .messenger-bubble { background: #005c4b; border-radius: 1rem 1rem 0.3rem 1rem; }
.messenger-name { font-size: 0.75rem; color: #53bdeb; margin-bottom: 0.15rem; }
.messenger-bubble time { display: block; font-size: 0.7rem; color: #8696a0; margin-top: 0.25rem; }
.chat-photo { max-width: 260px; border-radius: 0.6rem; display: block; margin-bottom: 0.35rem; }
.chat-file { display: inline-block; color: #53bdeb; margin-bottom: 0.3rem; }
.messenger-compose {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  padding: 0.7rem;
  background: #202c33;
}
.composer-wrap { position: relative; flex: 1; }
.chat-input, textarea.chat-input {
  min-height: 42px;
  max-height: 120px;
  resize: none;
  background: #2a3942;
  border: 0;
  color: #e9edef;
  border-radius: 1.2rem;
}
.emoji-panel {
  position: absolute;
  bottom: 48px;
  left: 0;
  right: 0;
  background: #111b21;
  border: 1px solid #2a3942;
  border-radius: 0.8rem;
  padding: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  z-index: 5;
}
.emoji-btn { border: 0; background: transparent; font-size: 1.2rem; }
.messenger-empty { margin: auto; text-align: center; color: #8696a0; }
.messenger-empty h2 { color: #fff; }
.badge-reject { background: #fde8e8; color: #9b1c1c; border-radius: 999px; padding: 0.15rem 0.55rem; font-size: 0.78rem; font-weight: 700; }
.permission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.45rem 1rem;
}
.permission-grid .form-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
}
.permission-table th,
.permission-table td { text-align: center; vertical-align: middle; }
.permission-table th:first-child,
.permission-table td:first-child { text-align: left; }
.notify-menu { min-width: 280px; }
.notify-menu .notify-drop-item.is-unread {
  font-weight: 700;
  background: rgba(11, 28, 38, 0.08);
}
.notify-menu .notify-drop-item.is-unread:hover { background: rgba(11, 28, 38, 0.14); }
.btn-busy { pointer-events: none !important; opacity: 0.78; }
.btn-spin {
  width: 0.9rem;
  height: 0.9rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  display: inline-block;
  animation: btn-spin 0.7s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }
.staff-no-add [data-bs-target="#crudModal"] { display: none !important; }
.staff-no-edit a[href*="edit="] { display: none !important; }
.staff-no-edit form[action*="_moderate"],
.staff-no-edit form[action*="_approve"],
.staff-no-edit form[action*="_hide"],
.staff-no-edit form[action*="_toggle"] { display: none !important; }
.staff-no-delete form[action*="_delete"] { display: none !important; }
.modal { z-index: 1065; }
.modal-backdrop { z-index: 1060; pointer-events: auto; }
body.modal-open .float-chat {
  visibility: hidden;
  pointer-events: none;
}
.profile-section {
  margin-bottom: 1.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}
.profile-section:last-of-type {
  border-bottom: 0;
}

@media (max-width: 991px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { border-bottom: 1px solid rgba(255,255,255,.08); }
  .profile-grid { grid-template-columns: 1fr 1fr; }
  .page-hero { padding: 3.1rem 0 2.5rem; }
  .hero-home {
    height: auto;
    min-height: 0;
    padding: 1.4rem 0 1.2rem;
  }
  .hero-art { max-width: 180px; max-height: 180px; }
  .banner-slider, .banner-slide img { min-height: 58vh; height: 58vh; }
  .chat-layout { grid-template-columns: 1fr; }
  .chat-side, .sidebar-card { position: static; max-height: none; }
  .admin-side { position: static; max-height: 280px; overflow-y: auto; }
  .messenger {
    display: block;
    position: relative;
    grid-template-columns: none;
    grid-template-rows: none;
    height: 100%;
  }
  .messenger-side,
  .messenger-main,
  .messenger-right {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    min-height: 0;
    border: 0;
  }
  .messenger:not(.has-room) .messenger-main {
    display: none;
  }
  .messenger.has-room .messenger-side {
    display: none;
  }
  .messenger-right {
    z-index: 8;
    transform: translateX(100%);
    transition: transform 0.22s ease;
    background: #111b21;
  }
  .messenger.is-new-chat .messenger-right {
    transform: translateX(0);
  }
  .messenger-back {
    flex: 0 0 40px;
  }
  .messenger-compose {
    padding: 0.45rem 0.5rem;
    padding-bottom: max(0.45rem, env(safe-area-inset-bottom));
    gap: 0.2rem;
  }
  .messenger-compose .messenger-icon-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .messenger-compose .btn-brand {
    padding: 0.45rem 0.7rem;
    font-size: 0.86rem;
  }
  .messenger-thread { padding: 0.85rem 0.7rem; }
  .messenger-bubble { max-width: min(86%, 520px); }
  .chat-photo { max-width: 210px; }
  .site-nav {
    overflow: visible;
  }
  #siteMenu.offcanvas {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    max-height: 100dvh;
    width: min(100%, 22rem);
    background: #fff;
    z-index: 1055;
  }
  #siteMenu .offcanvas-body {
    overflow-y: auto;
    padding-bottom: 1.5rem;
  }
  #siteMenu .navbar-nav {
    flex-direction: column;
    align-items: stretch !important;
    gap: 0.15rem;
  }
  #siteMenu .nav-item {
    width: 100%;
  }
  #siteMenu .nav-pill-group {
    margin: 0.35rem 0 0.6rem;
    width: 100%;
  }
  #siteMenu .nav-link,
  #siteMenu .btn-brand {
    width: 100%;
    justify-content: flex-start;
    border-radius: 0.75rem;
  }
  #siteMenu .dropdown-menu {
    position: static !important;
    transform: none !important;
    float: none;
    width: 100%;
    box-shadow: none;
    border: 0;
    margin: 0 !important;
    padding: 0 0 0.35rem 0.75rem;
    display: none;
  }
  #siteMenu .dropdown-menu.show {
    display: block;
  }
}
@media (max-width: 767px) {
  .profile-grid { grid-template-columns: 1fr; }
  .form-card { padding: 1.35rem; }
  .section { padding: 3rem 0; }
  .section-head { align-items: start; }
  .cause-band .section-title { font-size: 1.55rem; }
  .cause-band .stat-card { padding: 0.95rem 0.85rem; }
  .cause-band .stat-value { font-size: 1.35rem; }
  .cause-band .stat-label { font-size: 0.8rem; }
}

.float-chat {
  position: fixed;
  right: 1.05rem;
  bottom: 1.15rem;
  z-index: 1030;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  pointer-events: auto;
  isolation: isolate;
}
.float-chat-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
.float-chat-btn {
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  box-shadow: 0 10px 22px rgba(6, 19, 28, 0.18);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.float-chat-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(6, 19, 28, 0.22);
  color: inherit;
}
.float-chat-btn.is-chat { background: #e31c23; }
.float-chat-toggle {
  background: #0b6b5c;
  color: #fff;
}
.float-chat-toggle:hover { color: #fff; }
.float-chat-bubble { display: none; }
.float-chat.is-collapsed .float-chat-actions {
  display: none;
}
.float-chat.is-collapsed .float-chat-x { display: none; }
.float-chat.is-collapsed .float-chat-bubble { display: block; }
.float-chat.is-disabled .float-chat-actions .float-chat-btn,
.float-chat-actions .float-chat-btn[aria-disabled="true"] {
  filter: grayscale(1);
  opacity: 0.42;
  pointer-events: none;
  cursor: not-allowed;
  box-shadow: 0 6px 14px rgba(6, 19, 28, 0.1);
}
.float-chat.is-disabled .float-chat-actions .float-chat-btn:hover {
  transform: none;
}
body.is-chat .float-chat { display: none; }

/* About + Constitution */
.about-cover { padding: 2.2rem 0 1.8rem; }
.about-jump {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}
.about-jump-track {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.about-jump-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.about-jump-btn:hover {
  background: var(--brand-soft);
  border-color: transparent;
  color: var(--brand-dark);
}
.about-jump-btn.is-active {
  background: #0b6b5c;
  border-color: #0b6b5c;
  color: #fff;
}
.about-panel.is-solo {
  padding-top: 2rem;
}
.about-panel[hidden] {
  display: none !important;
}
.about-block { scroll-margin-top: 5.5rem; }
.about-block-title {
  font-size: clamp(1.45rem, 1.2vw + 1rem, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.about-block-body { max-width: 38rem; }
.about-block-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1.25rem;
  box-shadow: 0 18px 40px rgba(6,19,28,.12);
  border: 1px solid var(--line);
  background: var(--paper);
}
.about-block-image--empty {
  background:
    radial-gradient(circle at 30% 30%, rgba(14,154,106,.22), transparent 45%),
    linear-gradient(145deg, #0c2736, #0a3d30);
}
.about-team { scroll-margin-top: 5.5rem; background: #f7faf8; }
.about-team-head { margin-bottom: 1.5rem; max-width: 36rem; }
.about-team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.about-member-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(6,19,28,.05);
}
.about-member-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: #e8efe9;
}
.about-member-photo--empty {
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 800;
  color: #0b6b5c;
  background: linear-gradient(145deg, #e7f5ef, #d7ebe2);
}
.about-member-body { padding: 1rem 1.05rem 1.15rem; }
.about-member-name {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 0.2rem;
}
.about-member-position {
  margin: 0 0 0.35rem;
  color: #0b6b5c;
  font-weight: 700;
  font-size: 0.9rem;
}
.about-member-designation {
  margin: 0;
  color: #6b7c74;
  font-size: 0.86rem;
}
.constitution-section { padding-top: 1.5rem; }
.constitution-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.constitution-viewer {
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  overflow: hidden;
  background: #111;
  box-shadow: 0 18px 40px rgba(6,19,28,.1);
  min-height: 75vh;
}
.constitution-viewer iframe {
  width: 100%;
  height: 80vh;
  border: 0;
  display: block;
  background: #fff;
}
.staff-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 0.55rem;
  border: 1px solid var(--line);
}
.staff-thumb--round { border-radius: 999px; }

@media (max-width: 991px) {
  .about-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  .about-team-grid { grid-template-columns: 1fr; }
  .constitution-viewer, .constitution-viewer iframe { min-height: 70vh; height: 70vh; }
}

@media (max-width: 767px) {
  .float-chat {
    right: 0.75rem;
    bottom: max(0.85rem, env(safe-area-inset-bottom));
  }
  .float-chat-btn {
    width: 48px;
    height: 48px;
  }
}

.media-gallery { background: #0b1c26; }
.gallery-stage {
  width: 100%;
  min-height: 280px;
  background: #0b1c26;
  display: grid;
  place-items: center;
}
.gallery-stage img,
.gallery-stage video,
.gallery-stage iframe {
  width: 100%;
  max-height: 460px;
  min-height: 280px;
  object-fit: contain;
  border: 0;
  display: block;
  background: #0b1c26;
}
.gallery-caption {
  margin: 0;
  padding: 0.7rem 1rem;
  text-align: center;
  background: #f3f7f5;
  color: var(--ink);
  font-weight: 600;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.gallery-thumbs {
  display: flex;
  gap: 0.45rem;
  padding: 0.7rem;
  overflow-x: auto;
  background: #fff;
}
.gallery-thumb {
  width: 72px;
  height: 56px;
  border: 2px solid transparent;
  border-radius: 0.55rem;
  overflow: hidden;
  padding: 0;
  background: #eef4f0;
  flex: 0 0 auto;
  position: relative;
}
.gallery-thumb.is-active { border-color: var(--brand); }
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-play {
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 0.85rem;
  color: var(--brand-dark);
}
.gallery-edit-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.45rem;
}
.comment-reply {
  margin: 0.7rem 0 0 1rem;
  padding-left: 0.85rem;
  border-left: 3px solid var(--brand-soft);
}
.mention {
  color: var(--brand-dark);
  font-weight: 700;
}
button.mention {
  border: 0;
  background: none;
  padding: 0;
  display: inline;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  color: var(--brand-dark);
}
button.mention:hover { text-decoration: underline; }
.mention-profile-card p { margin-bottom: 0.35rem; }
.mention-profile-body { margin-bottom: 0.25rem; }
.mention-menu {
  position: fixed;
  z-index: 1090;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  box-shadow: var(--shadow);
  min-width: 220px;
  max-height: 220px;
  overflow: auto;
  padding: 0.3rem;
}
.mention-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.45rem 0.65rem;
  border-radius: 0.5rem;
}
.mention-menu button:hover { background: var(--brand-soft); }
