:root {
  --navy: #0E1C2F;
  --navy-2: #152638;
  --frost: #F2F5F8;
  --copper: #B85C38;
  --gold: #C4A35A;
  --sage: #5C7A6E;
  --ink: #14202E;
  --muted: #6B7C8F;
  --line: rgba(14, 28, 47, 0.12);
  --white: #ffffff;
  --danger: #9B2C2C;
  --ok: #2F6B4F;
  --radius: 2px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: #ffffff;
  line-height: 1.55;
}

/* Public pages: lock to visible viewport (footer always on screen) */
body.site-public {
  height: var(--app-height, 100dvh);
  max-height: var(--app-height, 100dvh);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: 0;
}
body.site-public .site-header {
  flex: 0 0 auto;
  position: relative;
}
body.site-public #main {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body.site-public:not(.page-home) #main {
  background: #ffffff;
}
body.site-public:not(.page-home) #main > .page-hero {
  flex: 0 0 auto;
}
body.site-public:not(.page-home) #main > .section,
body.site-public:not(.page-home) #main > section.section {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
body.site-public .site-footer {
  flex: 0 0 auto;
  margin-top: 0;
  position: relative;
  z-index: 2;
}

.section {
  background: #ffffff;
}
.section-dark {
  background: #ffffff;
  color: var(--ink);
}
.section-dark .section-head p,
.section-dark .meta {
  color: var(--muted);
}
.section-dark .event-card,
.section-dark .feature-panel {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
img { max-width: 100%; display: block; }
a { color: var(--copper); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1rem; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy); padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background-color: #0E1C2F;
  background-image:
    linear-gradient(180deg, rgba(14, 28, 47, 0.55) 0%, rgba(14, 28, 47, 0.62) 100%),
    var(--chrome-image, none);
  background-size: cover;
  background-position: center 28%;
  background-repeat: no-repeat;
  color: var(--frost);
  border-bottom: 1px solid rgba(196, 163, 90, 0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.4rem;
  flex-wrap: nowrap;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #F2F5F8;
  text-decoration: none;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  white-space: nowrap;
}
.brand span { color: var(--gold); }
.brand:hover,
.brand:focus-visible {
  color: #ffffff;
  text-decoration: none;
}
.brand:hover span,
.brand:focus-visible span {
  color: #e0c57a;
}
.nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.15rem 0.85rem;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
}
.nav a {
  color: rgba(242, 245, 248, 0.9);
  text-decoration: none;
  font-size: 0.88rem;
  white-space: nowrap;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--gold);
}
.nav .btn {
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(242,245,248,.35);
  color: var(--frost);
  padding: .4rem .7rem;
  font: inherit;
}
.nav-panel-head,
.nav-close,
.nav-backdrop {
  display: none;
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-block; flex-shrink: 0; }
  .header-inner { flex-wrap: nowrap; position: relative; }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(8, 14, 24, 0.55);
    z-index: 80;
  }
  .nav-backdrop[hidden] { display: none !important; }

  .nav {
    display: none;
    position: fixed;
    top: 3.75rem;
    right: 0.75rem;
    left: auto;
    width: min(18rem, calc(100vw - 1.5rem));
    max-height: none;
    height: auto;
    overflow: visible;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.05rem;
    padding: 0.55rem 0.6rem 0.7rem;
    background: #152638;
    border: 1px solid rgba(196, 163, 90, 0.35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    z-index: 90;
  }
  .nav.is-open { display: flex; }
  .nav-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.1rem 0.3rem 0.4rem;
    margin-bottom: 0.15rem;
    border-bottom: 1px solid rgba(242, 245, 248, 0.12);
    color: var(--gold);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
  .nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    background: transparent;
    color: #F2F5F8;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
  }
  .nav a,
  .nav .btn {
    width: 100%;
    text-align: left;
    padding: 0.48rem 0.65rem;
    border-radius: 2px;
    font-size: 0.9rem;
    line-height: 1.25;
  }
  .nav a:hover,
  .nav a[aria-current="page"] {
    background: rgba(196, 163, 90, 0.12);
  }
  .nav form { margin: 0.2rem 0 0; }
  .nav .btn-primary {
    margin-top: 0.15rem;
    justify-content: flex-start;
  }
  body.nav-open { overflow: hidden; }
}

/* Full-viewport home — hero fills remaining space above pinned footer */
body.page-home {
  background: #0E1C2F;
  height: auto;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
}
body.page-home .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-image: none;
  background-color: rgba(14, 28, 47, 0.55);
  backdrop-filter: blur(8px);
  border-bottom-color: rgba(196, 163, 90, 0.2);
}
body.page-home #main {
  overflow: visible;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  display: block;
}
body.page-home #main > .container {
  display: none; /* hide flash wrappers that could push layout */
}

.home-hero {
  position: relative;
  flex: none;
  min-height: calc(var(--app-height, 100dvh) - 3.5rem);
  height: auto;
  display: flex;
  align-items: flex-end;
  color: #F2F5F8;
  overflow: hidden;
  background-color: #0E1C2F;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}
.home-hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  padding: 5.5rem 0 3.25rem;
  max-width: 38rem;
  margin-left: max(1rem, calc((100% - var(--max)) / 2));
}
.home-hero .eyebrow {
  color: #C4A35A;
  margin-bottom: 0.85rem;
}
.home-hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  line-height: 1.08;
  color: #fff !important;
}
.home-hero .lede {
  margin: 0 0 1.75rem;
  font-size: 1.1rem;
  line-height: 1.55;
  color: rgba(242, 245, 248, 0.92);
  max-width: 32rem;
}
.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.btn-outline-light {
  background: transparent;
  color: #F2F5F8 !important;
  border: 1px solid rgba(242, 245, 248, 0.55);
}
.btn-outline-light:hover {
  border-color: #C4A35A;
  color: #C4A35A !important;
}
.home-explain {
  background: #fff;
  color: var(--ink);
  padding: 2.5rem 0 2.75rem;
}
.home-explain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem 2rem;
}
.home-explain h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
  margin: 0 0 0.5rem;
}
.home-explain p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}
@media (max-width: 800px) {
  .home-explain {
    padding: 1.75rem 0 2rem;
  }
  .home-explain-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 700px) {
  .home-hero {
    background-position: 70% center;
    align-items: flex-end;
  }
  .home-hero-inner {
    padding: 3.6rem 0 max(0.85rem, env(safe-area-inset-bottom, 0px) + 0.75rem);
    margin-left: auto;
    margin-right: auto;
    width: min(100% - 1.5rem, var(--max));
  }
  .home-hero .eyebrow {
    margin-bottom: 0.4rem;
    font-size: 0.68rem;
  }
  .home-hero h1 {
    font-size: clamp(2rem, 9vw, 2.6rem);
    margin-bottom: 0.4rem;
  }
  .home-hero .lede {
    font-size: 0.86rem;
    line-height: 1.4;
    margin-bottom: 0.7rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .home-hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
  }
  .home-hero-actions .btn {
    width: 100%;
    padding: 0.68rem 1rem;
  }
}

.hero {
  position: relative;
  min-height: min(92vh, 760px);
  display: grid;
  align-items: end;
  color: var(--frost);
  background:
    linear-gradient(180deg, rgba(14,28,47,.25) 0%, rgba(14,28,47,.78) 55%, rgba(14,28,47,.92) 100%),
    radial-gradient(1200px 600px at 70% 20%, rgba(184,92,56,.35), transparent 55%),
    linear-gradient(135deg, #0E1C2F, #1a3348 40%, #243d2f);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M0 60h120M60 0v120' stroke='%23ffffff' stroke-opacity='0.04'/%3E%3C/svg%3E");
  opacity: .8;
  pointer-events: none;
}
.hero-inner { position: relative; padding: 5rem 0 3.5rem; max-width: 40rem; }
.eyebrow {
  font-size: .75rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  margin-bottom: .35rem;
  font-variation-settings: "SOFT" 40, "WONK" 1;
}
.hero .lede { font-size: 1.15rem; color: rgba(242,245,248,.88); max-width: 32rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem;
  padding: .85rem 1.25rem;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border-radius: var(--radius);
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.btn-primary { background: var(--copper); color: #fff; }
.btn-primary:hover { background: #9e4b2c; color: #fff; transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--frost); border-color: rgba(242,245,248,.45); }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }
.btn-dark { background: var(--navy); color: var(--frost); }
.btn-dark:hover { background: #183049; color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-sm { padding: .5rem .85rem; font-size: .9rem; }

.section { padding: 1rem 0 1.25rem; background: #ffffff; }
.section-tight { padding: 0.75rem 0; }
.section-dark { background: #ffffff; color: var(--ink); }
.section-dark a { color: var(--copper); }
.section-head { max-width: 38rem; margin-bottom: 2rem; }
.section-head p { color: var(--muted); }
.section-dark .section-head p { color: var(--muted); }

.grid-3 { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); }
.grid-2 { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, 1fr); }
.communities-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 22rem));
  gap: 1.35rem;
  justify-content: center;
  align-items: stretch;
  max-width: 48rem;
  margin-inline: auto;
}
.community-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: left;
}
.community-card p:last-of-type { flex: 1; }
.community-card-price {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: var(--copper, #b08a3c);
}
.community-card .btn { margin-top: 1rem; align-self: flex-start; }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .communities-pair { grid-template-columns: 1fr; max-width: 26rem; }
}

.event-card, .feature-panel, .dir-card, .post-card, .admin-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.25rem;
}
.section-dark .event-card, .section-dark .feature-panel {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.event-card h3, .feature-panel h3 { font-size: 1.35rem; }
.meta { color: var(--muted); font-size: .9rem; margin-bottom: .75rem; }
.section-dark .meta { color: var(--muted); }
.price { font-family: var(--font-display); color: var(--copper); font-size: 1.15rem; }

.feature-club {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 860px) { .feature-club { grid-template-columns: 1fr; } }
.feature-visual {
  min-height: 280px;
  background:
    linear-gradient(160deg, rgba(184,92,56,.55), rgba(14,28,47,.2)),
    repeating-linear-gradient(-12deg, transparent, transparent 12px, rgba(196,163,90,.08) 12px, rgba(196,163,90,.08) 13px);
  border: 1px solid rgba(196,163,90,.35);
  display: grid; place-items: end start;
  padding: 1.5rem;
  color: var(--frost);
}
.feature-visual strong { font-family: var(--font-display); font-size: 1.8rem; display: block; }

.why-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 900px) { .why-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why-list { grid-template-columns: 1fr; } }
.why-item {
  border-top: 2px solid var(--gold);
  padding-top: 1rem;
}
.why-item h3 { font-size: 1.15rem; }

.form { display: grid; gap: 1rem; max-width: 36rem; }
.form-wide { max-width: 44rem; }
.form label { display: grid; gap: .35rem; font-size: .92rem; font-weight: 600; }
.form input, .form select, .form textarea {
  font: inherit;
  padding: .7rem .8rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
}
.form textarea { min-height: 72px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.checkbox { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; }
.checkbox input { margin-top: .25rem; }
.form label.checkbox {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.7rem;
  font-weight: 500;
  line-height: 1.45;
  max-width: 36rem;
}
.form label.checkbox input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.2rem 0 0;
  accent-color: var(--copper);
}
.form label.checkbox span {
  flex: 1 1 auto;
  min-width: 0;
}
.form label.checkbox a {
  display: inline;
  white-space: nowrap;
}
.honeypot { position: absolute; left: -10000px; opacity: 0; height: 0; overflow: hidden; }

.plan-choice { border: 0; margin: 0 0 1.25rem; padding: 0; }
.plan-choice legend {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}
.plan-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
.plan-choice-card {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.plan-choice-card:hover,
.plan-choice-card.is-selected {
  border-color: var(--copper);
  box-shadow: 0 0 0 1px rgba(184, 92, 56, 0.25);
}
.plan-choice-card input { margin: 0 0 0.15rem; }
.plan-choice-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
}
.plan-choice-price {
  font-weight: 600;
  color: var(--copper);
}
.plan-choice-desc {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 400;
}
@media (max-width: 640px) {
  .plan-choice-grid { grid-template-columns: 1fr; }
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 2rem 2.5rem;
  align-items: start;
}
.contact-info {
  display: grid;
  gap: 1.5rem;
}
.contact-channel h2 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}
.contact-channel p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.contact-email {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--copper);
  text-decoration: none;
}
.contact-email:hover { color: var(--navy); text-decoration: underline; }
.contact-note {
  margin-top: 0.75rem !important;
  font-size: 0.9rem !important;
  line-height: 1.45;
}
.contact-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}
.btn-facebook {
  background: #1877F2;
  color: #fff;
  border-color: #1877F2;
}
.btn-facebook:hover {
  background: #166fe5;
  color: #fff;
  transform: translateY(-1px);
}
.btn-whatsapp {
  background: #128C7E;
  color: #fff;
  border-color: #128C7E;
}
.btn-whatsapp:hover {
  background: #0f7a6e;
  color: #fff;
  transform: translateY(-1px);
}
.contact-form-panel {
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.35rem 1.35rem 1.5rem;
}
.contact-form-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.contact-form { max-width: none; }
.contact-form textarea { min-height: 140px; }
@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; gap: 1.5rem; }
}

.flash {
  padding: .85rem 1rem;
  margin: 1rem 0;
  border: 1px solid var(--line);
  background: #fff;
}
.flash-success { border-color: var(--ok); color: var(--ok); }
.flash-error { border-color: var(--danger); color: var(--danger); }

.page-hero {
  background: #ffffff;
  color: var(--ink);
  padding: 1.1rem 0 0.75rem;
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow { color: var(--copper); margin-bottom: 0.35rem; }
.page-hero h1 { color: var(--navy); font-size: clamp(1.75rem, 4vw, 2.35rem); margin-bottom: 0.35rem; }
.page-hero p { color: var(--muted); max-width: 36rem; margin-bottom: 0; font-size: 0.95rem; }

.site-footer {
  background-color: #0A1420;
  background-image:
    linear-gradient(180deg, rgba(10, 20, 32, 0.55) 0%, rgba(10, 20, 32, 0.68) 100%),
    var(--chrome-image, none);
  background-size: cover;
  background-position: center 70%;
  background-repeat: no-repeat;
  color: rgba(242,245,248,.78);
  padding: 0.55rem 0 0.5rem;
  margin-top: 0;
}
.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1rem;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
}
.footer-legal a {
  font-size: 0.82rem;
  line-height: 1.2;
  white-space: nowrap;
}
.site-footer a { color: var(--gold); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 1rem;
  font-size: .75rem;
  margin-left: auto;
}
.footer-credit a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.footer-credit a:hover { color: #fff; }

@media (max-width: 760px) {
  .site-header .header-inner {
    min-height: 3rem;
  }
  .page-hero {
    padding: 0.7rem 0 0.45rem;
  }
  .page-hero h1 {
    font-size: 1.55rem;
  }
  .page-hero p {
    font-size: 0.85rem;
  }
  .section {
    padding: 0.55rem 0 0.65rem;
  }
  .event-card, .feature-panel {
    padding: 0.85rem;
  }
  .site-footer {
    padding: 0.4rem 0 max(0.35rem, env(safe-area-inset-bottom, 0px));
  }
  .footer-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
  .footer-legal {
    gap: 0.25rem 0.75rem;
  }
  .footer-legal a { font-size: 0.72rem; }
  .footer-copy {
    margin-left: 0;
    justify-content: flex-start;
    font-size: 0.65rem;
    gap: 0.15rem 0.65rem;
    width: 100%;
  }
}

/* Member / admin shells */
.app-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.app-side {
  background: var(--navy);
  color: var(--frost);
  padding: 1.5rem 1rem;
}
.app-side--chrome {
  background-color: var(--navy);
  background-image:
    linear-gradient(180deg, rgba(14, 28, 47, 0.72) 0%, rgba(14, 28, 47, 0.82) 100%),
    var(--member-menu-image, none);
  background-size: cover;
  background-position: center left;
  background-repeat: no-repeat;
}
.app-side a {
  display: block;
  color: rgba(242,245,248,.85);
  text-decoration: none;
  padding: .45rem .6rem;
  border-radius: var(--radius);
  margin-bottom: .15rem;
}
.app-side a:hover, .app-side a.is-active { background: rgba(196,163,90,.15); color: var(--gold); }
.side-nav-group + .side-nav-group {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(242, 245, 248, 0.14);
}
.side-nav-label {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 208, 144, 0.75);
  padding: 0 0.6rem 0.35rem;
}
.side-nav-logout { margin-top: 0.75rem; }
.app-main { padding: 1.5rem; }
.app-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.5rem; gap: 1rem; flex-wrap: wrap;
}
@media (max-width: 860px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-side { position: sticky; top: 0; z-index: 20; }
  .side-nav { display: none; }
  .side-nav.is-open { display: block; }
}

.member-card {
  max-width: 420px;
  background: linear-gradient(145deg, #152638, #0E1C2F 60%, #243d2f);
  color: var(--frost);
  border: 1px solid rgba(196,163,90,.45);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.member-card::after {
  content: "";
  position: absolute; right: -30px; bottom: -30px;
  width: 140px; height: 140px;
  border: 1px solid rgba(196,163,90,.25);
  border-radius: 50%;
}
.member-card .brand-mini { letter-spacing: .18em; text-transform: uppercase; font-size: .7rem; color: var(--gold); }
.qr-box {
  margin-top: 1rem;
  background: #fff;
  padding: .5rem;
  width: fit-content;
}
.table { width: 100%; border-collapse: collapse; background: #fff; }
.table th, .table td { border-bottom: 1px solid var(--line); padding: .7rem; text-align: left; vertical-align: top; font-size: .92rem; }
.table th { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.badge {
  display: inline-block;
  padding: .15rem .45rem;
  font-size: .75rem;
  border: 1px solid currentColor;
  border-radius: 999px;
}
.badge-ok { color: var(--ok); }
.badge-warn { color: var(--copper); }
.badge-bad { color: var(--danger); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: 1fr 1fr; } }
.stat {
  background: #fff;
  border: 1px solid var(--line);
  padding: 1rem;
}
.stat strong { display: block; font-family: var(--font-display); font-size: 1.8rem; }

.verify-panel {
  max-width: 420px;
  margin: 3rem auto;
  background: #fff;
  border: 1px solid var(--line);
  padding: 2rem;
  text-align: center;
}

/* Forum accordion */
.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;
}
.forum-compose {
  max-width: 26rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  background: #fff;
}
.forum-compose-head {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
  color: var(--navy);
}
.forum-compose textarea { min-height: 4.5rem; }
.forum-compose-photo { font-size: 0.88rem; }
.forum-hint { margin: 0 0 1rem; max-width: 40rem; }
.forum-toolbar-right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.forum-accordion { display: flex; flex-direction: column; gap: 0.45rem; }
.forum-item {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}
.forum-item-media {
  display: none;
  aspect-ratio: 16 / 10;
  background: #f3f1ec;
  overflow: hidden;
}
.forum-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.forum-item-media.is-logo {
  display: none;
  place-items: center;
  padding: 1rem;
}
.forum-item-media.is-logo img {
  width: auto;
  height: auto;
  max-width: 42%;
  max-height: 42%;
  object-fit: contain;
}
.forum-accordion.is-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
  align-items: start;
}
.forum-accordion.is-grid .forum-item {
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(20, 30, 40, 0.04);
}
.forum-accordion.is-grid .forum-item-media {
  display: block;
}
.forum-accordion.is-grid .forum-item-media.is-logo {
  display: grid;
}
.forum-accordion.is-grid .forum-item-head {
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.7rem 0.75rem 0.8rem;
}
.forum-accordion.is-grid .forum-avatar {
  width: 32px;
  height: 32px;
}
.forum-accordion.is-grid .forum-item-title {
  font-size: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.forum-accordion.is-grid .forum-item-main .meta {
  font-size: 0.78rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.forum-accordion.is-grid .forum-chevron {
  margin-left: auto;
}
.forum-accordion.is-grid .forum-item-panel {
  padding: 0.7rem 0.75rem 0.85rem;
}
.forum-accordion.is-grid .forum-attach {
  max-width: 100%;
}
.forum-accordion.is-grid .forum-quick-row {
  flex-direction: column;
  align-items: stretch;
}
.forum-item-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  cursor: pointer;
  user-select: none;
}
.forum-item-head:hover { background: rgba(14, 28, 47, 0.03); }
.forum-item-main { flex: 1 1 auto; min-width: 0; }
.forum-item-title {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--navy);
  text-decoration: none;
  line-height: 1.25;
}
.forum-item-title:hover { color: var(--copper); text-decoration: underline; }
.forum-chevron {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex: 0 0 auto;
  margin-right: 0.25rem;
}
.forum-item.is-open .forum-chevron {
  transform: rotate(-135deg);
  margin-top: 0.25rem;
}
.forum-item-panel {
  border-top: 1px solid var(--line);
  padding: 0.85rem 1rem 1rem;
  background: #fafbfc;
}
.forum-item-panel[hidden] { display: none !important; }
.forum-item-body { margin-bottom: 0.85rem; }
.forum-item-body p { margin: 0 0 0.5rem; }
.forum-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  background: var(--line);
}
.forum-avatar-sm { width: 32px; height: 32px; }
.forum-avatar-fallback {
  display: inline-grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}
.forum-reply,
.forum-reply-full,
.forum-topic-author {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}
.forum-reply { margin-bottom: 0.65rem; }
.forum-reply-content { flex: 1 1 auto; min-width: 0; }
.forum-reply-content p { margin: 0.2rem 0 0; }
.forum-attach {
  display: block;
  max-width: min(100%, 420px);
  margin: 0.5rem 0;
  border: 1px solid var(--line);
}
.forum-quick-reply { margin-top: 0.75rem; }
.forum-quick-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.forum-quick-row input {
  flex: 1 1 auto;
  margin: 0;
}
.forum-topic-author { margin-bottom: 0.85rem; }
.forum-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}
.forum-search {
  display: flex;
  gap: 0.45rem;
  flex: 1 1 16rem;
  max-width: 28rem;
  margin: 0;
}
.forum-search input[type="search"] {
  flex: 1 1 auto;
  margin: 0;
}
.btn-forum-new {
  background: #1f7a3f;
  color: #fff !important;
  border: 1px solid #1f7a3f;
  padding: 0.65rem 1.1rem;
  font-weight: 600;
}
.btn-forum-new:hover {
  background: #176433;
  border-color: #176433;
  color: #fff !important;
}
.forum-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.forum-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.forum-chip {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.85rem;
}
.forum-chip.is-active,
.forum-chip:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.forum-sort {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}
.forum-sort select { margin: 0; min-width: 10rem; }
.forum-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.forum-extra-links {
  margin-top: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.35rem;
}
.forum-inline-form { display: inline; margin: 0; }
.btn-linkish {
  background: none;
  border: none;
  padding: 0;
  color: var(--copper);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}
.forum-modal[hidden] { display: none !important; }
.forum-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.forum-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 28, 47, 0.55);
}
.forum-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 28rem);
  max-height: min(90vh, 40rem);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.1rem 1.15rem 1.25rem;
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
}
.forum-modal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.forum-modal-top h2 {
  margin: 0;
  font-size: 1.35rem;
}
.forum-modal-x {
  border: none;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}
.forum-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
body.forum-modal-open { overflow: hidden; }

/* Community grid (light, 45days-style layout) */
.community-page { margin-bottom: 2rem; }
.comm-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.comm-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  flex: 1 1 18rem;
}
.comm-search {
  flex: 1 1 12rem;
  min-width: 10rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
}
.comm-filters select {
  min-width: 9rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
}
.comm-toolbar-right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.comm-view-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.comm-view-btn {
  border: none;
  background: #fff;
  padding: 0.45rem 0.85rem;
  font: inherit;
  cursor: pointer;
  color: var(--muted);
}
.comm-view-btn.is-active {
  background: var(--copper);
  color: #fff;
}
.comm-info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.comm-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.community-page--saved .saved-toolbar {
  margin-bottom: 0.75rem;
}
.comm-grid--saved {
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 0.65rem;
}
.comm-grid--saved .comm-card-media {
  aspect-ratio: 5 / 4;
}
.comm-grid--saved .comm-card-body {
  padding: 0.5rem 0.55rem 0.6rem;
  gap: 0.35rem;
}
.comm-grid--saved .comm-card-title {
  font-size: 0.88rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.comm-grid--saved .comm-card-meta {
  gap: 0.35rem;
}
.comm-grid--saved .comm-card-meta .meta {
  font-size: 0.72rem;
}
.comm-grid--saved .comm-tag {
  font-size: 0.7rem;
  padding: 0.12rem 0.4rem;
}
.comm-grid--saved .comm-card-actions .btn {
  padding: 0.28rem 0.55rem;
  font-size: 0.8rem;
}
.comm-grid--saved .comm-card-media.is-logo {
  padding: 0.65rem;
}
.comm-grid--saved .comm-card-media.is-logo img {
  max-width: 42%;
  max-height: 42%;
}
.comm-grid.is-list {
  grid-template-columns: 1fr;
}
.comm-grid.is-list .comm-card {
  display: grid;
  grid-template-columns: minmax(7rem, 11rem) 1fr;
  align-items: stretch;
}
.comm-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(20, 30, 40, 0.04);
}
.comm-card-media {
  aspect-ratio: 1 / 1;
  background: #f3f1ec;
  overflow: hidden;
}
.comm-grid.is-list .comm-card-media {
  aspect-ratio: auto;
  min-height: 100%;
}
.comm-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.comm-card-media.is-logo,
.comm-modal-media.is-logo {
  display: grid;
  place-items: center;
  background: #f6f3ee;
  padding: 1.25rem;
}
.comm-card-media.is-logo img,
.comm-modal-media.is-logo img {
  width: auto;
  height: auto;
  max-width: 46%;
  max-height: 46%;
  object-fit: contain;
}
.comm-card-media.is-empty,
.comm-modal-media.is-empty {
  display: grid;
  place-items: center;
}
.comm-card-placeholder {
  color: var(--muted);
  font-size: 0.9rem;
}
.comm-edit-remove {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
}
.comm-card-body {
  padding: 0.85rem 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}
.comm-card-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  font-family: var(--font-display);
}
.comm-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.comm-price-like {
  color: var(--copper);
  font-weight: 600;
  font-size: 0.95rem;
}
.comm-status {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #eef6ef;
  color: #2f6b3a;
  font-size: 0.78rem;
  font-weight: 600;
}
.comm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.comm-tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #f3f1ec;
  color: #3d4654;
  font-size: 0.78rem;
}
.comm-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}
.comm-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin: 1.5rem 0 0.4rem;
}
.comm-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: inherit;
  text-decoration: none;
  font-size: 0.9rem;
}
.comm-page-btn.is-active {
  background: var(--copper);
  border-color: var(--copper);
  color: #fff;
}
.comm-page-btn.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}
.comm-page-label {
  text-align: center;
  margin: 0 0 1rem;
}
.comm-modal[hidden] { display: none !important; }
.comm-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.comm-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 28, 47, 0.45);
}
.comm-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 34rem);
  max-height: min(92vh, 44rem);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1.15rem 1.25rem;
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
}
.comm-modal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.comm-modal-top h2 { margin: 0; font-size: 1.35rem; }
.comm-modal-x {
  border: none;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}
.comm-modal-media {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.85rem;
  background: #f3f1ec;
  max-height: 16rem;
}
.comm-modal-media img {
  width: 100%;
  max-height: 16rem;
  object-fit: cover;
  display: block;
}
.comm-modal-meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 0.55rem;
}
.comm-modal-body {
  white-space: pre-wrap;
  margin-bottom: 0.85rem;
  line-height: 1.5;
}
.comm-modal-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}
.comm-comments h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}
.comm-comment {
  border-left: 2px solid var(--line);
  padding: 0.35rem 0.75rem;
  margin: 0.45rem 0;
}
.comm-comment p { margin: 0.15rem 0 0; }
.comm-comment-form { margin-top: 0.75rem; max-width: none; }
.comm-comment-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.comm-comment-row input {
  flex: 1 1 auto;
  margin: 0;
}
.comm-comment-row .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.notify-bell {
  position: relative;
  color: inherit;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.25rem 0.45rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}
.notify-bell.has-unread {
  border-color: var(--copper);
  color: var(--copper);
}
.notify-badge {
  display: inline-block;
  margin-left: 0.3rem;
  min-width: 1.15rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: var(--copper);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}
.notify-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  user-select: none;
}
.notify-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.notify-switch-ui {
  width: 2.6rem;
  height: 1.4rem;
  border-radius: 999px;
  background: #c9c5bc;
  position: relative;
  transition: background 0.2s ease;
  flex: 0 0 auto;
}
.notify-switch-ui::after {
  content: '';
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.notify-switch input:checked + .notify-switch-ui {
  background: var(--copper);
}
.notify-switch input:checked + .notify-switch-ui::after {
  transform: translateX(1.2rem);
}
.notify-switch-label {
  font-weight: 600;
}
.activity-item.is-unread {
  border-color: rgba(184, 92, 56, 0.45);
  box-shadow: inset 3px 0 0 var(--copper);
}
@media (max-width: 600px) {
  .comm-comment-row {
    flex-direction: column;
    align-items: stretch;
  }
}
.comm-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
body.comm-modal-open { overflow: hidden; }

.activity-page {
  max-width: 36rem;
}
.activity-page > .meta {
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}
.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.activity-item {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0.4rem 0;
}
.activity-label {
  font-weight: 500;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--ink);
}
.activity-item .meta {
  font-size: 0.72rem;
  margin: 0.1rem 0 0;
  line-height: 1.3;
}
.activity-time {
  margin-top: 0.1rem !important;
  font-size: 0.68rem !important;
  opacity: 0.85;
}

@media (max-width: 1100px) {
  .comm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .comm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comm-grid.is-list .comm-card {
    grid-template-columns: 1fr;
  }
  .comm-grid--saved {
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  }
}
@media (max-width: 520px) {
  .comm-grid { grid-template-columns: 1fr; }
  .comm-grid--saved {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .forum-compose { max-width: none; }
  .forum-quick-row { flex-direction: column; align-items: stretch; }
  .forum-toolbar { align-items: stretch; }
  .forum-toolbar-right { width: 100%; justify-content: space-between; }
  .forum-search { max-width: none; }
  .forum-accordion.is-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 420px) {
  .forum-accordion.is-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.reveal { opacity: 0; transform: translateY(12px); animation: rise .7s ease forwards; }
.reveal:nth-child(2) { animation-delay: .08s; }
.reveal:nth-child(3) { animation-delay: .16s; }
@keyframes rise {
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; animation: none; }
}

/* Event flyers + lightbox */
.event-card--has-flyer {
  padding-top: 0;
  overflow: hidden;
}
.event-flyer {
  position: relative;
  display: block;
  margin: 0 0 1rem;
  background: #0E1C2F;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.event-card .event-flyer {
  margin-left: -1.25rem;
  margin-right: -1.25rem;
  width: calc(100% + 2.5rem);
  max-width: none;
}
.event-flyer img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 22rem;
  object-fit: contain;
  object-position: center top;
  background: #0E1C2F;
  transition: transform .35s ease, opacity .25s ease;
}
.event-flyer--large {
  margin: 0;
  border: 1px solid var(--line);
  max-width: 28rem;
}
.event-flyer--large img {
  max-height: min(70vh, 40rem);
}
.event-flyer-hint {
  position: absolute;
  left: .75rem;
  bottom: .75rem;
  padding: .35rem .65rem;
  font-size: .75rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #F2F5F8;
  background: rgba(14, 28, 47, .72);
  border: 1px solid rgba(232, 208, 144, .35);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.event-flyer:hover img,
.event-flyer:focus-visible img {
  transform: scale(1.02);
  opacity: .96;
}
.event-flyer:hover .event-flyer-hint,
.event-flyer:focus-visible .event-flyer-hint {
  opacity: 1;
  transform: none;
}
.event-show {
  display: grid;
  grid-template-columns: minmax(0, 28rem) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  max-width: 56rem;
}
.event-show-copy { max-width: 36rem; }
@media (max-width: 860px) {
  .event-show { grid-template-columns: 1fr; }
  .event-flyer--large { max-width: none; }
}

.lf-lightbox[hidden] { display: none !important; }
.lf-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.lf-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 24, .88);
  border: 0;
  cursor: zoom-out;
}
.lf-lightbox-dialog {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 56rem);
  max-height: 92vh;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(232, 208, 144, .28);
  background: #0a121c;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
}
.lf-lightbox-dialog img {
  display: block;
  max-width: 96vw;
  max-height: calc(92vh - 2.5rem);
  width: auto;
  height: auto;
  margin: 0 auto;
}
.lf-lightbox-caption {
  margin: 0;
  padding: .55rem .9rem;
  color: rgba(242, 245, 248, .85);
  font-size: .9rem;
  text-align: center;
}
.lf-lightbox-close {
  position: absolute;
  top: .4rem;
  right: .4rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(242, 245, 248, .35);
  border-radius: 0;
  background: rgba(14, 28, 47, .75);
  color: #F2F5F8;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.lf-lightbox-close:hover,
.lf-lightbox-close:focus-visible {
  background: rgba(184, 92, 56, .85);
  border-color: transparent;
}
body.lf-lightbox-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .event-flyer img,
  .event-flyer-hint {
    transition: none;
  }
}

.event-card h3 a {
  color: inherit;
  text-decoration: none;
}
.event-card h3 a:hover {
  color: var(--copper, #b08a3c);
}
.event-card--list {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.event-card--list .event-flyer {
  margin-bottom: 1rem;
}
.event-card--list .event-flyer-hint { display: none; }
.event-card--list .price { margin: .35rem 0 .85rem; }
.event-card-cta { margin: auto 0 0; }

.event-hero-when {
  color: #e8d090 !important;
  font-size: 1.05rem;
  letter-spacing: .02em;
  margin-bottom: .55rem;
}
.event-show-desc { margin-top: 0; }
.event-back { margin-top: 1.5rem; }

.event-actions-panel {
  margin-top: 1.35rem;
  display: grid;
  gap: 1rem;
}
.event-icon-row,
.event-share-icons {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}
.event-save-row { margin: 0; }
.event-save-form { margin: 0; display: inline; }
.event-save-form--reserve {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: .55rem;
}
.event-guests-label {
  display: grid;
  gap: .25rem;
  margin: 0;
  font-size: .8rem;
  color: var(--muted);
  font-weight: 600;
}
.event-guests-input {
  width: 4.5rem;
  padding: .4rem .5rem;
  border: 1px solid rgba(184, 92, 56, .35);
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.event-save-link {
  display: inline-flex;
  align-items: center;
  padding: .45rem .85rem;
  border: 1px solid rgba(184, 92, 56, .35);
  background: rgba(184, 92, 56, .1);
  color: var(--copper);
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.event-save-link:hover,
.event-save-link:focus-visible {
  background: var(--copper);
  border-color: var(--copper);
  color: #fff;
}

.event-share-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .7rem;
}
.event-share-label {
  color: var(--muted);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.event-soc {
  width: 2.55rem;
  height: 2.55rem;
  display: inline-grid;
  place-items: center;
  border: 0;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.event-soc:hover,
.event-soc:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.06);
}
.event-soc--facebook { background: #1877F2; }
.event-soc--x { background: #111111; }
.event-soc--whatsapp { background: #25D366; }
.event-soc--google {
  background: #fff;
  color: #4285F4;
  border: 1px solid rgba(14, 28, 47, .12);
}
.event-soc--apple {
  background: #111111;
  color: #fff;
}
.event-soc--copper {
  background: rgba(184, 92, 56, .12);
  color: var(--copper);
  border: 1px solid rgba(184, 92, 56, .3);
}
.event-soc--copper:hover,
.event-soc--copper:focus-visible {
  background: var(--copper);
  border-color: var(--copper);
  color: #fff;
  filter: none;
}
.event-soc--copy {
  background: rgba(184, 92, 56, .12);
  color: var(--copper);
  border: 1px solid rgba(184, 92, 56, .28);
}
.event-soc--copy:hover,
.event-soc--copy:focus-visible {
  background: var(--copper);
  border-color: var(--copper);
  color: #fff;
  filter: none;
}

