/* APSHGWA Landing Page */
:root {
  --page-bg-base: #fefdfb;
  --page-bg-light: #ffffff;
  --page-bg-warm: #fff7eb;
  --sand: #d9c4a3;
  --sand-2: #b9966a;
  --accent: #b46a24;
  --ink: #0f1419;
  --white: #ffffff;
  --muted: #5a6b7c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Merriweather", "Georgia", serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 800px at 10% 10%, var(--page-bg-light) 0%, var(--page-bg-base) 55%),
    radial-gradient(900px 700px at 90% 20%, var(--page-bg-warm) 0%, var(--page-bg-base) 60%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: #628040;
  border-bottom: 1px solid rgba(15, 20, 25, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 18px;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ffffff;
  padding: 3px;
  object-fit: cover;
}

.brand-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--sand-2));
  display: grid;
  place-items: center;
  color: var(--ink);
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav,
.nav a,
.brand {
  color: #ffffff;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.hero {
  padding: 0 0 32px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(15, 20, 25, 0.08);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 30px 60px rgba(19, 29, 37, 0.12);
}

.hero-title {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0.04em;
  margin: 0 0 12px;
  text-transform: uppercase;
  color: #628040;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.banner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 220px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.banner-top {
  margin: 0 0 20px;
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  border-radius: 0;
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(13, 18, 22, 0.45), rgba(13, 18, 22, 0));
}

.banner-caption {
  position: absolute;
  left: 22px;
  bottom: 20px;
  z-index: 2;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section {
  padding: 28px 0;
}

.section h2 {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  color: #628040;
}

.hero-card-wide {
  width: 100%;
  max-width: none;
  margin: 0;
}

.section p {
  color: var(--muted);
  line-height: 1.8;
}

.section ul {
  margin: 8px 0 16px 20px;
  padding: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 16px;
}

.section li {
  margin: 6px 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.info-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(15, 20, 25, 0.08);
  border-radius: 18px;
  padding: 18px;
  min-height: 140px;
}

.content-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(15, 20, 25, 0.08);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 14px 28px rgba(19, 29, 37, 0.06);
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 18px;
  align-items: stretch;
}

.contact-details {
  min-width: 0;
}

.contact-map-link {
  margin-top: 8px;
}

.contact-map {
  min-height: 360px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(15, 20, 25, 0.1);
  background: #f5f7f2;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
}

.auth-section {
  padding: 48px 0 72px;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 420px);
  gap: 28px;
  align-items: start;
}

.auth-copy {
  padding: 18px 0;
}

.auth-kicker {
  margin: 0 0 10px;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.auth-copy h1 {
  margin: 0 0 16px;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #628040;
}

.auth-copy p {
  max-width: 640px;
  color: var(--muted);
  line-height: 1.8;
}

.auth-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 20, 25, 0.08);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 24px 48px rgba(19, 29, 37, 0.12);
}

.auth-form {
  display: grid;
  gap: 14px;
}

.otp-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 20, 25, 0.08);
}

.auth-form label {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #628040;
}

.auth-form input {
  width: 100%;
  border: 1px solid rgba(15, 20, 25, 0.14);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 16px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form input:focus {
  border-color: #628040;
  box-shadow: 0 0 0 4px rgba(98, 128, 64, 0.14);
}

.primary-btn {
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #628040, #7a9958);
  color: #ffffff;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(98, 128, 64, 0.28);
}

.secondary-btn,
.text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 18px;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.secondary-btn {
  border: 1px solid rgba(98, 128, 64, 0.22);
  background: #ffffff;
  color: #628040;
}

.text-btn {
  border: 0;
  background: transparent;
  padding: 0;
  color: #628040;
}

.danger-btn {
  color: #b42318;
}

.alert {
  margin-bottom: 16px;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.6;
}

.alert-success {
  background: #edf7e4;
  border: 1px solid #c8dfae;
  color: #35511c;
}

.alert-error {
  background: #fff0ed;
  border: 1px solid #f2c1b6;
  color: #9d3b27;
}

.info-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #628040;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.info-card p {
  margin: 0;
  font-size: 14px;
}

.footer {
  padding: 28px 0 40px;
  border-top: 1px solid rgba(15, 20, 25, 0.08);
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.footer-links a {
  color: #628040;
}

.dashboard-body {
  background:
    radial-gradient(1000px 700px at 0% 0%, #fbf4e8 0%, #f9faf7 60%),
    linear-gradient(180deg, #f5f7f1 0%, #ffffff 100%);
}

.dashboard-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  transition: grid-template-columns 0.25s ease;
}

.dashboard-shell.sidebar-collapsed {
  grid-template-columns: 88px minmax(0, 1fr);
}

.sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 16px;
  background: linear-gradient(180deg, #4f6931 0%, #2f4420 100%);
  color: #ffffff;
  overflow: hidden;
}

.sidebar-brand-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.sidebar-brand-copy {
  min-width: 0;
}

.sidebar-brand h1 {
  margin: 0;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 18px;
}

.sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.26);
}

.sidebar-toggle-closed {
  display: none;
}

.sidebar-kicker,
.page-eyebrow {
  margin: 0 0 6px;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8fa96d;
}

.sidebar-nav {
  display: grid;
  gap: 6px;
}

.sidebar-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #ebf3df;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s ease, transform 0.2s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.is-active {
  background: rgba(255, 255, 255, 0.14);
  transform: translateX(2px);
}

.dashboard-shell.sidebar-collapsed .sidebar-brand {
  justify-content: center;
  margin-bottom: 10px;
}

.dashboard-shell.sidebar-collapsed .sidebar-brand-copy,
.dashboard-shell.sidebar-collapsed .sidebar-nav a,
.dashboard-shell.sidebar-collapsed .sidebar-logout {
  white-space: nowrap;
}

.dashboard-shell.sidebar-collapsed .sidebar-brand-copy,
.dashboard-shell.sidebar-collapsed .sidebar-nav a,
.dashboard-shell.sidebar-collapsed .sidebar-logout .btn-label {
  opacity: 0;
}

.dashboard-shell.sidebar-collapsed .sidebar-kicker,
.dashboard-shell.sidebar-collapsed .sidebar-brand h1 {
  display: none;
}

.dashboard-shell.sidebar-collapsed .sidebar-nav a {
  overflow: hidden;
  text-indent: 120px;
  position: relative;
  min-height: 42px;
}

.dashboard-shell.sidebar-collapsed .sidebar-nav a::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
  opacity: 0.72;
}

.dashboard-shell.sidebar-collapsed .sidebar-nav a.is-active::before,
.dashboard-shell.sidebar-collapsed .sidebar-nav a:hover::before {
  opacity: 1;
}

.dashboard-shell.sidebar-collapsed .sidebar-toggle {
  min-width: 0;
  width: 40px;
  padding: 8px;
}

.dashboard-shell.sidebar-collapsed .sidebar-toggle-open {
  display: none;
}

.dashboard-shell.sidebar-collapsed .sidebar-toggle-closed {
  display: inline;
}

.dashboard-shell.sidebar-collapsed .sidebar-logout {
  font-size: 0;
  min-height: 42px;
  position: relative;
}

.dashboard-shell.sidebar-collapsed .sidebar-logout::before {
  content: "X";
  font-size: 14px;
  font-family: "Oswald", "Arial Narrow", sans-serif;
}

.sidebar-logout {
  width: 100%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.dashboard-main {
  padding: 16px 18px;
}

.dashboard-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.dashboard-topbar h2,
.panel-header h3 {
  margin: 0;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 24px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2f4420;
}

.member-chip {
  min-width: 220px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 20, 25, 0.08);
  box-shadow: 0 12px 24px rgba(19, 29, 37, 0.06);
}

.member-chip strong,
.member-chip span {
  display: block;
}

.member-chip span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.member-count-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 12px 0 14px;
}

.member-count-card {
  position: relative;
  overflow: hidden;
  min-height: 86px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(15, 20, 25, 0.08);
  background-color: #f7f8fb;
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 52px 52px;
}

.member-count-card span,
.member-count-card strong {
  position: relative;
  z-index: 1;
  display: block;
}

.member-count-card span {
  margin-bottom: 8px;
  color: rgba(15, 20, 25, 0.62);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.member-count-card strong {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  color: #24301d;
  font-size: 26px;
}

.member-count-card.is-total {
  background-color: #eef3fb;
  background-image: url("data:image/svg+xml,%3Csvg width='64' height='64' viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23657c9c' stroke-width='4' stroke-linecap='round' stroke-linejoin='round' opacity='.32'%3E%3Ccircle cx='23' cy='22' r='9'/%3E%3Cpath d='M8 52c2-11 9-17 15-17s13 6 15 17'/%3E%3Ccircle cx='44' cy='25' r='7'/%3E%3Cpath d='M38 38c7 1 13 6 15 14'/%3E%3C/g%3E%3C/svg%3E");
}

.member-count-card.is-approved {
  background-color: #eaf7ed;
  background-image: url("data:image/svg+xml,%3Csvg width='64' height='64' viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%232f8f4e' stroke-width='4' stroke-linecap='round' stroke-linejoin='round' opacity='.34'%3E%3Ccircle cx='30' cy='22' r='10'/%3E%3Cpath d='M12 52c3-12 10-18 18-18 5 0 9 2 12 6'/%3E%3Cpath d='M40 47l6 6 12-15'/%3E%3C/g%3E%3C/svg%3E");
}

.member-count-card.is-pending {
  background-color: #fff4dc;
  background-image: url("data:image/svg+xml,%3Csvg width='64' height='64' viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23b7791f' stroke-width='4' stroke-linecap='round' stroke-linejoin='round' opacity='.34'%3E%3Ccircle cx='30' cy='22' r='10'/%3E%3Cpath d='M12 52c3-12 10-18 18-18 7 0 13 4 16 12'/%3E%3Ccircle cx='49' cy='47' r='10'/%3E%3Cpath d='M49 42v6l4 3'/%3E%3C/g%3E%3C/svg%3E");
}

.member-count-card.is-rejected {
  background-color: #fdecec;
  background-image: url("data:image/svg+xml,%3Csvg width='64' height='64' viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23b3261e' stroke-width='4' stroke-linecap='round' stroke-linejoin='round' opacity='.32'%3E%3Ccircle cx='30' cy='22' r='10'/%3E%3Cpath d='M12 52c3-12 10-18 18-18 5 0 9 2 12 6'/%3E%3Cpath d='M43 42l13 13M56 42L43 55'/%3E%3C/g%3E%3C/svg%3E");
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.stat-card {
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff, #f6f4ed);
  border: 1px solid rgba(15, 20, 25, 0.08);
  box-shadow: 0 14px 28px rgba(19, 29, 37, 0.06);
}

.stat-card span {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-card strong {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 28px;
  color: #2f4420;
}

.dashboard-panel {
  margin-bottom: 12px;
}

.chat-panel {
  min-height: calc(100vh - 120px);
}

.chat-panel-header {
  align-items: flex-end;
  border-bottom: 1px solid rgba(15, 20, 25, 0.08);
  padding-bottom: 12px;
}

.chat-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.chat-feed {
  display: grid;
  gap: 14px;
  padding-top: 14px;
}

.chat-message {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.chat-avatar {
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 50%;
  background: #e9f0e2;
  border: 1px solid rgba(98, 128, 64, 0.18);
  color: #2f4420;
  display: grid;
  place-items: center;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-bubble {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(15, 20, 25, 0.08);
  border-radius: 14px;
  background: #ffffff;
}

.chat-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.chat-meta strong {
  color: #24301d;
  font-size: 15px;
}

.chat-meta span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

.chat-bubble p {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 260px));
  gap: 10px;
  margin-top: 10px;
}

.chat-media-thumb,
.chat-video,
.chat-youtube {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(15, 20, 25, 0.08);
  background: #f5f7f2;
}

.chat-media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-video,
.chat-youtube {
  display: block;
}

.chat-link {
  display: inline-flex;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  background: #eef3fb;
  color: #2d5f9a;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.chat-loader,
.chat-end {
  padding: 14px 0 4px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.chat-scroll-sentinel {
  height: 1px;
}

.panel-header,
.toolbar,
.panel-actions,
.actions-cell,
.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-header {
  justify-content: space-between;
  margin-bottom: 12px;
}

.panel-action {
  white-space: nowrap;
}

.districts-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.toolbar {
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.toolbar-inline {
  flex: 1;
  margin-bottom: 0;
}

.members-toolbar-form {
  gap: 8px;
}

.members-toolbar-form input,
.members-toolbar-form .members-filter-control {
  width: auto;
  min-width: 150px;
  max-width: 220px;
  padding: 8px 10px;
  font-size: 13px;
  border-radius: 12px;
}

.members-toolbar-form .secondary-btn {
  padding: 9px 14px;
  font-size: 13px;
}

.toolbar input,
.dashboard-form input,
.dashboard-form textarea {
  width: 100%;
  max-width: 360px;
  border: 1px solid rgba(15, 20, 25, 0.14);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

.dashboard-select {
  width: 100%;
  max-width: 360px;
  border: 1px solid rgba(15, 20, 25, 0.14);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

.dashboard-form input:focus,
.dashboard-form textarea:focus,
.toolbar input:focus,
.dashboard-select:focus {
  border-color: #628040;
  box-shadow: 0 0 0 4px rgba(98, 128, 64, 0.14);
}

.text-btn:hover {
  text-decoration: underline;
}

.units-trigger {
  font-weight: 600;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(15, 20, 25, 0.08);
  text-align: left;
}

.data-table th {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
  color: #2f4420;
}

.data-table td {
  font-size: 14px;
}

.actions-cell form {
  margin: 0;
}

.empty-state {
  color: var(--muted);
  text-align: center;
}

.pagination-wrap {
  margin-top: 20px;
}

.pagination-wrap nav {
  display: flex;
  justify-content: flex-end;
}

.pagination-wrap .pagination {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pagination-wrap .page-item {
  margin: 0;
}

.pagination-wrap .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(98, 128, 64, 0.28);
  background: #fff;
  color: #2f4420;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.pagination-wrap .page-item.active .page-link {
  background: #628040;
  border-color: #628040;
  color: #fff;
}

.pagination-wrap .page-item.disabled .page-link {
  opacity: 0.55;
  cursor: default;
}

.pagination-wrap .small.text-muted {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.pagination-wrap .fw-semibold {
  font-weight: 700;
  color: #2f4420;
}

.pagination-wrap nav.d-flex,
.pagination-wrap nav .d-flex {
  display: flex;
}

.pagination-wrap nav.d-none,
.pagination-wrap nav .d-none {
  display: none;
}

.pagination-wrap nav.justify-content-between,
.pagination-wrap nav .justify-content-between {
  justify-content: space-between;
}

.pagination-wrap nav.align-items-sm-center,
.pagination-wrap nav .align-items-sm-center {
  align-items: center;
}

.pagination-wrap nav.justify-content-sm-between,
.pagination-wrap nav .justify-content-sm-between {
  justify-content: space-between;
}

@media (min-width: 576px) {
  .pagination-wrap nav .d-sm-none {
    display: none;
  }

  .pagination-wrap nav .d-sm-flex {
    display: flex;
  }

  .pagination-wrap nav .flex-sm-fill {
    flex: 1 1 auto;
  }
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.detail-item {
  padding: 12px;
  border-radius: 14px;
  background: #f8faf5;
  border: 1px solid rgba(15, 20, 25, 0.06);
}

.detail-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail-item strong {
  color: #2f4420;
  font-size: 16px;
}

.detail-item-wide {
  grid-column: 1 / -1;
}

.copy-token-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.copy-token-row strong {
  word-break: break-all;
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(98, 128, 64, 0.22);
  border-radius: 10px;
  background: #ffffff;
  color: #628040;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.icon-btn:hover,
.icon-btn.is-copied {
  background: #628040;
  border-color: #628040;
  color: #ffffff;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.member-profile-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 14px;
}

.member-profile-image {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  object-fit: cover;
  border: 1px solid rgba(15, 20, 25, 0.08);
  background: #f8faf5;
}

.member-profile-placeholder {
  display: grid;
  place-items: center;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 40px;
  color: #628040;
}

.member-address-card {
  margin-top: 12px;
}

.report-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.report-type-card {
  display: block;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(15, 20, 25, 0.08);
  background: linear-gradient(135deg, #ffffff, #f7f4ed);
  box-shadow: 0 14px 28px rgba(19, 29, 37, 0.06);
}

.report-type-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-type-card strong {
  display: block;
  color: #2f4420;
  font-size: 18px;
  line-height: 1.5;
}

.report-type-card.is-active {
  border-color: rgba(98, 128, 64, 0.45);
  box-shadow: 0 18px 34px rgba(98, 128, 64, 0.14);
}

.report-form-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.report-summary-grid {
  margin-top: 0;
}

.transaction-stat-card {
  padding: 12px 14px;
  border-radius: 10px;
  box-shadow: none;
}

.transaction-stat-card span {
  margin-bottom: 8px;
  font-size: 11px;
}

.transaction-stat-card strong {
  font-size: 22px;
}

.transaction-stat-card.is-paid {
  background: #e8f7e8;
  border-color: #a9d8a9;
}

.transaction-stat-card.is-paid strong {
  color: #1f7a35;
}

.transaction-stat-card.is-active {
  background: #fdecec;
  border-color: #efb2b2;
}

.transaction-stat-card.is-active strong {
  color: #b3261e;
}

.transaction-stat-card.is-neutral {
  background: #f9faa7;
  border-color: #d9e0ec;
}

.transaction-stat-card.is-count {
  background: #fff6df;
  border-color: #ead49d;
}

.report-note {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #edf7e4;
  color: #35511c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-pill.is-alert {
  background: #fdecec;
  color: #a12525;
}

.table-subtext {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.dashboard-form label {
  display: block;
  margin-bottom: 10px;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #628040;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-actions {
  margin-top: 14px;
}

.field-error {
  margin: 8px 0 0;
  color: #b42318;
  font-size: 13px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 20, 25, 0.38);
}

.modal-backdrop[hidden] {
  display: none !important;
}

.modal-card {
  width: min(520px, 100%);
  max-height: 80vh;
  overflow: auto;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(15, 20, 25, 0.08);
  box-shadow: 0 24px 48px rgba(19, 29, 37, 0.18);
  padding: 16px;
}

.modal-card-wide {
  width: min(760px, 100%);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.modal-body {
  font-size: 14px;
}

.payment-detail-grid {
  display: grid;
  gap: 10px;
}

.payment-detail-row {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8faf5;
  border: 1px solid rgba(15, 20, 25, 0.06);
}

.payment-detail-row span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.payment-detail-row strong {
  display: block;
  color: #2f4420;
  font-size: 14px;
  word-break: break-word;
  white-space: pre-wrap;
}

.modal-list {
  display: grid;
  gap: 8px;
}

.modal-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8faf5;
  border: 1px solid rgba(15, 20, 25, 0.06);
}

.modal-list-item strong,
.modal-list-item span {
  font-size: 14px;
}

.modal-list-item span,
.modal-empty {
  color: var(--muted);
}

@media (max-width: 900px) {
  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 640px) {
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .banner {
    min-height: 240px;
  }

  .auth-section {
    padding-top: 28px;
  }

  .auth-card {
    padding: 22px;
  }
}

@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .contact-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-shell.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .sidebar {
    padding-bottom: 12px;
  }

  .sidebar-brand-wrap {
    align-items: center;
  }

  .sidebar-toggle {
    min-width: 0;
    width: 40px;
    padding: 8px;
  }

  .sidebar-toggle-open {
    display: none;
  }

  .sidebar-toggle-closed {
    display: inline;
  }

  .dashboard-main {
    padding: 12px;
  }

  .dashboard-topbar,
  .panel-header,
  .districts-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .chat-panel {
    min-height: auto;
  }

  .chat-message {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .chat-avatar {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  .chat-meta {
    flex-direction: column;
    gap: 2px;
  }

  .chat-media-grid {
    grid-template-columns: 1fr;
  }

  .member-profile-card {
    grid-template-columns: 1fr;
  }
}
