:root {
  --bg: #eef3ee;
  --panel: #ffffff;
  --panel-soft: #f8fbf7;
  --line: #dce5dc;
  --text: #18231c;
  --muted: #647064;
  --green: #146c4c;
  --green-dark: #0d4f38;
  --green-soft: #e7f4ed;
  --gold: #bc842d;
  --red: #a63b34;
  --blue: #2b5f8f;
  --shadow: 0 18px 50px rgba(28, 47, 34, 0.10);
  --shadow-soft: 0 8px 24px rgba(28, 47, 34, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(20, 108, 76, 0.12), transparent 28rem),
    linear-gradient(180deg, #f7faf6 0%, var(--bg) 100%);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

a.secondary,
a.primary {
  text-decoration: none;
}

.home-shell {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 0;
}

.home-top-strip {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 750;
}

.home-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 12px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(20, 108, 76, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.home-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--green-dark);
  text-decoration: none;
}

.home-brand span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--green-dark);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.home-brand strong {
  color: var(--green-dark);
  font-size: 24px;
  letter-spacing: 0;
}

.home-nav div,
.home-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.home-nav a:not(.home-brand) {
  color: var(--text);
  font-weight: 850;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 6px;
}

.home-nav a:not(.home-brand):hover {
  background: var(--green-soft);
  color: var(--green-dark);
}

.home-nav a.admin-nav-link {
  background: var(--green-dark);
  color: #fff;
}

.home-nav a.admin-nav-link:hover {
  background: var(--green);
  color: #fff;
}

.home-hero {
  min-height: 68vh;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  align-items: center;
  gap: 32px;
  padding: 42px 0 26px;
}

.home-hero-copy {
  padding: 10px 0 18px;
}

.home-hero h1 {
  max-width: 840px;
  margin: 0 0 16px;
  font-size: clamp(40px, 5.6vw, 74px);
  line-height: 0.98;
  letter-spacing: 0;
  color: var(--green-dark);
}

.home-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.58;
}

.home-portal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 20px 0;
}

.home-portal-badges span {
  padding: 8px 11px;
  border: 1px solid rgba(188, 132, 45, 0.35);
  border-radius: 999px;
  background: #fff9eb;
  color: #704a0f;
  font-size: 13px;
  font-weight: 850;
}

.home-summary-card {
  padding: 20px;
  border-top: 4px solid var(--gold);
}

.home-visual-stack {
  display: grid;
  gap: 16px;
}

.home-slider {
  display: grid;
  gap: 10px;
}

.home-slide-frame {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid rgba(13, 79, 56, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(20, 108, 76, 0.92), rgba(188, 132, 45, 0.72)),
    #dfe8df;
  box-shadow: var(--shadow);
}

.home-slide-frame img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
}

.home-slide-frame img.hidden {
  display: none;
}

.home-slide-fallback {
  display: none;
  min-height: 390px;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 28px;
  text-align: center;
  color: #fff;
}

.home-slide-fallback.visible {
  display: grid;
}

.home-slide-fallback strong {
  font-size: 44px;
  letter-spacing: 0;
}

.home-slide-fallback span {
  max-width: 360px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

.home-slide-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(10, 18, 13, 0.82), rgba(13, 79, 56, 0.72));
  color: #fff;
  backdrop-filter: blur(8px);
}

.home-slide-caption strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.15;
}

.home-slide-caption p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.45;
}

.home-slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.home-slider-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
}

.home-slider-dots button {
  width: 9px;
  height: 9px;
  min-height: 0;
  padding: 0;
  border-radius: 999px;
  background: #b8c6b8;
}

.home-slider-dots button.active {
  width: 28px;
  background: var(--green);
}

.home-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.home-summary div {
  border: 1px solid rgba(20, 108, 76, 0.12);
  border-radius: 8px;
  background: #fff;
  padding: 13px;
}

.home-summary strong {
  display: block;
  margin-top: 4px;
  font-size: 28px;
  color: var(--green-dark);
}

.home-section {
  margin: 26px 0;
}

.home-stats-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(13, 79, 56, 0.14);
  border-radius: 8px;
  background: rgba(13, 79, 56, 0.18);
  box-shadow: var(--shadow-soft);
}

.home-stats-band div {
  padding: 18px;
  background: linear-gradient(180deg, #146c4c 0%, #0d4f38 100%);
  color: #fff;
}

.home-stats-band span,
.home-stats-band strong {
  display: block;
}

.home-stats-band span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 750;
}

.home-stats-band strong {
  margin-top: 5px;
  font-size: 28px;
  line-height: 1;
}

.home-list span {
  position: relative;
  padding: 12px 0 12px 18px;
  border-bottom: 1px solid var(--line);
}

.home-list span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--gold);
}

.home-list span:last-child {
  border-bottom: 0;
}

.home-notice-board {
  border-top: 4px solid var(--gold);
  background: linear-gradient(180deg, #fff 0%, #fffaf0 100%);
}

.home-footer {
  display: grid;
  gap: 5px;
  margin-top: 34px;
  padding: 22px 0 36px;
  border-top: 1px solid rgba(13, 79, 56, 0.16);
  color: var(--muted);
  text-align: center;
}

.home-footer strong {
  color: var(--green-dark);
  font-size: 20px;
}

.tourism-home {
  width: 100%;
  padding-top: 0;
}

.tourism-home .home-top-strip,
.tourism-home .home-nav,
.tourism-home .home-section,
.tourism-home .home-footer {
  width: min(1220px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.tourism-home .home-top-strip {
  margin-top: 10px;
}

.home-hero-wide {
  display: block;
  min-height: auto;
  padding: 12px 0 0;
}

.home-slider-hero {
  position: relative;
}

.home-slider-hero .home-slide-frame {
  min-height: clamp(500px, 72vh, 760px);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.home-slider-hero .home-slide-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 18, 12, 0.78) 0%, rgba(7, 18, 12, 0.46) 42%, rgba(7, 18, 12, 0.12) 100%),
    linear-gradient(0deg, rgba(7, 18, 12, 0.50) 0%, transparent 44%);
  pointer-events: none;
}

.home-slider-hero .home-slide-frame img,
.home-slider-hero .home-slide-fallback {
  min-height: clamp(500px, 72vh, 760px);
}

.home-slide-caption-large {
  z-index: 1;
  left: max(24px, calc((100vw - 1220px) / 2));
  right: auto;
  bottom: 88px;
  width: min(720px, calc(100% - 48px));
  padding: 0;
  background: transparent;
  backdrop-filter: none;
}

.home-slide-caption-large .eyebrow {
  color: rgba(255, 255, 255, 0.90);
  font-size: clamp(18px, 2vw, 25px);
}

.home-slide-caption-large h1 {
  margin: 12px 0 14px;
  color: #fff;
  font-size: clamp(44px, 6.5vw, 82px);
  line-height: 0.98;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.home-slide-caption-large p:not(.eyebrow) {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.90);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.5;
}

.home-slide-caption-large .home-actions {
  margin-top: 24px;
}

.home-slide-caption-large .secondary {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.home-slider-controls-floating {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 24px;
  width: min(1220px, calc(100% - 32px));
  transform: translateX(-50%);
}

.home-slider-controls-floating .secondary {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  backdrop-filter: blur(8px);
}

.home-slider-controls-floating .home-slider-dots button {
  background: rgba(255, 255, 255, 0.46);
}

.home-slider-controls-floating .home-slider-dots button.active {
  background: #fff;
}

.home-section-lift {
  position: relative;
  z-index: 3;
  margin-top: -42px;
}

.home-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  min-height: 210px;
  padding: 20px;
  border-top: 4px solid var(--green);
  background: linear-gradient(180deg, #fff 0%, #f8fbf7 100%);
}

.service-card:nth-child(2) {
  border-top-color: var(--gold);
}

.service-card:nth-child(3) {
  border-top-color: var(--blue);
}

.service-card:nth-child(4) {
  border-top-color: #8a5b1c;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 950;
}

.home-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 18px;
}

.section-head.compact {
  align-items: flex-start;
}

.president-message-card {
  border-top: 4px solid var(--green);
  background:
    linear-gradient(135deg, rgba(20, 108, 76, 0.08), transparent 46%),
    #fff;
}

.president-message-card blockquote {
  margin: 18px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--gold);
  background: #fff9eb;
  color: #4b3515;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.55;
}

.home-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.home-gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(13, 79, 56, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.home-gallery-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background:
    linear-gradient(135deg, rgba(20, 108, 76, 0.90), rgba(188, 132, 45, 0.70)),
    #dfe8df;
}

.home-gallery-grid figcaption {
  padding: 12px 14px;
  color: var(--green-dark);
  font-weight: 900;
}

.home-gallery-grid figure.image-missing::before {
  content: "KLSWA Photo";
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, rgba(20, 108, 76, 0.90), rgba(188, 132, 45, 0.70)),
    #dfe8df;
  color: #fff;
  font-size: 22px;
  font-weight: 950;
}

.circular-list {
  display: grid;
  gap: 10px;
}

.circular-list a {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--text);
  text-decoration: none;
}

.circular-list a:hover {
  border-color: rgba(20, 108, 76, 0.32);
  background: var(--green-soft);
}

.circular-list span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.circular-list strong {
  line-height: 1.35;
}

.home-flow {
  display: grid;
  gap: 10px;
}

.home-flow span {
  position: relative;
  padding: 13px 14px 13px 42px;
  border: 1px solid rgba(20, 108, 76, 0.14);
  border-radius: 8px;
  background: #fff;
  font-weight: 850;
}

.home-flow span::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  transform: translateY(-50%);
}

.tourism-footer {
  grid-template-columns: 1fr;
  align-items: center;
  text-align: center;
}

.tourism-footer > div:first-child {
  display: grid;
  gap: 5px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.footer-links a {
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 850;
  text-decoration: none;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
}

.public-form-shell {
  min-height: 100vh;
  padding: 32px;
}

.public-form-intro {
  max-width: 980px;
  margin: 0 auto 18px;
}

.public-form-intro h1 {
  margin: 0 0 6px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
  letter-spacing: 0;
}

.public-form-intro p {
  margin: 0;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-weight: 800;
  font-size: 20px;
}

.form-star {
  font-weight: 800;
  color: var(--gold);
}

.notice {
  padding: 12px;
  border: 1px solid #e4c58d;
  border-radius: 8px;
  background: #fff9eb;
}

.public-form-card {
  max-width: 980px;
  margin: 0 auto;
  padding: 22px;
}

.public-form-card h2 {
  margin: 18px 0 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--green-dark);
}

.public-form-card h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

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

.public-member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.member-login-shell {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(20, 108, 76, 0.10), transparent 34rem),
    linear-gradient(180deg, #f7faf6 0%, #e8f0e8 100%);
}

.member-login-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 260px;
  background:
    linear-gradient(135deg, rgba(13, 79, 56, 0.96), rgba(20, 108, 76, 0.82)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1600&q=80") center/cover;
  z-index: 0;
}

.member-login-shell > * {
  position: relative;
  z-index: 1;
}

.member-login-shell .public-form-intro {
  width: min(1120px, 100%);
  max-width: none;
  min-height: 206px;
  display: grid;
  align-content: center;
  margin-bottom: 22px;
  color: #fff;
}

.member-login-shell .public-form-intro h1 {
  max-width: 760px;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.22);
}

.member-login-shell .public-form-intro p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  line-height: 1.55;
}

.member-login-shell .eyebrow {
  color: rgba(255, 255, 255, 0.84);
}

.member-login-shell .public-member-grid,
.member-login-shell #memberDashboard {
  width: min(1120px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.member-login-shell .public-member-grid {
  grid-template-columns: 1.1fr 0.95fr 0.95fr;
  align-items: stretch;
  gap: 18px;
}

.member-login-shell .public-form-card,
.member-login-shell .status-card {
  max-width: none;
  border-color: rgba(20, 108, 76, 0.16);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 44px rgba(28, 47, 34, 0.12);
  backdrop-filter: blur(8px);
}

.member-login-shell .public-member-grid .public-form-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 100%;
}

.member-login-shell .public-form-card h2,
.member-login-shell .status-card h2 {
  font-size: 22px;
  color: var(--green-dark);
}

.member-login-shell .public-member-grid .public-form-card:first-child {
  border-top: 4px solid var(--green);
}

.member-login-shell .public-member-grid .public-form-card:nth-child(2) {
  border-top: 4px solid var(--gold);
}

.member-login-shell .public-member-grid .public-form-card:nth-child(3) {
  border-top: 4px solid var(--blue);
}

.member-login-shell input,
.member-login-shell textarea {
  border-color: #d5dfd4;
  background: #fbfdf9;
}

.member-login-shell .primary,
.member-login-shell .secondary {
  width: fit-content;
  min-width: 132px;
}

.member-login-shell #memberDashboard {
  display: grid;
  gap: 18px;
}

.member-login-shell #memberDashboard:not(:empty) {
  margin-top: 24px;
}

.member-portal {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.member-portal-menu {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 12px;
}

.member-portal-person,
.member-portal-nav {
  border: 1px solid rgba(20, 108, 76, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 44px rgba(28, 47, 34, 0.1);
}

.member-portal-person {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 16px;
  text-align: center;
}

.member-portal-person strong {
  color: var(--green-dark);
  font-size: 18px;
}

.member-portal-person > span:not(.badge) {
  color: var(--muted);
  font-size: 13px;
}

.member-photo.small {
  width: 64px;
  height: 64px;
  border-color: rgba(20, 108, 76, 0.18);
  background: var(--green);
  box-shadow: none;
}

.member-photo.small span {
  font-size: 24px;
}

.member-portal-nav {
  display: grid;
  gap: 4px;
  padding: 10px;
}

.member-portal-nav button {
  border: 0;
  border-radius: 8px;
  padding: 11px 12px;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-weight: 750;
  cursor: pointer;
}

.member-portal-nav button:hover,
.member-portal-nav button.active {
  background: var(--green-soft);
  color: var(--green-dark);
}

.member-portal-nav .member-logout-tab {
  color: #8c2b23;
}

.member-portal-content {
  min-width: 0;
}

.member-panel {
  display: none;
}

.member-panel.active {
  display: grid;
  gap: 18px;
}

.member-login-shell #memberDashboard .public-form-card,
.member-login-shell #memberDashboard .status-card {
  margin-left: 0;
  margin-right: 0;
}

.member-login-shell .status-card {
  padding: 22px;
}

.member-login-shell .status-card > .section-head {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.member-login-shell .status-grid div,
.member-login-shell .detail-grid div {
  border: 1px solid rgba(20, 108, 76, 0.12);
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbf7 100%);
}

.member-login-shell .detail-grid strong,
.member-login-shell .status-grid strong {
  color: var(--text);
  overflow-wrap: anywhere;
}

.member-login-shell .timeline-item {
  border-left-color: var(--green-dark);
  background: #fbfdf9;
}

.member-login-shell .badge {
  border: 1px solid rgba(20, 108, 76, 0.18);
  background: var(--green-soft);
}

.member-login-shell .member-profile-card {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.member-login-shell .member-profile-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 220px;
  background: linear-gradient(135deg, rgba(13, 79, 56, 0.98), rgba(20, 108, 76, 0.78));
}

.member-login-shell .member-profile-card > * {
  position: relative;
  z-index: 1;
}

.member-login-shell .member-profile-card > .section-head {
  min-height: 220px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  padding: 24px;
  border-bottom: 0;
  color: #fff;
}

.member-photo-panel {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 260px;
}

.member-photo {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-photo span {
  color: #fff;
  font-size: 34px;
  font-weight: 800;
}

.member-document-slots {
  justify-items: stretch;
  gap: 12px;
  grid-column: 1 / -1;
  width: min(100%, 520px);
}

.member-upload-slot {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.member-upload-slot strong {
  display: block;
  color: #fff;
  font-size: 14px;
}

.member-upload-slot p {
  margin: 4px 0 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.member-card-preview {
  width: 112px;
  height: 72px;
  border: 3px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.member-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-card-preview span {
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.member-photo-upload {
  cursor: pointer;
  color: var(--green-dark);
  background: #fff;
}

.member-photo-upload input {
  display: none;
}

.member-photo-panel .message {
  color: #fff;
  font-size: 12px;
  text-align: center;
  max-width: 140px;
}

.member-login-shell .member-profile-card .section-head h2 {
  margin: 4px 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.member-profile-title {
  min-width: 0;
}

.member-login-shell .member-profile-card .section-head .muted,
.member-login-shell .member-profile-card .section-head .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.member-login-shell .member-profile-card .section-head .muted strong {
  color: #fff;
}

.member-login-shell .member-profile-card .section-head .badge {
  background: #fff;
  color: var(--green-dark);
  border-color: rgba(255, 255, 255, 0.35);
}

.member-service-book {
  display: grid;
  gap: 18px;
  border: 1px solid rgba(20, 108, 76, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbf7 100%);
  box-shadow: 0 18px 48px rgba(28, 47, 34, 0.10);
  overflow: hidden;
}

.service-book-cover {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
  background: linear-gradient(135deg, rgba(13, 79, 56, 0.98), rgba(20, 108, 76, 0.82));
  color: #fff;
}

.service-book-cover .eyebrow,
.service-book-cover p {
  color: rgba(255, 255, 255, 0.82);
}

.service-book-cover h2 {
  margin: 4px 0 8px;
  color: #fff;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1;
}

.service-book-cover .secondary {
  background: #fff;
  color: var(--green-dark);
  white-space: nowrap;
}

.service-book-identity {
  display: grid;
  grid-template-columns: 150px minmax(360px, 1fr) minmax(180px, 240px);
  gap: 16px;
  align-items: stretch;
  padding: 0 24px;
}

.service-photo-card,
.service-license-card,
.service-member-main {
  border: 1px solid rgba(20, 108, 76, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.service-photo-card {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  width: 150px;
  padding: 14px;
}

.service-photo-card img,
.service-photo-card > span {
  width: 98px;
  height: 118px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: var(--green-soft);
}

.service-photo-card > span,
.service-license-card > span {
  display: grid;
  place-items: center;
  color: var(--green-dark);
  font-size: 30px;
  font-weight: 950;
}

.service-photo-card small {
  color: var(--muted);
  font-weight: 800;
}

.service-member-main {
  padding: 18px;
}

.service-member-main h3 {
  margin: 10px 0 14px;
  color: var(--green-dark);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.05;
  word-break: normal;
  overflow-wrap: anywhere;
}

.service-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(118px, 1fr));
  gap: 10px;
}

.service-meta-grid span {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--text);
  font-weight: 850;
  min-width: 0;
  overflow-wrap: break-word;
}

.service-meta-grid b {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.service-license-card {
  display: grid;
  place-items: center;
  padding: 14px;
}

.service-license-card img,
.service-license-card > span {
  width: 100%;
  aspect-ratio: 1.58 / 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: var(--green-soft);
}

.service-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0 24px;
}

.service-summary-grid div {
  padding: 16px;
  border: 1px solid rgba(20, 108, 76, 0.14);
  border-radius: 8px;
  background: #fff;
}

.service-summary-grid span,
.service-summary-grid strong {
  display: block;
}

.service-summary-grid span {
  color: var(--muted);
  font-weight: 800;
}

.service-summary-grid strong {
  margin-top: 8px;
  color: var(--green-dark);
  font-size: 30px;
  line-height: 1;
}

.service-book-timeline {
  display: grid;
  gap: 18px;
  padding: 0 24px 24px;
}

.service-month {
  display: grid;
  gap: 12px;
}

.service-month > h3 {
  margin: 0;
  padding: 12px 14px;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: #fff9eb;
  color: #68450e;
}

.service-entry {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(20, 108, 76, 0.14);
  border-radius: 8px;
  background: #fff;
}

.service-entry-marker {
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border: 3px solid var(--green-soft);
  border-radius: 999px;
  background: var(--green);
}

.service-entry-head,
.service-entry-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.service-entry h4 {
  margin: 8px 0 6px;
  color: var(--text);
}

.service-entry p {
  margin: 6px 0;
  line-height: 1.5;
}

.service-entry-foot {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.service-empty {
  padding: 24px;
  border: 1px dashed rgba(20, 108, 76, 0.30);
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.member-login-shell .member-profile-card > .status-grid,
.member-login-shell .member-profile-card > .notice,
.member-login-shell .member-profile-card > .detail-grid,
.member-login-shell .member-profile-card > .modal-actions {
  margin-left: 22px;
  margin-right: 22px;
}

.member-login-shell .member-profile-card > .status-grid {
  margin-top: 18px;
}

.member-login-shell .member-profile-card > .modal-actions {
  padding-bottom: 22px;
}

.member-login-shell .member-dashboard-card {
  border-left: 4px solid rgba(20, 108, 76, 0.58);
}

.member-login-shell .contact-team-card {
  border-left-color: var(--gold);
}

.member-login-shell .password-card {
  border-left-color: var(--blue);
}

.member-login-shell .correction-card {
  border-left-color: var(--red);
}

.member-login-shell .problem-card,
.member-login-shell .problem-list-card {
  border-left-color: #6d5bd0;
}

.member-login-shell .donation-card,
.member-login-shell .donation-history-card {
  border-left-color: var(--gold);
}

.donation-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 22px;
  border-radius: 8px 8px 0 0;
  background:
    linear-gradient(135deg, rgba(12, 103, 75, 0.96), rgba(180, 128, 24, 0.88)),
    url("/uploads/slider/slide-1.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
}

.donation-hero h2 {
  margin: 4px 0 8px;
  color: #fff;
  font-size: 28px;
}

.donation-hero p {
  margin: 0;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.90);
}

.donation-secure-badge {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.40);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
}

.donation-payment-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  margin: 22px;
  padding: 18px;
  border: 1px solid rgba(20, 108, 76, 0.16);
  border-radius: 8px;
  background: #f8fbf8;
}

.donation-payment-box strong {
  display: block;
  color: var(--green-dark);
  font-size: 18px;
}

.donation-note {
  margin: 0 22px 22px;
  padding: 12px 14px;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: #fff8e6;
  color: #5d4a19;
  font-weight: 700;
}

.donation-page .public-form-intro {
  background:
    linear-gradient(135deg, rgba(13, 73, 55, 0.90), rgba(14, 103, 74, 0.82)),
    url("/uploads/slider/slide-1.jpg");
  background-size: cover;
  background-position: center;
}

.donation-public-card,
.donation-info-card {
  width: min(100%, 980px);
}

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

.donation-qr-preview {
  margin-top: 18px;
}

.qr-box {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(20, 108, 76, 0.18);
  border-radius: 8px;
  background: #f7fbf7;
  text-align: center;
}

.qr-box img {
  width: min(280px, 100%);
  height: auto;
  border: 8px solid #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.qr-pay-actions {
  display: flex;
  justify-content: center;
  width: 100%;
}

.pay-now-mobile {
  min-width: min(100%, 280px);
  text-align: center;
  text-decoration: none;
}

.qr-mobile-tip {
  margin: 0;
  color: var(--green-dark);
  font-weight: 800;
}

.razorpay-button-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 54px;
  margin: 12px 0;
}

.razorpay-button-wrap form {
  margin: 0;
  min-width: 180px;
}

.razorpay-button-wrap .razorpay-payment-button {
  min-width: 180px !important;
  min-height: 46px !important;
  border-radius: 8px !important;
  font-weight: 800 !important;
}

.razorpay-loading {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  color: var(--muted);
  font-weight: 700;
}

.member-login-shell .audit-card {
  border-left-color: var(--green-dark);
}

.member-login-shell .notice-card {
  border-left-color: var(--gold);
}

.member-login-shell .contact-team-card textarea[readonly] {
  background: #f4f8f2;
  color: var(--text);
}

.member-login-shell .audit-card .timeline {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.member-login-shell .audit-card .timeline-item {
  border-left-width: 4px;
  min-height: 120px;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 14px;
}

.problem-card-ui {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #f8fbf7 100%);
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.problem-card-ui h2 {
  margin: 8px 0 4px;
  font-size: 19px;
  color: var(--green-dark);
}

.problem-review {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.taluk-service-books {
  display: grid;
  gap: 16px;
}

.taluk-service-grid {
  display: grid;
  gap: 18px;
}

.taluk-service-card {
  overflow: hidden;
  border: 1px solid rgba(20, 108, 76, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.taluk-service-cover {
  padding: 20px;
}

.taluk-service-cover h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.taluk-service-summary {
  padding: 16px;
}

.taluk-service-card .service-book-timeline {
  padding: 0 16px 16px;
}

.taluk-service-entry {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(20, 108, 76, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #f8fbf7 100%);
}

.taluk-service-entry h4 {
  margin: 8px 0 6px;
  color: var(--text);
}

.taluk-service-entry p {
  margin: 6px 0;
  line-height: 1.5;
}

.service-review-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.taluk-service-empty {
  text-align: left;
  border-style: solid;
  background:
    linear-gradient(135deg, rgba(20, 108, 76, 0.06), transparent 52%),
    #fff;
}

.public-link-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 12px;
  min-height: 180px;
  padding: 20px;
  border: 1px solid rgba(13, 79, 56, 0.14);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  background: linear-gradient(180deg, #fff 0%, #fbfdf9 100%);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.public-link-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--green);
}

.public-link-card::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: rgba(188, 132, 45, 0.12);
}

.public-link-card:hover {
  border-color: rgba(20, 108, 76, 0.38);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.public-link-card strong {
  position: relative;
  z-index: 1;
  font-size: 22px;
  color: var(--green-dark);
}

.public-link-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.public-link-card .badge {
  position: relative;
  z-index: 1;
  width: fit-content;
}

.useful-links-editor {
  display: grid;
  gap: 14px;
}

.useful-link-row {
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #fbfdf9 100%);
}

.useful-link-row .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.useful-link-row label.full,
.useful-link-row label.check {
  grid-column: 1 / -1;
}

.public-team-grid {
  display: grid;
  gap: 18px;
}

.district-menu {
  display: flex;
  gap: 8px;
  margin: 0 0 16px;
  padding: 8px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.district-menu button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff;
  color: var(--green-dark);
  font-weight: 850;
}

.district-menu button.active,
.district-menu button:hover {
  background: var(--green-dark);
  color: #fff;
}

.public-team-district {
  display: grid;
  gap: 12px;
}

.public-team-district > .section-head {
  padding: 12px 14px;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: #fff9eb;
}

.public-team-district-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.public-team-item {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(20, 108, 76, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #f8fbf7 100%);
  box-shadow: var(--shadow-soft);
}

.public-team-item h2 {
  margin: 0;
  color: var(--green-dark);
  font-size: 24px;
}

.public-team-card .toolbar {
  margin-bottom: 14px;
}

.declaration {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf5;
  color: var(--muted);
  line-height: 1.5;
}

.check-row {
  grid-template-columns: 18px 1fr;
  align-items: start;
  color: var(--text);
}

.check-row input {
  min-height: auto;
  width: auto;
  margin-top: 3px;
}

.login-visual {
  padding: 56px;
  background:
    linear-gradient(135deg, rgba(13, 79, 56, 0.90), rgba(20, 108, 76, 0.78)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1600&q=80") center/cover;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.login-visual h1 {
  max-width: 780px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.02;
  margin: 0;
}

.login-visual p {
  max-width: 680px;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.84);
}

.login-panel {
  display: grid;
  align-content: center;
  padding: 42px;
}

.box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.login-card {
  padding: 30px;
  max-width: 430px;
  width: 100%;
  margin: 0 auto;
}

.login-card h2,
.section h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

.muted {
  color: var(--muted);
}

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

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

label span {
  font-weight: 500;
  color: #7a8375;
}

label.check {
  grid-template-columns: 18px 1fr;
  align-items: center;
  color: var(--text);
}

label.check input {
  width: auto;
  min-height: auto;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  padding: 10px 11px;
  min-height: 42px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(20, 108, 76, 0.60);
  box-shadow: 0 0 0 3px rgba(20, 108, 76, 0.12);
}

textarea {
  resize: vertical;
}

.primary,
.secondary,
.danger,
.icon-btn {
  min-height: 40px;
  border-radius: 6px;
  padding: 9px 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 18px rgba(20, 108, 76, 0.18);
}

.primary:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.secondary {
  background: var(--green-soft);
  color: var(--green-dark);
  border: 1px solid var(--line);
}

.secondary:hover,
.icon-btn:hover {
  border-color: rgba(20, 108, 76, 0.35);
  background: #dceddf;
}

.danger {
  background: #f7e8e5;
  color: var(--red);
  border: 1px solid #efd0cb;
}

.danger:hover {
  background: #f2d7d2;
}

.icon-btn {
  width: 38px;
  padding: 0;
  background: #eef2ea;
  color: var(--green-dark);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background:
    linear-gradient(180deg, #16251d 0%, #243427 100%);
  color: #f6f8f2;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  padding: 2px 8px 10px;
}

.user-pill {
  padding: 14px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.nav {
  display: grid;
  gap: 8px;
}

.nav button {
  width: 100%;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  border-radius: 6px;
  padding: 12px 13px;
  text-align: left;
  font-weight: 700;
  border: 1px solid transparent;
}

.nav button.active,
.nav button:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav-badge {
  float: right;
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #fff;
  color: var(--green-dark);
  font-size: 12px;
  text-align: center;
}

.content {
  min-width: 0;
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding: 6px 0;
}

.topbar h1 {
  margin: 0;
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat {
  padding: 18px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdf9 100%);
}

.stat strong {
  display: block;
  font-size: 30px;
  letter-spacing: 0;
  margin-top: 4px;
  color: var(--green-dark);
}

.section {
  padding: 20px;
  margin-bottom: 18px;
}

.toolbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}

.filter-check {
  min-height: 42px;
  grid-template-columns: 18px 1fr;
  align-items: center;
  align-self: end;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 8px 10px;
}

.filter-check input {
  min-height: auto;
}

.user-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 160px 180px auto;
  gap: 10px;
  align-items: end;
  margin: 14px 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.account-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #fbfdf9 100%);
  padding: 13px;
  display: grid;
  gap: 10px;
  min-height: 150px;
}

.account-card strong {
  display: block;
  font-size: 16px;
}

.profile-summary,
.permission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.profile-summary > div,
.permission-grid label {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf9;
  padding: 12px;
}

.profile-summary span {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}

.join-link-panel {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
}

.join-link-panel a {
  color: var(--green-dark);
  word-break: break-all;
}

.duplicate-list {
  display: grid;
  gap: 16px;
}

.duplicate-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.mini-list {
  display: grid;
  gap: 4px;
}

.status-card {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.status-grid div {
  display: grid;
  gap: 4px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.detail-grid div,
.status-review-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #f8fbf7 100%);
  padding: 12px;
}

.detail-grid span,
.detail-grid strong,
.status-review-card span,
.status-review-card strong {
  display: block;
}

.detail-grid strong,
.status-review-card strong {
  margin-top: 4px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.status-review-card {
  margin: 12px 0;
}

.taluk-work {
  border-color: rgba(20, 108, 76, 0.22);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}

.work-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbf7 100%);
}

.work-card strong {
  font-size: 30px;
  color: var(--green-dark);
}

.backup-card,
.backup-preview {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #f8fbf7 100%);
}

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

.backup-counts div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.backup-counts span,
.backup-counts strong {
  display: block;
}

.backup-counts strong {
  margin-top: 3px;
  color: var(--green-dark);
  font-size: 20px;
}

.slider-upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.slider-upload-card {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.slider-thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px dashed #b9c7b9;
  border-radius: 8px;
  background: #edf4ed;
  color: var(--green-dark);
  font-weight: 800;
}

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

.upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  cursor: pointer;
}

.upload-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.compact-table table {
  font-size: 13px;
}

.audit-alerts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin: 12px 0 16px;
}

.audit-alerts div {
  border: 1px solid #edd6a6;
  border-radius: 8px;
  background: #fff8e8;
  padding: 12px;
}

.audit-alerts strong,
.audit-alerts span,
.timeline-item strong,
.timeline-item span {
  display: block;
}

.diff-old,
.diff-new {
  display: inline-block;
  min-width: 44px;
  max-width: 280px;
  border-radius: 6px;
  padding: 5px 8px;
  overflow-wrap: anywhere;
}

.diff-old {
  background: #f7e8e5;
  color: #7e2f2a;
}

.diff-new {
  background: #e7f4ed;
  color: var(--green-dark);
}

.timeline {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.timeline-item {
  border-left: 3px solid var(--green);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 12px;
}

.timeline-diff {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.chat-list {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  max-height: 520px;
  overflow: auto;
  user-select: none;
}

.chat-message {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcf8;
}

.chat-message.pinned {
  border-color: #e4c58d;
  background: #fff9eb;
}

.chat-message.member-authored {
  border-left: 4px solid rgba(20, 108, 76, 0.55);
}

.chat-message.team-authored {
  border-left: 4px solid rgba(188, 132, 45, 0.65);
  background: #fffdf6;
}

.member-support-list {
  user-select: text;
}

.secure-chat {
  position: relative;
}

.secure-chat::before {
  content: attr(data-watermark);
  position: absolute;
  inset: 72px 20px auto auto;
  max-width: 70%;
  color: rgba(130, 45, 45, 0.14);
  font-size: clamp(18px, 4vw, 34px);
  font-weight: 800;
  line-height: 1.25;
  text-align: right;
  transform: rotate(-12deg);
  pointer-events: none;
  z-index: 1;
}

.secure-chat > * {
  position: relative;
  z-index: 2;
}

.chat-message p {
  margin: 8px 0 0;
  line-height: 1.55;
}

.reply-preview,
.reply-compose {
  border-left: 4px solid rgba(20, 108, 76, 0.30);
  border-radius: 8px;
  background: #eef7ef;
  padding: 9px 11px;
}

.reply-preview {
  margin-bottom: 10px;
}

.reply-preview span {
  display: block;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

.reply-preview p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.chat-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.chat-attachment {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--green-dark);
  text-decoration: none;
}

.chat-attachment img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.chat-attachment span:last-child {
  min-width: 0;
}

.chat-attachment strong,
.chat-attachment small {
  display: block;
  overflow-wrap: anywhere;
}

.attachment-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: #b43232;
  color: #fff;
  font-weight: 900;
}

.chat-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.chat-form {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

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

.reply-compose strong {
  display: block;
  margin-top: 2px;
}

@media print {
  .secure-chat {
    display: none !important;
  }
}

.account-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.missing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.missing-item {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #f8fbf7 100%);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  min-width: 980px;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

td select {
  min-width: 170px;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f1f6ef;
  color: #263b2d;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

tbody tr:hover {
  background: #fbfdf9;
}

tr:last-child td {
  border-bottom: 0;
}

.actions {
  display: flex;
  gap: 7px;
  white-space: nowrap;
  flex-wrap: wrap;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.message {
  min-height: 22px;
  color: var(--red);
  font-weight: 650;
}

.success {
  color: var(--green);
}

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

.chart-bars {
  display: grid;
  gap: 10px;
}

.compact-bars {
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(110px, 180px) 1fr minmax(36px, auto);
  align-items: center;
  gap: 10px;
  min-height: 26px;
}

.bar-label {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-track {
  height: 12px;
  border-radius: 999px;
  background: #e6ece1;
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.list-row:last-child {
  border-bottom: 0;
}

.badge {
  border-radius: 999px;
  padding: 4px 9px;
  background: #e8f3ec;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.badge-active {
  background: #d6f4df;
  color: #0d6b35;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(8, 15, 11, 0.76);
  backdrop-filter: blur(2px);
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal {
  position: relative;
  z-index: 1001;
  width: min(820px, 100%);
  max-height: 92vh;
  overflow: auto;
  padding: 22px;
  background: #fff;
}

.modal-head,
.modal-actions,
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.modal-actions {
  justify-content: flex-end;
  margin-top: 16px;
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .login-shell,
  .app-shell,
  .home-hero,
  .split,
  .chart-grid,
  .stats,
  .missing-grid,
  .toolbar,
  .user-toolbar {
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: 42vh;
    padding: 32px;
  }

  .public-form-shell {
    padding: 16px;
  }

  .member-login-shell::before {
    height: 300px;
  }

  .member-login-shell .public-form-intro {
    min-height: 230px;
  }

  .member-login-shell .public-member-grid {
    grid-template-columns: 1fr;
  }

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

  .member-portal-menu {
    position: static;
  }

  .member-portal-person {
    grid-template-columns: auto 1fr auto;
    justify-items: start;
    text-align: left;
  }

  .member-portal-person > span:not(.badge) {
    grid-column: 2;
  }

  .member-portal-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px;
    scroll-snap-type: x proximity;
  }

  .member-portal-nav button {
    flex: 0 0 auto;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .member-login-shell .primary,
  .member-login-shell .secondary {
    width: 100%;
  }

  .modal-backdrop {
    align-items: start;
    padding: 72px 14px 24px;
    background: rgba(8, 15, 11, 0.82);
  }

  .modal {
    width: 100%;
    max-height: calc(100vh - 96px);
    padding: 18px;
    border-radius: 8px;
  }

  .member-login-shell .member-profile-card > .section-head {
    flex-direction: column;
    grid-template-columns: 1fr;
    min-height: 280px;
  }

  .member-login-shell .member-profile-card::before {
    height: 280px;
  }

  .service-book-cover,
  .service-summary-grid {
    grid-template-columns: 1fr;
  }

  .service-book-identity {
    grid-template-columns: 130px minmax(280px, 1fr) minmax(150px, 200px);
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .service-meta-grid {
    grid-template-columns: repeat(3, minmax(112px, 1fr));
  }

  .service-book-cover {
    align-items: stretch;
  }

  .service-book-cover .secondary {
    width: 100%;
  }

  .service-photo-card {
    width: 130px;
  }

  .member-photo-panel {
    justify-items: start;
    min-width: 0;
  }

  .member-upload-slot {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .member-login-shell .member-profile-card > .status-grid,
  .member-login-shell .member-profile-card > .notice,
  .member-login-shell .member-profile-card > .detail-grid,
  .member-login-shell .member-profile-card > .modal-actions {
    margin-left: 14px;
    margin-right: 14px;
  }

  .member-login-shell .audit-card .timeline {
    grid-template-columns: 1fr;
  }

  .donation-hero,
  .donation-payment-box {
    grid-template-columns: 1fr;
  }

  .donation-secure-badge {
    justify-self: start;
  }

  .razorpay-button-wrap {
    justify-content: stretch;
  }

  .razorpay-button-wrap form,
  .razorpay-button-wrap .razorpay-payment-button {
    width: 100%;
  }

  .pay-now-mobile {
    width: 100%;
  }

  .home-shell {
    width: min(100% - 24px, 1180px);
    padding-top: 12px;
  }

  .home-top-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-hero {
    min-height: auto;
    padding: 24px 0;
  }

  .tourism-home .home-top-strip,
  .tourism-home .home-nav,
  .tourism-home .home-section,
  .tourism-home .home-footer {
    width: min(100% - 24px, 1180px);
  }

  .home-hero-wide {
    padding: 10px 0 0;
  }

  .home-slider-hero .home-slide-frame,
  .home-slider-hero .home-slide-frame img,
  .home-slider-hero .home-slide-fallback {
    min-height: 540px;
  }

  .home-slide-caption-large {
    left: 16px;
    bottom: 82px;
    width: calc(100% - 32px);
  }

  .home-slide-caption-large h1 {
    font-size: 42px;
  }

  .home-slide-caption-large .home-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .home-slider-controls-floating {
    bottom: 18px;
    width: calc(100% - 24px);
  }

  .home-section-lift {
    margin-top: 18px;
  }

  .home-service-grid,
  .home-two-column,
  .home-gallery-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .tourism-footer {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .home-slide-frame,
  .home-slide-frame img,
  .home-slide-fallback {
    min-height: 300px;
  }

  .home-slide-caption {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 12px;
  }

  .home-slide-caption strong {
    font-size: 20px;
  }

  .home-summary {
    grid-template-columns: 1fr;
  }

  .home-stats-band {
    grid-template-columns: 1fr 1fr;
  }

  .public-link-grid {
    grid-template-columns: 1fr;
  }

  .useful-link-row .form-grid {
    grid-template-columns: 1fr;
  }

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

  .sidebar {
    position: static;
    height: auto;
  }

  .content {
    padding: 16px;
  }

  .nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav button {
    text-align: center;
  }

  .home-nav div {
    width: 100%;
  }

  .home-nav a:not(.home-brand) {
    flex: 1 1 42%;
    text-align: center;
    background: var(--panel-soft);
  }

  .home-nav a.admin-nav-link {
    background: var(--green-dark);
    color: #fff;
    box-shadow: 0 10px 22px rgba(13, 79, 56, 0.20);
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar .primary {
    width: 100%;
  }

  .home-stats-band {
    grid-template-columns: 1fr;
  }

  .actions {
    white-space: normal;
  }

  .actions > * {
    flex: 1 1 auto;
  }

  .two,
  .three,
  .detail-grid,
  .status-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .donation-hero,
  .donation-payment-box {
    margin-left: 12px;
    margin-right: 12px;
  }

  .donation-hero {
    padding: 18px;
  }

  .donation-hero h2 {
    font-size: 24px;
  }

  .donation-note {
    margin-left: 12px;
    margin-right: 12px;
  }

  .service-book-identity,
  .service-meta-grid {
    grid-template-columns: 1fr;
  }

  .service-book-identity {
    overflow-x: visible;
  }

  .service-photo-card {
    width: 100%;
  }
}

@media print {
  body {
    background: #fff;
  }

  .member-portal-menu,
  .member-panel:not([data-member-panel="serviceBook"]),
  .service-book-cover .secondary {
    display: none !important;
  }

  .member-portal {
    display: block;
  }

  .member-portal-content,
  .member-panel[data-member-panel="serviceBook"] {
    display: block !important;
  }

  .taluk-service-card:not(.print-selected) {
    display: none !important;
  }

  .taluk-service-card.print-selected {
    box-shadow: none;
  }

  .member-service-book {
    box-shadow: none;
    border-color: #d6ded6;
  }
}
