
/*
 * CLUBE DO REI — IDENTIDADE GLOBAL V2
 * Paleta oficial: branco + grafite + dourado + vermelho.
 * Verde reservado para WhatsApp, preço e estados positivos.
 */
:root {
  --cdr-white: #E8E0DA;
  --cdr-offwhite: #E8E0DA;
  --cdr-soft: #191514;
  --cdr-graphite: #0D0B0B;
  --cdr-graphite-2: #342C2B;
  --cdr-muted: #B8ADA5;
  --cdr-line: rgba(155,133,119,0.35);
  --cdr-gold: #9B8577;
  --cdr-gold-dark: #9B8577;
  --cdr-red: #651C2A;
  --cdr-red-dark: #651C2A;
  --cdr-green: #13964b;
  --cdr-neon: #20c763;
  --cdr-shadow: 0 18px 44px rgba(13,11,11,0.09);
}

html { color-scheme: light !important; }
body {
  color: var(--cdr-graphite) !important;
  background: linear-gradient(180deg, #191514 0%, var(--cdr-offwhite) 100%) !important;
  background-color: var(--cdr-offwhite) !important;
}

/* superfícies */
.card, .panel, .box, .content-card, .form-card, .login-card, .register-card,
.action-card, .user-card, .info-box, .referral-section, .referral-card,
.coupon-card, .coupon-box, .company-card, .partner-card, .store-card,
.product-card, .section-card, .dashboard-card, .metric-card, .stat-card,
[class*="__card"]:not(.cdr-business-copy):not(.cdr-promo-mini),
[class$="-card"]:not(.cdr-business-copy):not(.cdr-promo-mini) {
  background: var(--cdr-white) !important;
  color: var(--cdr-graphite) !important;
  border-color: var(--cdr-line) !important;
  box-shadow: var(--cdr-shadow) !important;
}

/* textos em superfícies claras */
body h1, body h2, body h3, body h4, body h5, body h6,
body .title, body .form-title, body .action-title, body .section-title,
body .info-value, body .referral-label {
  color: var(--cdr-graphite) !important;
}
body p, body .text, body .subtitle, body .form-text, body .description,
body .helper, body .info-label, body .referral-description, body small,
body .muted, body .meta {
  color: var(--cdr-muted) !important;
}

/* dourado = marca/CTA principal */
body .kicker, body .badge, body .eyebrow, body .form-kicker,
body .title span, body .section-title span, body .referral-heading span,
body .gold, body .highlight-gold {
  color: var(--cdr-gold-dark) !important;
}
body .badge, body .eyebrow {
  background: #191514 !important;
  border-color: rgba(125,101,89,0.35) !important;
}

/* campos */
body input:not([type="checkbox"]):not([type="radio"]),
body select, body textarea, body .referral-input {
  color: var(--cdr-graphite) !important;
  background: var(--cdr-white) !important;
  border-color: rgba(155,133,119,0.35) !important;
  box-shadow: none !important;
}
body input::placeholder, body textarea::placeholder { color: #B8ADA5 !important; }
body label { color: var(--cdr-graphite-2) !important; }
body input:focus, body select:focus, body textarea:focus {
  border-color: var(--cdr-gold) !important;
  box-shadow: 0 0 0 3px rgba(125,101,89,0.14) !important;
  outline: none !important;
}

/* botões comuns */
body .button, body .btn, body .action-button, body .submit-button,
body button[type="submit"]:not([class*="whatsapp"]):not([class*="WhatsApp"]),
body .primary-button, body .btn-primary, body .button-primary,
body .referral-share {
  border-color: var(--cdr-gold) !important;
  background: linear-gradient(135deg, #9B8577, var(--cdr-gold)) !important;
  color: #E8E0DA !important;
  box-shadow: 0 9px 22px rgba(125,101,89,0.18) !important;
}

/* vermelho = ação secundária de marca / alertas */
body .btn-danger, body .button-danger, body .danger, body .exit,
body .logout, body .header-button.exit {
  background: var(--cdr-red) !important;
  border-color: var(--cdr-red) !important;
  color: #E8E0DA !important;
}

/* WhatsApp e preços: verde reservado */
body [class*="whatsapp"], body [class*="WhatsApp"],
body a[href*="wa.me"], body a[href*="api.whatsapp.com"],
body .whatsapp-button, body .btn-whatsapp, body .button-whatsapp {
  background: linear-gradient(135deg, #25c66b, var(--cdr-green)) !important;
  border-color: var(--cdr-green) !important;
  color: #E8E0DA !important;
}
body .price, body .price-current, body .price-new, body .promotional-price,
body .valor-promocional, body .coupon-price strong, body .promo-price,
body [class*="price"] strong {
  color: var(--cdr-neon) !important;
}
body del, body .old-price, body .price-old { color: #B8ADA5 !important; }

/* cabeçalhos e rodapés escuros, com a paleta da marca */
body > header:not(.cdr-topbar), .site-header, .main-header, .topbar, .navbar,
.header:not(.card):not(.form-header) {
  background: linear-gradient(135deg, #0D0B0B, #342C2B) !important;
  border-color: rgba(125,101,89,0.24) !important;
  color: #E8E0DA !important;
}
body > header:not(.cdr-topbar) h1, body > header:not(.cdr-topbar) h2,
.site-header h1, .site-header h2, .main-header h1, .main-header h2,
.topbar h1, .topbar h2, .navbar h1, .navbar h2,
.header:not(.card):not(.form-header) h1,
.header:not(.card):not(.form-header) h2,
body > header:not(.cdr-topbar) a, .site-header a, .main-header a,
.topbar a, .navbar a, .header:not(.card):not(.form-header) a {
  color: #E8E0DA !important;
}
footer, .footer, .site-footer, .main-footer {
  background: linear-gradient(135deg, #0D0B0B, #342C2B) !important;
  color: rgba(232,224,218,0.82) !important;
  border-color: rgba(125,101,89,0.18) !important;
}
footer h1, footer h2, footer h3, footer h4,
.footer h1, .footer h2, .footer h3, .footer h4,
footer a, .footer a { color: #E8E0DA !important; }
footer p, .footer p, footer small, .footer small { color: rgba(232,224,218,0.72) !important; }

/* login/cadastro legado */
body .page > .logo, body .page > a.logo { background: transparent !important; box-shadow: none !important; }
body .card::before { background: linear-gradient(90deg, transparent, var(--cdr-gold), transparent) !important; }
body .card-top { border-color: var(--cdr-line) !important; }
body .forgot-link, body .link, body .back-link { color: var(--cdr-red) !important; }

/* alertas */
body .alert.success, body .success, body .message-success {
  color: #0e6e37 !important; background: #191514 !important; border-color: rgba(155,133,119,0.35) !important;
}
body .alert.error, body .error, body .message-error {
  color: #DFA2AB !important; background: #191514 !important; border-color: rgba(155,133,119,0.35) !important;
}

/* mantém componentes da nova home com contraste planejado */
.cdr-topbar, .cdr-business-copy, .cdr-footer, .cdr-hero__carousel { color: #E8E0DA !important; }
.cdr-topbar h1, .cdr-topbar h2, .cdr-topbar h3, .cdr-topbar a,
.cdr-business-copy h1, .cdr-business-copy h2, .cdr-business-copy h3,
.cdr-footer h1, .cdr-footer h2, .cdr-footer h3, .cdr-footer h4, .cdr-footer a,
.cdr-hero__carousel h1, .cdr-hero__carousel h2, .cdr-hero__carousel h3,
.cdr-hero__carousel a { color: #E8E0DA !important; }
.cdr-business-copy p, .cdr-footer p, .cdr-hero__carousel p { color: rgba(232,224,218,0.75) !important; }
.cdr-promo-mini { background: rgba(25,21,20,0.07) !important; color: #E8E0DA !important; border-color: rgba(155,133,119,0.1) !important; box-shadow: none !important; }
.cdr-promo-mini strong { color: #E8E0DA !important; }
.cdr-promo-mini .cdr-price strong { color: var(--cdr-neon) !important; }

@media (max-width: 760px) {
  body { background: #191514 !important; }
}
