:root {
  --bg: #f5efe4;
  --bg-alt: #efe4d3;
  --surface: rgba(255, 251, 245, 0.82);
  --surface-strong: #fffdf9;
  --surface-dark: #16363c;
  --ink: #172427;
  --muted: #5a6a6d;
  --line: rgba(23, 36, 39, 0.1);
  --accent: #d0693a;
  --accent-strong: #a24524;
  --accent-soft: #f3d8c7;
  --teal: #22525a;
  --teal-soft: #d4e6e6;
  --success-soft: #dbeed8;
  --shadow-lg: 0 24px 60px rgba(78, 56, 30, 0.16);
  --shadow-md: 0 12px 30px rgba(78, 56, 30, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Hind Siliguri", "Noto Sans Bengali", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 222, 186, 0.95), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(163, 214, 210, 0.55), transparent 24%),
    linear-gradient(180deg, #fbf7f0 0%, var(--bg) 46%, #ece2d4 100%);
}

body.auth-layout {
  background:
    radial-gradient(circle at top right, rgba(146, 189, 189, 0.22), transparent 24%),
    linear-gradient(180deg, #eef3f3 0%, #e7ecec 46%, #e1e7e7 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(10px);
  opacity: 0.7;
  z-index: 0;
}

body::before {
  width: 280px;
  height: 280px;
  top: 92px;
  right: -120px;
  background: rgba(208, 105, 58, 0.12);
}

body::after {
  width: 240px;
  height: 240px;
  bottom: 40px;
  left: -70px;
  background: rgba(34, 82, 90, 0.12);
}

body.auth-layout::before,
body.auth-layout::after {
  opacity: 0.35;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand strong,
.hero-title,
.section-heading,
.metric-value {
  font-family: "Space Grotesk", "Hind Siliguri", sans-serif;
  letter-spacing: -0.02em;
}

p,
li,
label,
small,
.text-muted {
  color: var(--muted) !important;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  color: var(--accent-strong);
}

.navbar-shell {
  background: rgba(17, 32, 36, 0.86) !important;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(15, 23, 26, 0.18);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e78656, #bc4b23);
  color: #fff9f4;
  font-size: 1.35rem;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(208, 105, 58, 0.28);
}

.brand-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text small {
  color: rgba(255, 255, 255, 0.64) !important;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-text strong {
  color: #fffdf9;
  font-size: 1.1rem;
}

.nav-pill {
  margin: 0 0.15rem;
  padding: 0.55rem 0.95rem !important;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82) !important;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.nav-pill:hover,
.nav-pill:focus {
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
  transform: translateY(-1px);
}

.nav-cta {
  padding-inline: 1rem;
}

.site-stage {
  position: relative;
  z-index: 1;
  padding: 1rem 0 3rem;
}

.auth-shell {
  --bs-gutter-x: 1.25rem;
  align-items: flex-start;
}

.content-wrap {
  min-height: calc(100vh - 70px);
  position: relative;
}

.public-content {
  max-width: 1380px;
  margin: 0 auto;
}

.sidebar {
  min-height: calc(100vh - 90px);
  background: rgba(22, 54, 60, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}

.sidebar-column,
.admin-main {
  position: relative;
  z-index: 1;
}

.auth-layout .site-stage {
  padding: 1.25rem 0.75rem 2rem;
}

.auth-layout .admin-main {
  padding: 0 !important;
}

.auth-layout .sidebar {
  position: sticky;
  top: 90px;
  min-height: calc(100vh - 108px);
}

.sidebar .nav-link {
  color: rgba(242, 247, 246, 0.75);
  border-radius: 14px;
  margin-bottom: 0.45rem;
  padding: 0.7rem 0.85rem;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.glass-panel,
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
}

.card {
  overflow: hidden;
}

.card-header {
  padding: 1.1rem 1.35rem;
  background: transparent;
  border-bottom: 1px solid rgba(23, 36, 39, 0.08);
}

.table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(255, 255, 255, 0.36);
  --bs-table-border-color: rgba(23, 36, 39, 0.08);
}

.table thead th {
  font-family: "Space Grotesk", "Hind Siliguri", sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  color: var(--ink);
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.45);
}

.auth-layout .glass-panel,
.auth-layout .card {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 20px;
  box-shadow: 0 14px 28px rgba(32, 53, 58, 0.08);
  backdrop-filter: none;
}

.auth-layout .card-header {
  padding: 1rem 1.2rem;
}

.auth-layout .table-responsive {
  border-radius: 18px;
}

.auth-layout .table thead th {
  background: #f2f6f6;
}

.alert {
  border: none;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}

.auth-layout .alert {
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(32, 53, 58, 0.08);
}

.btn {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.72rem 1.1rem;
  border: none;
}

.btn-sm {
  padding: 0.5rem 0.9rem;
}

.btn-primary,
.btn-success {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 14px 28px rgba(208, 105, 58, 0.24);
}

.btn-primary:hover,
.btn-success:hover {
  color: #fff;
  background: linear-gradient(135deg, #e17b4a, #9a3f20);
}

.btn-dark {
  background: linear-gradient(135deg, #22474d, #14353a);
  box-shadow: 0 14px 28px rgba(34, 82, 90, 0.2);
}

.btn-dark:hover,
.btn-outline-dark:hover,
.btn-outline-danger:hover,
.btn-outline-success:hover {
  transform: translateY(-1px);
}

.btn-outline-dark,
.btn-outline-danger,
.btn-outline-success,
.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline-dark,
.btn-outline-danger,
.btn-outline-success {
  background: rgba(255, 255, 255, 0.42);
  color: var(--ink);
}

.auth-layout .btn {
  border-radius: 14px;
  box-shadow: none;
}

.auth-layout .btn-sm {
  padding: 0.45rem 0.78rem;
  border-radius: 12px;
}

.form-control,
.form-select {
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(23, 36, 39, 0.12);
  background: rgba(255, 255, 255, 0.78);
  padding: 0.8rem 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.form-control[type="file"] {
  padding-top: 0.7rem;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(208, 105, 58, 0.4);
  box-shadow: 0 0 0 0.25rem rgba(208, 105, 58, 0.15);
  background: #fff;
}

.auth-layout .form-control,
.auth-layout .form-select {
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
}

.auth-layout .form-select.form-select-sm,
.auth-layout .form-control.form-control-sm {
  min-height: 34px;
  padding: 0.35rem 0.75rem;
  border-radius: 12px;
  font-size: 0.875rem;
}

.auth-layout .form-check-input {
  width: 1rem;
  height: 1rem;
}

.admin-overview {
  margin-bottom: 1.4rem;
}

.admin-hero {
  position: relative;
  overflow: hidden;
  padding: 1.75rem 1.8rem;
  border-radius: 24px;
  background: linear-gradient(135deg, #17343a, #244e55 58%, #2f6469 100%);
  color: #f8fcfc;
  box-shadow: 0 18px 38px rgba(32, 53, 58, 0.16);
}

.admin-hero::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -70px;
  top: -70px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 68%);
}

.admin-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  margin-bottom: 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(248, 252, 252, 0.8);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-hero h1,
.admin-hero p,
.admin-hero .metric-label {
  color: #f8fcfc !important;
}

.admin-hero p {
  max-width: 58ch;
  opacity: 0.82;
}

.admin-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.admin-shortcuts .btn {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.admin-shortcuts .btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.admin-quick-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-quick-card {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-quick-card strong {
  display: block;
  font-family: "Space Grotesk", "Hind Siliguri", sans-serif;
  font-size: 1.8rem;
  line-height: 1;
}

.admin-quick-card small {
  color: rgba(248, 252, 252, 0.72) !important;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.admin-kpi-card {
  padding: 1.1rem 1.15rem;
}

.admin-kpi-card span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.admin-kpi-card strong {
  display: block;
  margin-top: 0.55rem;
  color: var(--ink);
  font-family: "Space Grotesk", "Hind Siliguri", sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.admin-section-card {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(23, 36, 39, 0.08);
  box-shadow: 0 14px 28px rgba(32, 53, 58, 0.08);
}

.admin-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.15rem 1.2rem 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.status-pill.pending {
  background: #fff0c7;
  color: #8a5b00;
}

.status-pill.approved,
.status-pill.active {
  background: #dff2e2;
  color: #1f6b31;
}

.status-pill.rejected {
  background: #f7d9d9;
  color: #9a2b2b;
}

.form-check-input {
  width: 1.1rem;
  height: 1.1rem;
}

.page-intro,
.hero-panel,
.form-shell,
.auth-panel,
.info-panel {
  position: relative;
  overflow: hidden;
}

.page-intro::after,
.hero-panel::after,
.form-shell::after,
.auth-panel::after {
  content: "";
  position: absolute;
  inset: auto -60px -90px auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(208, 105, 58, 0.12), transparent 68%);
  pointer-events: none;
}

.page-intro,
.hero-panel {
  padding: clamp(2rem, 4vw, 4rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  margin-bottom: 1.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  max-width: 12ch;
  margin-bottom: 1rem;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 0.95;
  color: var(--ink);
}

.hero-lead {
  max-width: 58ch;
  margin-bottom: 1.6rem;
  font-size: 1.08rem;
  line-height: 1.8;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.metric-grid,
.feature-grid,
.info-rail {
  display: grid;
  gap: 1rem;
}

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

.metric-card,
.feature-card,
.leader-mini-card,
.member-grid-card,
.empty-state {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(23, 36, 39, 0.08);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
}

.metric-card {
  padding: 1.25rem;
}

.metric-value {
  display: block;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  color: var(--ink);
}

.metric-label {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-weight: 600;
}

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

.feature-card {
  padding: 1.4rem;
}

.feature-card strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.section-block {
  margin-top: 2.25rem;
}

.section-header {
  margin-bottom: 1.2rem;
}

.section-heading {
  margin-bottom: 0.5rem;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--ink);
}

.section-copy {
  max-width: 60ch;
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.8;
}

.leader-focus {
  height: 100%;
  padding: 1.25rem;
}

.leader-focus img,
.member-avatar {
  width: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.leader-focus img {
  height: 340px;
}

.leader-copy {
  padding-top: 1rem;
}

.leader-copy p {
  margin-bottom: 0.35rem;
}

.leader-mini-list {
  display: grid;
  gap: 0.85rem;
}

.leader-mini-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
}

.leader-mini-card strong {
  color: var(--ink);
}

.member-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.member-filter-bar .form-select {
  min-width: 230px;
}

.member-grid-card {
  height: 100%;
  padding: 0.9rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member-grid-card:hover,
.leader-focus:hover,
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 34px rgba(78, 56, 30, 0.16);
}

.member-avatar-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(160deg, #f3d8c7, #d9ebe8);
}

.member-avatar {
  height: 280px;
}

.member-avatar-fallback {
  display: grid;
  place-items: center;
  height: 280px;
  color: var(--teal);
  font-family: "Space Grotesk", "Hind Siliguri", sans-serif;
  font-size: 3rem;
  font-weight: 700;
}

.member-card-body {
  padding: 1rem 0.4rem 0.3rem;
}

.member-card-body h3 {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
  color: var(--ink);
}

.member-chip {
  display: inline-flex;
  padding: 0.35rem 0.7rem;
  margin-bottom: 0.8rem;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
}

.empty-state {
  padding: 2rem;
  text-align: center;
}

.form-shell,
.auth-panel,
.info-panel {
  padding: clamp(1.5rem, 3vw, 2.4rem);
}

.form-section {
  padding: 1.25rem;
  margin-bottom: 1.15rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(23, 36, 39, 0.07);
}

.form-section:last-child {
  margin-bottom: 0;
}

.field-stack label,
.section-kicker {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--ink) !important;
  font-weight: 700;
}

.section-kicker {
  margin-bottom: 0.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal) !important;
}

.info-list {
  padding-left: 1rem;
  margin: 0;
}

.info-list li {
  margin-bottom: 0.75rem;
}

.auth-grid,
.register-grid {
  display: grid;
  gap: 1.5rem;
}

.auth-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.register-grid {
  grid-template-columns: 0.88fr 1.12fr;
}

.auth-story {
  height: 100%;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(34, 82, 90, 0.92), rgba(21, 54, 60, 0.88));
  color: #f7f8f8;
  box-shadow: var(--shadow-lg);
}

.auth-story .eyebrow,
.auth-story p,
.auth-story li {
  color: rgba(247, 248, 248, 0.82) !important;
}

.auth-story .hero-title,
.auth-story .section-heading {
  color: #fff;
}

.story-points {
  padding-left: 1rem;
  margin-bottom: 0;
}

.story-points li {
  margin-bottom: 0.75rem;
}

.metric-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.metric-pill {
  padding: 0.65rem 0.85rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-pill strong {
  display: block;
  color: #fff;
}

.reveal-up,
.stagger-grid > * {
  animation: revealUp 0.8s ease both;
}

.stagger-grid > *:nth-child(2) { animation-delay: 0.08s; }
.stagger-grid > *:nth-child(3) { animation-delay: 0.16s; }
.stagger-grid > *:nth-child(4) { animation-delay: 0.24s; }
.stagger-grid > *:nth-child(5) { animation-delay: 0.32s; }
.stagger-grid > *:nth-child(6) { animation-delay: 0.4s; }

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1199px) {
  .register-grid,
  .auth-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 991px) {
  .sidebar {
    min-height: auto;
  }

  .auth-layout .sidebar {
    position: static;
  }

  .hero-title {
    max-width: none;
    font-size: clamp(2.3rem, 10vw, 4.4rem);
  }

  .feature-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .content-wrap {
    padding: 1.2rem !important;
  }

  .auth-layout .admin-main {
    padding: 0 0.25rem !important;
  }
}

@media (max-width: 575px) {
  .navbar-shell .container-fluid,
  .site-stage {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .leader-focus img,
  .member-avatar,
  .member-avatar-fallback {
    height: 240px;
  }

  .page-intro,
  .hero-panel,
  .form-shell,
  .auth-panel,
  .info-panel {
    padding: 1.3rem;
  }

  .admin-hero {
    padding: 1.3rem;
  }

  .admin-kpi-grid,
  .admin-quick-grid {
    grid-template-columns: 1fr;
  }
}
