:root {
  --ink: #17212b;
  --muted: #66717f;
  --line: #dfe7eb;
  --surface: #ffffff;
  --soft: #f5f8f7;
  --green: #167a5b;
  --green-dark: #0f5943;
  --teal: #1b8a9a;
  --coral: #e7684a;
  --gold: #f2b84b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav-inner {
  width: min(1120px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.brand:hover,
.brand:focus {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  width: 28px;
  height: 36px;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #495461;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--green);
}

.nav-cta {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.button_to {
  margin: 0;
}

.nav-button {
  padding: 0;
  border: 0;
  color: #495461;
  background: transparent;
  font: inherit;
  font-weight: 700;
}

.nav-button:hover,
.nav-button:focus {
  color: var(--green);
}

.flash {
  width: min(1120px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #385046;
  background: #edf8f3;
  font-weight: 750;
}

.flash-alert {
  color: #99452f;
  border-color: #f5cabd;
  background: #ffe8df;
}

.landing-page {
  overflow: hidden;
}

.hero-section {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding: 48px 0 72px;
  background:
    linear-gradient(135deg, rgba(22, 122, 91, 0.08), rgba(231, 104, 74, 0.08)),
    #f9fbfa;
}

.hero-inner,
.content-wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-inner {
  display: flex;
  justify-content: center;
  text-align: center;
}

.hero-copy {
  max-width: 880px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 20px;
  font-size: clamp(48px, 9vw, 92px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 850;
}

.hero-lede {
  max-width: 640px;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 30px;
  color: #3f4c57;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  box-shadow: 0 8px 18px rgba(23, 33, 43, 0.08);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.btn-primary,
.btn-primary:focus {
  color: #fff;
  border-color: var(--green);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0)),
    var(--green);
}

.btn-primary:hover {
  color: #fff;
  border-color: var(--green-dark);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0)),
    var(--green-dark);
  box-shadow: 0 12px 24px rgba(15, 89, 67, 0.2);
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-secondary,
.btn-secondary:focus {
  color: #264339;
  border-color: #cfe0da;
  background: #fff;
}

.btn-secondary:hover {
  color: var(--green-dark);
  border-color: #b8d8cb;
  background: #f3fbf7;
  box-shadow: 0 12px 22px rgba(35, 55, 68, 0.1);
  transform: translateY(-1px);
  text-decoration: none;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.trust-row span {
  padding: 8px 12px;
  border: 1px solid #d8e6e2;
  border-radius: 999px;
  color: #385046;
  background: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 800;
}

.exchange-visual {
  min-height: 472px;
  padding: 18px;
  border: 1px solid #cfded9;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(35, 55, 68, 0.16);
}

.visual-header {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #56616f;
  font-size: 13px;
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
}

.window-dot:nth-child(2) {
  background: var(--gold);
}

.window-dot:nth-child(3) {
  margin-right: 8px;
  background: var(--teal);
}

.credit-balance {
  min-height: 150px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)),
    var(--ink);
}

.credit-balance span {
  font-size: 14px;
  font-weight: 800;
  color: #d5e8e0;
}

.credit-balance strong {
  font-size: 68px;
  line-height: 0.95;
  letter-spacing: 0;
}

.activity-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.activity-item {
  min-height: 82px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.activity-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.activity-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
}

.lead-icon {
  background: var(--teal);
}

.social-icon {
  background: var(--coral);
}

.match-icon {
  background: var(--green);
}

.credit-pill {
  min-width: 50px;
  padding: 7px 9px;
  border-radius: 999px;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
}

.credit-pill.plus {
  color: var(--green-dark);
  background: #dff4ec;
}

.credit-pill.minus {
  color: #a1452f;
  background: #ffe5dc;
}

.section-band {
  padding: 88px 0;
  background: var(--ink);
  color: #fff;
}

.credit-rule-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.credit-rule {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.credit-rule strong {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 16px;
}

.credit-rule-earn strong {
  color: #dff4ec;
  background: var(--green);
}

.credit-rule-spend strong {
  color: #ffe5dc;
  background: #a1452f;
}

.credit-rule p {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 750;
}

.homepage-live-stream {
  padding: 72px 0;
  background:
    linear-gradient(135deg, rgba(242, 184, 75, 0.18), rgba(22, 122, 91, 0.1)),
    #fffdf8;
}

.homepage-live-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.homepage-live-header h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: clamp(34px, 5vw, 56px);
}

.homepage-live-header p {
  max-width: 660px;
  margin-bottom: 0;
  color: #5a665f;
  font-size: 18px;
}

.homepage-feed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.homepage-feed-column {
  padding: 14px;
  border: 1px solid #f1e6c8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.homepage-feed-column-header {
  display: grid;
  gap: 3px;
  margin-bottom: 10px;
}

.homepage-feed-column-header strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
}

.homepage-feed-column-header span {
  color: #6a5842;
  font-size: 13px;
}

.homepage-feed-list {
  display: grid;
  gap: 10px;
}

.feed-post-label {
  width: 100%;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  padding: 8px 12px;
  color: #59468f;
  border: 1px solid #d8cdfa;
  border-radius: 8px;
  background: #eee9ff;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
  pointer-events: none;
  cursor: default;
}

.feed-post-action {
  pointer-events: auto;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.feed-post-action:hover,
.feed-post-action:focus {
  color: #493577;
  border-color: #c9baf7;
  background: #e4dcff;
  box-shadow: 0 8px 18px rgba(89, 70, 143, 0.14);
  transform: translateY(-1px);
  text-decoration: none;
}

.homepage-feed-item {
  min-height: 118px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid #f1e6c8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.homepage-feed-item strong {
  display: block;
  margin-bottom: 2px;
}

.homepage-feed-item p {
  margin-bottom: 0;
  color: #4f5b65;
  font-size: 14px;
}

.homepage-feed-item time {
  grid-column: 2;
  color: #8a7552;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.two-column,
.credit-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: 56px;
  align-items: start;
}

.section-copy p,
.credit-section p {
  color: #cfd8dc;
  font-size: 18px;
}

.section-copy p:last-child,
.credit-section p:last-child {
  margin-bottom: 0;
}

.family-proof {
  padding: 88px 0;
  background: #f8faf7;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin-bottom: 12px;
}

.section-heading a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.section-heading a:hover,
.section-heading a:focus {
  color: var(--green-dark);
}

.family-subtitle {
  max-width: 620px;
  margin-bottom: 0;
  color: #4e5b65;
  font-size: 19px;
  line-height: 1.45;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.testimonial-card {
  min-height: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(35, 55, 68, 0.08);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.testimonial-card h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.testimonial-card p {
  min-height: 48px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 15px;
}

.tag {
  display: inline-flex;
  max-width: 100%;
  min-height: 34px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.tag-moss,
.tag-leaf {
  color: var(--green-dark);
  border-color: #cbe7dc;
  background: #e5f5ef;
}

.tag-purple {
  color: #375a66;
  border-color: #c7e5eb;
  background: #e7f6f8;
}

.tag-oat {
  color: #7a4c1b;
  border-color: #f2d898;
  background: #fff3ce;
}

.tag-clay {
  color: #99452f;
  border-color: #f5cabd;
  background: #ffe8df;
}

.feature-grid {
  padding: 84px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  min-height: 252px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.feature-card:nth-child(2) {
  background: #fbf7f2;
}

.feature-card:nth-child(3) {
  background: #f1f9fa;
}

.feature-kicker {
  display: block;
  margin-bottom: 42px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 900;
}

.feature-card p {
  color: var(--muted);
  font-size: 16px;
}

.credit-section {
  padding: 88px 0;
  background: #20302f;
  color: #fff;
}

.rules-list {
  display: grid;
  gap: 12px;
}

.rule-row {
  min-height: 92px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.rule-row strong {
  color: #fff;
  font-size: 17px;
}

.rule-row span {
  color: #d7e2df;
}

.pricing-section {
  padding: 88px 0;
  background: #fff;
}

.pricing-heading {
  max-width: 680px;
  margin: 0 auto 28px;
  text-align: center;
}

.pricing-heading h2 {
  margin-bottom: 10px;
}

.pricing-heading p {
  color: var(--muted);
  font-size: 18px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.pricing-card {
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(22, 122, 91, 0.06), rgba(27, 138, 154, 0.04)),
    #fff;
}

.pricing-card h3 {
  margin-bottom: 12px;
  font-size: 24px;
}

.pricing-card strong {
  display: block;
  margin-bottom: 14px;
  color: var(--green);
  font-size: clamp(42px, 7vw, 64px);
  line-height: 0.95;
}

.pricing-card p {
  color: var(--muted);
  font-size: 16px;
}

.pricing-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing-card li {
  position: relative;
  padding-left: 22px;
  color: #35414d;
  font-weight: 750;
}

.pricing-card li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.pricing-card .btn {
  align-self: flex-start;
}

.pricing-card-featured {
  border-color: #cfe4dc;
  background:
    linear-gradient(135deg, rgba(22, 122, 91, 0.12), rgba(242, 184, 75, 0.16)),
    #f7fbf8;
  box-shadow: 0 20px 50px rgba(35, 55, 68, 0.1);
}

.pricing-card-featured strong {
  color: var(--green);
}

.final-cta {
  padding: 88px 0 104px;
  text-align: center;
  background: #f8faf7;
}

.final-cta h2 {
  max-width: 850px;
  margin-right: auto;
  margin-left: auto;
}

.auth-page {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 16px;
  background:
    linear-gradient(135deg, rgba(22, 122, 91, 0.08), rgba(231, 104, 74, 0.08)),
    #f9fbfa;
}

.auth-panel {
  width: min(100%, 480px);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(35, 55, 68, 0.12);
}

.auth-panel h1 {
  margin-bottom: 10px;
  font-size: clamp(38px, 7vw, 56px);
}

.auth-panel > p {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 17px;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field label {
  margin: 0;
  color: #3f4c57;
  font-size: 13px;
  font-weight: 850;
}

.form-field input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cfded9;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-size: 16px;
}

.form-field input:focus {
  border-color: var(--green);
  outline: 3px solid rgba(22, 122, 91, 0.16);
}

.form-errors {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #f5cabd;
  border-radius: 8px;
  color: #99452f;
  background: #ffe8df;
}

.form-errors ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.auth-switch {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.auth-switch a {
  color: var(--green);
  font-weight: 850;
}

.development-credentials {
  margin-top: 20px;
  padding: 14px;
  border: 1px solid #d8cdfa;
  border-radius: 8px;
  background: #f5f2ff;
}

.development-credentials > strong {
  display: block;
  margin-bottom: 10px;
  color: #493577;
  font-size: 13px;
}

.development-credentials dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.development-credentials dl > div {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 2px 8px;
}

.development-credentials dt {
  grid-row: span 2;
  color: #59468f;
  font-size: 12px;
  font-weight: 900;
}

.development-credentials dd {
  margin: 0;
  min-width: 0;
  color: #4f485d;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.development-credentials code {
  color: inherit;
  background: transparent;
}

.dashboard-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 88px;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 22px;
}

.dashboard-hero h1 {
  margin-bottom: 12px;
  font-size: clamp(44px, 7vw, 72px);
}

.dashboard-hero p {
  max-width: 620px;
  color: var(--muted);
  font-size: 19px;
}

.dashboard-balance,
.dashboard-card,
.workspace-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.dashboard-balance {
  min-height: 112px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background: var(--green);
}

.dashboard-balance span,
.metric-label {
  color: #d5e8e0;
  font-size: 13px;
  font-weight: 850;
}

.dashboard-balance strong {
  font-size: 44px;
  line-height: 1;
}

.joined-network-feed {
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid #cfe0da;
  border-radius: 8px;
  background: #f3f9f6;
}

.joined-network-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.joined-network-header strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
}

.joined-network-header > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.joined-network-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.joined-network-item {
  min-width: min(340px, 82vw);
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid #dce9e4;
  border-radius: 6px;
  background: #fff;
}

.joined-network-avatar {
  grid-row: 1 / span 2;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #fff;
  background: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.joined-network-item p {
  margin: 0;
  color: #3f4c57;
  font-size: 14px;
  line-height: 1.35;
}

.joined-network-item time {
  color: #7a8490;
  font-size: 12px;
  font-weight: 750;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.dashboard-card {
  min-height: 190px;
  padding: 24px;
}

.dashboard-card .metric-label {
  color: var(--green);
}

.dashboard-card strong {
  display: block;
  margin: 34px 0 8px;
  font-size: 42px;
  line-height: 1;
}

.dashboard-card p,
.action-row span {
  color: var(--muted);
}

.dashboard-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.8fr);
  gap: 18px;
}

.workspace-panel {
  padding: 20px;
}

.workspace-panel h2 {
  font-size: 28px;
}

.action-stack {
  display: grid;
  gap: 12px;
}

.action-row {
  min-height: 86px;
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  text-decoration: none;
}

.action-row:hover,
.action-row:focus {
  border-color: #c2d9d2;
  background: #edf8f3;
  text-decoration: none;
}

.agencies-hero {
  margin-bottom: 18px;
}

.agencies-hero > div:first-child {
  padding: 28px;
  border: 1px solid #d7e7e0;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(22, 122, 91, 0.12), rgba(242, 184, 75, 0.12)),
    #fbfdfb;
}

.agencies-summary strong {
  font-size: 58px;
}

.agency-toolbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid #d7e7e0;
  border-radius: 8px;
  background: #f0f8f4;
}

.agency-toolbar div {
  display: grid;
  gap: 3px;
}

.agency-toolbar strong {
  font-size: 17px;
}

.agency-toolbar span {
  color: var(--muted);
  font-size: 14px;
}

.credit-actions {
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid #d7e7e0;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(22, 122, 91, 0.1), rgba(27, 138, 154, 0.08)),
    #f7fbf8;
}

.credit-actions-header {
  display: grid;
  gap: 2px;
  margin-bottom: 12px;
}

.credit-actions-header strong {
  font-size: 19px;
}

.credit-actions-header span {
  color: var(--muted);
  font-size: 14px;
}

.credit-action-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.credit-action {
  min-height: 86px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #dce9e4;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 8px 18px rgba(35, 55, 68, 0.05);
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.credit-action:hover,
.credit-action:focus {
  border-color: #b9d8cc;
  background: #eef8f3;
  box-shadow: 0 12px 24px rgba(22, 122, 91, 0.1);
  transform: translateY(-1px);
  text-decoration: none;
}

.credit-action-icon {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #e5f5ef;
}

.credit-action span:not(.credit-action-icon) {
  font-weight: 850;
  line-height: 1.25;
}

.credit-action strong {
  color: var(--green);
  font-size: 13px;
}

.credit-action-spend strong {
  color: var(--coral);
}

.dashboard-feed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
  margin-bottom: 22px;
}

.agency-plan-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 28px;
  padding: 24px;
  border: 1px solid #d8cdfa;
  border-radius: 8px;
  color: #2c263b;
  background: #f3efff;
}

.agency-plan-copy {
  display: grid;
  gap: 20px;
}

.agency-plan-header {
  display: grid;
  gap: 5px;
}

.agency-plan-header h2 {
  margin: 0;
  color: #2c263b;
  font-size: 26px;
}

.agency-plan-header p {
  max-width: 680px;
  margin: 0;
  color: #6d647e;
  font-size: 14px;
}

.agency-plan-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  color: #6948c6;
}

.agency-plan-price strong {
  font-size: 42px;
  line-height: 1;
}

.agency-plan-price span {
  color: #6d647e;
  font-size: 14px;
  font-weight: 800;
}

.agency-plan-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.agency-plan-benefits li {
  position: relative;
  padding-left: 18px;
  color: #443b55;
  font-size: 14px;
  font-weight: 750;
}

.agency-plan-benefits li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8a6ce0;
}

.agency-plan-benefits li:last-child {
  grid-column: 1 / -1;
}

.agency-plan-purchase {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding-left: 28px;
  border-left: 1px solid #d8cdfa;
}

.agency-plan-purchase .btn {
  width: 100%;
}

.agency-plan-purchase small {
  color: #756b87;
  font-size: 12px;
  font-weight: 750;
  text-align: center;
}

.agency-plan-callout .btn-primary,
.agency-plan-callout .btn-primary:focus {
  color: #fff;
  border-color: #6950b8;
  background: #6950b8;
}

.agency-plan-callout .btn-primary:hover {
  color: #fff;
  border-color: #59429f;
  background: #59429f;
  box-shadow: 0 12px 24px rgba(78, 55, 145, 0.2);
}

.agency-feed {
  min-width: 0;
  padding: 18px;
  border: 1px solid #efdba4;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(242, 184, 75, 0.18), rgba(27, 138, 154, 0.08)),
    #fffdf8;
}

.agency-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.agency-feed-header div {
  display: grid;
  gap: 2px;
}

.agency-feed-header strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
}

.live-light {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(22, 122, 91, 0.5);
  animation: live-pulse 1.4s ease-out infinite;
}

@keyframes live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(22, 122, 91, 0.5);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(22, 122, 91, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(22, 122, 91, 0);
  }
}

.agency-feed-header span {
  color: #6a5842;
  font-size: 14px;
}

.feed-list {
  display: grid;
  gap: 10px;
}

.feed-item {
  min-height: 148px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid #f1e6c8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.feed-item[hidden] {
  display: none;
}

.feed-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fff3ce;
  font-size: 20px;
}

.feed-icon img {
  width: 22px;
  height: 22px;
  display: block;
}

.feed-icon-linkedin {
  background: #eaf4fb;
}

.feed-icon-x {
  background: #f2f2f2;
}

.feed-item strong {
  display: block;
  margin-bottom: 2px;
  overflow-wrap: anywhere;
}

.feed-item p {
  margin-bottom: 0;
  color: #4f5b65;
  font-size: 14px;
}

.feed-item time {
  grid-column: 2;
  color: #8a7552;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.feed-request {
  grid-column: 2;
  justify-self: start;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 11px;
  border: 1px solid #b9d8cc;
  border-radius: 999px;
  color: var(--green-dark);
  background: #edf8f3;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 -1px 0 rgba(15, 89, 67, 0.08);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.feed-request:hover,
.feed-request:focus {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 10px 18px rgba(22, 122, 91, 0.18);
  transform: translateY(-1px);
  text-decoration: none;
}

.feed-item-actions {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.feed-item-actions .feed-request {
  grid-column: auto;
}

.feed-details {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border: 1px solid #dfe3e6;
  border-radius: 999px;
  color: #5f6872;
  background: #f5f6f7;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
}

.feed-details:hover,
.feed-details:focus {
  color: #35414d;
  border-color: #cfd5d9;
  background: #eceff1;
  text-decoration: none;
}

.agency-card-modal {
  width: min(760px, calc(100% - 32px));
  max-height: min(820px, calc(100vh - 48px));
  padding: 42px 18px 18px;
  border: 1px solid #d8e4e1;
  border-radius: 8px;
  color: var(--ink);
  background: #f4f7f6;
  box-shadow: 0 28px 80px rgba(23, 33, 43, 0.28);
}

.agency-card-modal::backdrop {
  background: rgba(23, 33, 43, 0.48);
  backdrop-filter: blur(3px);
}

.agency-card-modal .agency-card {
  width: 100%;
}

.homepage-feed-label {
  pointer-events: none;
  cursor: default;
}

.feed-toggle {
  width: 100%;
  min-height: 42px;
  margin-top: 10px;
  border: 1px solid #ead8a3;
  border-radius: 8px;
  color: #5f4a24;
  background: rgba(255, 250, 235, 0.86);
  font-weight: 850;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.feed-toggle:hover,
.feed-toggle:focus {
  border-color: #dcc272;
  background: #fff7df;
  box-shadow: 0 10px 20px rgba(104, 71, 25, 0.08);
  transform: translateY(-1px);
}

.agency-directory {
  margin-top: 24px;
}

.agency-directory-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.agency-directory-header h2 {
  margin-bottom: 0;
  font-size: 30px;
}

.admin-agency-page,
.admin-hub-page,
.admin-social-media-page {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 88px;
}

.admin-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.admin-page-header h1 {
  margin-bottom: 8px;
  font-size: 48px;
  line-height: 1;
}

.admin-page-header p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.admin-action-list {
  display: grid;
  gap: 12px;
}

.admin-action-groups {
  display: grid;
  gap: 32px;
}

.admin-action-group h2 {
  margin-bottom: 12px;
  font-size: 24px;
}

.admin-action-button {
  width: 100%;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  border: 1px solid #cfe0da;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 850;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(35, 55, 68, 0.06);
}

a.admin-action-button:hover,
a.admin-action-button:focus {
  color: var(--green-dark);
  border-color: #9bcab8;
  background: #f3fbf7;
  text-decoration: none;
}

.admin-action-button strong {
  flex: 0 0 auto;
  color: var(--green);
  font-size: 13px;
}

.admin-action-button:disabled {
  color: #78828d;
  border-color: var(--line);
  background: #f7f8f8;
  box-shadow: none;
  cursor: not-allowed;
}

.admin-action-button:disabled strong {
  color: #8a939c;
}

.admin-page-actions {
  display: flex;
  gap: 10px;
}

.btn-danger,
.btn-danger:focus {
  color: #fff;
  border-color: #b94736;
  background: #b94736;
}

.btn-danger:hover {
  color: #fff;
  border-color: #963626;
  background: #963626;
  box-shadow: 0 12px 24px rgba(150, 54, 38, 0.18);
}

.danger-form {
  margin: 0;
}

.agency-management-list {
  display: grid;
  gap: 10px;
}

.agency-management-row {
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.8fr) auto;
  gap: 20px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.agency-management-row > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.agency-management-row strong,
.agency-management-row span {
  overflow-wrap: anywhere;
}

.agency-management-row > div span,
.agency-management-website {
  color: var(--muted);
  font-size: 14px;
}

.agency-management-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f8f8;
}

.admin-agency-form {
  display: grid;
  gap: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(35, 55, 68, 0.08);
}

.admin-agency-create-page .admin-agency-form {
  gap: 40px;
  padding: 36px;
}

.admin-agency-create-page .admin-agency-form fieldset {
  gap: 24px;
  padding-bottom: 36px;
}

.admin-agency-create-page .admin-form-grid {
  column-gap: 22px;
  row-gap: 26px;
}

.admin-agency-create-page .form-field {
  gap: 9px;
}

.admin-agency-form fieldset {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0 0 28px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.admin-agency-form fieldset:last-of-type {
  padding-bottom: 0;
  border-bottom: 0;
}

.admin-agency-form legend {
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-size: 19px;
  font-weight: 900;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-form-wide {
  grid-column: 1 / -1;
}

.admin-agency-form input,
.admin-agency-form textarea,
.admin-agency-form select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cfded9;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.admin-agency-form textarea {
  min-height: 96px;
  resize: vertical;
}

.admin-agency-form input:focus,
.admin-agency-form textarea:focus,
.admin-agency-form select:focus {
  border-color: var(--green);
  outline: 3px solid rgba(22, 122, 91, 0.16);
}

.admin-agency-form input[type="submit"],
.admin-agency-form input[type="submit"]:focus {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
  cursor: pointer;
}

.admin-agency-form input[type="submit"]:hover {
  color: #fff;
  border-color: var(--green-dark);
  background: var(--green-dark);
}

.admin-form-actions {
  display: flex;
  justify-content: flex-end;
}

.agency-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.agency-card {
  --card-accent: var(--green);
  --card-accent-soft: #e8f5ee;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 0;
  border: 1px solid #d8e4e1;
  border-top: 4px solid var(--card-accent);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(23, 33, 43, 0.06);
  overflow: hidden;
}

.agency-card:nth-child(4n + 2) {
  --card-accent: var(--teal);
  --card-accent-soft: #e5f4f6;
}

.agency-card:nth-child(4n + 3) {
  --card-accent: var(--coral);
  --card-accent-soft: #fff0eb;
}

.agency-card:nth-child(4n + 4) {
  --card-accent: var(--gold);
  --card-accent-soft: #fff7df;
}

.agency-card-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 18px;
  border-bottom: 1px solid #e2ebe8;
  background: linear-gradient(180deg, var(--card-accent-soft), #fff);
}

.agency-identity {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.agency-avatar {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #fff;
  background: var(--card-accent);
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}

.agency-card-header h2 {
  margin-bottom: 4px;
  font-size: 22px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.agency-card-header p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.status-pill {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid #cbe7dc;
  border-radius: 999px;
  color: var(--green-dark);
  background: #e5f5ef;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.agency-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
}

.agency-fact {
  min-height: 68px;
  display: grid;
  gap: 5px;
  align-content: start;
  padding: 11px 12px;
  border: 1px solid #edf0e8;
  border-radius: 8px;
  background: #fffdf8;
}

.agency-fact-wide {
  grid-column: span 2;
}

.agency-fact strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6a5842;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.agency-fact span {
  color: #25313d;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.redacted-text {
  display: inline-block;
  max-width: 100%;
  color: #344252;
  filter: blur(5px);
  opacity: 0.78;
  user-select: none;
  pointer-events: none;
}

.agency-actions {
  margin-top: auto;
  padding: 0 18px 18px;
  background: #fff;
}

.agency-actions .btn {
  width: 100%;
  color: #fff;
  border-color: var(--card-accent);
  background: var(--card-accent);
}

.agency-actions .btn:hover,
.agency-actions .btn:focus {
  color: #fff;
  border-color: var(--green-dark);
  background: var(--green-dark);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  font-size: 24px;
  line-height: 1;
}

.modal-close:hover,
.modal-close:focus {
  color: var(--ink);
  border-color: #c2d9d2;
}

@media (max-width: 900px) {
  .hero-section {
    min-height: auto;
  }

  .hero-inner,
  .two-column,
  .credit-layout,
  .testimonial-grid,
  .feature-grid,
  .pricing-grid,
  .dashboard-hero,
  .dashboard-grid,
  .dashboard-feed-grid,
  .agency-plan-callout,
  .dashboard-workspace {
    grid-template-columns: 1fr;
  }

  .agency-plan-benefits {
    grid-template-columns: 1fr;
  }

  .agency-plan-benefits li:last-child {
    grid-column: auto;
  }

  .agency-plan-purchase {
    padding-top: 20px;
    padding-left: 0;
    border-top: 1px solid #d8cdfa;
    border-left: 0;
  }

  .agency-plan-purchase .btn {
    width: auto;
    align-self: flex-start;
  }


  .feed-request {
    grid-column: 2;
    justify-self: start;
  }

  .feed-item time {
    grid-column: 2;
  }

  .agency-card-header,
  .agency-list,
  .agency-facts,
  .credit-action-list {
    grid-template-columns: 1fr;
  }

  .agency-fact-wide {
    grid-column: span 1;
  }

  .exchange-visual {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  .joined-network-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .admin-page-header,
  .agency-directory-header {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-form-wide {
    grid-column: auto;
  }

  .admin-agency-form {
    padding: 20px;
  }

  .admin-agency-create-page .admin-agency-form {
    gap: 30px;
    padding: 22px;
  }

  .admin-agency-create-page .admin-agency-form fieldset {
    gap: 20px;
    padding-bottom: 28px;
  }

  .admin-agency-create-page .admin-form-grid {
    row-gap: 20px;
  }

  .admin-form-actions .btn,
  .agency-directory-header .btn {
    width: 100%;
  }

  .admin-page-actions,
  .agency-management-empty {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-page-actions .btn,
  .agency-management-empty .btn {
    width: 100%;
  }

  .agency-management-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .agency-management-row .btn {
    width: 100%;
  }

  .nav-inner {
    min-height: 64px;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .hero-section,
  .section-band,
  .family-proof,
  .credit-section,
  .pricing-section,
  .feature-grid,
  .final-cta {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .activity-item {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .credit-pill {
    grid-column: 2;
    justify-self: start;
  }

  .rule-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .homepage-live-header {
    align-items: stretch;
    flex-direction: column;
  }

  .homepage-live-header .btn {
    width: 100%;
  }

  .homepage-feed-grid {
    grid-template-columns: 1fr;
  }

  .auth-panel {
    padding: 24px;
  }

  .agency-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .agency-toolbar .btn {
    width: 100%;
  }

  .testimonial-card p {
    min-height: 0;
  }
}
