:root {
  --brand-950: #0b211b;
  --brand-900: #123f35;
  --brand-800: #175143;
  --brand-700: #1c6654;
  --brand-500: #2f8d72;
  --gold-500: #b98b3b;
  --gold-300: #d8bf88;
  --gold-200: #e8d8b4;
  --surface: #ffffff;
  --surface-soft: #fbf8f1;
  --surface-muted: #f6f4ed;
  --ink: #10261f;
  --ink-soft: #3f5d54;
  --ink-muted: #607c74;
  --frame: #c5dacf;
  --frame-strong: #91b9a8;
  --warn-bg: #fff7eb;
  --warn-border: #d8b78a;
  --warn-ink: #6d3e1f;
  --success-bg: #e9f8f1;
  --success-border: #8bc8ae;
  --success-ink: #15533f;
  --danger-bg: #fff0f0;
  --danger-border: #d49f9f;
  --danger-ink: #7b2d2d;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 20px 36px -30px rgba(11, 33, 27, 0.45);
  --shadow-panel: 0 22px 42px -34px rgba(11, 33, 27, 0.48);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Public Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1100px 460px at 82% -6%, rgba(76, 135, 109, 0.12), transparent 72%),
    radial-gradient(780px 320px at -4% -8%, rgba(175, 132, 57, 0.1), transparent 70%),
    linear-gradient(180deg, #fcfaf5 0%, #f9fdfb 68%, #f6faf8 100%);
  min-height: 100vh;
}

.skip-link {
  position: absolute;
  left: -1000px;
  top: 0;
  background: var(--brand-950);
  color: #fff;
  padding: 0.5rem 0.8rem;
  border-radius: 0 0 8px 8px;
  z-index: 90;
}

.skip-link:focus {
  left: 1rem;
}

.members-header {
  width: min(1200px, calc(100% - 2rem));
  margin: 1rem auto 0;
  border: 1px solid var(--frame);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-card);
  padding: 0.45rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.members-brand {
  display: flex;
  align-items: center;
  gap: 0.62rem;
}

.members-brand img {
  border-radius: 999px;
  border: 1px solid rgba(15, 77, 62, 0.24);
}

.members-brand p {
  margin: 0;
}

.members-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.67rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.members-brand-name {
  font-weight: 700;
  font-size: 0.88rem;
}

.members-nav {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.members-nav a {
  text-decoration: none;
  color: #174f42;
  font-weight: 600;
  font-size: 0.84rem;
  border: 1px solid transparent;
  padding: 0.42rem 0.62rem;
  border-radius: 999px;
}

.members-nav a:hover,
.members-nav a[aria-current="page"] {
  border-color: rgba(22, 96, 79, 0.24);
  background: rgba(234, 247, 241, 0.95);
}

.members-main {
  width: min(1200px, calc(100% - 2rem));
  margin: 1.3rem auto 0;
  display: grid;
  gap: 1rem;
  padding-bottom: 2rem;
}

.members-card {
  border: 1px solid var(--frame);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(252, 250, 244, 0.96) 100%);
  box-shadow: var(--shadow-card);
  padding: 1.08rem;
  position: relative;
}

.members-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(217, 190, 135, 0.22);
}

.members-hero {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 1rem;
}

.members-hero h1,
.members-hero h2,
.members-section h2,
.members-section h3,
.members-post h3,
.members-info-card h3 {
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: -0.02em;
  margin: 0;
}

.members-hero h1 {
  font-size: clamp(1.86rem, 3.2vw, 2.8rem);
  line-height: 1.08;
}

.members-hero p,
.members-intro-copy {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.62;
}

.members-price-card {
  border: 1px solid rgba(185, 139, 59, 0.36);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fbf6eb 0%, #f6efe0 100%);
  padding: 0.95rem;
  display: grid;
  gap: 0.55rem;
}

.price-line {
  display: flex;
  align-items: flex-end;
  gap: 0.38rem;
}

.price-value {
  font-family: "Fraunces", Georgia, serif;
  font-size: 2.1rem;
  line-height: 1;
  color: #173e33;
}

.price-unit {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.members-cadence {
  margin-top: 0.25rem;
  color: #2d5f50;
}

.members-list {
  margin: 0;
  padding-left: 1.05rem;
  display: grid;
  gap: 0.36rem;
  color: var(--ink-soft);
}

.members-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.members-section {
  display: grid;
  gap: 0.86rem;
}

.form-grid {
  display: grid;
  gap: 0.7rem;
}

.field-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: #1f5145;
}

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid #b8d2c9;
  border-radius: var(--radius-sm);
  padding: 0.62rem 0.72rem;
  background: #fff;
  color: #173f35;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid #1c9e7a;
  outline-offset: 2px;
}

.button-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.btn {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.54rem 0.98rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand-900);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--brand-900);
  border-color: rgba(17, 80, 66, 0.24);
}

.btn-danger {
  background: #fff;
  color: #8d1f1f;
  border-color: rgba(151, 45, 45, 0.28);
}

.btn-live {
  background: #ffffff;
  color: #0e4c3d;
  border-color: rgba(18, 88, 71, 0.36);
}

.btn-live.is-live {
  background: linear-gradient(140deg, #0f8f68, #0b6f57);
  color: #f5fffb;
  border-color: rgba(6, 71, 56, 0.65);
  box-shadow: 0 0 0 0 rgba(15, 143, 104, 0.38);
  animation: live-pulse 1.7s ease-out infinite;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.inline-link {
  color: var(--brand-900);
  text-underline-offset: 2px;
  font-weight: 600;
}

.status-box {
  border-radius: var(--radius-md);
  border: 1px solid var(--frame);
  background: #f8fdfb;
  padding: 0.8rem;
  display: grid;
  gap: 0.45rem;
}

.live-status-text {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.live-status-text.is-live {
  color: #0b6a52;
  font-weight: 700;
}

.alert {
  border-radius: 12px;
  border: 1px solid var(--frame);
  padding: 0.68rem 0.78rem;
  line-height: 1.5;
  font-size: 0.92rem;
}

.alert.success {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success-ink);
}

.alert.warn {
  background: var(--warn-bg);
  border-color: var(--warn-border);
  color: var(--warn-ink);
}

.alert.error {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger-ink);
}

.alert[hidden] {
  display: none !important;
}

.demo-admin-hint {
  margin: 0;
  border: 1px dashed rgba(184, 139, 61, 0.55);
  border-radius: 12px;
  background: #fff8eb;
  color: #6a4310;
  padding: 0.65rem 0.72rem;
}

.members-toolbar {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.55rem;
}

.members-dashboard-panels {
  position: relative;
}

.featured-setup-card {
  border: 1px solid rgba(19, 82, 67, 0.3);
  border-radius: 14px;
  background: linear-gradient(135deg, #fffef9, #f5fbf8);
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: 0.85rem;
  overflow: hidden;
}

.featured-setup-card img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  border-right: 1px solid rgba(16, 72, 58, 0.16);
  background: #f3f6f5;
}

.featured-setup-copy {
  padding: 0.82rem;
  display: grid;
  align-content: start;
  gap: 0.5rem;
}

.featured-setup-copy h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: -0.02em;
}

.featured-setup-copy p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.members-upload-note {
  font-size: 0.86rem;
  color: var(--ink-muted);
}

.members-list-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.members-list-controls .members-last-updated {
  margin: 0;
}

.members-locked-overlay {
  position: absolute;
  inset: 3.1rem 0 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(15, 40, 33, 0.56), rgba(11, 28, 23, 0.65));
  backdrop-filter: blur(3px);
  padding: 1rem;
  z-index: 3;
}

.members-locked-card {
  width: min(560px, calc(100% - 1rem));
  border: 1px solid rgba(218, 188, 129, 0.48);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(254, 250, 241, 0.96), rgba(250, 244, 229, 0.96));
  box-shadow: 0 22px 34px -24px rgba(0, 0, 0, 0.55);
  padding: 1rem;
  display: grid;
  gap: 0.58rem;
  text-align: center;
}

.members-locked-card h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: -0.02em;
}

.members-locked-card p {
  margin: 0;
  line-height: 1.55;
  color: #20473c;
}

.members-post-grid {
  display: grid;
  gap: 0.85rem;
}

.members-post {
  border: 1px solid rgba(15, 77, 62, 0.22);
  border-radius: 14px;
  background: #fff;
  padding: 0.9rem;
  display: grid;
  gap: 0.66rem;
}

.members-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.badge {
  border-radius: 999px;
  border: 1px solid rgba(16, 89, 72, 0.25);
  background: #eef8f4;
  color: #15503f;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.2rem 0.48rem;
}

.badge.short {
  background: #fff2f2;
  color: #7a2a2a;
  border-color: rgba(144, 68, 68, 0.3);
}

.members-post-body {
  display: grid;
  grid-template-columns: minmax(220px, 330px) 1fr;
  gap: 0.75rem;
}

.members-post-body img {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(16, 66, 54, 0.2);
  background: #f3f6f5;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.members-post-rows {
  display: grid;
  gap: 0.42rem;
}

.members-post-rows p,
.members-info-body {
  margin: 0;
  line-height: 1.45;
  color: var(--ink-soft);
}

.members-post-rows strong,
.members-info-body strong {
  color: var(--ink);
}

.members-empty {
  text-align: center;
  color: var(--ink-soft);
  border: 1px dashed rgba(41, 113, 93, 0.32);
  border-radius: 12px;
  background: #fcfffe;
  padding: 1rem;
}

.members-tab-helper {
  margin: -0.2rem 0 0;
  color: var(--ink-muted);
  line-height: 1.5;
}

.members-tabs {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(20, 88, 72, 0.2);
  padding-bottom: 0.6rem;
}

.members-tab {
  border: 1px solid rgba(21, 88, 71, 0.24);
  background: #fff;
  color: #174f42;
  border-radius: 999px;
  padding: 0.45rem 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.members-tab.is-active {
  background: linear-gradient(135deg, #174f42, #1d6653);
  color: #f7fffc;
  border-color: rgba(18, 70, 57, 0.66);
}

.members-tab-panel {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
  display: grid;
  gap: 0.8rem;
}

.members-tab-panel.is-active {
  opacity: 1;
  transform: translateY(0);
}

.members-panel-header {
  display: grid;
  gap: 0.35rem;
}

.members-last-updated,
.members-tab-intro {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.5;
}

.members-info-grid {
  display: grid;
  gap: 0.75rem;
}

.members-info-card {
  border: 1px solid rgba(15, 77, 62, 0.22);
  border-radius: 14px;
  background: #fff;
  padding: 0.88rem;
  display: grid;
  gap: 0.5rem;
}

.members-info-summary {
  margin: 0;
  font-weight: 600;
  color: #1d5f4d;
  line-height: 1.5;
}

.members-info-card h3.is-positive {
  color: #166444;
}

.members-info-card h3.is-negative {
  color: #8a2f2f;
}

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

.video-card {
  border: 1px solid rgba(19, 90, 73, 0.22);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  display: grid;
}

.video-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid rgba(16, 72, 58, 0.16);
  background: #f3f6f5;
}

.video-thumb-placeholder {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.24rem;
  color: #2f6656;
  background: linear-gradient(145deg, #eff7f3, #dceee7);
  border-bottom: 1px solid rgba(16, 72, 58, 0.16);
}

.video-card-body {
  padding: 0.75rem;
  display: grid;
  gap: 0.48rem;
}

.video-card-body h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: -0.01em;
}

.video-card-meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.video-card-description {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
  font-size: 0.9rem;
}

.video-open-btn {
  justify-self: flex-start;
}

.video-dialog {
  border: 1px solid rgba(16, 82, 66, 0.3);
  border-radius: 18px;
  padding: 0;
  width: min(1040px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  background: #ffffff;
  box-shadow: 0 34px 60px rgba(15, 45, 36, 0.25);
}

.video-dialog::backdrop,
.disclaimer-dialog::backdrop {
  background: rgba(10, 24, 19, 0.52);
}

.video-dialog-shell {
  padding: 0.85rem;
  display: grid;
  gap: 0.68rem;
}

.video-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.video-dialog-header h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
}

.video-dialog-meta {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.video-player-shell {
  border: 1px solid rgba(18, 80, 65, 0.24);
  border-radius: 12px;
  overflow: hidden;
  background: #0f1f1a;
}

.video-embed,
.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
  background: #000;
}

.members-intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
}

.members-intro-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.members-intro-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 28%, rgba(232, 206, 148, 0.38), transparent 55%),
    linear-gradient(160deg, rgba(16, 60, 50, 0.96), rgba(11, 30, 25, 0.98));
}

.members-intro-content {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.62rem;
  text-align: center;
  color: #f4efe3;
  max-width: 640px;
  padding: 1rem;
  animation: intro-rise 1.9s ease both;
}

.members-intro-dragonfly {
  width: min(220px, 46vw);
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
  animation: intro-hover 2.2s ease-in-out infinite alternate;
}

.members-intro-title {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  letter-spacing: 0.01em;
}

.members-intro-skip {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(6, 16, 14, 0.48);
  color: #f8f3ea;
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

.disclaimer-dialog {
  border: 1px solid rgba(20, 82, 66, 0.36);
  border-radius: 18px;
  width: min(880px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  background: #fff;
}

.disclaimer-dialog-shell {
  display: grid;
  gap: 0.75rem;
  padding: 1.1rem;
}

.disclaimer-dialog-shell h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: -0.02em;
}

.disclaimer-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.35rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

@keyframes live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(15, 143, 104, 0.42);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(15, 143, 104, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(15, 143, 104, 0);
  }
}

@keyframes intro-rise {
  0% {
    transform: translateY(22px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes intro-hover {
  0% {
    transform: translateY(-2px);
  }
  100% {
    transform: translateY(3px);
  }
}

.members-footer {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto 2rem;
  color: #34584d;
  font-size: 0.86rem;
}

.members-footer p {
  margin: 0.15rem 0;
}

.members-hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .members-hero,
  .members-grid-2,
  .featured-setup-card,
  .members-post-body,
  .members-toolbar {
    grid-template-columns: 1fr;
  }

  .featured-setup-card img {
    min-height: 180px;
    border-right: 0;
    border-bottom: 1px solid rgba(16, 72, 58, 0.16);
  }

  .members-locked-overlay {
    inset: 3.4rem 0 0;
  }

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

@media (max-width: 700px) {
  .members-header {
    border-radius: 20px;
    align-items: flex-start;
    flex-direction: column;
  }

  .members-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .video-library-grid {
    grid-template-columns: 1fr;
  }

  .video-dialog,
  .disclaimer-dialog {
    width: calc(100vw - 1rem);
  }

  .members-tabs {
    gap: 0.35rem;
  }

  .members-tab {
    width: 100%;
    text-align: left;
  }

  .members-locked-overlay {
    inset: 3.9rem 0 0;
    padding: 0.7rem;
  }

  .members-locked-card {
    width: 100%;
    padding: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
