:root {
  --bg: #050915;
  --bg2: #0a1020;
  --panel: #101b2d;
  --panel2: #0c1626;
  --border: #23344f;
  --text: #e8edf6;
  --muted: #8fa3c2;
  --gold: #d4af37;
  --gold2: #a78122;
  --green: #0f766e;
  --green2: #064e4a;
  --danger: #7f1d1d;
  --warning: #92400e;
  --blue: #1d4ed8;
}
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0;
  background: radial-gradient(circle at top, #0f1b2f 0, var(--bg) 42%, #030711 100%);
  color: var(--text);
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}
header {
  background: #070d1b;
  color: white;
  padding: 18px 24px;
  border-bottom: 1px solid var(--gold2);
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-logo {
  height: 54px;
  width: auto;
  object-fit: contain;
}
.header-title h1 {
  color: var(--gold);
  margin: 0 0 5px;
  font-size: 1.15rem;
  letter-spacing: .15px;
  font-weight: 800;
}
.header-title p {
  margin: 0;
  color: var(--muted);
}
nav {
  background: #060b16;
  border-bottom: 1px solid #17233a;
  padding: 10px 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
nav a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}
nav a:hover { text-decoration: underline; }
nav .user {
  margin-left: auto;
  color: var(--muted);
}
main {
  max-width: 1220px;
  margin: 22px auto;
  padding: 0 16px;
}
.card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel2) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 12px 24px rgba(0,0,0,.25);
}
.card h2, .card h3 {
  color: var(--gold);
}
.narrow { max-width: 560px; margin: 0 auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
label { display: block; font-weight: 700; margin: 8px 0 4px; color: #dbe7ff; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  font: inherit;
  margin-bottom: 10px;
  background: #08111f;
  color: var(--text);
}
input::placeholder, textarea::placeholder { color: #64748b; }
textarea { min-height: 110px; }
button, .button {
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold2) 100%);
  color: #06101f;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  text-decoration: none;
  display: inline-block;
  font-weight: 800;
  cursor: pointer;
}
button:hover, .button:hover { opacity: .92; }
.button.secondary, button.secondary {
  background: #1f2937;
  color: var(--text);
  border: 1px solid var(--border);
}
table { width: 100%; border-collapse: collapse; overflow: auto; }
th, td { border-bottom: 1px solid var(--border); text-align: left; padding: 9px; vertical-align: top; }
th { background: #0b1424; color: var(--gold); }
td { color: #d7e0ef; }
a { color: var(--gold); }
.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 9px;
  background: #1f2937;
  color: #dbeafe;
  font-size: .85rem;
  font-weight: 700;
}
.badge.good { background: #064e3b; color: #bbf7d0; }
.badge.bad { background: #7f1d1d; color: #fecaca; }
.badge.warn { background: #78350f; color: #fde68a; }
.badge.paid { background: #1e3a8a; color: #bfdbfe; }
.metric h2 { font-size: 2rem; color: var(--gold); margin-bottom: 4px; }
.metric p { color: var(--muted); margin-top: 0; }
.note, .small { color: var(--muted); font-size: .94rem; }
footer { text-align: center; color: var(--muted); padding: 28px; }
.notice {
  background: rgba(146, 64, 14, .2);
  border: 1px solid #92400e;
  padding: 12px;
  border-radius: 10px;
  margin: 12px 0;
  color: #fde68a;
}
.success {
  background: rgba(6, 78, 59, .25);
  border: 1px solid #047857;
  padding: 12px;
  border-radius: 10px;
  margin: 12px 0;
}
.error {
  background: rgba(127, 29, 29, .25);
  border: 1px solid #991b1b;
  padding: 12px;
  border-radius: 10px;
  margin: 12px 0;
}
.module-card {
  border-left: 4px solid var(--gold);
}
.logo-watermark {
  max-width: 180px;
  opacity: .85;
}


/* Screenshot-matched typography refinements */
body {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}
.header-title p {
  font-size: 12px;
  font-weight: 500;
  color: #8fa3c2;
}
nav {
  font-size: 12px;
}
nav a {
  font-size: 12px;
  letter-spacing: .15px;
}
.card h2 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .25px;
}
.card h3 {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .2px;
}
.card p, td, input, select, textarea, label, button, .button {
  font-size: 12px;
}
th {
  font-size: 12px;
  font-weight: 800;
}
.badge {
  font-size: 11px;
}
.metric h2 {
  font-size: 1.8rem;
}


/* v22 organized dropdown navigation */
.top-nav {
  gap: 8px;
  align-items: stretch;
  position: relative;
  z-index: 50;
}

.nav-home {
  display: flex;
  align-items: center;
}

.nav-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-menu-button {
  background: transparent;
  color: var(--gold);
  border: 0;
  padding: 8px 10px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .15px;
  cursor: pointer;
  box-shadow: none;
}

.nav-menu-button:hover,
.nav-menu:focus-within .nav-menu-button,
.nav-menu:hover .nav-menu-button {
  background: rgba(212, 175, 55, .12);
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #08111f;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 16px 28px rgba(0,0,0,.35);
  z-index: 1000;
}

.nav-menu:hover .nav-dropdown,
.nav-menu:focus-within .nav-dropdown {
  display: block;
}

.nav-dropdown a {
  display: block;
  padding: 9px 10px;
  color: #dbe7ff;
  border-radius: 7px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-dropdown a:hover {
  background: rgba(212, 175, 55, .12);
  color: var(--gold);
  text-decoration: none;
}

@media (max-width: 760px) {
  .top-nav {
    align-items: flex-start;
  }
  .nav-menu {
    width: 100%;
    display: block;
  }
  .nav-menu-button {
    width: 100%;
    text-align: left;
  }
  .nav-dropdown {
    position: static;
    display: block;
    min-width: 100%;
    box-shadow: none;
    margin: 2px 0 8px;
  }
}


/* v23 footer disclaimer and menu cleanup */
footer {
  border-top: 1px solid var(--border);
  background: #050915;
  margin-top: 48px;
  padding: 22px 16px;
  line-height: 1.55;
}
footer p {
  margin: 4px auto;
  max-width: 1100px;
}
.top-nav {
  min-height: 44px;
}
.top-nav > a,
.nav-home {
  padding: 8px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
}
.top-nav > a:hover {
  background: rgba(212, 175, 55, .12);
  text-decoration: none;
}
.nav-menu-button::after {
  content: "";
}
.nav-dropdown {
  max-height: 70vh;
  overflow-y: auto;
}
.user {
  align-self: center;
}


/* v24 debit card receipt paste/upload helper */
.paste-zone {
  border: 1px dashed var(--border);
  background: rgba(8, 17, 31, .75);
  border-radius: 10px;
  padding: 16px;
  margin: 8px 0 10px;
  color: #dbe7ff;
  cursor: pointer;
}
.paste-zone:focus,
.paste-zone:hover {
  border-color: var(--gold);
  outline: none;
  background: rgba(212, 175, 55, .08);
}


/* v25 mobile-first usability improvements */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-width: 0;
}

header {
  flex-wrap: wrap;
}

.header-logo {
  flex: 0 0 auto;
}

.header-title {
  min-width: 0;
}

.header-title h1,
.header-title p {
  overflow-wrap: anywhere;
}

main {
  width: 100%;
}

.card {
  min-width: 0;
}

.grid,
.two,
.three {
  min-width: 0;
}

table {
  display: block;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

td, th {
  white-space: nowrap;
}

td:nth-child(n+2),
th:nth-child(n+2) {
  min-width: 110px;
}

textarea {
  resize: vertical;
}

input[type="file"] {
  min-height: 46px;
  padding: 8px;
}

button,
.button,
input,
select,
textarea {
  max-width: 100%;
}

.nav-dropdown {
  overflow-wrap: normal;
}

@media (max-width: 900px) {
  main {
    margin: 14px auto;
    padding: 0 10px;
  }

  .card {
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 12px;
  }

  .grid,
  .two,
  .three {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  header {
    padding: 12px 14px;
    gap: 10px;
  }

  .header-logo {
    height: 44px;
  }

  .header-title h1 {
    font-size: 1rem;
  }

  .header-title p {
    font-size: 11px;
  }

  nav,
  .top-nav {
    padding: 8px 10px;
    gap: 6px;
  }

  .top-nav > a,
  .nav-home,
  .nav-menu-button {
    min-height: 40px;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 13px;
  }

  header {
    align-items: flex-start;
  }

  .header-logo {
    height: 42px;
  }

  .header-title h1 {
    font-size: 0.98rem;
    line-height: 1.25;
  }

  .header-title p {
    line-height: 1.3;
  }

  .top-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .top-nav > a,
  .nav-home,
  .nav-menu-button {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    padding: 10px 12px;
  }

  .nav-menu {
    width: 100%;
    display: block;
  }

  .nav-menu-button {
    border: 1px solid rgba(212, 175, 55, .18);
    background: rgba(212, 175, 55, .06);
  }

  .nav-dropdown {
    position: static;
    display: none;
    min-width: 100%;
    width: 100%;
    margin: 4px 0 8px;
    box-shadow: none;
    border-radius: 8px;
    max-height: none;
  }

  .nav-menu:hover .nav-dropdown,
  .nav-menu:focus-within .nav-dropdown {
    display: block;
  }

  .nav-dropdown a {
    white-space: normal;
    min-height: 40px;
    display: flex;
    align-items: center;
  }

  .user {
    margin-left: 0 !important;
    width: 100%;
    padding: 8px 4px;
    font-size: 12px;
  }

  input,
  select,
  textarea {
    font-size: 16px; /* prevents iPhone zoom on focus */
    min-height: 44px;
  }

  textarea {
    min-height: 120px;
  }

  button,
  .button {
    width: 100%;
    text-align: center;
    margin: 4px 0;
    min-height: 44px;
  }

  .metric h2 {
    font-size: 1.4rem;
  }

  .notice,
  .success,
  .error {
    padding: 10px;
  }

  table {
    font-size: 12px;
  }

  th, td {
    padding: 8px;
  }

  footer {
    padding: 16px 10px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  main {
    padding: 0 8px;
  }

  .card {
    padding: 12px;
  }

  .header-logo {
    height: 38px;
  }

  .header-title h1 {
    font-size: 0.92rem;
  }

  .card h2 {
    font-size: 14px;
  }

  .card h3 {
    font-size: 13px;
  }

  .card p,
  td,
  label,
  button,
  .button {
    font-size: 12px;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }
}

/* Mobile-friendly paste/upload drop zones if present */
.paste-box,
.upload-zone,
.drop-zone,
.receipt-paste-zone {
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* Print/mobile export readability */
@media print {
  nav,
  .top-nav,
  button,
  .button {
    display: none !important;
  }
  body {
    background: white;
    color: black;
  }
  .card {
    border: 1px solid #999;
    box-shadow: none;
  }
}


/* v26 Operations + Event RSVP additions */
.flyer { max-width: 100%; border-radius: 12px; border: 1px solid var(--border); }
.rsvp-public { max-width: 760px; margin-left: auto; margin-right: auto; }
.badge.good { background: #0f3d2e; }
.badge.bad { background: #5b1420; }
.badge.warn { background: #5d4b11; }
@media (max-width: 760px) {
  .rsvp-public { max-width: 100%; }
}


/* v27 event checklist / check-in enhancements */
.event-checklist-card { overflow-x: auto; }
.event-checklist-table input,
.event-checklist-table select,
.event-checklist-table textarea { min-width: 150px; }
.event-checklist-table textarea { min-height: 54px; }
.event-checklist-table th,
.event-checklist-table td { vertical-align: top; }
.badge.good { background: rgba(56, 189, 101, .15); color: #6ee7a8; }
.badge.warn { background: rgba(245, 158, 11, .15); color: #fcd34d; }
@media (max-width: 760px) {
  .event-checklist-table input,
  .event-checklist-table select,
  .event-checklist-table textarea { min-width: 180px; }
}


/* v30 simple public RSVP page without portal menu */
.public-rsvp-body nav,
.public-rsvp-body .top-nav {
  display: none !important;
}
.public-rsvp-header {
  border-bottom: 1px solid rgba(212,175,55,.45);
}
.public-rsvp-main {
  max-width: 760px;
  margin: 28px auto;
}
.public-rsvp-footer {
  text-align: center;
  font-size: 12px;
  opacity: .9;
}
.rsvp-public button {
  font-size: 16px;
}
@media (max-width: 760px) {
  .public-rsvp-main {
    margin: 12px auto;
    padding: 0 10px;
  }
}

/* v37 event survey and notification engine */
.star-rating {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 16px;
}
.star-choice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(8, 17, 31, .75);
  color: var(--gold);
  cursor: pointer;
}
.star-choice input {
  width: auto;
  min-height: auto;
}
.star-choice:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, .08);
}
@media (max-width: 760px) {
  .star-choice {
    width: 100%;
  }
}

/* v40 membership structured family/address form */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
#familyMembersTable input { min-width: 160px; }
@media (max-width: 760px) { #familyMembersTable input { min-width: 180px; } }

/* v42.4 GRC form cleanup: card-style pages with readable vertical forms */
form.grc-form {
  display: block;
  max-width: 760px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(8, 17, 31, .45);
}
form.grc-form label {
  display: block;
  margin-top: 12px;
  margin-bottom: 5px;
  color: #dbe7ff;
}
form.grc-form input,
form.grc-form select,
form.grc-form textarea {
  display: block;
  width: 100%;
  max-width: 720px;
  margin-bottom: 8px;
}
form.grc-form textarea {
  min-height: 90px;
}
form.grc-form input[type="file"] {
  padding: 8px;
  background: #0b1424;
}
form.grc-form label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 8px;
}
form.grc-form label input[type="checkbox"] {
  width: auto;
  margin: 0;
}
form.grc-form button {
  margin-top: 14px;
  width: auto;
  min-width: 180px;
}
details > summary.button {
  list-style: none;
  margin: 10px 8px 10px 0;
}
details > summary.button::-webkit-details-marker { display: none; }
@media (max-width: 760px) {
  form.grc-form { max-width: 100%; padding: 12px; }
  form.grc-form input,
  form.grc-form select,
  form.grc-form textarea { max-width: 100%; }
}

/* v42.12 report usability */
.report-controls{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:12px 0;}
.report-controls .report-search{max-width:360px;}
.report-pager{display:flex;gap:10px;align-items:center;justify-content:flex-end;margin:12px 0;}
.report-table{width:100%;}
.report-table th{position:relative;}

/* v42.25 mobile navigation optimization */
.mobile-menu-toggle {
  display: none;
  background: rgba(212, 175, 55, .12);
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, .35);
  box-shadow: none;
}

@media (max-width: 760px) {
  header {
    position: sticky;
    top: 0;
    z-index: 1100;
  }

  .top-nav {
    position: sticky;
    top: 67px;
    z-index: 1090;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 10px;
    max-height: calc(100vh - 67px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-menu-toggle {
    display: flex !important;
    width: 100%;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    margin: 0;
    border-radius: 8px;
  }

  .top-nav:not(.mobile-open) > a,
  .top-nav:not(.mobile-open) > .nav-menu,
  .top-nav:not(.mobile-open) > .user {
    display: none !important;
  }

  .top-nav.mobile-open > a,
  .top-nav.mobile-open > .nav-menu,
  .top-nav.mobile-open > .user {
    display: flex;
  }

  .top-nav.mobile-open > .nav-menu {
    display: block;
  }

  .top-nav.mobile-open .nav-menu-button {
    display: flex;
    align-items: center;
  }

  .top-nav.mobile-open .nav-dropdown {
    display: none;
  }

  .top-nav.mobile-open .nav-menu:focus-within .nav-dropdown,
  .top-nav.mobile-open .nav-menu:hover .nav-dropdown {
    display: block;
  }

  .top-nav.mobile-open > a,
  .top-nav.mobile-open .nav-menu-button {
    border: 1px solid rgba(212, 175, 55, .14);
    border-radius: 8px;
    margin-top: 6px;
    background: rgba(8, 17, 31, .8);
  }

  .nav-dropdown {
    max-height: 45vh;
    overflow-y: auto;
  }

  main {
    margin-top: 12px;
  }
}

@media (max-width: 480px) {
  .top-nav { top: 63px; max-height: calc(100vh - 63px); }
}
