:root {
  --royal: #0737c9;
  --royal-deep: #071c78;
  --blue: #0c5de8;
  --sky: #dff6ff;
  --sky-strong: #9bdff4;
  --lime: #7ed957;
  --lime-soft: #e9ffd9;
  --gold: #f8c532;
  --gold-soft: #fff3bd;
  --ink: #0d1744;
  --muted: #5e6c87;
  --line: rgba(7, 28, 120, 0.13);
  --white: #ffffff;
  --off-white: #f7fbff;
  --danger: #b42318;
  --success: #067647;
  --warning: #a15c07;
  --shadow: 0 22px 60px rgba(7, 28, 120, 0.13);
  --max-width: 1180px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--off-white);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body.nav-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

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

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 0.74rem 0.8rem;
}

textarea {
  resize: vertical;
}

label {
  display: grid;
  gap: 0.35rem;
}

label span {
  color: var(--royal-deep);
  font-size: 0.82rem;
  font-weight: 900;
}

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

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

th {
  color: var(--royal-deep);
  font-size: 0.77rem;
  text-transform: uppercase;
}

td {
  color: #29365f;
  font-size: 0.9rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(var(--max-width), calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.brand-logo {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border: 2px solid rgba(126, 217, 87, 0.72);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(7, 55, 201, 0.18);
}

.brand-copy {
  display: grid;
  min-width: 0;
  line-height: 1.15;
}

.brand-copy strong {
  max-width: 184px;
  overflow: visible;
  color: var(--royal-deep);
  font-size: 0.86rem;
  font-weight: 900;
  white-space: normal;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #243059;
  font-size: 0.9rem;
  font-weight: 850;
  padding: 0.55rem 0.72rem;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
  background: rgba(12, 93, 232, 0.08);
  color: var(--royal);
}

.nav-link[href="/donate"] {
  background: var(--gold);
  color: #312700;
  box-shadow: 0 10px 26px rgba(248, 197, 50, 0.3);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--royal);
  cursor: pointer;
}

svg {
  width: 1.15rem;
  height: 1.15rem;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-icon-close {
  display: none;
}

.menu-toggle.is-open .menu-icon-open {
  display: none;
}

.menu-toggle.is-open .menu-icon-close {
  display: block;
}

.mobile-scrim {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(247, 251, 255, 0.95)),
    linear-gradient(135deg, rgba(7, 55, 201, 0.95) 0%, rgba(12, 93, 232, 0.86) 40%, rgba(223, 246, 255, 0.9) 100%);
}

.hero::before {
  position: absolute;
  inset: -6%;
  content: "";
  background-image: linear-gradient(rgba(7, 28, 120, 0.34), rgba(7, 28, 120, 0.18)), url("/public/heavenly-echoes-logo.jpeg");
  background-position: center;
  background-size: min(780px, 130%);
  opacity: 0.15;
}

.hero::after,
.page-hero::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
  content: "";
  background: linear-gradient(90deg, var(--royal), var(--lime), var(--gold), var(--sky-strong));
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 3.2rem 0 3rem;
  text-align: center;
}

.hero-logo-badge {
  width: 136px;
  height: 136px;
  display: grid;
  place-items: center;
  margin: 0 auto 1.15rem;
  border: 4px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(7, 28, 120, 0.22);
}

.hero-logo-badge img {
  width: 114px;
  height: 114px;
  border-radius: 50%;
  object-fit: cover;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--royal);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.hero .eyebrow,
.donation-section .eyebrow {
  color: var(--gold);
}

.hero h1,
.page-hero h1 {
  max-width: 940px;
  margin: 0;
  color: var(--white);
  font-size: 3.82rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.05;
  text-wrap: balance;
  text-shadow: 0 16px 42px rgba(4, 14, 62, 0.28);
}

.hero h1 {
  margin-inline: auto;
}

.hero-subtitle {
  margin: 1rem auto 0;
  color: #effcff;
  font-size: 1.12rem;
  font-weight: 850;
}

.hero-intro {
  max-width: 760px;
  margin: 1rem auto 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
}

.hero-actions,
.donation-actions,
.payment-actions,
.admin-actions-row,
.record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-actions {
  justify-content: center;
  margin-top: 1.6rem;
}

.button,
.text-button,
.icon-button {
  border: 1px solid transparent;
  cursor: pointer;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 8px;
  font-size: 0.93rem;
  font-weight: 900;
  line-height: 1.2;
  padding: 0.78rem 1rem;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--gold);
  color: #2b2200;
  box-shadow: 0 18px 34px rgba(248, 197, 50, 0.28);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.button-light {
  background: var(--white);
  color: var(--royal);
  box-shadow: 0 18px 34px rgba(7, 28, 120, 0.12);
}

.button-outline {
  border-color: rgba(7, 55, 201, 0.18);
  background: var(--white);
  color: var(--royal);
}

.button-soft {
  background: rgba(12, 93, 232, 0.08);
  color: var(--royal);
}

.text-button {
  background: transparent;
  color: var(--royal);
  font-weight: 900;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  color: var(--royal);
  font-size: 0.9rem;
  font-weight: 900;
}

.back-link svg {
  transform: rotate(180deg);
}

.back-link-light {
  color: rgba(255, 255, 255, 0.9);
}

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.module-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.25rem;
}

.icon-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(180, 35, 24, 0.08);
  color: var(--danger);
}

.section {
  padding: 4.5rem 0;
}

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

.section-heading {
  max-width: 700px;
  margin-bottom: 2rem;
}

.section-heading.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading h2,
.donation-panel h2,
.module-card h1,
.page-hero h1,
.result-panel h2 {
  margin: 0;
  color: var(--royal-deep);
  font-size: 2rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.12;
  text-wrap: balance;
}

.section-heading p,
.donation-panel p,
.module-card p,
.page-hero p,
.result-panel p,
.info-panel p {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.quick-actions {
  padding-top: 0.9rem;
  background: linear-gradient(180deg, #ffffff, #f6fbff);
}

.quick-grid,
.event-grid,
.product-grid,
.merch-grid,
.contact-grid,
.admin-grid,
.ticket-type-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.quick-card,
.event-card,
.merch-card,
.contact-item,
.module-card,
.product-card,
.cart-panel,
.flow-form,
.info-panel,
.result-panel,
.payment-panel,
.event-feature,
.ticket-type-card,
.ticket-card,
.verify-result,
.table-card,
.metric-card,
.admin-record {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 40px rgba(7, 28, 120, 0.08);
}

.quick-card {
  min-height: 204px;
  display: grid;
  align-content: space-between;
  gap: 1.2rem;
  padding: 1.15rem;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.quick-card:hover,
.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(126, 217, 87, 0.62);
  box-shadow: var(--shadow);
}

.card-icon,
.event-icon,
.module-icon,
.result-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--royal), var(--blue));
  color: var(--white);
}

.quick-card-copy,
.stack,
.cart-lines,
.checkout-form,
.flow-form,
.campaign-list,
.sample-ticket-list,
.admin-card-list,
.details-list,
.event-feature-body,
.product-card-body,
.merch-copy {
  display: grid;
  gap: 0.8rem;
}

.quick-card-copy strong,
.event-card h3,
.merch-card h3,
.product-card h3,
.contact-item strong,
.ticket-type-card strong,
.ticket-card h4,
.admin-record h3,
.metric-card strong {
  color: var(--royal-deep);
  font-weight: 950;
  line-height: 1.2;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: var(--royal);
  font-size: 0.9rem;
  font-weight: 950;
}

.about-section {
  background:
    linear-gradient(90deg, rgba(7, 55, 201, 0.06), rgba(126, 217, 87, 0.08)),
    var(--white);
}

.about-layout,
.contact-layout,
.split-layout,
.store-layout,
.admin-two-col,
.product-detail {
  display: grid;
  gap: 1.5rem;
}

.about-panel {
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 1.4rem;
}

.ministry-pillars,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.ministry-pillars span,
.meta-row span {
  border: 1px solid rgba(7, 55, 201, 0.12);
  border-radius: 8px;
  background: #f8fbff;
  color: var(--royal);
  font-size: 0.84rem;
  font-weight: 900;
  padding: 0.5rem 0.7rem;
}

.members-preview-section {
  background:
    linear-gradient(135deg, rgba(7, 55, 201, 0.04), rgba(126, 217, 87, 0.07) 55%, rgba(248, 197, 50, 0.08)),
    var(--white);
}

.members-preview-heading,
.members-directory-heading,
.member-editor-toolbar,
.member-admin-title,
.form-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
}

.members-preview-heading .section-heading,
.members-directory-heading .section-heading {
  margin-bottom: 0;
}

.members-preview-cta {
  flex: 0 0 auto;
}

.members-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.member-card {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  background: var(--royal-deep);
  box-shadow: 0 18px 44px rgba(7, 28, 120, 0.16);
  color: var(--white);
  cursor: pointer;
  isolation: isolate;
  padding: 0;
  text-align: left;
}

.member-photo,
.member-photo img,
.member-dialog-photo,
.member-dialog-photo img {
  width: 100%;
  height: 100%;
  display: block;
}

.member-photo {
  position: absolute;
  inset: 0;
}

.member-photo img,
.member-dialog-photo img {
  object-fit: cover;
  object-position: center 22%;
}

.member-photo img {
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.member-card-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(7, 28, 120, 0.02) 22%, rgba(7, 28, 120, 0.2) 52%, rgba(7, 28, 120, 0.96) 100%),
    linear-gradient(135deg, rgba(7, 55, 201, 0.28), transparent 45%, rgba(126, 217, 87, 0.16) 70%, rgba(248, 197, 50, 0.24));
  transition: opacity 280ms ease;
}

.member-card-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
}

.member-category {
  margin: 0;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.member-card-content strong {
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1.18;
}

.member-role {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.79rem;
  font-weight: 750;
}

.member-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.45rem;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 950;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms ease;
}

@media (hover: hover) {
  .member-profile-link {
    opacity: 0;
    transform: translateY(8px);
  }

  .member-card:hover .member-photo img,
  .member-card:focus-visible .member-photo img {
    transform: scale(1.045);
  }

  .member-card:hover .member-profile-link,
  .member-card:focus-visible .member-profile-link {
    opacity: 1;
    transform: translateY(0);
  }
}

.members-hero .section-inner {
  padding: 4.2rem 0 3.6rem;
}

.members-directory {
  background: linear-gradient(180deg, #ffffff, #f5faff);
}

.member-count {
  flex: 0 0 auto;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.member-filters {
  display: flex;
  gap: 0.55rem;
  margin-top: 1.4rem;
  overflow-x: auto;
  padding: 0.2rem 0.15rem 0.7rem;
  scrollbar-width: thin;
}

.member-filter {
  min-height: 42px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--royal-deep);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 0.58rem 0.86rem;
}

.member-filter:hover,
.member-filter.is-active {
  border-color: var(--royal);
  background: var(--royal);
  color: var(--white);
}

.members-empty {
  min-height: 220px;
  align-content: center;
  justify-items: center;
  text-align: center;
}

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

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

.member-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(4, 14, 62, 0.82);
  cursor: default;
}

.member-dialog {
  position: relative;
  z-index: 1;
  width: min(940px, 100%);
  max-height: min(820px, calc(100vh - 2rem));
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.34);
}

.member-dialog-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  background: rgba(7, 28, 120, 0.8);
  color: var(--white);
  cursor: pointer;
}

.member-dialog-content {
  display: grid;
}

.member-dialog-media {
  min-height: 420px;
  background: var(--royal-deep);
}

.member-dialog-photo {
  aspect-ratio: 4 / 5;
}

.member-dialog-copy {
  display: grid;
  align-content: center;
  gap: 0.8rem;
  padding: 1.5rem;
}

.member-dialog-copy h2 {
  margin: 0;
  color: var(--royal-deep);
  font-size: 2rem;
  font-weight: 950;
  line-height: 1.08;
}

.member-dialog-role {
  margin: -0.35rem 0 0;
  color: var(--royal);
  font-weight: 900;
}

.member-dialog-intro {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 750;
}

.member-dialog-bio {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding-top: 0.9rem;
}

.member-dialog-bio p {
  margin: 0;
}

.member-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.member-socials a {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--royal);
  font-size: 0.82rem;
  font-weight: 900;
  padding: 0.5rem 0.65rem;
}

.events-section,
.contact-section,
.module-page {
  background: linear-gradient(180deg, #f8fbff, #ffffff);
}

.event-card,
.merch-card,
.product-card,
.admin-record {
  overflow: hidden;
}

.event-card {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
}

.event-card dl,
.details-list {
  margin: 0;
}

.event-card dt,
.details-list dt {
  color: var(--royal);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.event-card dd,
.details-list dd,
.product-card p,
.cart-line p,
.ticket-type-card p,
.metric-card p,
.admin-record p {
  margin: 0;
  color: var(--muted);
}

.product-image,
.event-art {
  aspect-ratio: 16 / 11;
  display: grid;
  place-items: center;
  gap: 0.35rem;
  color: var(--white);
  text-align: center;
}

.product-image svg,
.event-art svg {
  width: 2.4rem;
  height: 2.4rem;
}

.product-image strong,
.event-art strong {
  font-size: 1.15rem;
  font-weight: 950;
}

.product-blue {
  background: linear-gradient(135deg, var(--royal), var(--sky-strong));
}

.product-lime {
  background: linear-gradient(135deg, #268c4d, var(--lime));
}

.product-gold {
  background: linear-gradient(135deg, #f28f16, var(--gold));
  color: #261c00;
}

.product-sky {
  background: linear-gradient(135deg, #40b6d8, var(--sky));
  color: var(--royal-deep);
}

.product-white {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #ffffff, var(--gold-soft));
  color: var(--royal);
}

.merch-copy,
.product-card-body {
  padding: 1rem;
}

.donation-section {
  background:
    linear-gradient(135deg, rgba(7, 28, 120, 0.94), rgba(7, 55, 201, 0.9)),
    var(--royal);
  color: var(--white);
}

.donation-panel {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.donation-panel h2,
.donation-panel p {
  color: var(--white);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem;
}

.contact-item > div {
  min-width: 0;
}

.contact-item p {
  overflow-wrap: anywhere;
}

.contact-item > span {
  width: 42px;
  height: 42px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: var(--lime-soft);
  color: #217545;
}

.contact-page-section {
  background: linear-gradient(180deg, #f8fbff, #eef6ff);
}

.contact-page-grid .contact-item {
  min-height: 132px;
  align-items: center;
  padding: 1.35rem;
}

.contact-page-grid .contact-item > span {
  width: 50px;
  height: 50px;
}

.contact-page-grid .contact-item strong {
  display: block;
  margin-bottom: 0.38rem;
  font-size: 1rem;
}

.contact-page-grid .contact-item p {
  margin: 0;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.45;
}

.contact-action-band {
  display: grid;
  align-items: center;
  gap: 1.4rem;
  margin-top: 1.25rem;
  border-left: 6px solid var(--gold);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(126, 217, 87, 0.12), transparent 42%),
    var(--royal-deep);
  box-shadow: 0 18px 48px rgba(7, 28, 120, 0.18);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}

.contact-action-copy {
  max-width: 680px;
}

.contact-action-copy h2,
.contact-action-copy p {
  margin: 0;
  color: var(--white);
}

.contact-action-copy h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  line-height: 1.12;
}

.contact-action-copy > p:last-child {
  margin-top: 0.7rem;
  color: rgba(255, 255, 255, 0.82);
}

.contact-action-copy .eyebrow {
  margin-bottom: 0.55rem;
  color: var(--gold);
}

.contact-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.page-hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(7, 55, 201, 0.95), rgba(12, 93, 232, 0.84)),
    var(--royal);
  color: var(--white);
}

.compact-hero .section-inner {
  padding: 3.4rem 0 3rem;
}

.page-hero h1 {
  color: var(--white);
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
}

.product-grid {
  align-items: start;
}

.cart-panel,
.flow-form,
.info-panel,
.result-panel,
.payment-panel,
.ticket-card,
.verify-result,
.metric-card,
.admin-record,
.table-card {
  padding: 1.2rem;
}

.cart-panel {
  position: sticky;
  top: 96px;
  align-self: start;
}

.cart-heading,
.table-toolbar,
.cart-line,
.total-row,
.ticket-card,
.payment-panel,
.verify-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cart-line {
  align-items: flex-start;
}

.cart-line-actions {
  width: 120px;
  display: flex;
  gap: 0.45rem;
}

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

.form-grid,
.variant-admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 850;
}

.checkbox-line input {
  width: auto;
}

.form-note,
.payment-guidance {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.empty-state {
  grid-column: 1 / -1;
  display: grid;
  justify-items: start;
  gap: 0.7rem;
  border: 1px dashed rgba(7, 55, 201, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  padding: 1.25rem;
}

.empty-state h2,
.empty-state h3,
.empty-state p {
  margin: 0;
}

.empty-state p {
  color: var(--muted);
}

.result-panel {
  margin-bottom: 1rem;
  border-left: 5px solid var(--lime);
}

.payment-panel {
  margin-top: 1rem;
  background: linear-gradient(135deg, rgba(7, 55, 201, 0.08), rgba(126, 217, 87, 0.08));
}

.event-list,
.admin-section .section-inner {
  display: grid;
  gap: 1.2rem;
}

.event-feature {
  display: grid;
  overflow: hidden;
}

.event-feature-body {
  padding: 1.2rem;
}

.ticket-type-card {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
}

.ticket-output {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.ticket-card {
  align-items: flex-start;
}

.qr-preview {
  width: 84px;
  height: 84px;
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: repeat(9, 1fr);
  gap: 2px;
  border: 6px solid var(--white);
  background: var(--white);
  box-shadow: 0 6px 20px rgba(7, 28, 120, 0.16);
}

.qr-preview span {
  background: #edf4ff;
}

.qr-preview .on {
  background: var(--royal-deep);
}

.verify-result.success {
  border-left: 5px solid var(--success);
}

.verify-result.warning {
  border-left: 5px solid var(--warning);
}

.verify-result.error {
  border-left: 5px solid var(--danger);
}

.sample-ticket {
  width: 100%;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 0.7rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 0.6rem;
  text-align: left;
  cursor: pointer;
}

.sample-ticket .qr-preview {
  width: 54px;
  height: 54px;
  border-width: 4px;
}

.sample-ticket small {
  grid-column: 1 / -1;
  overflow-wrap: anywhere;
  color: var(--muted);
}

.admin-members-section {
  background: linear-gradient(180deg, #f7fbff, #ffffff);
}

.member-editor-warning {
  margin-bottom: 1.25rem;
}

.member-access-card {
  margin: 0 auto;
}

.member-access-card[hidden] {
  display: none;
}

.member-access-card .stack {
  width: min(420px, 100%);
}

.member-editor {
  display: grid;
  gap: 1.4rem;
}

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

.member-editor-toolbar {
  border-bottom: 1px solid var(--line);
  padding: 0.4rem 0 1.25rem;
}

.member-editor-toolbar h2,
.form-section-heading h2 {
  margin: 0;
  color: var(--royal-deep);
  font-size: 1.55rem;
  font-weight: 950;
}

.member-editor-toolbar p {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.member-editor-toolbar .editor-scope-note {
  color: var(--warning);
  font-size: 0.78rem;
  font-weight: 850;
}

.member-editor-layout {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.member-form {
  position: sticky;
  top: 94px;
  gap: 1rem;
}

.form-section-heading {
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.9rem;
}

.member-optional-fields {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  padding: 0.8rem;
}

.member-optional-fields summary {
  color: var(--royal);
  cursor: pointer;
  font-weight: 900;
}

.member-optional-fields .form-grid {
  margin-top: 0.8rem;
}

.member-form-flags,
.member-admin-statuses {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

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

.member-admin-record {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(7, 28, 120, 0.07);
}

.member-admin-portrait {
  min-height: 150px;
  background: var(--royal-deep);
}

.member-admin-portrait picture,
.member-admin-portrait img {
  width: 100%;
  height: 100%;
}

.member-admin-portrait img {
  object-fit: cover;
  object-position: center 20%;
}

.member-admin-copy {
  display: grid;
  align-content: center;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.9rem;
}

.member-admin-title {
  align-items: start;
}

.member-admin-title span {
  color: var(--royal);
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.member-admin-title h3,
.member-admin-title p {
  margin: 0;
}

.member-admin-title h3 {
  color: var(--royal-deep);
  font-size: 1rem;
  font-weight: 950;
}

.member-admin-title p {
  color: var(--muted);
  font-size: 0.82rem;
}

.member-order {
  width: 32px;
  height: 32px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: var(--gold-soft);
  color: #6b5100;
  font-size: 0.78rem;
}

.status-featured {
  background: rgba(248, 197, 50, 0.25);
  color: #765700;
}

.admin-tabs {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.3rem;
}

.admin-tabs a {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--royal);
  font-weight: 900;
  padding: 0.62rem 0.78rem;
}

.admin-tabs a.is-active {
  background: var(--royal);
  color: var(--white);
}

.security-warning {
  display: grid;
  gap: 0.35rem;
  border: 1px solid rgba(161, 92, 7, 0.28);
  border-left: 5px solid var(--warning);
  border-radius: 8px;
  background: #fff9e8;
  color: #5f3d00;
  padding: 1rem;
}

.security-warning strong {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.security-warning p {
  margin: 0;
}

.security-warning code {
  border-radius: 4px;
  background: rgba(161, 92, 7, 0.1);
  padding: 0.1rem 0.3rem;
  font-weight: 900;
}

.table-empty {
  color: var(--muted);
  padding: 1rem 0;
  text-align: center;
}

.metric-card span {
  color: var(--muted);
  font-weight: 850;
}

.metric-card strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.8rem;
}

.admin-actions-row {
  margin: 0.3rem 0 0.5rem;
}

.admin-record {
  display: grid;
  gap: 1rem;
}

.ticket-admin-row {
  display: grid;
  gap: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.8rem;
}

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

.status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(12, 93, 232, 0.08);
  color: var(--royal);
  font-size: 0.75rem;
  font-weight: 950;
  padding: 0.28rem 0.55rem;
  text-transform: capitalize;
  white-space: nowrap;
}

.status-paid,
.status-confirmed,
.status-completed,
.status-succeeded,
.status-active,
.status-issued {
  background: rgba(6, 118, 71, 0.1);
  color: var(--success);
}

.status-cancelled,
.status-failed,
.status-expired,
.status-inactive,
.status-void {
  background: rgba(180, 35, 24, 0.1);
  color: var(--danger);
}

.status-pending_payment,
.status-processing,
.status-registration_open {
  background: rgba(248, 197, 50, 0.25);
  color: var(--warning);
}

.module-hero {
  min-height: 64vh;
  display: grid;
  place-items: center;
  padding: 4rem 1rem;
}

.module-card {
  width: min(680px, 100%);
  display: grid;
  justify-items: center;
  padding: 2rem 1.2rem;
  text-align: center;
}

.module-card label {
  width: min(420px, 100%);
  text-align: left;
}

.site-footer {
  background: #071746;
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  width: min(var(--max-width), calc(100% - 32px));
  display: grid;
  gap: 1.5rem;
  margin: 0 auto;
  padding: 2.4rem 0 1.7rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-brand img {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border: 2px solid var(--lime);
  border-radius: 50%;
  object-fit: cover;
}

.footer-brand strong,
.footer-links h2 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 950;
}

.footer-brand p {
  margin: 0.25rem 0 0;
  max-width: 420px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-brand a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links h2 {
  margin: 0 0 0.75rem;
}

.footer-links div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.footer-links a {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 0.42rem 0.62rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  font-weight: 800;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 1rem 1.2rem;
  text-align: center;
  font-size: 0.86rem;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: min(380px, calc(100vw - 2rem));
  border-radius: 8px;
  background: var(--royal-deep);
  color: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  padding: 0.9rem 1rem;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

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

.toast.error {
  background: var(--danger);
}

@media (min-width: 360px) {
  .members-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 640px) {
  .quick-grid,
  .event-grid,
  .product-grid,
  .contact-grid,
  .admin-grid,
  .ticket-type-grid,
  .form-grid,
  .variant-admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .footer-inner {
    grid-template-columns: 1.1fr 1fr;
  }

  .member-dialog-content {
    grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
  }

  .member-dialog-photo {
    min-height: 100%;
  }
}

@media (min-width: 900px) {
  .quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about-layout,
  .contact-layout,
  .split-layout,
  .admin-two-col,
  .donation-panel,
  .product-detail {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .store-layout {
    grid-template-columns: 1fr 360px;
    align-items: start;
  }

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

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

  .event-feature {
    grid-template-columns: 320px 1fr;
  }

  .contact-action-band {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .contact-action-buttons {
    max-width: 390px;
    justify-content: flex-end;
  }

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

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

@media (min-width: 1000px) {
  .member-editor-layout {
    grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1.18fr);
  }
}

@media (min-width: 1180px) {
  .members-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1040px) {
  .header-inner {
    min-height: 70px;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .brand-copy strong {
    max-width: 198px;
    overflow: visible;
    font-size: 0.84rem;
    text-overflow: clip;
    white-space: normal;
  }

  .brand-copy small {
    font-size: 0.7rem;
  }

  .menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .nav-links {
    position: fixed;
    top: 82px;
    right: 16px;
    left: 16px;
    z-index: 120;
    display: grid;
    gap: 0.35rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
    opacity: 0;
    padding: 0.7rem;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-link {
    justify-content: flex-start;
    min-height: 44px;
    padding: 0.65rem 0.8rem;
  }

  .mobile-scrim.is-open {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: block;
    background: rgba(7, 23, 70, 0.42);
  }

  .section {
    padding: 3.4rem 0;
  }

  .hero h1 {
    font-size: 2.12rem;
  }

  .hero-logo-badge {
    width: 108px;
    height: 108px;
  }

  .hero-logo-badge img {
    width: 90px;
    height: 90px;
  }

  .page-hero h1 {
    font-size: 2.25rem;
  }

  .cart-panel {
    position: static;
  }

  .member-form {
    position: static;
  }

}

@media (max-width: 480px) {
  .header-inner,
  .section-inner,
  .hero-inner,
  .footer-inner {
    width: min(100% - 24px, var(--max-width));
  }

  .header-inner {
    gap: 0.55rem;
  }

  .brand-link {
    gap: 0.55rem;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
  }

  .brand-copy strong {
    max-width: 175px;
    font-size: 0.78rem;
  }

  .section {
    padding: 2.8rem 0;
  }

  .compact-hero .section-inner {
    padding: 2.6rem 0 2.4rem;
  }

  .hero-actions .button,
  .donation-actions .button,
  .contact-action-buttons .button,
  .payment-actions .button,
  .admin-actions-row .button,
  .members-preview-cta {
    width: 100%;
  }

  .members-preview-heading,
  .members-directory-heading,
  .member-editor-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .member-count {
    align-self: flex-start;
  }

  .members-grid {
    gap: 0.55rem;
  }

  .member-card-content {
    padding: 0.72rem;
  }

  .member-card-content strong {
    font-size: 0.94rem;
  }

  .member-role,
  .member-profile-link {
    font-size: 0.7rem;
  }

  .member-dialog-copy h2 {
    font-size: 1.65rem;
  }

  .member-admin-record {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .member-admin-copy {
    padding: 0.75rem;
  }

  .section-heading h2,
  .donation-panel h2,
  .module-card h1,
  .page-hero h1,
  .result-panel h2 {
    font-size: 1.72rem;
  }

  .cart-heading,
  .cart-line,
  .total-row,
  .ticket-card,
  .payment-panel,
  .verify-result {
    align-items: stretch;
    flex-direction: column;
  }

  .cart-line-actions {
    width: 100%;
  }

  .cart-line-actions input {
    min-width: 0;
  }

  .module-hero {
    min-height: 54vh;
    padding: 2.5rem 0.75rem;
  }
}
