:root {
  --ink: #111315;
  --muted: #66706f;
  --paper: #f5f4ef;
  --surface: #ffffff;
  --line: #ded8ca;
  --red: #c79a2b;
  --red-dark: #9f7415;
  --green: #c79a2b;
  --green-dark: #111315;
  --gold: #d8b24c;
  --silver: #cfd2d4;
  --sky: #f0eee6;
  --shadow: 0 18px 50px rgba(17, 19, 21, 0.12);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(18px, 4vw, 56px);
  color: #ffffff;
  transition: background .25s ease, box-shadow .25s ease, color .25s ease;
}
.site-header.is-scrolled, .site-header.is-open {
  color: var(--ink);
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 12px 36px rgba(16, 32, 29, .1);
  backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 850;
}
.brand-logo {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(216, 178, 76, .48);
  border-radius: 8px;
  background: #111315;
  color: #ffffff;
  font-size: .82rem;
  font-weight: 900;
}
.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand-logo img.is-missing { display: none; }
.dark-brand { color: var(--ink); }
.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 20px);
  font-size: .92rem;
  font-weight: 800;
}
.main-nav a { opacity: .92; white-space: nowrap; }
.main-nav a:hover { color: var(--gold); opacity: 1; }
.nav-panel {
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--gold);
  color: #111315;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 96vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  overflow: hidden;
  padding: 122px clamp(20px, 6vw, 76px) 80px;
}
.hero-slider, .hero-slide, .hero-overlay { position: absolute; inset: 0; }
.hero-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.is-active { opacity: 1; }
.slide-fallback {
  background: linear-gradient(120deg, #12352d, #b8232f 55%, #f3f7f5);
}
.slide-red { background: linear-gradient(120deg, #641820, #1f6b55 58%, #f7f1e5); }
.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 18, 16, .92), rgba(8, 18, 16, .66) 50%, rgba(8, 18, 16, .28)),
    linear-gradient(0deg, rgba(16, 32, 29, .42), rgba(16, 32, 29, .1));
}
.hero-content, .quick-board { position: relative; z-index: 1; }
.hero-content { max-width: 790px; color: #ffffff; }
.eyebrow, .section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  line-height: .96;
  letter-spacing: 0;
}
.hero-lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(1.05rem, 2vw, 1.26rem);
  line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 13px 20px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary {
  color: #111315;
  background: var(--red);
  box-shadow: 0 16px 30px rgba(199, 154, 43, .24);
}
.button.primary:hover { background: var(--red-dark); }
.button.secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, .52);
  background: rgba(255, 255, 255, .1);
}
.button.ghost {
  color: var(--green);
  border-color: var(--line);
  background: #ffffff;
}

.quick-board {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(18px);
}
.quick-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.quick-tabs button {
  border: 0;
  border-radius: 8px;
  padding: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, .15);
  font-weight: 900;
  cursor: pointer;
}
.quick-tabs button.is-active { background: var(--red); }
.info-panel { display: none; gap: 12px; }
.info-panel.is-active { display: grid; }
.info-panel label { display: grid; gap: 8px; font-weight: 800; }
.info-panel select, .search-toolbar select, .search-toolbar input, input, textarea {
  width: 100%;
  border: 1px solid #cbd7d2;
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #ffffff;
}
.info-panel strong { font-size: 2rem; }
.currency-row { display: flex; justify-content: space-between; gap: 12px; }

.section { padding: clamp(62px, 8vw, 110px) clamp(20px, 6vw, 76px); }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.section h2 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: 0;
}
.section-note, .section-copy p, .membership-copy p, .contact-content p {
  color: var(--muted);
  line-height: 1.75;
}
.search-section { background: #ffffff; }
.search-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(150px, .5fr) minmax(150px, .5fr);
  gap: 12px;
  margin-bottom: 20px;
}
.association-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.association-card, .news-card, .admin-card, .metric-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(16, 32, 29, .05);
}
.association-card { min-height: 210px; padding: 22px; }
.association-card span {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--green);
  background: #f5edda;
  font-size: .82rem;
  font-weight: 900;
}
.association-card h3 { margin: 0 0 8px; }
.association-card p { margin: 0 0 16px; color: var(--muted); line-height: 1.6; }

.membership {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 74px);
  align-items: start;
  background: #eef4f1;
}
.apply-form, .contact-form, .admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}
.apply-form label, .contact-form label, .admin-form label, .login-card label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 850;
}
.wide, .apply-form .button, .form-result, .contact-form .button { grid-column: 1 / -1; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(199, 154, 43, .22);
  border-color: var(--green);
}
.form-result { margin: 0; color: var(--green); font-weight: 900; }
.form-result:not(:empty) {
  padding: 12px 14px;
  border-radius: 8px;
  background: #f5edda;
}

.media-ad {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 24px;
  align-items: stretch;
}
.photo-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, .55fr);
  gap: 24px;
  align-items: center;
}
.photo-frame {
  height: clamp(320px, 44vw, 560px);
  overflow: hidden;
  border-radius: 8px;
  background: var(--green-dark);
  box-shadow: var(--shadow);
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: slowZoom 10s ease-in-out infinite alternate;
}
@keyframes slowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}
.upload-box {
  display: inline-grid;
  gap: 8px;
  margin-top: 18px;
  padding: 16px;
  border: 1px dashed var(--green);
  border-radius: 8px;
  color: var(--green);
  font-weight: 900;
  cursor: pointer;
}
.upload-box input { padding: 0; border: 0; }
.ad-column {
  display: grid;
  gap: 14px;
  align-content: start;
}
.ad-card {
  min-height: 110px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  padding: 18px;
  color: #111315;
  background: var(--red);
  font-weight: 900;
  text-align: center;
}
.ad-card.muted { color: var(--ink); background: var(--sky); }
.ad-card.dark { background: var(--green-dark); }

.news { background: #f7f5ee; }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.news-card { min-height: 220px; padding: 24px; }
.news-card time { color: var(--red); font-weight: 900; }
.news-card h3 { margin: 22px 0 10px; }
.news-card p { margin: 0; color: var(--muted); line-height: 1.7; }
.split, .contact {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  gap: clamp(30px, 7vw, 90px);
}
.contact { background: #ffffff; }
.contact-form { grid-template-columns: 1fr; }
.contact-lines { display: grid; gap: 10px; margin-top: 24px; color: var(--green); font-weight: 900; }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 6vw, 76px);
  color: rgba(255, 255, 255, .78);
  background: #0a1513;
}
.site-footer p { margin: 0; }
.site-footer div { display: flex; flex-wrap: wrap; gap: 18px; }

.admin-body { background: #f3f1ea; }
.admin-shell { min-height: 100vh; }
.login-screen {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 24px;
}
.login-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.58) saturate(1.08);
}
.login-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 68% 28%, rgba(216, 178, 76, .16), transparent 28%),
    linear-gradient(90deg, rgba(17, 19, 21, .7), rgba(17, 19, 21, .34) 48%, rgba(17, 19, 21, .62));
}
.login-card {
  position: relative;
  z-index: 2;
  width: min(480px, 100%);
  display: grid;
  gap: 18px;
  padding: clamp(24px, 5vw, 42px);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(216, 178, 76, .28);
  box-shadow: var(--shadow);
}
.login-card h1 { color: var(--ink); font-size: clamp(2rem, 5vw, 3.4rem); }
.login-card p { margin: 0; color: var(--muted); line-height: 1.7; }
.login-card form { display: grid; gap: 14px; }
.dashboard {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}
.dashboard-sidebar {
  display: grid;
  align-content: start;
  gap: 26px;
  padding: 24px;
  border-right: 1px solid rgba(216, 178, 76, .22);
  background: #111315;
}
.dashboard-sidebar .dark-brand {
  color: #ffffff;
}
.dashboard-sidebar nav { display: grid; gap: 8px; }
.dashboard-sidebar button {
  border: 0;
  border-radius: 8px;
  padding: 13px 14px;
  color: rgba(255, 255, 255, .78);
  background: transparent;
  text-align: left;
  font-weight: 850;
  cursor: pointer;
}
.dashboard-sidebar button:hover {
  color: #ffffff;
  background: rgba(216, 178, 76, .14);
}
.dashboard-sidebar button.is-active { color: #111315; background: var(--gold); }
.dashboard-main { padding: clamp(20px, 4vw, 42px); }
.dashboard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.dashboard-top h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 3.2rem); }
.panel-view { display: none; }
.panel-view.is-active { display: grid; gap: 20px; }
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.metric-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-card { padding: 22px; }
.metric-card span { color: var(--muted); font-weight: 800; }
.metric-card strong {
  display: block;
  margin-top: 10px;
  color: var(--red-dark);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}
.admin-card { padding: 24px; overflow-x: auto; }
.admin-card h3 { margin-top: 0; }
table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 1680px; }
table.management-table { min-width: 900px; }
th, td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}
th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--muted);
  background: #ffffff;
  font-size: .9rem;
}
tbody tr {
  transition: background .18s ease, box-shadow .18s ease;
}
tbody tr:hover {
  background: #fbf7eb;
  box-shadow: inset 3px 0 0 var(--gold);
}
.address-cell {
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.member-name-cell {
  min-width: 220px;
  font-weight: 850;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #111315;
  background: #f5edda;
  font-size: .88rem;
  font-weight: 900;
}
.status-pill.passive {
  color: #6f2424;
  background: #f5dddd;
}
.status-pill.debt {
  color: #704d00;
  background: #fff0c2;
}
.member-avatar {
  width: 54px;
  height: 54px;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  background: #f5edda;
  color: var(--muted);
  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease;
}
.member-avatar:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(17, 19, 21, .2);
}
.table-button {
  border: 0;
  border-radius: 8px;
  padding: 9px 12px;
  color: #111315;
  background: var(--green);
  font-weight: 850;
  cursor: pointer;
}
.member-edit-form {
  margin-top: 18px;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.admin-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-form.compact-form {
  margin-top: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.member-preview {
  min-height: 180px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed var(--green);
  border-radius: 8px;
  color: var(--green);
  font-weight: 900;
  background: #f8f6ef;
}
.member-preview img { width: 100%; height: 100%; object-fit: cover; }
.debt-list { display: grid; gap: 10px; margin-top: 18px; }
.debt-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-radius: 8px;
  background: #f7faf8;
}

@media (max-width: 1100px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .main-nav.is-open {
    position: absolute;
    top: 70px;
    left: 16px;
    right: 16px;
    display: grid;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: #ffffff;
    box-shadow: var(--shadow);
  }
  .main-nav.is-open a { padding: 14px; white-space: normal; }
  .hero, .membership, .media-ad, .photo-showcase, .split, .contact { grid-template-columns: 1fr; }
  .association-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: static; }
  .dashboard-sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .brand > span:last-child { max-width: 190px; line-height: 1.15; }
  .hero { min-height: auto; padding-top: 104px; }
  .search-toolbar, .association-grid, .news-grid, .apply-form, .admin-form, .metric-grid, .metric-grid.compact {
    grid-template-columns: 1fr;
  }
  .site-footer { display: grid; }
  .dashboard-sidebar nav { grid-template-columns: 1fr; }
}
