/* Área de membros: hub de consumo + venda assistida */
body.woocommerce-account {
  background: var(--vs-bg);
  color: var(--vs-ink);
}

body.woocommerce-account .vs-site-header {
  background: rgba(255, 250, 242, .94);
  border-bottom-color: var(--vs-line);
}

body.woocommerce-account .vs-brand,
body.woocommerce-account .vs-nav a:first-child {
  color: var(--vs-brown);
}

body.woocommerce-account .vs-brand small {
  color: var(--vs-muted);
}

body.woocommerce-account .vs-nav a:last-child {
  background: var(--vs-red);
  color: #fffaf2;
}

.vs-members-app {
  min-height: calc(100vh - 72px);
  background:
    linear-gradient(180deg, rgba(255, 250, 242, .92), rgba(244, 241, 234, 1) 430px),
    var(--vs-bg);
  padding: 28px 0 40px;
}

.vs-members-top,
.vs-account-shell,
.vs-members-footer {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.vs-members-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 22px;
}

.vs-members-top-copy,
.vs-members-top-actions,
.vs-members-status,
.vs-members-footer {
  border: 1px solid var(--vs-line);
  border-radius: 8px;
  background: var(--vs-paper);
  box-shadow: 0 12px 34px rgba(47, 39, 35, .08);
}

.vs-members-top-copy {
  min-height: 230px;
  padding: clamp(22px, 4vw, 34px);
  display: grid;
  align-content: center;
  background:
    linear-gradient(90deg, rgba(255, 253, 247, .98), rgba(255, 253, 247, .78) 56%, rgba(255, 253, 247, .18)),
    url("../sayuri-members-hero-wide.webp");
  background-size: cover;
  background-position: center right;
}

.vs-members-top-copy h1,
.vs-members-status h2,
.vs-product-access-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--vs-brown);
  letter-spacing: 0;
}

.vs-members-top-copy h1 {
  max-width: 690px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  margin: 10px 0 14px;
}

.vs-members-top-copy p,
.vs-members-status p,
.vs-product-access-card p,
.vs-members-footer p {
  color: var(--vs-muted);
  line-height: 1.55;
}

.vs-members-top-copy p {
  max-width: 660px;
  font-size: 18px;
  margin: 0;
}

.vs-members-top-actions {
  padding: 20px;
  display: grid;
  align-content: center;
  gap: 12px;
}

.vs-members-top-actions .vs-button {
  width: 100%;
  text-align: center;
}

.vs-members-top-actions .vs-install-help {
  margin: 0;
  color: var(--vs-muted) !important;
  background: #fffaf0;
  border-color: rgba(201, 150, 79, .42);
}

.vs-account-shell {
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 20px;
}

.woocommerce-account .woocommerce-MyAccount-navigation.vs-account-nav {
  top: 92px;
  float: none !important;
  width: 100% !important;
  max-width: none;
  background: var(--vs-paper);
  border: 1px solid var(--vs-line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(47, 39, 35, .08);
  padding: 14px;
}

.woocommerce-account .woocommerce-MyAccount-content {
  float: none;
  width: auto;
}

.vs-account-nav-head {
  display: grid;
  gap: 4px;
  padding: 6px 8px 12px;
  border-bottom: 1px solid var(--vs-line);
  margin-bottom: 10px;
}

.vs-account-nav-head span {
  color: var(--vs-red);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.vs-account-nav-head strong {
  color: var(--vs-brown);
  font-size: 20px;
}

.vs-product-nav-list,
.vs-account-nav-tools {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.vs-product-nav-list a,
.vs-account-nav-tools a {
  min-height: 62px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--vs-brown);
  padding: 10px;
  text-decoration: none;
  background: rgba(244, 241, 234, .7);
}

.vs-product-nav-list .is-open a {
  background: #eef7f2;
  border-color: rgba(82, 125, 112, .25);
}

.vs-product-nav-list .is-locked a {
  background: #fffaf0;
  border-color: rgba(201, 150, 79, .25);
}

.vs-product-nav-list .vs-icon,
.vs-account-nav-tools .vs-icon {
  width: 28px;
  height: 28px;
  color: var(--vs-tea);
}

.vs-product-nav-list .is-locked .vs-icon {
  color: var(--vs-gold);
}

.vs-product-nav-list strong {
  display: block;
  font-size: 14px;
  line-height: 1.14;
  overflow-wrap: anywhere;
}

.vs-product-nav-list small {
  display: block;
  margin-top: 3px;
  color: var(--vs-muted);
  font-weight: 800;
}

.vs-account-nav-tools {
  border-top: 1px solid var(--vs-line);
  margin-top: 12px;
  padding-top: 12px;
}

.vs-account-nav-tools a {
  min-height: 44px;
  grid-template-columns: 24px minmax(0, 1fr);
  background: transparent;
  color: var(--vs-muted);
  font-weight: 850;
}

.vs-account-nav-tools .vs-icon {
  width: 21px;
  height: 21px;
  color: var(--vs-muted);
}

.vs-members-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 22px;
  margin-bottom: 18px;
}

.vs-members-status h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  margin: 8px 0 8px;
}

.vs-members-status p {
  margin: 0;
}

.vs-members-status .vs-account-stats {
  margin: 0;
  justify-content: flex-end;
}

.vs-members-status .vs-account-stats span {
  background: #eef7f2;
  border-color: rgba(82, 125, 112, .24);
  color: var(--vs-tea);
}

.vs-members-status .vs-account-stats strong {
  color: var(--vs-brown);
}

.vs-product-access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.vs-product-access-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 14px;
  border: 1px solid var(--vs-line);
  border-radius: 8px;
  background: var(--vs-paper);
  box-shadow: 0 12px 34px rgba(47, 39, 35, .08);
  padding: 12px;
  scroll-margin-top: 96px;
}

.vs-product-access-media {
  position: relative;
  display: block;
  min-height: 238px;
  border-radius: 8px;
  overflow: hidden;
  background: #eadcc7;
  text-decoration: none;
}

.vs-product-access-media img {
  width: 100%;
  height: 100%;
  min-height: 238px;
  display: block;
  object-fit: cover;
}

.vs-product-access-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(36, 24, 18, .72));
}

.vs-product-access-status {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: rgba(255, 250, 242, .94);
  color: var(--vs-brown);
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.vs-product-access-body {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 4px 4px 4px 0;
}

.vs-product-access-card h3 {
  font-size: clamp(23px, 3vw, 30px);
  line-height: 1.04;
  margin: 0;
}

.vs-product-access-card p {
  margin: 0;
}

.vs-product-access-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.vs-product-access-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--vs-line);
  border-radius: 999px;
  background: rgba(244, 241, 234, .7);
  color: var(--vs-muted);
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 850;
}

.vs-product-access-action {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.vs-product-access-action strong {
  color: var(--vs-brown);
  font-size: 24px;
}

.vs-product-access-action .vs-button {
  min-height: 42px;
  padding: 11px 14px;
}

.vs-product-access-card.is-open {
  border-color: rgba(82, 125, 112, .32);
  background: linear-gradient(135deg, #fffdf7, #eef7f2);
}

.vs-product-access-card.is-locked {
  border-color: rgba(201, 150, 79, .32);
}

.vs-members-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, auto);
  gap: 20px;
  align-items: center;
  margin-top: 30px;
  padding: 20px;
}

.vs-members-footer strong {
  color: var(--vs-brown);
}

.vs-members-footer p {
  margin: 6px 0 0;
}

.vs-members-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: flex-end;
}

.vs-members-footer a {
  color: var(--vs-brown);
  font-weight: 850;
}

.vs-library-row h2,
.vs-library-card h3,
.vs-order-card h2,
.vs-login-panel h1 {
  color: #fbf5eb;
}

.vs-library-row p,
.vs-library-card p,
.vs-order-card p,
.vs-login-panel p,
.vs-account-fieldset p {
  color: rgba(251, 245, 235, .72);
}

.vs-library-cover {
  box-shadow: none;
}

.vs-library-card-link {
  color: #e3c99d;
}

@media (max-width: 1040px) {
  .vs-members-top,
  .vs-account-shell,
  .vs-members-footer,
  .vs-product-access-grid,
  .vs-product-access-card,
  .vs-members-status {
    grid-template-columns: 1fr;
  }

  .vs-members-top-actions {
    align-content: start;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation.vs-account-nav {
    position: static;
    overflow-x: auto;
  }

  .vs-product-nav-list {
    display: flex;
    min-width: max-content;
  }

  .vs-product-nav-list a {
    width: 210px;
  }

  .vs-account-nav-tools {
    display: flex;
    min-width: max-content;
  }
}

@media (max-width: 620px) {
  .vs-members-app {
    padding-top: 16px;
  }

  .vs-members-top,
  .vs-account-shell,
  .vs-members-footer {
    width: min(100% - 22px, 1180px);
  }

  .vs-members-top-copy {
    min-height: 300px;
    background:
      linear-gradient(180deg, rgba(255, 253, 247, .98), rgba(255, 253, 247, .74) 58%, rgba(255, 253, 247, .28)),
      url("../sayuri-members-hero-wide.webp");
    background-size: cover;
    background-position: center top;
  }

  .vs-members-top-copy h1 {
    font-size: 36px;
  }

  .vs-product-access-media,
  .vs-product-access-media img {
    min-height: 290px;
  }

  .vs-product-access-action .vs-button,
  .vs-members-top-actions .vs-button {
    width: 100%;
    text-align: center;
  }

  .vs-members-footer nav {
    justify-content: flex-start;
  }
}
