:root {
  --navy: #071b3d;
  --blue: #0f55a8;
  --red: #d91028;
  --gold: #e6b83f;
  --gold-soft: #fff4cf;
  --ink: #111827;
  --muted: #5d6a7b;
  --line: #d8e1ee;
  --bg: #f3f6fb;
  --white: #ffffff;
  --success: #0f8a54;
  --error: #b42318;
  --shadow: 0 18px 50px rgba(7, 27, 61, 0.12);
  --page-width: min(92vw, 1500px);
  --safe-page-width: min(92vw, 1500px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 16px max(4vw, calc((100vw - 1500px) / 2));
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: var(--navy);
  font-weight: 900;
}

.brand img {
  width: 96px;
  height: 96px;
  padding: 7px;
  object-fit: contain;
  background: var(--white);
  border: 1px solid rgba(230, 184, 63, 0.28);
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(7, 27, 61, 0.14);
}

.brand span {
  overflow-wrap: anywhere;
}

.mobile-menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  background: var(--white);
  border: 1px solid rgba(230, 184, 63, 0.75);
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(7, 27, 61, 0.12);
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--navy);
  border-radius: 999px;
  transition: transform 0.22s ease, opacity 0.18s ease;
}

.mobile-menu-toggle span + span {
  margin-top: 5px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  gap: 20px;
  color: var(--muted);
  font-weight: 800;
}

.nav-links a:hover {
  color: var(--blue);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip: rect(0, 0, 0, 0);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(230, 184, 63, 0.9);
  border-radius: 8px;
  font-weight: 900;
}

.button.primary,
.nav-cta {
  color: var(--navy);
  background: linear-gradient(180deg, #ffe995, var(--gold));
}

.button.secondary {
  color: var(--navy);
  background: var(--white);
  border-color: var(--line);
}

.button.danger {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

.button.success {
  color: var(--white);
  background: linear-gradient(135deg, #0f8a54, #18b26b);
  border-color: #0f8a54;
}

.button.web-visit-button {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, #0f8a54, #18b26b 48%, #086b43);
  border-color: transparent;
  box-shadow: 0 14px 34px rgba(15, 138, 84, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.button.web-visit-button::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -55%;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: rotate(16deg);
  transition: left 0.55s ease;
}

.button.web-visit-button:hover,
.button.web-visit-button:focus-visible {
  transform: translateY(-2px) scale(1.02);
  filter: saturate(1.14);
  background: linear-gradient(135deg, #10a866, #22c77a 52%, #07824f);
  box-shadow: 0 18px 44px rgba(15, 138, 84, 0.38), 0 0 0 6px rgba(34, 199, 122, 0.16);
  animation: webPulse 0.9s ease-in-out infinite alternate;
}

.button.web-visit-button:hover::after,
.button.web-visit-button:focus-visible::after {
  left: 120%;
}

.button.web-visit-button:active,
.button.web-visit-button.is-clicked {
  transform: translateY(0) scale(0.98);
  background: linear-gradient(135deg, var(--blue), #0b74d1);
  box-shadow: 0 14px 34px rgba(15, 85, 168, 0.34), 0 0 0 5px rgba(15, 85, 168, 0.18);
}

.button.small {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.86rem;
}

.web-more-button {
  width: fit-content;
  margin-top: 8px;
}

@keyframes webPulse {
  from {
    box-shadow: 0 14px 34px rgba(15, 138, 84, 0.28), 0 0 0 0 rgba(34, 199, 122, 0);
  }
  to {
    box-shadow: 0 18px 44px rgba(15, 138, 84, 0.38), 0 0 0 7px rgba(34, 199, 122, 0.18);
  }
}

.hero,
.page-title,
.section-grid,
.directory-section,
.testimonials-section,
.filter-panel,
.directory-results,
.profile-hero,
.profile-layout,
.contact-layout,
.admin-grid,
.auth-panel,
.content-card,
.stats-strip,
.cta-band,
.admin-metrics {
  width: var(--page-width);
  margin-right: auto;
  margin-left: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
  gap: 34px;
  align-items: center;
  min-height: calc(100vh - 107px);
  padding: 44px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(7, 27, 61, 0.98), rgba(15, 85, 168, 0.88)),
    var(--navy);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-copy h1,
.page-title h1,
.cta-band h2 {
  margin: 14px 0;
  font-size: clamp(2.55rem, 5vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy p,
.page-title p,
.section-grid p,
.cta-band p {
  color: #d8e4f3;
  font-size: clamp(1rem, 1.4vw, 1.28rem);
  line-height: 1.55;
}

.page-title {
  display: grid;
  justify-items: start;
  padding: 54px 0 28px;
}

.page-title h1 {
  max-width: 1000px;
  color: var(--navy);
}

.page-title p {
  max-width: 860px;
  color: var(--muted);
}

.eyebrow,
.peru-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 12px;
  color: #8c6108;
  background: var(--gold-soft);
  border: 1px solid rgba(230, 184, 63, 0.5);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.peru-mark i {
  width: 22px;
  height: 16px;
  background: linear-gradient(90deg, var(--red) 0 33%, var(--white) 33% 66%, var(--red) 66% 100%);
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.hero-search,
.filter-panel form {
  display: grid;
  gap: 12px;
}

.hero-search {
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 26px 0 18px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fbfcff;
  border: 1px solid #cbd6e4;
  border-radius: 8px;
  font: inherit;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 900;
}

textarea {
  resize: vertical;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mail-options {
  position: relative;
}

.mail-options summary {
  cursor: pointer;
  list-style: none;
}

.mail-options summary::-webkit-details-marker {
  display: none;
}

.mail-toggle::after {
  content: "v";
  margin-left: 10px;
  font-size: 0.78rem;
}

.mail-menu {
  position: absolute;
  z-index: 12;
  top: calc(100% + 8px);
  left: 0;
  display: grid;
  min-width: 230px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.mail-menu a {
  padding: 11px 12px;
  color: var(--navy);
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 900;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.mail-menu a:hover,
.mail-menu a:focus-visible {
  color: var(--navy);
  background: linear-gradient(135deg, #f8fafc, #e5ebf3);
  border-color: #cbd5e1;
  box-shadow: 0 10px 24px rgba(7, 27, 61, 0.12);
  transform: translateX(4px);
}

.directory-browser {
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.browser-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  color: var(--navy);
  background: #e5ecf5;
  font-weight: 900;
}

.browser-top span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.browser-top span:nth-child(1) { background: var(--red); }
.browser-top span:nth-child(2) { background: var(--gold); }
.browser-top span:nth-child(3) { background: #0f8a54; }

.browser-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 18px;
}

.browser-search button {
  color: var(--white);
  background: var(--red);
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  padding: 0 20px;
}

.mini-member,
.result-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 16px;
  margin: 0 18px 14px;
  padding: 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mini-member img,
.result-card img,
.member-card img,
.profile-hero img,
.admin-detail summary img {
  object-fit: cover;
  background: var(--gold-soft);
  border-radius: 8px;
}

.mini-member img,
.result-card img {
  width: 78px;
  height: 78px;
}

.mini-member p,
.result-card p {
  margin: 6px 0 10px;
  color: var(--muted);
}

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

.tags span {
  padding: 6px 10px;
  color: var(--navy);
  background: #edf4ff;
  border: 1px solid #d8e7fb;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}

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

.stats-strip article,
.content-card,
.member-card,
.filter-panel,
.result-card,
.auth-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.06);
}

.stats-strip article {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.stats-strip strong {
  color: var(--blue);
  font-size: 2rem;
}

.stats-strip span {
  color: var(--muted);
  font-weight: 800;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 70px 0 24px;
}

.section-grid h2,
.section-heading h2,
.content-card h2 {
  margin: 12px 0;
  color: var(--navy);
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1;
}

.section-grid p,
.content-card p,
.prose {
  color: var(--muted);
  line-height: 1.6;
}

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

.benefit-list article,
.quick-links a {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: var(--white);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.06);
}

.directory-section {
  padding: 48px 0;
}

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

.section-heading.compact {
  display: block;
}

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

.member-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 18px;
  text-align: center;
}

.member-card img {
  width: 112px;
  height: 112px;
}

.member-card h3 {
  margin: 0;
  color: var(--navy);
}

.member-card p,
.member-card a {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.member-card a {
  color: var(--blue);
}

.testimonials-section {
  padding: 36px 0 8px;
}

.testimonials-section .section-heading h2 {
  max-width: 850px;
}

.testimonial-marquee {
  position: relative;
  overflow: hidden;
  padding: 4px 0 12px;
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.testimonial-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: testimonialScroll 44s linear infinite;
}

.testimonial-marquee:hover .testimonial-track {
  animation-play-state: paused;
}

.testimonial-card {
  display: grid;
  align-content: space-between;
  gap: 18px;
  flex: 0 0 clamp(300px, 30vw, 430px);
  min-height: 230px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(7, 27, 61, 0.08);
}

.testimonial-card p {
  margin: 0;
  color: #3f4d61;
  font-size: 1rem;
  line-height: 1.6;
}

.testimonial-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-person > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: var(--navy);
  background: linear-gradient(180deg, #fff6d6, var(--gold));
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(140, 97, 8, 0.18);
}

.testimonial-person strong,
.testimonial-person small {
  display: block;
}

.testimonial-person strong {
  color: var(--navy);
  font-weight: 900;
}

.testimonial-person small {
  margin-top: 2px;
  color: var(--muted);
  font-weight: 800;
}

@keyframes testimonialScroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-track {
    width: auto;
    flex-wrap: wrap;
    animation: none;
  }
}

.cta-band {
  margin-top: 32px;
  margin-bottom: 60px;
  padding: 42px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.filter-panel {
  padding: 18px;
}

.filter-panel form {
  grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 0.7fr) minmax(220px, 0.9fr) auto auto;
  align-items: end;
}

.directory-results {
  padding: 28px 0 70px;
}

.result-list {
  display: grid;
  gap: 14px;
}

.result-card {
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  margin: 0;
}

.result-card img {
  width: 96px;
  height: 96px;
}

.result-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.35rem;
}

.result-card small {
  display: block;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 900;
}

.result-actions {
  display: grid;
  gap: 10px;
  min-width: 148px;
}

.profile-hero {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  padding: 54px 0 26px;
}

.profile-hero > img {
  width: 260px;
  height: 260px;
  box-shadow: var(--shadow);
}

.profile-hero h1 {
  margin: 14px 0;
  color: var(--navy);
  font-size: clamp(2.4rem, 4vw, 4.6rem);
  line-height: 0.98;
}

.profile-hero p {
  max-width: 900px;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.55;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.profile-meta span {
  padding: 8px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 900;
}

.profile-layout,
.contact-layout,
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  gap: 22px;
  align-items: start;
  padding-bottom: 70px;
}

.contact-layout {
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  width: var(--safe-page-width);
}

.contact-layout > * {
  min-width: 0;
}

.contact-layout aside.content-card {
  position: sticky;
  top: 132px;
  overflow: hidden;
}

.contact-layout aside.content-card h2 {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(2rem, 3.4vw, 3.6rem);
}

.content-card,
.auth-panel {
  padding: 24px;
}

.tags.large span {
  font-size: 0.95rem;
  padding: 9px 12px;
}

.page-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  margin-bottom: 18px;
  border-radius: 8px;
}

.prose {
  max-width: 980px;
  margin-bottom: 70px;
  font-size: 1.08rem;
}

.prose h2 {
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--navy);
  font-size: clamp(1.65rem, 2.4vw, 2.35rem);
  line-height: 1.08;
}

.prose strong {
  color: var(--navy);
}

.prose ul {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.prose li {
  padding: 13px 14px;
  color: var(--navy);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  font-weight: 800;
}

.auth-panel {
  max-width: 560px;
  margin-top: 70px;
  margin-bottom: 90px;
}

.auth-panel form,
.admin-form,
.contact-layout form {
  display: grid;
  gap: 14px;
}

.admin-title {
  padding-top: 28px;
  padding-bottom: 18px;
}

.admin-title h1 {
  max-width: 920px;
  font-size: clamp(2rem, 3.6vw, 3.8rem);
  line-height: 1.02;
}

.admin-title p {
  max-width: 760px;
  font-size: 1rem;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.admin-metrics article {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-metrics span {
  color: var(--muted);
  font-weight: 900;
}

.admin-metrics strong {
  color: var(--navy);
  font-size: 2rem;
}

.seo-metrics {
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.seo-metrics article {
  min-height: 112px;
  gap: 10px;
  padding: 15px 16px;
}

.seo-metrics span {
  font-size: 0.86rem;
}

.seo-metrics strong {
  font-size: clamp(1.65rem, 2.2vw, 2.15rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

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

.full {
  grid-column: 1 / -1;
}

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

.check-row input {
  width: 18px;
  min-height: 18px;
}

.quick-links {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

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

.member-transfer-panel article {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 18px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
}

.member-transfer-panel h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.22rem;
}

.member-transfer-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.import-form {
  display: grid;
  gap: 10px;
}

.member-select {
  width: 22px;
  min-height: 22px;
  accent-color: var(--gold);
}

.seo-guide {
  margin-bottom: 18px;
}

.seo-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 14px;
  color: var(--muted);
  font-weight: 900;
}

.seo-report {
  display: grid;
  gap: 14px;
  width: var(--page-width);
  margin: 0 auto 70px;
}

.seo-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 6px solid var(--muted);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.06);
}

.seo-card.good {
  border-left-color: var(--success);
}

.seo-card.warning {
  border-left-color: var(--gold);
}

.seo-card.error {
  border-left-color: var(--error);
}

.seo-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.seo-card-head h2 {
  margin: 8px 0 5px;
  color: var(--navy);
  font-size: 1.22rem;
  line-height: 1.16;
}

.seo-card-head a {
  color: var(--blue);
  font-weight: 900;
}

.seo-card-head > strong {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  color: var(--navy);
  background: var(--gold-soft);
  border: 1px solid rgba(230, 184, 63, 0.6);
  border-radius: 50%;
  font-size: 1.05rem;
}

.seo-fields {
  display: grid;
  gap: 7px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.seo-fields p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.seo-checks {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.seo-checks li {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.seo-dot {
  display: inline-flex;
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--muted);
}

.seo-dot.good {
  background: var(--success);
}

.seo-dot.warning {
  background: var(--gold);
}

.seo-dot.error {
  background: var(--error);
}

.admin-detail {
  margin: 12px 0;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-detail summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 900;
}

.admin-detail summary small {
  display: block;
  color: var(--muted);
}

.admin-detail summary img {
  width: 52px;
  height: 52px;
}

.status-pill {
  margin-left: auto;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  font-style: normal;
}

.home-pill {
  padding: 7px 11px;
  color: #5f6b7a;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  font-style: normal;
}

.home-pill.selected {
  color: #8c6108;
  background: var(--gold-soft);
  border-color: rgba(230, 184, 63, 0.75);
}

.status-pill.active {
  color: #075336;
  background: #dcfce7;
  border: 1px solid #86efac;
}

.status-pill.inactive {
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
}

.member-status-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 14px 0;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.member-status-toolbar small {
  color: var(--muted);
  font-weight: 800;
}

.home-toggle-form {
  display: grid;
  gap: 5px;
  min-width: 230px;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.check-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--navy);
  font-size: 0.95rem;
  cursor: pointer;
}

.check-switch input {
  width: 22px;
  height: 22px;
  min-height: 0;
  accent-color: var(--gold);
  cursor: pointer;
}

.home-toggle-form small {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.3;
}

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

.member-admin-list summary {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-search {
  margin-bottom: 14px;
}

.flash-wrap {
  position: fixed;
  top: 92px;
  right: 18px;
  z-index: 60;
  display: grid;
  gap: 10px;
  width: min(440px, calc(100% - 36px));
}

.flash {
  padding: 14px 16px;
  color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-weight: 800;
}

.flash-success { background: var(--success); }
.flash-error { background: var(--error); }

.empty-state {
  padding: 34px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  color: var(--white);
  background: #128c7e;
  border-radius: 999px;
  box-shadow: 0 18px 44px rgba(18, 140, 126, 0.32);
  font-weight: 900;
}

.whatsapp-float span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.chatbot-launch {
  position: fixed;
  right: 18px;
  bottom: 86px;
  z-index: 41;
  display: inline-grid;
  gap: 2px;
  min-width: 178px;
  padding: 13px 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border: 1px solid rgba(230, 184, 63, 0.7);
  border-radius: 999px;
  box-shadow: 0 18px 44px rgba(7, 27, 61, 0.24);
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.chatbot-launch span {
  color: var(--gold);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.chatbot-launch:hover,
.chatbot-launch:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 22px 52px rgba(15, 85, 168, 0.34);
}

.chatbot-panel {
  position: fixed;
  right: 18px;
  bottom: 154px;
  z-index: 42;
  width: min(430px, calc(100vw - 28px));
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(7, 27, 61, 0.22);
}

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--blue));
}

.chatbot-header span {
  display: block;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.chatbot-header strong {
  display: block;
  font-size: 1.08rem;
}

.chatbot-header button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--navy);
  background: var(--gold-soft);
  border: 1px solid rgba(230, 184, 63, 0.9);
  border-radius: 999px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.chatbot-body {
  display: grid;
  gap: 12px;
  max-height: 340px;
  overflow-y: auto;
  padding: 16px;
  background: #f8fafc;
}

.chatbot-message {
  max-width: 92%;
  padding: 12px 14px;
  border-radius: 8px;
  line-height: 1.45;
  font-weight: 750;
}

.chatbot-message.bot {
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
}

.chatbot-message.user {
  justify-self: end;
  color: var(--white);
  background: linear-gradient(135deg, #0f8a54, #18b26b);
}

.chatbot-typing {
  color: var(--muted);
  background: linear-gradient(135deg, #f8fafc, #e5ebf3);
  animation: chatbotThinking 0.9s ease-in-out infinite alternate;
}

.chatbot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chatbot-chips button {
  padding: 8px 10px;
  color: var(--navy);
  background: var(--gold-soft);
  border: 1px solid rgba(230, 184, 63, 0.75);
  border-radius: 999px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.chatbot-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
}

.chatbot-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
}

.chatbot-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.chatbot-card small {
  color: var(--blue);
  font-weight: 900;
}

.chatbot-card .tags span {
  font-size: 0.76rem;
}

.chatbot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chatbot-actions a {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.82rem;
}

.chatbot-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 16px 16px;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.chatbot-form label {
  gap: 6px;
  font-size: 0.84rem;
}

.chatbot-form input,
.chatbot-form textarea {
  min-height: 42px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.chatbot-form .full,
.chatbot-form button {
  grid-column: 1 / -1;
}

.chatbot-conversation-form {
  grid-template-columns: minmax(0, 1fr) auto;
}

.chatbot-conversation-form label.full {
  grid-column: 1 / -1;
}

.chatbot-conversation-form button {
  grid-column: auto;
}

.chatbot-conversation-form button[data-chatbot-reset] {
  min-width: 132px;
}

@keyframes chatbotThinking {
  from {
    opacity: 0.72;
  }
  to {
    opacity: 1;
  }
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px 4vw;
  color: #d8e4f3;
  background: var(--navy);
  text-align: center;
}

.site-footer img {
  width: 128px;
  height: 128px;
  object-fit: cover;
  background: var(--white);
  border: 4px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  clip-path: circle(50%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.site-footer .footer-center {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(760px, 100%);
}

.site-footer p {
  margin: 0;
  color: #eef5ff;
  font-size: 1.02rem;
  line-height: 1.55;
}

.footer-contact {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-top: 8px;
}

.footer-contact strong {
  color: var(--white);
}

.footer-contact a {
  color: #eef5ff;
  font-weight: 700;
}

.footer-contact a:hover {
  color: var(--gold);
}

@media (max-width: 1100px) {
  .site-header {
    align-items: stretch;
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero,
  .section-grid,
  .profile-layout,
  .contact-layout,
  .admin-grid,
  .member-transfer-panel,
  .filter-panel form {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: auto;
  }

  .contact-layout aside.content-card {
    position: static;
  }
}

@media (max-width: 720px) {
  :root {
    --page-width: min(92vw, 100%);
    --safe-page-width: min(92vw, 100%);
  }

  .chatbot-launch {
    right: 12px;
    bottom: 84px;
    min-width: 150px;
    padding: 11px 14px;
  }

  .chatbot-panel {
    right: 10px;
    bottom: 144px;
    width: calc(100vw - 20px);
  }

  .chatbot-form {
    grid-template-columns: 1fr;
  }

  .site-header {
    padding: 12px 18px;
  }

  .brand {
    width: 100%;
    gap: 12px;
  }

  .brand img {
    width: 74px;
    height: 74px;
    padding: 6px;
  }

  .brand span {
    font-size: 1rem;
    line-height: 1.15;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .testimonial-marquee {
    mask-image: none;
  }

  .testimonial-card {
    flex-basis: min(82vw, 360px);
  }

  .nav-links {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    gap: 12px;
    font-size: 0.9rem;
  }

  .hero {
    padding: 24px;
  }

  .hero-search,
  .browser-search,
  .result-card,
  .profile-hero,
  .stats-strip,
  .benefit-list,
  .member-grid,
  .admin-metrics,
  .member-transfer-panel,
  .form-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .page-title h1,
  .cta-band h2 {
    font-size: 2.25rem;
  }

  .page-title {
    padding-top: 32px;
    padding-bottom: 20px;
  }

  .content-card,
  .auth-panel {
    padding: 18px;
  }

  .contact-layout {
    gap: 16px;
    padding-bottom: 110px;
  }

  .contact-layout aside.content-card h2 {
    font-size: 2rem;
  }

  .profile-hero > img {
    width: 180px;
    height: 180px;
  }

  .result-actions {
    min-width: 0;
  }

  .result-actions .button,
  .hero-actions .button {
    width: 100%;
  }

  .member-status-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .member-status-toolbar .button {
    width: 100%;
  }

  .mail-options {
    width: 100%;
  }

  .mail-menu {
    position: static;
    width: 100%;
    margin-top: 8px;
  }

  .full {
    grid-column: auto;
  }
}

.floating-icon-button {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  min-width: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
}

.floating-icon-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 14px 20px rgba(7, 27, 61, 0.18));
  transition: transform 0.18s ease, filter 0.18s ease;
}

.floating-icon-button:hover img,
.floating-icon-button:focus-visible img {
  transform: translateY(-3px) scale(1.06);
  filter: drop-shadow(0 18px 26px rgba(7, 27, 61, 0.24));
}

.whatsapp-float {
  right: 18px;
  bottom: 18px;
  color: transparent;
}

.chatbot-launch {
  right: 18px;
  bottom: 92px;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  min-width: 0;
  padding: 0;
  overflow: visible;
  gap: 0;
  color: transparent;
  background: transparent;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  font: inherit;
  cursor: pointer;
  text-align: center;
}

.chatbot-launch img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 14px 20px rgba(7, 27, 61, 0.18));
  transition: transform 0.18s ease, filter 0.18s ease;
}

.chatbot-launch:hover img,
.chatbot-launch:focus-visible img {
  transform: translateY(-3px) scale(1.06);
  filter: drop-shadow(0 18px 26px rgba(7, 27, 61, 0.24));
}

.chatbot-panel {
  bottom: 168px;
}

@media (max-width: 760px) {
  .site-header {
    position: sticky;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
  }

  .brand {
    width: auto;
    min-width: 0;
  }

  .brand img {
    width: 82px;
    height: 82px;
  }

  .mobile-menu-toggle {
    display: grid;
    place-content: center;
    justify-self: end;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 14px;
    left: 14px;
    display: grid;
    width: auto;
    max-height: 0;
    padding: 0 14px;
    overflow: hidden;
    gap: 8px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 24px 54px rgba(7, 27, 61, 0.18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: max-height 0.26s ease, padding 0.26s ease, opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 0 12px;
    color: var(--navy);
    background: #f8fbff;
    border: 1px solid rgba(216, 225, 238, 0.86);
    border-radius: 8px;
  }

  .nav-links .nav-cta {
    justify-content: center;
    background: linear-gradient(180deg, #ffe995, var(--gold));
  }

  .site-header.menu-open .nav-links {
    max-height: min(72vh, 560px);
    padding: 14px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-header.menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .floating-icon-button {
    width: 56px;
    height: 56px;
  }

  .whatsapp-float {
    right: 12px;
    bottom: 14px;
  }

  .chatbot-launch {
    right: 12px;
    bottom: 78px;
    width: 56px;
    height: 56px;
  }

  .chatbot-panel {
    right: 10px;
    bottom: 142px;
    width: calc(100vw - 20px);
  }
}
