/* Tema seguro Wevex — Clube e páginas de fidelidade.
   Brand (primary/accent) só como destaque; superfícies AA do resolvedor. */

/* Clube público — superfícies escuras estruturais; destaque vem da marca do tenant. */
body.wx-club-safe {
  --club-gold: var(--brand-primary);
  --club-gold-text: var(--brand-on-primary, #111827);
  --club-bg: #0b0a08;
  --club-card: #16130e;
  --club-line: #3a3226;
  --club-ink: #fff8ea;
  --club-muted: #e8d9b0;
  background: var(--club-bg) !important;
  color: var(--club-ink) !important;
  overflow-x: clip;
}

body.wx-club-safe .club-page {
  width: min(100% - 24px, 920px);
  min-height: 62vh;
  margin: 20px auto 48px;
}

body.wx-club-safe .club-hero,
body.wx-club-safe .club-card {
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid var(--club-line);
  border-radius: 22px;
  background: var(--club-card);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  color: var(--club-ink);
}

body.wx-club-safe .club-hero .eyebrow,
body.wx-club-safe .club-card .eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--club-gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.wx-club-safe .club-hero h1,
body.wx-club-safe .club-card h1 {
  margin: 6px 0 10px;
  color: var(--club-ink) !important;
  font-size: clamp(1.45rem, 3.2vw, 1.9rem);
  line-height: 1.2;
}

body.wx-club-safe .club-hero p,
body.wx-club-safe .club-card > p {
  max-width: 640px;
  margin: 0;
  color: var(--club-muted) !important;
  line-height: 1.6;
}

body.wx-club-safe .club-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

body.wx-club-safe .btn,
body.wx-club-safe a.btn,
body.wx-club-safe button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid var(--store-line, #DCE2EA);
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  color: var(--club-ink) !important;
  background: transparent !important;
}

body.wx-club-safe .btn.primary,
body.wx-club-safe a.btn.primary,
body.wx-club-safe button.btn.primary {
  border-color: transparent;
  color: var(--club-gold-text, #1a1204) !important;
  background: var(--club-gold, var(--brand-primary)) !important;
}

body.wx-club-safe .btn.secondary,
body.wx-club-safe a.btn.secondary,
body.wx-club-safe button.btn.secondary,
body.wx-club-safe a.btn:not(.primary),
body.wx-club-safe button.btn:not(.primary) {
  color: var(--club-ink, #f5ead2) !important;
  background: transparent !important;
  border-color: var(--club-gold, var(--brand-primary)) !important;
}

body.wx-club-safe .btn:focus-visible,
body.wx-club-safe a.btn:focus-visible,
body.wx-club-safe button.btn:focus-visible {
  outline: 3px solid var(--club-gold, var(--brand-primary));
  outline-offset: 2px;
}

body.wx-club-safe .club-local-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
}
body.wx-club-safe .club-local-nav a {
  color: var(--club-gold, var(--brand-primary)) !important;
  text-decoration: none;
  border: 1px solid var(--club-line, #3a3226);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 650;
}
body.wx-club-safe .club-local-nav a:hover {
  background: color-mix(in srgb, var(--club-gold, var(--brand-primary)) 16%, transparent);
}

body.wx-club-safe .club-hero h1,
body.wx-club-safe .club-card h1,
body.wx-club-safe .club-card h2,
body.wx-club-safe .club-card p,
body.wx-club-safe .club-form label {
  color: var(--club-ink, #fff8ea) !important;
}

body.wx-club-safe .club-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

body.wx-club-safe .club-benefits article {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--club-line, #3a3226);
  border-radius: 18px;
  background: #1c1812;
}

body.wx-club-safe .club-benefits b {
  color: var(--club-gold, var(--brand-primary));
  font-size: 20px;
}

body.wx-club-safe .club-benefits strong {
  color: var(--club-ink, #f5ead2) !important;
}

body.wx-club-safe .club-benefits span,
body.wx-club-safe .club-meta,
body.wx-club-safe .club-meta span,
body.wx-club-safe .club-notice {
  color: var(--club-muted, #cbb892) !important;
  font-size: 13px;
  line-height: 1.5;
}

.wx-public-messages {
  width: min(100% - 24px, 620px);
  margin: 12px auto 0;
}
body.wx-club-safe .club-notice--success {
  color: var(--club-gold-text, #1a1204) !important;
  background: var(--club-gold, var(--brand-primary));
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
}

body.wx-club-safe .club-card {
  width: min(620px, 100%);
  margin-inline: auto;
}

body.wx-club-safe .club-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

body.wx-club-safe .club-form label {
  display: grid;
  gap: 6px;
  color: var(--club-ink, #f5ead2);
  font-weight: 650;
}

body.wx-club-safe .club-form input,
body.wx-club-safe .club-form select {
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--club-line, #3a3226);
  border-radius: 12px;
  background: #0f0d0a;
  color: var(--club-ink, #f5ead2);
}

body.wx-club-safe .club-error {
  color: #ffb4a8 !important;
  font-size: 0.85rem;
  font-weight: 700;
}
body.wx-club-safe .club-error--banner {
  display: block;
  margin: 0.75rem 0 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid color-mix(in srgb, #ffb4a8 45%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, #b42318 22%, #1a100c);
}
body.wx-club-safe .club-hint,
body.wx-club-safe .club-optional {
  color: color-mix(in srgb, var(--club-ink, #f5ead2) 62%, transparent);
  font-size: 0.78rem;
  font-weight: 600;
}
body.wx-club-safe .club-check {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.55rem 0.7rem;
  font-weight: 600;
}
body.wx-club-safe .club-check small {
  grid-column: 1 / -1;
}

body.wx-club-safe:has(.club-card--auth) .club-page {
  width: min(100% - 24px, 28rem);
  min-height: unset;
  margin: 16px auto 40px;
}

/* Cadastro/login: card compacto e botões com tinta estável (não herda store-ink claro). */
body.wx-club-safe .club-card--auth {
  width: min(26.5rem, 100%);
  margin-inline: auto;
  padding: 1.25rem 1.35rem 1.4rem;
}

body.wx-club-safe .club-card--auth h1 {
  margin: 4px 0 8px;
  font-size: 1.45rem;
  line-height: 1.2;
}

body.wx-club-safe .club-card--auth > p {
  font-size: 0.9rem;
  line-height: 1.45;
}

body.wx-club-safe .club-card--auth .club-form {
  gap: 0.7rem;
  margin-top: 1rem;
}

body.wx-club-safe .club-card--auth .club-form input:not([type="checkbox"]),
body.wx-club-safe .club-card--auth .club-form select {
  min-height: 2.5rem;
  padding: 0.45rem 0.7rem;
  font-size: 0.95rem;
}

body.wx-club-safe .club-form input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  min-height: 1.1rem;
  accent-color: var(--store-action, #0b1220);
}

body.wx-club-safe .club-form-actions {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

body.wx-club-safe .club-card--auth .btn.primary {
  min-height: 2.65rem;
  font-size: 0.95rem;
}

body.wx-club-safe .club-card--auth .btn.secondary,
body.wx-club-safe .club-card--auth a.btn.secondary {
  color: var(--club-ink, #f5ead2) !important;
  background: transparent !important;
  border: 1px solid var(--club-gold, var(--brand-primary)) !important;
  font-weight: 700;
}

body.wx-club-safe .club-alt {
  margin: 0.9rem 0 0;
  text-align: center;
  font-size: 0.9rem;
}

body.wx-club-safe .club-alt a {
  color: var(--club-gold, var(--brand-primary)) !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.wx-club-safe .coin-balance {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin: 16px 0;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--club-line, #3a3226);
  background: color-mix(in srgb, var(--club-gold, var(--brand-primary)) 14%, #16130e);
}

body.wx-club-safe .coin-balance span,
body.wx-club-safe .coin-balance b {
  color: var(--club-muted, #cbb892) !important;
}

body.wx-club-safe .coin-balance strong {
  color: var(--store-ink, #f5ead2) !important;
  font-size: 1.6rem;
}

body.wx-club-safe .club-orders {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

body.wx-club-safe .club-orders-head h2,
body.wx-club-safe .birthday-benefit h2,
body.wx-club-safe .club-order-row strong,
body.wx-club-safe .club-reward-list strong {
  margin: 4px 0 10px;
  color: #1a1204 !important;
}

body.wx-club-safe .club-order-row,
body.wx-club-safe a.club-order-row,
body.wx-club-safe .coupon-wallet-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--brand-primary);
  border-radius: 14px;
  color: #1a1204 !important;
  background: #fff8ea !important;
  text-decoration: none;
}

body.wx-club-safe .club-order-row small,
body.wx-club-safe .coupon-wallet-card small {
  color: #5c4a22 !important;
}

body.wx-club-safe .club-order-row b,
body.wx-club-safe .coupon-wallet-card b {
  color: #8a6a12 !important;
}

body.wx-club-safe .birthday-benefit {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--brand-primary);
  border-radius: 16px;
  background: #fff8ea !important;
  color: #1a1204 !important;
}

body.wx-club-safe .birthday-benefit .eyebrow {
  color: #8a6a12 !important;
}

body.wx-club-safe .birthday-benefit p {
  margin: 0;
  color: #5c4a22 !important;
  line-height: 1.55;
}

body.wx-club-safe .club-reward-list li {
  background: #fff8ea !important;
  border-color: var(--brand-primary);
}

body.wx-club-safe .club-reward-list span {
  color: #5c4a22 !important;
}

body.wx-club-safe .birthday-benefit.available {
  border-color: color-mix(in srgb, var(--brand-accent, #00D9A5) 45%, var(--store-line, #DCE2EA));
  background: color-mix(in srgb, var(--brand-accent, #00D9A5) 8%, #FFFFFF);
}

body.wx-club-safe .club-nav-button {
  color: var(--store-action-text, #FFFFFF) !important;
  background: var(--store-action, #0B1220) !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

@media (max-width: 720px) {
  body.wx-club-safe .club-benefits {
    grid-template-columns: 1fr;
  }

  body.wx-club-safe .club-actions .btn,
  body.wx-club-safe .club-actions a.btn {
    flex: 1 1 100%;
  }

  body.wx-club-safe .club-order-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Banner no cardápio + progressos — usa tokens da loja com contraste seguro */
.wx-club-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  width: min(100% - 1.5rem, 1100px);
  margin: 0.85rem auto 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--store-line, #dce2ea);
  border-radius: 18px;
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--store-action, #0B1220) 8%, var(--store-surface, #fff)),
      var(--store-surface, #fff) 55%
    );
  color: var(--store-ink, #111827);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}
.wx-club-banner__icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--store-action, #0B1220) 12%, transparent);
  color: var(--store-action, #0B1220);
  font-size: 1.05rem;
}
.wx-club-banner__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.wx-club-banner__head h2 {
  margin: 0;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  letter-spacing: -0.02em;
  color: var(--store-ink, #111827);
}
.wx-club-banner p {
  margin: 0;
  color: var(--store-muted, #4b5563);
  line-height: 1.5;
  font-size: 0.95rem;
}
.wx-club-banner__balance {
  margin-top: 0.55rem !important;
  color: var(--store-ink, #111827) !important;
}
.wx-club-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.85rem;
}
.wx-club-banner__cta,
.wx-club-banner__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.55rem 1rem;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
}
.wx-club-banner__cta {
  color: var(--store-action-text, #fff) !important;
  background: var(--store-action, #0B1220);
}
.wx-club-banner__cta:focus-visible,
.wx-club-banner__link:focus-visible,
.club-nav-button:focus-visible {
  outline: 2px solid var(--store-focus, #2563eb);
  outline-offset: 2px;
}
.wx-club-banner__link {
  color: var(--store-ink, #111827) !important;
  border: 1px solid var(--store-line, #dce2ea);
  background: transparent;
}
.wx-club-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.4rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-primary) 88%, #fff);
  color: var(--brand-on-primary, #111827);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-style: normal;
}
.wx-club-badge--nav {
  margin-left: 0.2rem;
}
.club-nav-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.club-progress {
  margin: 1rem 0 1.25rem;
}
.club-progress__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.45rem;
  color: var(--store-muted, #4b5563);
  font-size: 0.9rem;
}
.club-progress__track {
  height: 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--store-ink, #111827) 10%, transparent);
  overflow: hidden;
}
.club-progress__track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--store-action, #0B1220);
}
.club-reward-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.club-reward-list li {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--store-line, #dce2ea);
  border-radius: 14px;
  background: color-mix(in srgb, var(--store-surface, #fff) 92%, var(--store-action, #0B1220));
}
.club-reward-list strong { color: var(--store-ink, #111827); }
.club-reward-list span { color: var(--store-muted, #4b5563); font-size: 0.92rem; }

@media (max-width: 640px) {
  .wx-club-banner {
    grid-template-columns: 1fr;
    margin-inline: 0.75rem;
  }
  .wx-club-banner__actions {
    display: grid;
  }
  .wx-club-banner__cta,
  .wx-club-banner__link {
    width: 100%;
  }
}
