:root {
  --bg: #f6f8f7;
  --surface: #ffffff;
  --surface-alt: #f0f4f2;
  --text: #1a2a22;
  --muted: #5f7068;
  --primary: #2e7d57;
  --primary-dark: #1f5a3d;
  --accent: #c7ead7;
  --danger: #b64343;
  --warning: #976f18;
  --border: #dce5df;
  --shadow: 0 10px 30px rgba(22, 52, 39, 0.08);
  --radius: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

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

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 248, 247, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

 .nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.2rem;
  min-width: 0;
}

.brand--stack {
  gap: 10px;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.05;
}

.brand-text-main {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}

.brand-text-sub {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #5aa97e);
  color: white;
  font-size: 1.2rem;
  flex: 0 0 auto;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  box-shadow: none;
  flex-direction: column;
  gap: 3px;
  appearance: none;
  -webkit-appearance: none;
}

.nav-toggle:hover {
  background: var(--surface-alt);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  margin: 0;
  pointer-events: none;
}

.nav-links {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(280px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  flex-direction: column;
  gap: 6px;
  z-index: 80;
}

.nav-links.is-open {
  display: flex;
}

.nav-links a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 700;
  background: transparent;
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.nav-links a:hover {
  background: var(--surface-alt);
  color: var(--text);
  border-color: var(--border);
}

.nav-links a.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.nav-user-greeting {
  white-space: nowrap;
  font-size: 0.92rem;
}

.btn, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: 0.2s ease;
  font-weight: 700;
}

.btn {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow);
}

.btn:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--surface-alt);
}

.hero {
  padding: 56px 0 30px;
}

.hero-home {
  padding-top: 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}

.hero-grid-home {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  align-items: center;
  gap: 28px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy, .hero-side, .section-card {
  padding: 28px;
}

.hero-copy-home {
  padding: 40px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-lead {
  font-size: 1.08rem;
  max-width: 42rem;
  margin: 0;
}

.hero-visual {
  position: relative;
  min-height: 100%;
  width: 100%;
  max-width: 460px;
  justify-self: end;
}

.hero-visual-frame {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 50px rgba(8, 18, 31, 0.28);
  min-height: 420px;
  background: #071523;
}

.hero-visual-frame img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
}

.hero-visual-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 16, 30, 0.08) 0%, rgba(5, 14, 25, 0.36) 100%);
}

.hero-visual-glow {
  position: absolute;
  inset: auto 12% -14% 12%;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(125, 189, 255, 0.28) 0%, rgba(125, 189, 255, 0) 72%);
  pointer-events: none;
}

.hero-grid-home {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
}

.hero-visual {
  max-width: 400px;
}

.hero-visual-frame {
  min-height: 370px;
}

.hero-visual-frame img {
  min-height: 370px;
}

.hero-verse-carousel {
  isolation: isolate;
}

.hero-verse-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(180deg, rgba(5, 12, 25, 0.12) 0%, rgba(5, 12, 25, 0.28) 36%, rgba(5, 12, 25, 0.78) 100%);
}

.hero-verse-track {
  position: relative;
  min-height: 168px;
  display: flex;
  align-items: flex-end;
}

.hero-verse-slide {
  position: absolute;
  inset: auto 0 0 0;
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

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

.hero-verse-text {
  margin: 0;
  color: #fff;
  font-size: 1.08rem;
  line-height: 1.65;
  font-weight: 700;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

.hero-verse-ref {
  margin-top: 12px;
  color: rgba(255,255,255,0.9);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.hero-verse-controls {
  margin-top: 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
}

.hero-verse-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.14);
  color: #fff;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.1rem;
  backdrop-filter: blur(6px);
  touch-action: manipulation;
}

.hero-verse-arrow:hover {
  background: rgba(255,255,255,0.22);
}

.hero-verse-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.hero-verse-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.38);
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
}

.hero-verse-dot.is-active {
  width: 28px;
  background: #fff;
}

.verse-card {
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: var(--accent);
  color: var(--primary-dark);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 16px;
}

h1, h2, h3 {
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.07;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

h3 {
  font-size: 1.1rem;
}

p {
  color: var(--muted);
  line-height: 1.6;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 12px;
  margin-top: 20px;
}

.search-row input, .search-row select,
.filter-grid input, .filter-grid select,
.form-grid input, .form-grid select, .form-grid textarea,
.simple-form input, .simple-form select, .simple-form textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: white;
  color: var(--text);
}

.search-row input::placeholder,
.filter-grid input::placeholder,
.form-grid input::placeholder,
.form-grid textarea::placeholder,
.simple-form input::placeholder,
.simple-form textarea::placeholder {
  color: #8a9a92;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.simple-form input:focus,
.simple-form select:focus,
.simple-form textarea:focus,
.search-row input:focus,
.search-row select:focus,
.filter-grid input:focus,
.filter-grid select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46, 125, 87, 0.12);
}

input[type="checkbox"],
input[type="radio"] {
  width: auto !important;
  display: inline-block;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  vertical-align: middle;
  align-self: center;
}

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 6px;
}

.checkbox-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  line-height: 1.4;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-check input {
  width: auto;
  flex: 0 0 auto;
}

.form-check label {
  margin: 0;
}

.badge-row, .stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--text);
  font-size: 0.9rem;
}

.badge.good {
  background: #e8f7ef;
  color: var(--primary-dark);
}

.badge.warn {
  background: #fff4db;
  color: var(--warning);
}

.badge.alert {
  background: #fdeaea;
  color: var(--danger);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.stat {
  padding: 18px;
  border-radius: 16px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

.stat strong {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.section {
  padding: 18px 0 28px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.filter-panel {
  display: block;
}

.mobile-filter-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.filter-toggle-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.filter-content {
  display: block;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.project-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-card h3 {
  margin-bottom: 0;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}


.project-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.review-status-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e8f7ef;
  color: var(--primary-dark);
  border: 1px solid #cfe8da;
  font-size: 0.95rem;
  font-weight: 800;
  flex: 0 0 auto;
}

.review-status-icon-lg {
  width: 34px;
  height: 34px;
  font-size: 1rem;
}

.compact-status-row {
  margin-top: -2px;
}

.response-type-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.response-type-option {
  position: relative;
}

.response-type-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.response-type-option span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.response-type-option input:checked + span {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.response-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.progress-wrap {
  display: grid;
  gap: 8px;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background: #e8eeea;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #76bc94);
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.project-action-stats {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.project-card .project-summary {
  margin: 0;
}

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

.stack {
  display: grid;
  gap: 18px;
}

.panel {
  padding: 22px;
}

.notice {
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff7e7;
  border: 1px solid #f0ddaa;
  color: #7a5d15;
}

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

.form-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

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

.form-grid textarea, .simple-form textarea {
  min-height: 130px;
  resize: vertical;
}

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

.item {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
}

.item strong {
  display: block;
  margin-bottom: 6px;
}

.footer {
  margin-top: 28px;
  border-top: 1px solid var(--border);
  padding: 30px 0 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 20px;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.auth-wrap, .page-wrap {
  padding: 34px 0;
}

.auth-card, .page-card {
  max-width: 780px;
  margin: 0 auto;
  padding: 28px;
}

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

.text-center {
  text-align: center;
}

.hide {
  display: none !important;
}

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

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

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

th {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ===== NEW FORM/INFO STYLES ===== */

label.field,
.form-grid > label,
.simple-form > label {
  display: grid;
  gap: 8px;
}

label.field > span,
.form-grid > label > span,
.simple-form > label > span {
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
}

input[readonly] {
  background: #f8fbf9;
  color: var(--muted);
}

.info-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}

.checkbox-field {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}

.checkbox-field input {
  flex: 0 0 auto;
}

.checkbox-field span {
  color: var(--muted);
}

/* FIX: keep checkbox/radio + text on same row inside form labels */
.form-grid > label:has(> input[type="checkbox"]),
.form-grid > label:has(> input[type="radio"]),
.simple-form > label:has(> input[type="checkbox"]),
.simple-form > label:has(> input[type="radio"]),
label.field:has(> input[type="checkbox"]),
label.field:has(> input[type="radio"]) {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}

.form-grid > label:has(> input[type="checkbox"]) > span,
.form-grid > label:has(> input[type="radio"]) > span,
.simple-form > label:has(> input[type="checkbox"]) > span,
.simple-form > label:has(> input[type="radio"]) > span,
label.field:has(> input[type="checkbox"]) > span,
label.field:has(> input[type="radio"]) > span {
  font-weight: 400;
  color: var(--muted);
  font-size: 1rem;
}

.form-grid .item {
  height: 100%;
}

.form-grid .item strong[data-info] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#allProjectsList .item {
  background: var(--surface);
}

#financialGoalWrap,
#campaignExpiryWrap {
  transition: 0.2s ease;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
  .project-title-row {
    align-items: center;
  }
  .hero-grid, .split-grid, .footer-grid, .projects-grid, .filter-grid, .kpi-row, .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .search-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .nav {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 10px;
    padding: 8px 0;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    font-size: 0.95rem;
  }

  .brand-text-main {
    font-size: 0.98rem;
  }

  .brand-text-sub {
    font-size: 0.56rem;
  }

  .nav-toggle {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .nav-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav-user-greeting {
    flex: 1 1 100%;
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .nav-actions .btn,
  .nav-actions .btn-outline {
    padding: 7px 10px;
    font-size: 0.75rem;
  }

  .nav-links {
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    width: 100%;
  }

  .nav-links a {
    font-size: 0.84rem;
  }

  .hero-grid, .split-grid, .footer-grid, .projects-grid, .filter-grid, .kpi-row, .stats-grid, .search-row, .form-grid.two, .form-grid.three {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-grid-home {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-copy, .hero-side, .section-card, .panel, .auth-card, .page-card {
    padding: 20px;
  }

  .hero-copy-home {
    padding: 24px;
  }

  .hero-visual {
    max-width: 100%;
    justify-self: stretch;
  }

  .hero-visual-frame {
    min-height: 300px;
  }

  .hero-visual-frame img {
    min-height: 300px;
  }

  .hero-verse-overlay {
    padding: 18px 16px 16px;
  }

  .hero-verse-track {
    min-height: 180px;
  }

  .hero-verse-text {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .hero-verse-ref {
    font-size: 0.84rem;
    margin-top: 10px;
  }

  .hero-verse-controls {
    gap: 10px;
    margin-top: 14px;
  }

  .hero-verse-arrow {
    width: 42px;
    height: 42px;
  }

  .hero-verse-dots {
    gap: 8px;
  }


  .filter-panel {
    padding: 14px;
  }

  .mobile-filter-toggle {
    display: inline-flex;
  }

  .filter-content {
    display: none !important;
    margin-top: 14px;
  }

  .filter-panel.is-open .filter-content {
    display: block !important;
  }

  .filter-panel.is-open .filter-toggle-icon {
    transform: rotate(90deg);
  }

  .checkbox-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .nav-actions {
    justify-content: flex-start;
  }

  .nav-actions .btn,
  .nav-actions .btn-outline,
  .nav-actions .badge {
    min-height: 36px;
  }

  .hero-visual-frame {
    min-height: 280px;
  }

  .hero-visual-frame img {
    min-height: 280px;
  }

  .hero-verse-overlay {
    padding: 14px 12px 14px;
  }

  .hero-verse-track {
    min-height: 194px;
  }

  .hero-verse-text {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .hero-verse-ref {
    font-size: 0.8rem;
  }

  .hero-verse-controls {
    grid-template-columns: 40px 1fr 40px;
    gap: 8px;
  }

  .hero-verse-arrow {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .hero-verse-dot {
    width: 9px;
    height: 9px;
  }

  .hero-verse-dot.is-active {
    width: 22px;
  }
}

/* ===== ADMIN PAGE IMPROVEMENTS ===== */

.admin-filter-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.admin-actions {
  display: grid;
  gap: 8px;
  min-width: 220px;
}

.admin-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.btn-xs {
  padding: 8px 12px;
  font-size: 0.86rem;
  font-weight: 700;
  min-height: 34px;
}

.btn-danger {
  border-color: #efc5c5;
  color: var(--danger);
  background: #fff7f7;
}

.btn-danger:hover {
  background: #fdeaea;
}

.btn-warn {
  border-color: #f0ddaa;
  color: #7a5d15;
  background: #fff7e7;
}

.btn-warn:hover {
  background: #fff1cf;
}

.admin-reason-input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: white;
  color: var(--text);
}

.admin-status-stack {
  display: grid;
  gap: 6px;
}

@media (max-width: 1024px) {
  .admin-filter-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .admin-filter-grid {
    grid-template-columns: 1fr;
  }

  .admin-actions {
    min-width: 180px;
  }
}


/* ===== STRIPE PROFILE ===== */

.stripe-summary-grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 720px) {
  .stripe-summary-grid {
    grid-template-columns: 1fr;
  }
}


.verse-card {
  text-align: center;
}

.verse-card h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.verse-card p {
  margin: 0;
  font-size: 0.95rem;
}


.admin-user-cell {
  display: grid;
  gap: 4px;
}

.admin-user-cell strong {
  line-height: 1.2;
}

.admin-user-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-actions {
  min-width: 240px;
}

.admin-actions-row.wrap {
  flex-wrap: wrap;
}

.btn-xs.btn-danger {
  border-color: rgba(182, 67, 67, 0.25);
  color: var(--danger);
}

.btn-xs.btn-danger:hover {
  background: rgba(182, 67, 67, 0.08);
}

.btn-xs.btn-warn {
  border-color: rgba(151, 111, 24, 0.25);
  color: var(--warning);
}

.btn-xs.btn-warn:hover {
  background: rgba(151, 111, 24, 0.08);
}


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

  .hero-visual-frame,
  .hero-visual-frame img {
    min-height: 420px;
  }
}

@media (max-width: 720px) {
  .hero-home {
    padding-top: 28px;
  }

  .hero-copy-home {
    padding: 24px;
  }

  .hero-visual {
    max-width: 100%;
    justify-self: stretch;
  }

  .hero-visual-frame,
  .hero-visual-frame img {
    min-height: 300px;
  }

  .project-action-stats {
    width: 100%;
    margin-left: 0;
  }
}

.hero-actions {
  margin-top: 22px;
}

.hero-submit-btn {
  background: #138a3d;
  border-color: #138a3d;
}

.hero-submit-btn:hover {
  background: #0f7834;
  border-color: #0f7834;
}

.auth-submit-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.auth-submit-modal.hide {
  display: none;
}

.auth-submit-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 30, 24, 0.56);
}

.auth-submit-modal__card {
  position: relative;
  width: min(100%, 440px);
  display: grid;
  gap: 14px;
  padding: 28px;
  z-index: 1;
}

.auth-submit-modal__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-submit-modal__actions .btn,
.auth-submit-modal__actions .btn-outline {
  flex: 1 1 140px;
  justify-content: center;
}


/* ===== MODERN AD-STYLE REFRESH ===== */
:root {
  --bg: #f3f7ef;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-alt: #eef7e7;
  --text: #14251b;
  --muted: #607166;
  --primary: #18834f;
  --primary-dark: #0f5d38;
  --accent: #dff4b8;
  --accent-strong: #f8c74a;
  --border: rgba(24, 131, 79, 0.16);
  --shadow: 0 18px 45px rgba(14, 75, 46, 0.12);
  --shadow-strong: 0 24px 70px rgba(10, 53, 34, 0.18);
  --radius: 22px;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 8% 0%, rgba(248, 199, 74, 0.22) 0, rgba(248, 199, 74, 0) 28rem),
    radial-gradient(circle at 92% 8%, rgba(24, 131, 79, 0.18) 0, rgba(24, 131, 79, 0) 30rem),
    linear-gradient(180deg, #fbfff7 0%, var(--bg) 46%, #edf6ea 100%);
}

.header {
  background: rgba(251, 255, 247, 0.86);
  border-bottom: 1px solid rgba(24, 131, 79, 0.14);
  box-shadow: 0 10px 32px rgba(19, 62, 38, 0.07);
  backdrop-filter: blur(14px);
}

.brand-mark {
  background: linear-gradient(135deg, #0f5d38 0%, #24a164 58%, #f8c74a 130%);
  box-shadow: 0 12px 28px rgba(24, 131, 79, 0.26);
}

.brand-text-main {
  letter-spacing: -0.02em;
}

.nav-links {
  background: rgba(255,255,255,0.96);
  border-color: rgba(24, 131, 79, 0.18);
  box-shadow: var(--shadow-strong);
}

.nav-links a:hover {
  background: #f0f8e9;
  border-color: rgba(24, 131, 79, 0.18);
}

.nav-links a.active,
.nav-links a[aria-current="page"] {
  background: linear-gradient(135deg, var(--primary), #24a164);
}

.btn,
.btn-outline,
.nav-toggle {
  min-height: 42px;
  letter-spacing: -0.01em;
}

.btn {
  background: linear-gradient(135deg, var(--primary), #22a363);
  box-shadow: 0 14px 28px rgba(24, 131, 79, 0.22);
}

.btn:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  transform: translateY(-1px);
}

.btn-outline,
.nav-toggle {
  background: rgba(255,255,255,0.78);
  border-color: rgba(24, 131, 79, 0.20);
  box-shadow: 0 8px 20px rgba(18, 73, 44, 0.06);
}

.btn-outline:hover,
.nav-toggle:hover {
  background: #f0f8e9;
  transform: translateY(-1px);
}

.hero {
  position: relative;
}

.hero-copy,
.hero-side,
.section-card,
.panel,
.auth-card,
.page-card,
.project-card,
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.88));
  border-color: rgba(24, 131, 79, 0.15);
  box-shadow: var(--shadow);
}

.hero-copy-home {
  position: relative;
  overflow: hidden;
}

.hero-copy-home::before {
  content: "";
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(5,12,25,0.12), rgba(5,20,38,0.26));
  pointer-events: none;
}

.hero-copy-home > * {
  position: relative;
  z-index: 1;
}

h1, h2, h3 {
  letter-spacing: -0.035em;
}

.hero-lead,
p {
  color: #5b6e61;
}

.eyebrow,
.badge.good,
.info-help {
  background: linear-gradient(135deg, #eaf7d1, #dff4b8);
  color: #145f37;
}

.badge {
  background: #f0f8e9;
  border: 1px solid rgba(24, 131, 79, 0.12);
}

.project-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(24, 131, 79, 0.28);
  box-shadow: var(--shadow-strong);
}

.progress-fill {
  background: linear-gradient(90deg, var(--primary), #8bd16a, var(--accent-strong));
}

input,
select,
textarea,
.admin-reason-input,
.search-row input,
.search-row select,
.filter-grid input,
.filter-grid select,
.form-grid input,
.form-grid select,
.form-grid textarea,
.simple-form input,
.simple-form select,
.simple-form textarea {
  border-color: rgba(24, 131, 79, 0.16);
  background: rgba(255,255,255,0.94);
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.simple-form input:focus,
.simple-form select:focus,
.simple-form textarea:focus,
.search-row input:focus,
.search-row select:focus,
.filter-grid input:focus,
.filter-grid select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(24, 131, 79, 0.13);
}

.footer {
  background: rgba(255,255,255,0.42);
  border-top-color: rgba(24, 131, 79, 0.13);
}

.hero-visual-frame {
  border: 1px solid rgba(255,255,255,0.42);
  box-shadow: 0 26px 70px rgba(8, 45, 28, 0.26);
}

.notice {
  background: #fff8df;
  border-color: rgba(248, 199, 74, 0.42);
}

@media (max-width: 900px) {
  .nav-actions .btn,
  .nav-actions .btn-outline {
    min-height: 34px;
  }
}


/* ===== AD-INSPIRED VISUAL REFRESH (ChristHelper campaign palette) ===== */
:root {
  --bg: #07111f;
  --surface: rgba(255, 255, 255, 0.96);
  --surface-alt: #eef6ff;
  --text: #102033;
  --muted: #5a6b80;
  --primary: #0b73ff;
  --primary-dark: #074fb8;
  --accent: #f4c05a;
  --accent-soft: #fff1ca;
  --border: rgba(15, 50, 92, 0.13);
  --shadow: 0 22px 60px rgba(2, 10, 24, 0.14);
  --radius: 24px;
}

body {
  background:
    radial-gradient(circle at 78% 4%, rgba(244, 192, 90, 0.28), transparent 24rem),
    radial-gradient(circle at 4% 2%, rgba(11, 115, 255, 0.2), transparent 22rem),
    linear-gradient(180deg, #06101f 0%, #0a1728 18%, #f5f8fb 48%, #f7f9fb 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.22) 0 1px, transparent 1px),
    linear-gradient(120deg, rgba(255,255,255,0.05), transparent 35%);
  background-size: 80px 80px, auto;
  opacity: 0.55;
}

.header {
  background: rgba(6, 15, 29, 0.82);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 12px 40px rgba(2, 10, 24, 0.18);
}

.brand-text-main, .header .brand, .header .nav-user-greeting { color: #fff; }
.brand-text-sub { color: rgba(255,255,255,0.68); }
.brand-mark {
  background: radial-gradient(circle at 35% 28%, #fff 0 10%, #eaf4ff 11% 22%, #0b73ff 23% 100%);
  color: #06101f;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.28), 0 0 28px rgba(11,115,255,0.38);
}

.nav-toggle,
.header .btn-outline {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}

.header .btn-outline:hover,
.nav-toggle:hover { background: rgba(255,255,255,0.18); }

.btn {
  background: linear-gradient(135deg, #0b73ff, #075ed4);
  box-shadow: 0 12px 30px rgba(11, 115, 255, 0.28);
}
.btn:hover { background: linear-gradient(135deg, #075ed4, #06489f); transform: translateY(-1px); }
.btn-outline:hover { transform: translateY(-1px); }

.nav-links {
  background: rgba(7, 17, 31, 0.96);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 22px 60px rgba(0,0,0,0.35);
}
.nav-links a { color: rgba(255,255,255,0.78); }
.nav-links a:hover { background: rgba(255,255,255,0.09); color: #fff; border-color: rgba(255,255,255,0.12); }
.nav-links a.active { background: linear-gradient(135deg, #0b73ff, #f4c05a); color: #fff; }

.hero { padding: 70px 0 38px; color: #fff; }
.hero-grid-home { grid-template-columns: minmax(0, 1fr) minmax(320px, 430px); }
.hero-copy-home {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(5, 12, 25, 0.9), rgba(5, 20, 38, 0.78)),
    url('../assets/hero-light-cross.jpg') center/cover;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 28px 80px rgba(0,0,0,0.32);
  min-height: 430px;
}
.hero-copy-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5,12,25,0.1), rgba(5,20,38,0.3));
  pointer-events: none;
}
.hero-copy-home > * { position: relative; z-index: 1; }
.hero-copy-home h1 { color: #fff; text-shadow: 0 2px 22px rgba(0,0,0,0.42); max-width: 760px; }
.hero-copy-home .hero-lead { color: rgba(255,255,255,0.88); font-size: clamp(1.1rem, 2vw, 1.35rem); border-left: 3px solid var(--accent); padding-left: 16px; }

.campaign-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 8px 13px;
  margin-bottom: 18px;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.campaign-kicker::before {
  content: "✦";
  color: var(--accent);
}

.campaign-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.campaign-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,0.11);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
.campaign-pill span { color: var(--accent); }

.hero-actions { margin-top: 26px; }
.hero-submit-btn { background: linear-gradient(135deg, #f4c05a, #ef9f24); color: #07111f; box-shadow: 0 16px 38px rgba(244,192,90,0.25); }
.hero-submit-btn:hover { background: linear-gradient(135deg, #ffd676, #f4a52f); color: #07111f; }

.hero-visual-frame {
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 28px 80px rgba(0,0,0,0.42), 0 0 0 8px rgba(255,255,255,0.04);
}
.hero-verse-overlay { background: linear-gradient(180deg, rgba(5,12,25,0.04), rgba(5,12,25,0.35) 38%, rgba(5,12,25,0.88)); }
.hero-verse-ref { color: #ffd983; }
.hero-verse-dot.is-active { background: var(--accent); }

.section { padding: 34px 0; }
.section-head h2 { color: #102033; }
.section-card, .card, .auth-card, .page-card, .panel, .project-card {
  border: 1px solid rgba(15, 50, 92, 0.12);
  box-shadow: 0 16px 50px rgba(7, 22, 41, 0.09);
}
.project-card {
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #0b73ff, #f4c05a);
}
.eyebrow {
  background: linear-gradient(135deg, rgba(11,115,255,0.12), rgba(244,192,90,0.22));
  color: #084d9e;
}
input:focus, select:focus, textarea:focus { border-color: #0b73ff !important; box-shadow: 0 0 0 4px rgba(11,115,255,0.12) !important; }

.footer {
  color: rgba(255,255,255,0.86);
  border-top: 1px solid rgba(255,255,255,0.12);
  background:
    radial-gradient(circle at 78% 0%, rgba(11,115,255,0.22), transparent 22rem),
    linear-gradient(180deg, #07111f, #030813);
}
.footer p, .footer .muted { color: rgba(255,255,255,0.68); }
.footer a { color: rgba(255,255,255,0.84); }
.footer a:hover { color: #ffd983; }

@media (max-width: 760px) {
  .hero { padding-top: 34px; }
  .hero-copy-home { min-height: auto; padding: 28px; }
  .campaign-pill-row { gap: 8px; }
  .campaign-pill { padding: 8px 11px; font-size: 0.9rem; }
}

/* ===== Small refinements: supplied logo, pray icon, and hero alignment ===== */
.brand-mark {
  background: transparent !important;
  border-radius: 50% !important;
  box-shadow: none !important;
  overflow: hidden;
  padding: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.header .brand-mark {
  width: 46px;
  height: 46px;
}

.campaign-pill .campaign-icon {
  color: inherit;
  line-height: 1;
  filter: drop-shadow(0 1px 6px rgba(244, 192, 90, 0.28));
}

.hero-home .container,
.section .container {
  width: min(var(--container), calc(100% - 48px));
}

.hero-grid-home {
  gap: 28px;
  align-items: stretch;
}

.hero-copy-home,
.hero-visual {
  min-width: 0;
}

.hero-copy-home {
  padding: 42px;
}

@media (max-width: 760px) {
  .hero-home .container,
  .section .container {
    width: min(var(--container), calc(100% - 28px));
  }

  .header .brand-mark {
    width: 40px;
    height: 40px;
  }

  .hero-copy-home {
    padding: 26px;
  }
}

/* ===== Final contrast and hero balance refinements ===== */
.hero-home {
  padding-top: 28px;
}

.hero-grid-home {
  align-items: stretch;
}

.hero-copy-home {
  justify-content: flex-start;
  padding-top: 34px;
  background:
    linear-gradient(135deg, rgba(5, 12, 25, 0.68), rgba(8, 30, 54, 0.52)),
    url('../assets/hero-light-cross.jpg') center/cover;
}

.hero-copy-home::before {
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,0.20), transparent 16rem),
    linear-gradient(135deg, rgba(11,115,255,0.08), rgba(244,192,90,0.12));
}

.hero-copy-home h1,
.hero-copy-home .campaign-kicker,
.hero-copy-home .campaign-pill,
.hero-copy-home .hero-lead {
  text-shadow: 0 2px 24px rgba(0,0,0,0.46);
}

.section-head h1,
.section-head h2,
.page-wrap > .container > h1,
.page-wrap > .container > h2,
.auth-wrap > .container > h1,
.auth-wrap > .container > h2 {
  color: #f8fbff;
  text-shadow: 0 2px 22px rgba(0,0,0,0.35);
}

.section-head p,
.page-wrap > .container > p,
.auth-wrap > .container > p {
  color: rgba(255,255,255,0.82);
}

.card h1,
.card h2,
.card h3,
.page-card h1,
.page-card h2,
.page-card h3,
.auth-card h1,
.auth-card h2,
.auth-card h3,
.panel h1,
.panel h2,
.panel h3,
.project-card h1,
.project-card h2,
.project-card h3 {
  color: #102033;
  text-shadow: none;
}

.card p,
.page-card p,
.auth-card p,
.panel p,
.project-card p {
  color: #52657a;
}

@media (max-width: 760px) {
  .hero-home {
    padding-top: 22px;
  }

  .hero-copy-home {
    padding-top: 24px;
  }
}


/* Final contrast tuning requested */
.hero-copy-home h1 {
  color: #ffffff;
  text-shadow: 0 3px 28px rgba(0,0,0,0.62);
}

.section-head h2.home-requests-title {
  color: #203146;
  text-shadow: none;
}

/* Mobile hero separation: keep the intro card and verse card as two clear sections */
@media (max-width: 760px) {
  .hero-home {
    padding-top: 24px;
    padding-bottom: 30px;
  }

  .hero-home .container {
    width: min(var(--container), calc(100% - 32px));
  }

  .hero-grid-home {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: stretch;
  }

  .hero-copy-home,
  .hero-visual {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    justify-self: stretch;
  }

  .hero-copy-home {
    margin: 0;
    min-height: auto;
    padding: 28px 22px;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: 0 18px 48px rgba(3, 8, 19, 0.30);
  }

  .hero-visual {
    margin-top: 0;
    display: block;
  }

  .hero-visual-frame {
    min-height: 320px;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 18px 48px rgba(3, 8, 19, 0.30);
  }

  .hero-visual-frame img {
    min-height: 320px;
  }

  .hero + .section {
    margin-top: 4px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.10);
  }
}

@media (max-width: 480px) {
  .hero-grid-home {
    gap: 20px;
  }

  .hero-copy-home {
    padding: 24px 18px;
    border-radius: 24px;
  }

  .hero-visual-frame {
    min-height: 300px;
    border-radius: 24px;
  }

  .hero-visual-frame img {
    min-height: 300px;
  }
}


/* Pray & Support CTA and cross-background title readability */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-pray-support-btn {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.78);
  color: #102033;
  box-shadow: 0 14px 34px rgba(3, 8, 19, 0.20);
}

.hero-pray-support-btn:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #07111f;
  transform: translateY(-1px);
}

.section-head h2.home-requests-title {
  color: #203146;
  text-shadow: none;
}

@media (max-width: 760px) {
  .section-head h2.home-requests-title {
    color: #f4f7fb;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.58);
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .btn,
  .hero-actions .btn-outline {
    flex: 1 1 150px;
  }
}


/* Header Pray & Support CTA and improved mobile All Requests contrast */
.header-pray-support-btn {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.72);
  color: #102033;
  box-shadow: 0 12px 28px rgba(3, 8, 19, 0.18);
}

.header-pray-support-btn:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #07111f;
}

@media (max-width: 760px) {
  .section-head h2.home-requests-title {
    color: #f8d98a;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.72);
  }
}

@media (max-width: 480px) {
  .nav-actions .header-pray-support-btn,
  .nav-actions .btn {
    flex: 1 1 calc(50% - 8px);
  }
}

/* Header button order/compact mobile sizing + one-line mobile requests title */
@media (max-width: 900px) {
  .nav-actions {
    flex-wrap: nowrap;
    gap: 5px;
    justify-content: flex-start;
    overflow: visible;
  }

  .nav-user-greeting:not(.hide) {
    flex: 0 1 auto;
    max-width: 82px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-actions .btn,
  .nav-actions .btn-outline {
    flex: 1 1 0;
    min-width: 0;
    min-height: 32px;
    padding: 6px 7px;
    font-size: 0.68rem;
    line-height: 1.05;
    white-space: nowrap;
    letter-spacing: -0.02em;
  }

  .nav-actions .header-pray-support-btn {
    flex: 1 1 0;
  }
}

@media (max-width: 480px) {
  .nav-actions {
    gap: 4px;
  }

  .nav-actions .header-pray-support-btn,
  .nav-actions .btn,
  .nav-actions .btn-outline {
    flex: 1 1 0;
    min-width: 0;
    padding: 6px 5px;
    font-size: 0.62rem;
  }

  .section-head h2.home-requests-title {
    color: #ffffff;
    font-size: clamp(0.74rem, 3.1vw, 0.92rem);
    line-height: 1.1;
    letter-spacing: -0.045em;
    white-space: nowrap;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.86);
  }
}

@media (max-width: 380px) {
  .nav-actions .btn,
  .nav-actions .btn-outline {
    font-size: 0.56rem;
    padding-left: 4px;
    padding-right: 4px;
  }

  .section-head h2.home-requests-title {
    font-size: 0.68rem;
  }
}

/* Landing requests header alignment + blue title readability */
#projects .section-head {
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

#projects .section-head > div {
  flex: 1 1 auto;
  min-width: 0;
}

#projects .section-head [data-load-projects] {
  flex: 0 0 auto;
  margin-left: auto;
  white-space: nowrap;
}

.section-head h2.home-requests-title {
  color: #1d4ed8 !important;
  text-shadow: none !important;
  max-width: 100%;
  overflow-wrap: normal;
}

@media (max-width: 760px) {
  #projects .section-head {
    align-items: center;
    gap: 10px;
  }

  .section-head h2.home-requests-title {
    color: #1d4ed8 !important;
    font-size: clamp(0.84rem, 3.3vw, 1.05rem);
    line-height: 1.16;
    letter-spacing: -0.035em;
    white-space: normal;
  }

  #projects .section-head [data-load-projects] {
    padding: 8px 10px;
    font-size: 0.78rem;
  }
}

@media (max-width: 420px) {
  #projects .section-head {
    gap: 8px;
  }

  .section-head h2.home-requests-title {
    font-size: clamp(0.78rem, 3.1vw, 0.9rem);
    letter-spacing: -0.04em;
  }

  #projectCount {
    font-size: 0.78rem;
  }

  #projects .section-head [data-load-projects] {
    padding: 7px 9px;
    font-size: 0.72rem;
  }
}
