/* ═══════════════════════════════════════════════
   DBNTECC — shared stylesheet
   index.php (landing) + apply.php (form)
   ═══════════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --bg: #f5f2eb;
  --surface: #ffffff;
  --surface-soft: #faf8f4;
  --ink: #152c22;
  --muted: #516158;
  --line: #dcdfd8;
  --accent: #1d5b42;
  --accent-hover: #164a36;
  --accent-soft: #e8f1ec;
  --gold: #9c7120;
  --gold-soft: #f3ebd3;
  --danger: #9c4a4a;
  --shadow-sm: 0 2px 10px rgba(12, 27, 20, 0.06);
  --shadow: 0 8px 32px rgba(12, 27, 20, 0.09);
  --shadow-lg: 0 24px 64px rgba(12, 27, 20, 0.13);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --container: min(1440px, calc(100vw - 3rem));
  --section-gap: 5rem;
}

/* ── Reset + Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

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

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

h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
svg { display: block; }

/* ── Layout ── */
.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

.container {
  width: var(--container);
  margin-inline: auto;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.85rem 0;
  background: rgba(245, 242, 235, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(21, 44, 34, 0.08);
}

.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  flex-shrink: 0;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(156, 113, 32, 0.22);
  object-fit: cover;
  flex-shrink: 0;
  background: #fff;
}

.brand-text {
  display: grid;
  min-width: 0;
}

.brand-line {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text strong {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.site-nav a {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--muted);
  transition: background 180ms ease, color 180ms ease;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: rgba(21, 44, 34, 0.07);
}

.site-nav .nav-cta {
  padding: 0.65rem 1.15rem;
  margin-left: 0.35rem;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  color: #fff;
  background: var(--accent-hover);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3.5px auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform 200ms ease, opacity 200ms ease;
}

/* ── Hero (shared: index.php + apply.php) ── */
.hero {
  min-height: calc(100vh - 74px);
  min-height: calc(100dvh - 74px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 0;
  background:
    radial-gradient(ellipse 70% 50% at 92% 8%, rgba(29, 91, 66, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 4% 82%, rgba(156, 113, 32, 0.07) 0%, transparent 60%);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

/* hero-copy + hero-card are used by apply.php */
.hero-copy,
.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.75rem;
}

.hero-copy h1,
.hero-copy h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 0.85rem;
}

.section-label {
  display: block;
  margin-bottom: 0.85rem;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-text {
  font-size: 1rem;
  line-height: 1.78;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.clean-list {
  padding-left: 1.3rem;
}

.clean-list li {
  line-height: 1.65;
  color: var(--muted);
}

.ordered-list li + li {
  margin-top: 0.8rem;
}

.status-panel {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(29, 91, 66, 0.14);
}

.status-panel p {
  margin-top: 0.8rem;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── New hero elements (index.php only) ── */
.hero-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-body h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.032em;
  color: var(--ink);
  margin-bottom: 1.15rem;
}

.hero-body h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-desc {
  font-size: 1.04rem;
  line-height: 1.78;
  color: var(--muted);
  margin-bottom: 1.75rem;
  max-width: 54ch;
}

.trust-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.trust-strip li {
  display: flex;
  flex-direction: column;
}

.trust-divider {
  width: 1px;
  height: 32px;
  background: var(--line);
}

.trust-strip strong {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.trust-strip span {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-right {
  display: grid;
  gap: 1rem;
}

/* ── Buttons ── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 50px;
  padding: 0.8rem 1.4rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease,
    transform 140ms ease, box-shadow 180ms ease;
}

.button:active { transform: scale(0.98); }

.button[disabled] {
  cursor: not-allowed;
  opacity: 0.76;
  box-shadow: none;
  transform: none;
}

.button.is-loading {
  position: relative;
}

.button.is-loading::after {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #ffffff;
  border-radius: 999px;
  animation: button-spin 0.85s linear infinite;
}

@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}

.button-primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 4px 18px rgba(29, 91, 66, 0.28);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-hover);
  box-shadow: 0 6px 24px rgba(29, 91, 66, 0.36);
}

.button-secondary {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface-soft);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: #f0ece3;
  border-color: rgba(21, 44, 34, 0.2);
}

.button-ghost {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  background: var(--surface-soft);
  border-color: rgba(21, 44, 34, 0.18);
}

.button-light {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 4px 16px rgba(12, 27, 20, 0.12);
}

.button-light:hover,
.button-light:focus-visible {
  background: var(--surface-soft);
}

/* ── Showcase Slider ── */
.showcase-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(21, 44, 34, 0.1);
  background:
    radial-gradient(circle at 12% 14%, rgba(228, 204, 140, 0.32) 0%, transparent 38%),
    radial-gradient(circle at 88% 86%, rgba(96, 154, 124, 0.3) 0%, transparent 44%),
    linear-gradient(155deg, #16352a 0%, #0c2018 100%);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  isolation: isolate;
}

.showcase-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='1' fill='%23ffffff' fill-opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
}

.slider-frame {
  position: relative;
  z-index: 1;
  height: 340px;
  overflow: hidden;
}

.slider-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(22px) scale(0.982);
  pointer-events: none;
  transition: opacity 400ms ease, transform 500ms ease;
}

.slider-slide.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

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

.slider-copy {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  display: grid;
  gap: 0.45rem;
  max-width: 30rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: rgba(248, 246, 241, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.slider-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.slider-title {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.slider-copy p:last-child {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

.slider-ui {
  position: relative;
  z-index: 1;
  padding: 0.85rem 1rem 0.95rem;
}

.slider-progress {
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  margin-bottom: 0.8rem;
}

.slider-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, #ddc47a 0%, rgba(255, 255, 255, 0.9) 100%);
}

.showcase-slider.is-animating .slider-progress-bar {
  animation: slider-progress var(--slider-duration, 6500ms) linear forwards;
}

.slider-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.slider-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: width 220ms ease, background 220ms ease;
}

.slider-dot.is-active,
.slider-dot[aria-current="true"] {
  width: 28px;
  background: linear-gradient(90deg, #ddc47a 0%, rgba(255, 255, 255, 0.9) 100%);
}

.slider-controls {
  display: flex;
  gap: 0.5rem;
}

.slider-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  transition: background 180ms ease, border-color 180ms ease, transform 140ms ease;
}

.slider-button:hover,
.slider-button:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
}

.slider-button:active {
  transform: scale(0.92);
}

@keyframes slider-progress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ── Workflow card (index.php hero right) ── */
.workflow-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.workflow-list {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.workflow-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.status-banner {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.chip-dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: chip-pulse 1.8s ease-in-out infinite;
}

@keyframes chip-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.55; transform: scale(0.8); }
}

/* ── Sections ── */
.section {
  padding: var(--section-gap) 0;
}

.section-stripe {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink);
  margin-top: 0.4rem;
}

/* ── Overview ── */
.overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 3.5rem;
  align-items: start;
}

.overview-lead h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
  margin-top: 0.4rem;
}

.overview-body {
  display: grid;
  gap: 1rem;
}

.overview-body p {
  font-size: 1.03rem;
  line-height: 1.78;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent);
  transition: gap 180ms ease;
}

.text-link:hover,
.text-link:focus-visible {
  gap: 0.65rem;
}

/* ── Services ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.service-card {
  position: relative;
  overflow: hidden;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 250ms ease, transform 250ms ease, border-color 250ms ease;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(29, 91, 66, 0.3) 100%);
  border-radius: 3px 3px 0 0;
  opacity: 0;
  transition: opacity 250ms ease;
}

.service-card:hover,
.service-card:focus-within {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: rgba(29, 91, 66, 0.18);
}

.service-card:hover::before { opacity: 1; }

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.service-card h3 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.72;
  color: var(--muted);
}

/* ── Documents ── */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.doc-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.doc-card:hover,
.doc-card:focus-visible {
  box-shadow: var(--shadow);
  border-color: rgba(29, 91, 66, 0.2);
  transform: translateY(-2px);
  outline: none;
}

.doc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  flex-shrink: 0;
}

.doc-pdf  { background: rgba(192, 57, 43, 0.09); color: #b53320; }
.doc-docx { background: rgba(41, 98, 175, 0.09); color: #2456a4; }

.doc-meta {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 0.18rem;
}

.doc-meta strong {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.doc-meta span {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.doc-arrow {
  color: var(--muted);
  flex-shrink: 0;
  transition: color 200ms ease, transform 200ms ease;
}

.doc-card:hover .doc-arrow,
.doc-card:focus-visible .doc-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* ── CTA Banner ── */
.section-cta {
  padding: var(--section-gap) 0;
}

.cta-banner {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  align-items: center;
  gap: 3rem;
  padding: 3rem 3.5rem;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 6% 55%, rgba(220, 196, 122, 0.2) 0%, transparent 50%),
    linear-gradient(155deg, #16352a 0%, #0c2018 100%);
  box-shadow: var(--shadow-lg);
}

.cta-deco {
  position: absolute;
  top: -6rem; right: -4rem;
  width: 22rem; height: 22rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.cta-copy .section-label { color: #c9a84c; }

.cta-copy h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 0.75rem;
  margin-top: 0.4rem;
}

.cta-copy p {
  font-size: 1rem;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.6);
  max-width: 52ch;
}

.cta-actions { flex-shrink: 0; }

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── apply.php legacy layout blocks ── */
.section-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.two-column-block,
.application-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.5rem;
}

/* ── apply.php form styles ── */

.apply-quick-nav {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.apply-quick-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(29, 91, 66, 0.2);
  background: #f0f6f2;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  transition: background 180ms ease, transform 180ms ease;
}

.apply-quick-nav a:hover,
.apply-quick-nav a:focus-visible {
  background: #e3efe8;
  transform: translateY(-1px);
}

.application-kpi-grid {
  display: grid;
  gap: 0.7rem;
}

.application-kpi {
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.application-kpi strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.application-kpi p {
  font-size: 0.96rem;
  color: var(--ink);
  line-height: 1.5;
}

.info-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.info-panel-card {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.info-panel-card h3 {
  margin: 0 0 0.6rem 0;
  font-size: 1rem;
  color: var(--ink);
}

.info-panel-card p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--muted);
}

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

.checklist-item {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.checklist-item h3 {
  margin: 0 0 0.7rem 0;
  font-size: 1rem;
  color: var(--ink);
}

.checklist-item ul {
  margin: 0;
  color: var(--muted);
}

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

.timeline-item {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.timeline-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.7rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
}

.timeline-item h3 {
  margin: 0 0 0.55rem 0;
  font-size: 1rem;
  color: var(--ink);
}

.timeline-item p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--muted);
}

.highlight-banner {
  margin-top: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(29, 91, 66, 0.24);
  background: linear-gradient(120deg, #eef6f1 0%, #f7faf8 100%);
}

.highlight-banner p {
  margin: 0;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 600;
}

.application-copy {
  padding: 1rem 0;
}

.application-copy h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 0.85rem;
}

.application-copy p {
  font-size: 1rem;
  line-height: 1.78;
  color: var(--muted);
}

.application-notes {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.note-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
}

.note-card strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.note-card p {
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--muted);
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.form-progress-bar {
  margin: 0 -2rem 2rem -2rem;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.progress-bar-track {
  width: 100%;
  height: 4px;
  background: var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.progress-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 10px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  font-weight: 500;
}

.form-navigation {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.nav-spacer {
  flex: 1;
}

.form-navigation .button {
  min-width: 140px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.75rem;
}

.alert {
  margin-bottom: 1rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  border-left-width: 3px;
  border-left-style: solid;
}

.alert strong {
  display: block;
  margin-bottom: 0.35rem;
}

.alert p {
  margin: 0;
}

.alert-success {
  border: 1px solid rgba(29, 91, 66, 0.16);
  border-left: 3px solid var(--accent);
  background: #edf5f0;
}

.alert-error {
  border: 1px solid rgba(168, 49, 49, 0.18);
  border-left: 3px solid var(--danger);
  background: #fff4f4;
}

.application-form {
  display: grid;
  gap: 1.75rem;
}

.form-section {
  display: grid;
  gap: 1rem;
  border: none;
  padding: 0;
  margin: 0;
}

.form-section-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 1.2rem 0;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--accent);
  letter-spacing: 0.02em;
}

.form-subsection {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.form-subsection:first-child {
  border-top: none;
  padding-top: 0;
}

.children-manager {
  display: grid;
  gap: 0.85rem;
}

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

.child-entry {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.child-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.child-entry-header strong {
  font-size: 0.95rem;
  color: var(--ink);
}

.child-entry-remove {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--danger);
  cursor: pointer;
}

.child-entry-remove:hover,
.child-entry-remove:focus-visible {
  text-decoration: underline;
}

.work-experience-manager {
  display: grid;
  gap: 0.85rem;
}

.work-experience-list {
  display: grid;
  gap: 0.85rem;
}

.work-entry {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.work-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.work-entry-header strong {
  font-size: 0.95rem;
  color: var(--ink);
}

.work-entry-remove {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--danger);
  cursor: pointer;
}

.work-entry-remove:hover,
.work-entry-remove:focus-visible {
  text-decoration: underline;
}

.voluntary-work-manager {
  display: grid;
  gap: 0.85rem;
}

.voluntary-work-list {
  display: grid;
  gap: 0.85rem;
}

.voluntary-entry {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.voluntary-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.voluntary-entry-header strong {
  font-size: 0.95rem;
  color: var(--ink);
}

.voluntary-entry-remove {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--danger);
  cursor: pointer;
}

.voluntary-entry-remove:hover,
.voluntary-entry-remove:focus-visible {
  text-decoration: underline;
}

.training-entry {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.training-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.training-entry-header strong {
  font-size: 0.95rem;
  color: var(--ink);
}

.training-entry-remove {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--danger);
  cursor: pointer;
}

.training-entry-remove:hover,
.training-entry-remove:focus-visible {
  text-decoration: underline;
}

.training-manager {
  display: grid;
  gap: 0.85rem;
}

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

.training-entry {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #fafbfc 0%, #ffffff 100%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.training-entry:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.other-info-manager {
  display: grid;
  gap: 0.85rem;
}

.other-info-list {
  display: grid;
  gap: 0.85rem;
}

.other-info-entry {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #fef5e7 0%, #ffffff 100%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.other-info-entry:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.other-info-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.other-info-entry-header strong {
  font-size: 0.95rem;
  color: var(--ink);
}

.other-info-entry-remove {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--danger);
  cursor: pointer;
}

.other-info-entry-remove:hover,
.other-info-entry-remove:focus-visible {
  text-decoration: underline;
}

.reference-manager {
  display: grid;
  gap: 0.85rem;
}

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

.reference-entry {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #e8f4f8 0%, #ffffff 100%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.reference-entry:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.reference-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.reference-entry-header strong {
  font-size: 0.95rem;
  color: var(--ink);
}

.reference-entry-remove {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--danger);
  cursor: pointer;
}

.reference-entry-remove:hover,
.reference-entry-remove:focus-visible {
  text-decoration: underline;
}

.button-inline {
  width: auto;
  justify-self: start;
}

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

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

.field {
  display: grid;
  gap: 0.5rem;
}

.field span,
.checkbox-field span {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  min-height: 50px;
  font-size: 1rem; /* prevents iOS auto-zoom below 16 px */
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--ink);
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(29, 91, 66, 0.14);
  outline-offset: 0;
  border-color: rgba(29, 91, 66, 0.4);
  background: #ffffff;
}

.has-error input,
.has-error select,
.has-error textarea {
  border-color: #bf6666;
  background: #fff9f9;
}

.field small,
.field-error {
  font-size: 0.85rem;
  color: #9c4a4a;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.checkbox-field input {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 0.15rem;
  cursor: pointer;
}

.work-present-toggle {
  align-items: center;
  margin-top: 1.9rem;
}

.work-present-toggle span {
  font-weight: 600;
  color: var(--muted);
}

.work-present-toggle input {
  margin-top: 0;
}

.form-help {
  margin: 0;
  align-self: center;
}

/* ── Footer ── */
.site-footer {
  padding: 3.5rem 0 2rem;
  margin-top: auto;
}

/* footer-bar is used by apply.php */
.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  margin-top: 1rem;
  border-top: 1px solid var(--line);
}

.footer-bar p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-bar p:first-child {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.01em;
}

/* footer-inner is used by index.php */
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(156, 113, 32, 0.22);
  object-fit: cover;
  background: #fff;
}

.footer-name {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.footer-tagline {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 160ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--ink);
}

.footer-legal {
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--muted);
}

/* ── Responsive breakpoints ── */
@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-right {
    grid-template-columns: 1fr 1fr;
    display: grid;
  }

  .hero-body h1 {
    font-size: clamp(2.2rem, 5.5vw, 3.2rem);
  }

  .overview-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .info-panel-grid,
  .checklist-grid,
  .timeline-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    left: 0;
    display: grid;
    gap: 0.15rem;
    padding: 0.6rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(250, 248, 244, 0.98);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav a {
    text-align: center;
    border-radius: 14px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .docs-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2.25rem 2rem;
  }

  .application-layout,
  .two-column-block {
    grid-template-columns: 1fr;
  }

  .field-grid-three {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 2.5rem 0;
  }
}

@media (max-width: 680px) {
  .hero-right {
    grid-template-columns: 1fr;
  }

  .slider-frame {
    height: 280px;
  }

  .hero-actions,
  .form-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
    justify-content: center;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .highlight-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .field-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-card {
    padding: 1.25rem;
  }

  .checkbox-field input {
    width: 22px;
    height: 22px;
    min-width: 22px;
  }

  .info-panel-grid,
  .checklist-grid,
  .timeline-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  :root {
    --section-gap: 3.5rem;
  }

  .hero {
    padding: 2rem 0 1.5rem;
  }

  .hero-body h1 {
    font-size: clamp(2rem, 9.5vw, 2.8rem);
  }

  .brand-line {
    display: none;
  }

  .cta-banner {
    padding: 1.75rem 1.25rem;
  }
}

/* ── Form Page (membership-form.php) ── */
.form-page-header {
  padding: 2rem 0 1.75rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 1.1rem;
  transition: color 160ms ease;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--accent);
}

.form-page-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 0.55rem 0;
}

.form-page-meta {
  font-size: 0.96rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 72ch;
}

.required-marker {
  color: #b53320;
  font-weight: 800;
}

.optional-marker {
  font-weight: 400;
  color: var(--muted);
}

.form-page-container {
  max-width: 900px;
  margin-inline: auto;
}

/* ── Account pages (login.php + account.php) ── */
.account-shell {
  padding-top: 3rem;
}

.account-card {
  max-width: 760px;
  margin-inline: auto;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.account-card-wide {
  max-width: 1140px;
}

.account-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.14;
  color: var(--ink);
  margin-bottom: 0.55rem;
}

.account-subtitle {
  font-size: 0.97rem;
  color: var(--muted);
  line-height: 1.65;
}

.account-form {
  margin-top: 1.4rem;
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: 1.25rem;
  align-items: stretch;
}

.login-intro-panel {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 10% 8%, rgba(156, 113, 32, 0.12) 0%, transparent 34%),
    linear-gradient(155deg, #153529 0%, #10281f 100%);
  box-shadow: var(--shadow);
}

.login-intro-panel .section-label {
  color: #dcbf75;
}

.login-intro-panel .account-title {
  color: #f7f8f6;
}

.login-intro-panel .account-subtitle {
  color: rgba(244, 247, 244, 0.78);
}

.login-role-list {
  margin-top: 1.35rem;
  display: grid;
  gap: 0.75rem;
}

.login-role-item {
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.login-role-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.login-role-item p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(244, 247, 244, 0.82);
}

.login-card {
  max-width: none;
  margin-inline: 0;
}

.login-layout-single {
  max-width: 560px;
  margin-inline: auto;
}

.login-card-head {
  margin-bottom: 1.2rem;
  padding: 1.05rem 1.05rem 1.15rem;
  border: 1px solid #d0dcd5;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(26, 78, 59, 0.08) 0%, rgba(26, 78, 59, 0.02) 58%),
    linear-gradient(180deg, #ffffff 0%, #f7faf8 100%);
  border-bottom: 1px solid #d0dcd5;
}

.login-card-head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  margin-bottom: 0.85rem;
}

.login-card-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.login-card-brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(26, 78, 59, 0.26);
  object-fit: cover;
  background: #fff;
  box-shadow: 0 8px 18px rgba(20, 50, 39, 0.16);
}

.login-card-brand-text {
  display: grid;
  min-width: 0;
}

.login-card-brand-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #5d7269;
}

.login-card-brand-text strong {
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  color: #1d3a30;
}

.login-card-head-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.34rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(43, 107, 84, 0.3);
  background: rgba(43, 107, 84, 0.12);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #245c49;
  white-space: nowrap;
}

.login-card-head .section-label {
  margin-bottom: 0.5rem;
  color: #376a57;
}

.login-card-head .account-title {
  margin-bottom: 0.4rem;
  color: #1d3a30;
}

.login-card-head .account-subtitle {
  color: #4d645b;
}

.login-card-head-meta {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.login-card-head-meta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d1ddd6;
  background: #f4f9f6;
  color: #2f6251;
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-card .form-actions {
  justify-content: space-between;
}

.login-card .button {
  min-width: 150px;
}

.page-login {
  background: var(--bg);
}

.page-login .site-header {
  background: rgba(245, 242, 235, 0.9);
}

.page-login main {
  display: flex;
  align-items: center;
}

.page-login .account-shell-login {
  width: 100%;
  position: relative;
  overflow: hidden;
  padding: clamp(2.3rem, 5vw, 4.2rem) 0;
}

.page-login .account-shell-login::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -140px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  display: none;
  pointer-events: none;
}

.page-login .account-shell-login::after {
  content: "";
  position: absolute;
  bottom: -160px;
  left: -140px;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  display: none;
  pointer-events: none;
}

.page-login .login-layout {
  grid-template-columns: 1fr;
  max-width: 560px;
  margin-inline: auto;
}

.page-login .login-card {
  max-width: 560px;
  margin-inline: auto;
  padding: clamp(1.35rem, 3vw, 2.2rem);
  border: 1px solid #cfdad3;
  border-top: 4px solid #2b6b54;
  background:
    linear-gradient(180deg, #ffffff 0%, #f9fcfa 100%);
  box-shadow:
    0 20px 50px rgba(20, 43, 34, 0.12),
    0 2px 0 rgba(255, 255, 255, 0.72) inset;
}

.page-login .field span {
  color: #1f3f33;
}

.page-login .field input,
.page-login .field select {
  background: #ffffff;
  border-color: #c8d6cf;
}

.page-login .field input:focus,
.page-login .field select:focus {
  outline: none;
  border-color: #2b6b54;
  box-shadow: 0 0 0 3px rgba(43, 107, 84, 0.14);
}

.page-login .password-toggle-btn {
  border-color: #bfd1c8;
  background: #edf5f1;
  color: #2d5f4d;
}

.page-login .password-toggle-btn:hover {
  background: #e3efe9;
}

.page-login .button-primary {
  background: #205a47;
  box-shadow: 0 4px 18px rgba(32, 90, 71, 0.32);
}

.page-login .button-primary:hover,
.page-login .button-primary:focus-visible {
  background: #194939;
  box-shadow: 0 6px 24px rgba(32, 90, 71, 0.42);
}

.page-login .account-form {
  margin-top: 1.05rem;
}

.page-login .login-card .form-actions {
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.page-login .login-card .button {
  min-width: 170px;
}

.page-login .login-card .form-help {
  margin: 0;
  max-width: 34ch;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #596f65;
}

.account-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.account-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.2rem;
}

.metric-tile {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  padding: 0.95rem 1rem;
}

.metric-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.metric-value {
  font-size: 1.1rem;
  color: var(--ink);
}

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

.account-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
  border: none;
  border-radius: 0;
  overflow: visible;
}

.account-table-professional {
  min-width: 860px;
}

.header-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  background: rgba(29, 91, 66, 0.11);
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
}

.account-table th {
  text-align: left;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-soft);
  padding: 0.78rem 0.85rem;
  border-bottom: 1px solid var(--line);
}

.account-table td {
  font-size: 0.93rem;
  color: var(--ink);
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--line);
}

.account-table tbody tr:last-child td {
  border-bottom: none;
}

.account-table tbody tr:nth-child(even) {
  background: rgba(21, 44, 34, 0.02);
}

.account-table tbody tr:hover {
  background: rgba(29, 91, 66, 0.05);
}

/* ── Account dashboard theme (account.php only) ── */
.account-dashboard-page {
  background:
    radial-gradient(circle at 12% 8%, rgba(29, 91, 66, 0.08) 0%, transparent 34%),
    radial-gradient(circle at 88% 92%, rgba(156, 113, 32, 0.08) 0%, transparent 34%),
    #f3f0e8;
}

.account-dashboard-page .account-shell {
  padding-top: 2.1rem;
}

.account-dashboard-page.role-chapter_president .account-shell > .container {
  width: min(1540px, calc(100vw - 2rem));
}

.account-dashboard-page .dashboard-card {
  max-width: 1520px;
  border: 1px solid #cfd7cc;
  background: #fcfdfa;
  box-shadow: 0 18px 44px rgba(12, 27, 20, 0.12);
  padding: 2rem;
}

.account-dashboard-page .section-label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

.account-dashboard-page .account-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.15;
}

.account-dashboard-page .account-subtitle {
  font-size: 1.04rem;
  line-height: 1.75;
  color: #33463d;
}

.account-dashboard-page .button {
  min-height: 50px;
  padding: 0.85rem 1.2rem;
  font-size: 0.99rem;
  font-weight: 700;
  border-radius: 12px;
}

.account-dashboard-page .account-metrics {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.95rem;
}

.account-dashboard-page .metric-tile {
  background: #ffffff;
  border: 1px solid #d4d9d1;
  border-left: 4px solid #1d5b42;
  box-shadow: 0 6px 16px rgba(12, 27, 20, 0.08);
  padding: 1rem 1.05rem;
}

.account-dashboard-page .metric-label {
  font-size: 0.79rem;
}

.account-dashboard-page .metric-value {
  font-size: 1.25rem;
  font-weight: 800;
}

.account-dashboard-page .form-section {
  border: 1px solid #d3d9d2;
  border-radius: 16px;
  background: #ffffff;
  padding: 1.1rem;
  box-shadow: 0 5px 14px rgba(12, 27, 20, 0.07);
}

.account-dashboard-page .form-section-title {
  border-bottom: 2px solid rgba(29, 91, 66, 0.18);
  margin-bottom: 1rem;
  font-size: 1.18rem;
}

.account-dashboard-page .table-wrap {
  border: 1px solid #cfd7cc;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(12, 27, 20, 0.09);
  overflow-x: visible;
}

.account-dashboard-page .account-table {
  min-width: 0;
  width: 100%;
}

.account-dashboard-page .account-table th {
  font-size: 0.84rem;
  padding: 0.95rem 1rem;
  color: #2e3d35;
  background: #eef3ef;
}

.account-dashboard-page .account-table td {
  font-size: 1rem;
  padding: 0.95rem 1rem;
  line-height: 1.5;
}

.account-dashboard-page .chapter-president-table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.account-dashboard-page .chapter-president-table {
  min-width: 980px;
}

.account-dashboard-page .header-icon {
  width: 1.2rem;
  height: 1.2rem;
  font-size: 0.68rem;
  background: rgba(29, 91, 66, 0.14);
}

.account-dashboard-page .status-pill {
  font-size: 0.82rem;
  padding: 0.35rem 0.72rem;
}

.account-dashboard-page .file-chip {
  font-size: 0.82rem;
}

.account-dashboard-page .action-stack .button {
  min-height: 40px;
  font-size: 0.9rem;
}

.account-dashboard-page .receipt-preview-trigger {
  font-size: 0.82rem;
}

.account-dashboard-page .treasurer-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.account-dashboard-page .treasurer-tab {
  border: 1px solid #c8d4cb;
  background: #f4f8f5;
  color: #29463a;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.account-dashboard-page .treasurer-tab.is-active {
  border-color: #1d5b42;
  background: #1d5b42;
  color: #ffffff;
}

.account-dashboard-page .treasurer-tab-panel + .treasurer-tab-panel {
  margin-top: 0;
}

.account-dashboard-page .chapter-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.account-dashboard-page .chapter-tab {
  border: 1px solid #c8d4cb;
  background: #f4f8f5;
  color: #29463a;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.account-dashboard-page .chapter-tab.is-active {
  border-color: #1d5b42;
  background: #1d5b42;
  color: #ffffff;
}

.account-dashboard-page .chapter-tab-panel + .chapter-tab-panel {
  margin-top: 0;
}

.account-dashboard-page .chapter-tab-panel {
  min-width: 0;
}

.account-dashboard-page .chapter-tab-panel .chapter-president-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.account-dashboard-page .chapter-tab-panel .chapter-president-table {
  width: max-content;
  min-width: 980px;
}

.receipt-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.receipt-preview-modal[hidden] {
  display: none;
}

.receipt-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 27, 20, 0.72);
}

.receipt-preview-dialog {
  position: relative;
  width: min(920px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #d3d9d2;
  box-shadow: 0 20px 40px rgba(12, 27, 20, 0.35);
}

.receipt-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid #d8ded7;
  background: #f5f9f6;
}

.receipt-preview-header h3 {
  margin: 0;
  font-size: 1rem;
  color: #193126;
}

.receipt-preview-close {
  border: 1px solid #c6d2ca;
  border-radius: 8px;
  background: #ffffff;
  color: #1d5b42;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
}

.receipt-preview-close:hover,
.receipt-preview-close:focus-visible {
  background: #eef5f0;
}

.receipt-preview-body {
  max-height: calc(100vh - 7rem);
  overflow: auto;
  padding: 0.75rem;
  background: #f7faf8;
}

.receipt-preview-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #d3d9d2;
  margin: 0 auto;
}

.receipt-preview-error {
  margin: 0.65rem 0 0;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #d9c3c3;
  background: #fbefef;
  color: #7b2b2b;
  font-size: 0.9rem;
}

.account-dashboard-page .member-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.account-dashboard-page .member-dashboard-panel {
  border: 1px solid #d3d9d2;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 5px 14px rgba(12, 27, 20, 0.07);
  padding: 1rem;
}

.account-dashboard-page .member-guide-panel {
  background: linear-gradient(160deg, #f7faf8 0%, #ffffff 100%);
}

.account-dashboard-page .member-guide-list {
  margin: 0;
  padding-left: 1.2rem;
}

.account-dashboard-page .member-progress {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 0.95rem 0;
  padding: 0.75rem;
  border: 1px solid #d7ddd6;
  border-radius: 12px;
  background: #fcfdfb;
}

.account-dashboard-page .member-progress-item {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  font-size: 0.93rem;
  color: #516158;
  font-weight: 600;
}

.account-dashboard-page .member-progress-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  border: 2px solid #b5c0b7;
  background: #ffffff;
  flex-shrink: 0;
}

.account-dashboard-page .member-progress-item.is-complete {
  color: #1d5b42;
}

.account-dashboard-page .member-progress-item.is-complete .member-progress-dot {
  border-color: #1d5b42;
  background: #1d5b42;
}

.account-dashboard-page .member-progress-item.is-current {
  color: #9c7120;
  font-weight: 700;
}

.account-dashboard-page .member-progress-item.is-current .member-progress-dot {
  border-color: #9c7120;
  background: #f3ebd3;
}

.account-dashboard-page .member-guide-list li {
  color: #33463d;
  line-height: 1.7;
  font-size: 0.98rem;
}

.account-dashboard-page .member-guide-list li + li {
  margin-top: 0.55rem;
}

.account-dashboard-page input[type="file"] {
  padding: 0.75rem;
  background: #f7faf8;
  border-radius: 10px;
}

@media (max-width: 820px) {
  .account-dashboard-page .dashboard-card {
    padding: 1.3rem;
  }

  .account-dashboard-page .account-title {
    font-size: clamp(1.6rem, 7vw, 2rem);
  }

  .account-dashboard-page .account-table {
    min-width: 780px;
  }

  .account-dashboard-page .member-dashboard-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .account-dashboard-page .table-wrap {
    overflow-x: auto;
  }

  .account-dashboard-page .account-table {
    min-width: 920px;
  }
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.status-pill-pending {
  color: #7b5a12;
  background: #f9efcf;
  border: 1px solid rgba(123, 90, 18, 0.2);
}

.status-pill-confirmed {
  color: #12527b;
  background: #dff1fb;
  border: 1px solid rgba(18, 82, 123, 0.2);
}

.status-pill-accepted {
  color: #164a36;
  background: #e1f3ea;
  border: 1px solid rgba(22, 74, 54, 0.2);
}

.status-pill-neutral {
  color: var(--muted);
  background: #eef1ec;
  border: 1px solid rgba(81, 97, 88, 0.2);
}

.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.62rem;
  border-radius: 999px;
  background: #eef4f0;
  border: 1px solid rgba(29, 91, 66, 0.2);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.action-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

/* ── Subsection label (within form sections) ── */
.subsection-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ── 4-column grid ── */
.field-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ── Educational Background table ── */
.edu-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.edu-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 660px;
}

.edu-table th {
  padding: 0.7rem 0.9rem;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.edu-table td {
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.edu-table tbody tr:last-child td {
  border-bottom: none;
}

.edu-table tbody tr:hover {
  background: rgba(29, 91, 66, 0.025);
}

.edu-level-cell {
  padding-left: 0.9rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  background: var(--surface-soft);
}

.edu-table input {
  width: 100%;
  min-width: 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 0.9rem;
}

.edu-table input:focus {
  outline: 2px solid rgba(29, 91, 66, 0.14);
  outline-offset: 0;
  border-color: rgba(29, 91, 66, 0.4);
  background: #fff;
}

/* ── Educational Background Cards (elegant layout) ── */
.edu-level-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(249,250,248,0.5) 100%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.edu-level-card:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
  border-color: rgba(29, 91, 66, 0.2);
}

.edu-level-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 1.25rem 0;
  padding: 0 0 0.75rem 0;
  border-bottom: 2px solid rgba(29, 91, 66, 0.15);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.edu-level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: rgba(29, 91, 66, 0.1);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}

.edu-level-card .field-grid {
  gap: 1.25rem;
}

.edu-level-card .field {
  gap: 0.6rem;
}

.edu-level-card .field span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.82rem;
}

.edu-level-card .field input {
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.edu-level-card .field input::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.edu-level-card .field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(29, 91, 66, 0.1);
  background: #ffffff;
}

/* Responsive rules for new form page elements */
@media (max-width: 1024px) {
  .field-grid-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .field-grid-four {
    grid-template-columns: 1fr;
  }

  .login-card-head {
    padding: 0.9rem;
  }

  .login-card-head-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .login-card-head-badge {
    align-self: flex-start;
  }

  .login-card-head-meta {
    gap: 0.35rem;
  }

  .login-card-head-meta span {
    font-size: 0.65rem;
    letter-spacing: 0.07em;
  }

  .login-layout {
    grid-template-columns: 1fr;
  }

  .login-intro-panel {
    padding: 1.35rem;
  }

  .login-card .form-actions {
    flex-direction: column;
  }

  .login-card .button {
    width: 100%;
  }

  .account-card {
    padding: 1.35rem;
  }

  .account-header-row {
    flex-direction: column;
  }

  .account-metrics {
    grid-template-columns: 1fr;
  }

  .form-page-header {
    padding: 1.5rem 0 1.25rem;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .showcase-slider.is-animating .slider-progress-bar {
    transform: scaleX(1);
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .chip-dot {
    animation: none;
  }
}

/* ══════════════════════════════════════════════════
   ── Admin Dashboard Shell (account.php)
   ══════════════════════════════════════════════════ */

body.dash-page {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
  background: #eeeae2;
  overflow: hidden;
}

.dash-shell {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 100vh;
}

/* ── Sidebar ── */
.dash-sidebar {
  width: 264px;
  min-width: 264px;
  background: #0f2d1f;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
  z-index: 200;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.dash-sidebar-header {
  padding: 1.15rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}

.dash-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.dash-logo-img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  object-fit: cover;
  flex-shrink: 0;
  background: #fff;
}

.dash-logo-text {
  display: grid;
  min-width: 0;
}

.dash-logo-sub {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-logo-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-user-block {
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}

.dash-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
  user-select: none;
}

.dash-avatar-sm {
  width: 30px;
  height: 30px;
  font-size: 0.74rem;
}

.dash-user-meta {
  display: grid;
  min-width: 0;
}

.dash-user-name {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-user-role {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-nav {
  flex: 1;
  padding: 0.85rem 0.85rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  overflow-y: auto;
}

.dash-nav-group-label {
  display: block;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  padding: 0 0.6rem;
  margin-top: 0.7rem;
  margin-bottom: 0.3rem;
}

.dash-nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.62);
  text-decoration: none;
  transition: background 130ms ease, color 130ms ease;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.dash-nav-link:hover {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.9);
}

.dash-nav-link.is-active {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.dash-nav-link svg {
  flex-shrink: 0;
  opacity: 0.75;
}

.dash-nav-link.is-active svg {
  opacity: 1;
}

.dash-nav-link-signout {
  color: rgba(255, 160, 160, 0.7);
  margin-top: 0.35rem;
}

.dash-nav-link-signout:hover {
  background: rgba(220, 80, 80, 0.1);
  color: rgba(255, 180, 180, 0.9);
}

.dash-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 0.4rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  background: rgba(255,255,255,0.18);
  color: #fff;
  margin-left: auto;
  flex-shrink: 0;
}

.dash-nav-badge-success {
  background: rgba(29, 91, 66, 0.6);
}

/* ── Main area ── */
.dash-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.dash-topbar {
  height: 60px;
  padding: 0 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.dash-toggle-btn {
  display: none;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 130ms ease;
}

.dash-toggle-btn:hover { background: #ece8e0; }

.dash-topbar-info { flex: 1; min-width: 0; }

.dash-topbar-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-topbar-crumb {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.dash-topbar-user {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.dash-topbar-username {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.dash-signout-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.52rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface-soft);
  cursor: pointer;
  transition: background 130ms ease, border-color 130ms ease, color 130ms ease;
  white-space: nowrap;
}

.dash-signout-btn:hover {
  background: #f0ece3;
  border-color: rgba(21, 44, 34, 0.2);
  color: var(--ink);
}

.dash-content {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(21,44,34,0.15) transparent;
}

/* Alerts */
.dash-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  border: 1px solid transparent;
}

.dash-alert svg { flex-shrink: 0; margin-top: 0.1rem; }

.dash-alert strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.dash-alert p { font-size: 0.88rem; line-height: 1.55; }

.dash-alert-error {
  background: #fff5f5;
  border-color: rgba(156, 74, 74, 0.25);
  color: var(--danger);
}

.dash-alert-success {
  background: #f0f7f3;
  border-color: rgba(29, 91, 66, 0.22);
  color: var(--accent);
}

/* Section visibility */
.dash-section { display: none; }
.dash-section.is-active { display: flex; flex-direction: column; gap: 1.25rem; }

.dash-section-header { margin-bottom: 0.25rem; }

.dash-section-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.025em;
  margin-bottom: 0.3rem;
}

.dash-section-sub { font-size: 0.92rem; color: var(--muted); line-height: 1.6; }

/* Stats */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 1rem;
}

body.role-chapter_president .dash-stats,
body.role-member .dash-stats,
body.role-treasurer .dash-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.role-admin .dash-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.role-chapter_president .dash-stats .dash-stat-card,
body.role-member .dash-stats .dash-stat-card,
body.role-treasurer .dash-stats .dash-stat-card {
  grid-column: auto;
  position: relative;
  overflow: hidden;
  border-width: 1.5px;
}

body.role-admin .dash-stats .dash-stat-card {
  grid-column: auto;
  position: relative;
  overflow: hidden;
  border-width: 1.5px;
}

body.role-chapter_president .dash-stats .dash-stat-card::before,
body.role-member .dash-stats .dash-stat-card::before,
body.role-treasurer .dash-stats .dash-stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #2f7f66);
}

body.role-admin .dash-stats .dash-stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #2f7f66);
}

body.role-chapter_president .dash-stats .dash-stat-card::after,
body.role-member .dash-stats .dash-stat-card::after,
body.role-treasurer .dash-stats .dash-stat-card::after {
  content: "";
  position: absolute;
  width: 64px;
  height: 64px;
  right: -18px;
  bottom: -22px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 91, 66, 0.12) 0%, rgba(29, 91, 66, 0) 70%);
  pointer-events: none;
}

body.role-admin .dash-stats .dash-stat-card::after {
  content: "";
  position: absolute;
  width: 64px;
  height: 64px;
  right: -18px;
  bottom: -22px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 91, 66, 0.12) 0%, rgba(29, 91, 66, 0) 70%);
  pointer-events: none;
}

body.role-chapter_president .dash-stats .dash-stat-card:nth-child(1)::before,
body.role-member .dash-stats .dash-stat-card:nth-child(1)::before,
body.role-treasurer .dash-stats .dash-stat-card:nth-child(1)::before {
  background: linear-gradient(90deg, #1d5b42, #3a8b6c);
}

body.role-admin .dash-stats .dash-stat-card:nth-child(1)::before {
  background: linear-gradient(90deg, #1d5b42, #3a8b6c);
}

body.role-chapter_president .dash-stats .dash-stat-card:nth-child(2)::before,
body.role-member .dash-stats .dash-stat-card:nth-child(2)::before,
body.role-treasurer .dash-stats .dash-stat-card:nth-child(2)::before {
  background: linear-gradient(90deg, #9c7120, #c49a4b);
}

body.role-admin .dash-stats .dash-stat-card:nth-child(2)::before {
  background: linear-gradient(90deg, #9c7120, #c49a4b);
}

body.role-chapter_president .dash-stats .dash-stat-card:nth-child(3)::before,
body.role-member .dash-stats .dash-stat-card:nth-child(3)::before,
body.role-treasurer .dash-stats .dash-stat-card:nth-child(3)::before {
  background: linear-gradient(90deg, #9f6726, #cc8c45);
}

body.role-admin .dash-stats .dash-stat-card:nth-child(3)::before {
  background: linear-gradient(90deg, #9f6726, #cc8c45);
}

body.role-chapter_president .dash-stats .dash-stat-card:nth-child(4)::before,
body.role-member .dash-stats .dash-stat-card:nth-child(4)::before,
body.role-treasurer .dash-stats .dash-stat-card:nth-child(4)::before {
  background: linear-gradient(90deg, #2b8e4e, #64b37f);
}

body.role-admin .dash-stats .dash-stat-card:nth-child(4)::before {
  background: linear-gradient(90deg, #2b8e4e, #64b37f);
}

body.role-chapter_president .dash-stats .dash-stat-card:nth-child(1)::after,
body.role-member .dash-stats .dash-stat-card:nth-child(1)::after,
body.role-treasurer .dash-stats .dash-stat-card:nth-child(1)::after {
  background: radial-gradient(circle, rgba(29, 91, 66, 0.15) 0%, rgba(29, 91, 66, 0) 70%);
}

body.role-admin .dash-stats .dash-stat-card:nth-child(1)::after {
  background: radial-gradient(circle, rgba(29, 91, 66, 0.15) 0%, rgba(29, 91, 66, 0) 70%);
}

body.role-chapter_president .dash-stats .dash-stat-card:nth-child(2)::after,
body.role-member .dash-stats .dash-stat-card:nth-child(2)::after,
body.role-treasurer .dash-stats .dash-stat-card:nth-child(2)::after {
  background: radial-gradient(circle, rgba(156, 113, 32, 0.16) 0%, rgba(156, 113, 32, 0) 70%);
}

body.role-admin .dash-stats .dash-stat-card:nth-child(2)::after {
  background: radial-gradient(circle, rgba(156, 113, 32, 0.16) 0%, rgba(156, 113, 32, 0) 70%);
}

body.role-chapter_president .dash-stats .dash-stat-card:nth-child(3)::after,
body.role-member .dash-stats .dash-stat-card:nth-child(3)::after,
body.role-treasurer .dash-stats .dash-stat-card:nth-child(3)::after {
  background: radial-gradient(circle, rgba(159, 103, 38, 0.16) 0%, rgba(159, 103, 38, 0) 70%);
}

body.role-admin .dash-stats .dash-stat-card:nth-child(3)::after {
  background: radial-gradient(circle, rgba(159, 103, 38, 0.16) 0%, rgba(159, 103, 38, 0) 70%);
}

body.role-chapter_president .dash-stats .dash-stat-card:nth-child(4)::after,
body.role-member .dash-stats .dash-stat-card:nth-child(4)::after,
body.role-treasurer .dash-stats .dash-stat-card:nth-child(4)::after {
  background: radial-gradient(circle, rgba(43, 142, 78, 0.16) 0%, rgba(43, 142, 78, 0) 70%);
}

body.role-admin .dash-stats .dash-stat-card:nth-child(4)::after {
  background: radial-gradient(circle, rgba(43, 142, 78, 0.16) 0%, rgba(43, 142, 78, 0) 70%);
}

.dash-stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow-sm);
}

.dash-stat-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 0.5rem;
}

.dash-stat-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8f1ec;
  color: var(--accent);
  border: 1px solid rgba(29, 91, 66, 0.18);
}

body.role-chapter_president .dash-stats .dash-stat-card:nth-child(2) .dash-stat-icon,
body.role-member .dash-stats .dash-stat-card:nth-child(2) .dash-stat-icon,
body.role-treasurer .dash-stats .dash-stat-card:nth-child(2) .dash-stat-icon {
  background: #f8f1e2;
  color: #9c7120;
  border-color: rgba(156, 113, 32, 0.25);
}

body.role-admin .dash-stats .dash-stat-card:nth-child(2) .dash-stat-icon {
  background: #f8f1e2;
  color: #9c7120;
  border-color: rgba(156, 113, 32, 0.25);
}

body.role-chapter_president .dash-stats .dash-stat-card:nth-child(3) .dash-stat-icon,
body.role-member .dash-stats .dash-stat-card:nth-child(3) .dash-stat-icon,
body.role-treasurer .dash-stats .dash-stat-card:nth-child(3) .dash-stat-icon {
  background: #f8ece2;
  color: #9f6726;
  border-color: rgba(159, 103, 38, 0.25);
}

body.role-admin .dash-stats .dash-stat-card:nth-child(3) .dash-stat-icon {
  background: #f8ece2;
  color: #9f6726;
  border-color: rgba(159, 103, 38, 0.25);
}

body.role-chapter_president .dash-stats .dash-stat-card:nth-child(4) .dash-stat-icon,
body.role-member .dash-stats .dash-stat-card:nth-child(4) .dash-stat-icon,
body.role-treasurer .dash-stats .dash-stat-card:nth-child(4) .dash-stat-icon {
  background: #e9f5ee;
  color: #2b8e4e;
  border-color: rgba(43, 142, 78, 0.25);
}

body.role-admin .dash-stats .dash-stat-card:nth-child(4) .dash-stat-icon {
  background: #e9f5ee;
  color: #2b8e4e;
  border-color: rgba(43, 142, 78, 0.25);
}

.dash-stat-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.dash-stat-value {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

/* Cards */
.dash-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.dash-card-featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #2c7a56, #7d9e50);
}

.dash-card-state-info::before {
  background: linear-gradient(90deg, #1d5b42, #2f7f66, #5e9a86);
}

.dash-card-state-pending::before {
  background: linear-gradient(90deg, #9c7120, #b7872f, #d6ac56);
}

.dash-card-state-warning::before {
  background: linear-gradient(90deg, #7b4f1d, #9f6726, #c48836);
}

.dash-card-state-success::before {
  background: linear-gradient(90deg, #1f6b3a, #2b8e4e, #4aa668);
}

.dash-card-state-guide::before {
  background: linear-gradient(90deg, #445b2b, #6a7f3e, #8fa85b);
}

.dash-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.dash-card-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.15rem;
}

.dash-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8f1ec;
  color: var(--accent);
  border: 1px solid rgba(29, 91, 66, 0.18);
  flex-shrink: 0;
}

.dash-card-state-info .dash-card-icon {
  background: #e8f1ec;
  color: #1d5b42;
  border-color: rgba(29, 91, 66, 0.22);
}

.dash-card-state-pending .dash-card-icon {
  background: #f8f1e2;
  color: #9c7120;
  border-color: rgba(156, 113, 32, 0.25);
}

.dash-card-state-warning .dash-card-icon {
  background: #f8ece2;
  color: #9f6726;
  border-color: rgba(159, 103, 38, 0.26);
}

.dash-card-state-success .dash-card-icon {
  background: #e9f5ee;
  color: #2b8e4e;
  border-color: rgba(43, 142, 78, 0.24);
}

.dash-card-state-guide .dash-card-icon {
  background: #eef2e5;
  color: #617b33;
  border-color: rgba(97, 123, 51, 0.24);
}

.dash-card-icon-sm {
  width: 24px;
  height: 24px;
  border-radius: 8px;
}

.dash-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.dash-card-title-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.dash-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.dash-card-title-row .dash-card-title { margin-bottom: 0; }

.dash-card-body { font-size: 0.93rem; color: var(--muted); line-height: 1.7; }

.dash-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.15rem;
}

.dash-overview-grid-member {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.dash-overview-grid-member .dash-card {
  grid-column: span 6;
}

.dash-overview-grid-member .dash-card-span-full {
  grid-column: 1 / -1;
}

/* Receipt status rows */
.dash-receipt-list { display: flex; flex-direction: column; gap: 0; }

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

.dash-receipt-row:last-child { border-bottom: none; padding-bottom: 0; }
.dash-receipt-row-label { font-size: 0.88rem; font-weight: 600; color: var(--ink); }

.dash-receipt-meta { font-size: 0.88rem; color: var(--ink); margin-bottom: 0.5rem; line-height: 1.55; }
.dash-receipt-meta span { color: var(--muted); }
.dash-receipt-done-note { font-size: 0.86rem; color: var(--muted); margin-top: 0.4rem; }
.dash-receipt-locked-note { font-size: 0.86rem; color: var(--muted); margin-bottom: 0.5rem; line-height: 1.55; }

.member-receipts-grid {
  display: grid;
  width: 100%;
  max-width: none !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.member-receipt-card {
  width: 100%;
  min-width: 0;
  height: 100%;
}

.share-agreement-block {
  margin-bottom: 0.85rem;
  padding: 0.75rem;
  border: 1px solid #dfe4dc;
  border-radius: 10px;
  background: #fbfcfa;
  max-height: 210px;
  overflow-y: auto;
}

.share-agreement-block p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #36453e;
}

.share-agreement-block ol {
  margin: 0.65rem 0 0;
  padding-left: 1rem;
}

.share-agreement-block li {
  font-size: 0.81rem;
  line-height: 1.6;
  color: #3f4d46;
}

.share-agreement-subitem {
  margin-top: 0.22rem;
  font-size: 0.8rem;
}

.share-agreement-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  font-size: 0.82rem;
  color: #2e3f37;
}

.share-agreement-check input {
  margin-top: 0.2rem;
  accent-color: #1d5b42;
}

.share-terms-link {
  display: inline;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  color: #1d5b42;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.share-terms-link:hover,
.share-terms-link:focus-visible {
  color: #164a36;
}

.share-terms-modal {
  position: fixed;
  inset: 0;
  z-index: 305;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.share-terms-modal[hidden] {
  display: none;
}

.share-terms-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 15, 11, 0.56);
  backdrop-filter: blur(2px);
}

.share-terms-dialog {
  position: relative;
  width: min(820px, 100%);
  max-height: min(86vh, 760px);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid #d3ddd3;
  background: #fff;
  box-shadow: 0 28px 58px rgba(8, 16, 12, 0.28);
  overflow: hidden;
}

.share-terms-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid #dde5dc;
  background: linear-gradient(180deg, #f8fbf8 0%, #f2f7f2 100%);
}

.share-terms-header h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.share-terms-close {
  border: 1px solid #d0dacf;
  border-radius: 999px;
  background: #f2f7f2;
  color: #355043;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.3rem 0.68rem;
  cursor: pointer;
}

.share-terms-close:hover,
.share-terms-close:focus-visible {
  background: #e8f1e8;
}

.share-terms-body {
  padding: 1.05rem 1.15rem 1.15rem;
  overflow-y: auto;
  background: #fefefe;
}

.share-terms-intro {
  margin: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.26rem 0.58rem;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1d5b42;
  background: #eaf3ec;
  border: 1px solid #d6e6d9;
}

.share-terms-lead {
  margin: 0.78rem 0 0;
  padding: 0.85rem 0.9rem;
  border: 1px solid #e1e8df;
  border-radius: 12px;
  background: #fafcf9;
  font-size: 0.89rem;
  line-height: 1.7;
  color: #30423a;
}

.share-terms-list {
  margin: 0.85rem 0 0;
  padding-left: 1.2rem;
}

.share-terms-list li {
  font-size: 0.86rem;
  line-height: 1.68;
  color: #31443c;
  margin-top: 0.55rem;
}

.share-terms-list li:first-child {
  margin-top: 0;
}

.share-agreement-subitem {
  margin-top: 0.28rem;
  font-size: 0.84rem;
  color: #3b4d45;
}

.share-terms-affirmation {
  margin: 0.85rem 0 0;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  border: 1px solid #dbe4da;
  background: #f5f9f4;
  font-size: 0.86rem;
  line-height: 1.68;
  color: #2e4038;
}

/* Member progress list layout (dashboard) */
.dash-page .member-progress {
  display: grid;
  gap: 0.55rem;
}

.dash-page .member-progress-item {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  min-width: 0;
}

.dash-page .member-progress-item > div,
.dash-page .member-progress-item-main {
  flex: 1;
  min-width: 0;
}

.dash-page .member-progress-dot {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  border: 2px solid #b5c0b7;
  background: #fff;
  flex-shrink: 0;
}

.dash-page .member-progress-item.is-complete .member-progress-dot {
  border-color: #2b8e4e;
  background: #2b8e4e;
}

.dash-page .member-progress-item.is-current .member-progress-dot {
  border-color: #2f6f95;
  background: #dce9f3;
}

/* Detailed progress */
.member-progress-detailed .member-progress-item {
  align-items: flex-start;
  gap: 1rem;
}

.member-progress-detailed .member-progress-item > div strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.22rem;
}

.member-progress-step-icon {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #eff3ea;
  color: #5f6f62;
  border: 1px solid rgba(81, 97, 88, 0.2);
}

.member-progress-item-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.member-progress-item-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.member-progress-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.2rem;
}

.member-progress-item.is-complete .member-progress-step-icon {
  background: #e8f4ec;
  color: #2b8e4e;
  border-color: rgba(43, 142, 78, 0.25);
}

.member-progress-item.is-current .member-progress-step-icon {
  background: #e9f0f6;
  color: #2f6f95;
  border-color: rgba(47, 111, 149, 0.25);
}

.member-progress-item:not(.is-complete):not(.is-current) .member-progress-step-icon {
  background: #efefef;
  color: #8b8f8b;
  border-color: rgba(139, 143, 139, 0.25);
}

.dash-progress-note { font-size: 0.84rem; color: var(--muted); line-height: 1.55; margin: 0; }

/* Table card wrapper */
.dash-table-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.dash-table-card-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  background: #f7f4ee;
}

.dash-table-card-title {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink);
}

.dash-table-card .table-wrap {
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

/* Secretary dashboard fit tuning */
body.role-secretary .dash-content {
  padding: 1.35rem;
}

body.role-secretary .dash-stats,
body.role-manager .dash-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

body.role-secretary .dash-stat-card {
  padding: 1rem;
}

body.role-secretary .dash-table-card .table-wrap {
  overflow-x: hidden;
}

body.role-secretary .dash-table-card .account-table {
  min-width: 0;
  width: 100%;
  table-layout: fixed;
}

body.role-secretary .dash-table-card .account-table th,
body.role-secretary .dash-table-card .account-table td {
  padding: 0.55rem 0.5rem;
  font-size: 0.79rem;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
  vertical-align: top;
}

body.role-secretary .dash-table-card .status-pill,
body.role-secretary .dash-table-card .file-chip {
  white-space: normal;
  max-width: 100%;
  line-height: 1.25;
}

body.role-secretary .dash-table-card .action-stack {
  flex-direction: column;
  align-items: stretch;
}

body.role-secretary .dash-table-card .action-stack .button {
  width: 100%;
  min-height: 34px;
  padding: 0.38rem 0.5rem;
  font-size: 0.74rem;
}

body.role-secretary .dash-section[data-dash-section="review"] .account-table th:nth-child(6),
body.role-secretary .dash-section[data-dash-section="review"] .account-table td:nth-child(6),
body.role-secretary .dash-section[data-dash-section="review"] .account-table th:nth-child(7),
body.role-secretary .dash-section[data-dash-section="review"] .account-table td:nth-child(7),
body.role-secretary .dash-section[data-dash-section="completed"] .account-table th:nth-child(6),
body.role-secretary .dash-section[data-dash-section="completed"] .account-table td:nth-child(6),
body.role-secretary .dash-section[data-dash-section="completed"] .account-table th:nth-child(7),
body.role-secretary .dash-section[data-dash-section="completed"] .account-table td:nth-child(7) {
  display: none;
}

@media (max-width: 1366px) {
  body.role-secretary .dash-stats,
  body.role-manager .dash-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Admin records table chips/badges */
.admin-role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-role-badge-president {
  background: #e8f4ec;
  color: #1f6b3a;
  border: 1px solid rgba(31, 107, 58, 0.25);
}

.admin-role-badge-treasurer {
  background: #f8f1e2;
  color: #9c7120;
  border: 1px solid rgba(156, 113, 32, 0.28);
}

.admin-role-badge-default {
  background: #edf0ec;
  color: #44584f;
  border: 1px solid rgba(68, 88, 79, 0.2);
}

.admin-username-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.5rem;
  border-radius: 8px;
  background: #f1f4ef;
  border: 1px solid #dce3da;
  font-size: 0.8rem;
  font-weight: 700;
  color: #30443a;
}

.admin-permission-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.admin-permission-chip.is-enabled {
  background: #ebf6ef;
  color: #2b8e4e;
  border: 1px solid rgba(43, 142, 78, 0.25);
}

.admin-permission-chip.is-disabled {
  background: #f1f2f0;
  color: #6b736f;
  border: 1px solid rgba(107, 115, 111, 0.25);
}

/* Inline link */
.dash-inline-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.dash-inline-link:hover { color: var(--accent-hover); }

/* Mobile overlay */
.dash-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 190;
  backdrop-filter: blur(2px);
}

.dash-overlay[data-open] { display: block; }

/* Member profile tabs */
.member-profile-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #fcfaf6 0%, #f7f3ec 100%);
}

.member-profile-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  transition: all 150ms ease;
}

.member-profile-tab:hover {
  color: var(--ink);
  background: #efebe3;
}

.member-profile-tab[data-profile-tab="personal"] {
  color: #2f6f95;
}

.member-profile-tab[data-profile-tab="personal"] .member-profile-tab-icon {
  background: rgba(47, 111, 149, 0.14);
  color: #2f6f95;
}

.member-profile-tab[data-profile-tab="employment"] {
  color: #1f6b3a;
}

.member-profile-tab[data-profile-tab="employment"] .member-profile-tab-icon {
  background: rgba(31, 107, 58, 0.14);
  color: #1f6b3a;
}

.member-profile-tab[data-profile-tab="family"] {
  color: #9c7120;
}

.member-profile-tab[data-profile-tab="family"] .member-profile-tab-icon {
  background: rgba(156, 113, 32, 0.16);
  color: #9c7120;
}

.member-profile-tab[data-profile-tab="background"] {
  color: #5a6572;
}

.member-profile-tab[data-profile-tab="background"] .member-profile-tab-icon {
  background: rgba(90, 101, 114, 0.15);
  color: #5a6572;
}

.member-profile-tab.is-active {
  color: #fff;
  background: linear-gradient(90deg, #1d5b42, #2f7f66);
  border-color: rgba(29, 91, 66, 0.28);
  box-shadow: 0 8px 20px rgba(29, 91, 66, 0.2);
}

.member-profile-tab-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(29, 91, 66, 0.11);
  color: #1d5b42;
  flex-shrink: 0;
}

.member-profile-tab.is-active .member-profile-tab-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.member-profile-panel[data-profile-panel="personal"] {
  border-top: 3px solid rgba(47, 111, 149, 0.45);
}

.member-profile-panel[data-profile-panel="employment"] {
  border-top: 3px solid rgba(31, 107, 58, 0.45);
}

.member-profile-panel[data-profile-panel="family"] {
  border-top: 3px solid rgba(156, 113, 32, 0.45);
}

.member-profile-panel[data-profile-panel="background"] {
  border-top: 3px solid rgba(90, 101, 114, 0.45);
}

.member-profile-tab-panels {
  margin-top: 0.85rem;
}

.member-profile-panel {
  display: none;
  border: 1px solid var(--line);
  background: #fdfcf9;
  border-radius: 14px;
  padding: 1rem;
}

.member-profile-panel.is-active {
  display: block;
}

.member-profile-panel-head {
  margin-bottom: 0.9rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed #d9ddd4;
}

.member-profile-panel-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.member-profile-panel-head p {
  margin: 0.35rem 0 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--muted);
}

.member-structured-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.member-structured-section {
  margin-top: 1rem;
  border: 1px solid #dfe4dc;
  border-radius: 12px;
  background: #fff;
  padding: 0.9rem;
}

.member-structured-section.has-error {
  border-color: rgba(156, 74, 74, 0.35);
  background: #fff9f8;
}

.member-structured-head h4 {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--ink);
}

.member-structured-head p {
  margin: 0.28rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}

.member-inline-kpis {
  margin-top: 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: #eef4ef;
  border: 1px solid #d8e4d9;
}

.member-inline-kpi-label {
  font-size: 0.76rem;
  color: #4f6157;
  font-weight: 700;
}

.member-inline-kpi-value {
  font-size: 0.86rem;
  color: #1d5b42;
}

.member-repeater {
  margin-top: 0.8rem;
}

.member-repeater-list {
  display: grid;
  gap: 0.75rem;
}

.member-repeater-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0.7rem;
  border: 1px solid #e4e8e1;
  border-radius: 10px;
  background: #fcfdfa;
}

.member-repeater-row .field {
  margin: 0;
}

.member-field-label-with-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.member-row-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #edf3f6;
  color: #2f6f95;
  border: 1px solid rgba(47, 111, 149, 0.2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.member-row-drag-handle {
  grid-column: span 1;
  align-self: end;
  width: 100%;
  min-height: 42px;
  border: 1px dashed #b8c7bd;
  border-radius: 10px;
  background: #f6faf7;
  color: #5d7063;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: grab;
}

.member-row-drag-handle:active {
  cursor: grabbing;
}

.member-repeater-row.is-dragging {
  opacity: 0.55;
  border-color: rgba(29, 91, 66, 0.45);
  background: #f2f8f4;
}

.member-row-remove {
  grid-column: span 1;
  align-self: end;
  min-width: 0;
  width: 100%;
}

.member-row-add {
  margin-top: 0.65rem;
  min-width: 0;
}

.member-structured-error {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: var(--danger);
  font-weight: 600;
}

.member-repeater[data-repeater="dependents"] .member-repeater-row .field:nth-child(1),
.member-repeater[data-repeater="reference"] .member-repeater-row .field:nth-child(1),
.member-repeater[data-repeater="education"] .member-repeater-row .field:nth-child(1),
.member-repeater[data-repeater="work"] .member-repeater-row .field:nth-child(1) {
  grid-column: span 4;
}

.member-repeater[data-repeater="dependents"] .member-repeater-row .field:nth-child(2) {
  grid-column: span 3;
}

.member-repeater[data-repeater="dependents"] .member-repeater-row .field:nth-child(3) {
  grid-column: span 3;
}

.member-repeater[data-repeater="reference"] .member-repeater-row .field:nth-child(2),
.member-repeater[data-repeater="education"] .member-repeater-row .field:nth-child(2),
.member-repeater[data-repeater="work"] .member-repeater-row .field:nth-child(2) {
  grid-column: span 3;
}

.member-repeater[data-repeater="reference"] .member-repeater-row .field:nth-child(3),
.member-repeater[data-repeater="education"] .member-repeater-row .field:nth-child(3),
.member-repeater[data-repeater="work"] .member-repeater-row .field:nth-child(3) {
  grid-column: span 3;
}

.member-repeater[data-repeater="education"] .member-repeater-row .field:nth-child(4),
.member-repeater[data-repeater="work"] .member-repeater-row .field:nth-child(4) {
  grid-column: span 2;
}

.member-repeater[data-repeater="work"] .member-repeater-row .field:nth-child(5) {
  grid-column: span 2;
}

.member-repeater[data-repeater="education"] .member-row-drag-handle,
.member-repeater[data-repeater="work"] .member-row-drag-handle,
.member-repeater[data-repeater="education"] .member-row-remove,
.member-repeater[data-repeater="work"] .member-row-remove {
  min-height: 40px;
}

.password-input-wrap {
  position: relative;
}

.password-input-wrap input {
  padding-right: 4.5rem;
}

.password-toggle-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid #ccd5cb;
  border-radius: 999px;
  background: #f3f7f2;
  color: #385346;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.58rem;
  cursor: pointer;
}

.password-toggle-btn:hover {
  background: #e9f0e8;
}

.member-password-meter {
  margin-top: 0.7rem;
  margin-bottom: 0.75rem;
}

.member-password-meter-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e8ece6;
  overflow: hidden;
}

.member-password-meter-fill {
  height: 100%;
  width: 0;
  background: #b0b8af;
  transition: width 180ms ease, background 180ms ease;
}

.member-password-meter-fill.is-weak {
  background: #c76759;
}

.member-password-meter-fill.is-medium {
  background: #ba8c2f;
}

.member-password-meter-fill.is-strong {
  background: #2b8e4e;
}

.member-password-meter-label {
  margin: 0.42rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.member-password-rules {
  margin: 0.35rem 0 0.85rem;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.75rem;
}

.member-password-rules li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.79rem;
  color: #637067;
}

.member-password-rules li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #b8c3ba;
  position: absolute;
  left: 0;
  top: 0.28rem;
}

.member-password-rules li.is-passed {
  color: #24563d;
  font-weight: 600;
}

.member-password-rules li.is-passed::before {
  background: #2b8e4e;
}

.member-password-modal {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.member-password-modal[hidden] {
  display: none;
}

.member-password-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 16, 12, 0.54);
  backdrop-filter: blur(2px);
}

.member-password-modal-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: min(88vh, 760px);
  overflow-y: auto;
  border-radius: 14px;
  border: 1px solid #dbe2d8;
  background: #fff;
  padding: 1rem 1.05rem;
  box-shadow: 0 24px 50px rgba(9, 19, 14, 0.24);
}

.member-password-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid #e4eae2;
  padding-bottom: 0.6rem;
}

.member-password-modal-head h3 {
  margin: 0;
  font-size: 1.03rem;
  font-weight: 800;
  color: var(--ink);
}

.member-password-modal-close {
  border: 1px solid #d3dcd2;
  border-radius: 999px;
  background: #f4f8f4;
  color: #355044;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.32rem 0.72rem;
  cursor: pointer;
}

.member-password-modal-close:hover {
  background: #e9f1e9;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  body.dash-page { overflow: auto; }

  .dash-shell {
    flex-direction: column;
    min-height: 100vh;
    height: auto;
  }

  .dash-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 240ms cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
  }

  .dash-sidebar.is-open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }

  .dash-main { height: auto; min-height: 100vh; overflow: visible; }
  .dash-content { overflow: visible; padding: 1.25rem; }
  .dash-toggle-btn { display: flex; }
  .dash-topbar-user { display: none; }
  .dash-topbar-crumb { display: none; }
  .dash-stats { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

  body.role-treasurer .dash-stats,
  body.role-secretary .dash-stats,
  body.role-manager .dash-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .dash-overview-grid-member {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .member-profile-tabs {
    gap: 0.35rem;
    padding: 0.35rem;
  }

  .member-profile-tab {
    flex: 1 1 calc(50% - 0.35rem);
    text-align: center;
    padding: 0.55rem 0.65rem;
  }

  .member-profile-panel {
    padding: 0.85rem;
  }

  .member-repeater-row {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .member-repeater-row .field,
  .member-row-drag-handle,
  .member-row-remove {
    grid-column: 1;
  }

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

  .member-password-modal-dialog {
    max-height: 92vh;
    padding: 0.85rem;
  }

  .dash-overview-grid-member .dash-card {
    grid-column: 1;
  }
}

@media (max-width: 600px) {
  .dash-content { padding: 1rem; }
  .dash-overview-grid { grid-template-columns: 1fr; }
  .dash-topbar-username { display: none; }
}