/**
 * assets/css/hub-pages.css - Adequação das páginas/componentes legados ao Design System do Hub
 * Escopo: somente páginas públicas (body.gf-public-shell). O painel admin não carrega este arquivo.
 * Paleta: Preto (#000), Superfícies (#0c0c0e / #141417), Branco, Cinzas e Laranja (#F36A27).
 *
 * Os componentes legados (carrinho, login, transmissões) possuem regras com !important em
 * assets/style.css e em <style> inline nos partials. Por isso as regras abaixo usam o prefixo
 * body.gf-public-shell (maior especificidade) e !important apenas onde é necessário vencer o legado.
 */

/* ==========================================================================
   1. BOTÃO E CONTADOR DO CARRINHO (HEADER)
   ========================================================================== */
body.gf-public-shell .hub-cart-btn {
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0 !important;
  justify-content: center;
  border-color: rgba(var(--hub-fg-rgb), 0.18) !important;
}

body.gf-public-shell .hub-cart-btn .hub-cart-badge {
  position: absolute !important;
  top: -6px !important;
  right: -6px !important;
  min-width: 20px !important;
  height: 20px !important;
  padding: 0 5px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: var(--hub-orange) !important;
  color: #fff !important;
  border: 2px solid var(--hub-bg) !important;
  border-radius: 999px !important;
  font-family: var(--hub-font-sans) !important;
  font-size: 0.7rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  box-shadow: 0 0 0 1px rgba(243, 106, 39, 0.35);
}

/* Carrinho vazio: oculta o contador (sem "0" poluindo o header) */
body.gf-public-shell .hub-cart-btn .hub-cart-badge[data-count="0"] {
  display: none !important;
}

/* ==========================================================================
   2. GAVETA DO CARRINHO (#cartDrawer)
   Estilizada centralizadamente em assets/css/hub-theme.css.
   ========================================================================== */

/* ==========================================================================
   3. PÁGINA DE LOGIN (partials/login.php)
   ========================================================================== */
body.gf-public-shell .ignis-login-wrapper {
  background: radial-gradient(circle at 50% 25%, rgba(243, 106, 39, 0.14) 0%, transparent 55%), var(--hub-bg) !important;
  background-image: radial-gradient(circle at 50% 25%, rgba(243, 106, 39, 0.14) 0%, transparent 55%) !important;
  font-family: var(--hub-font-sans) !important;
  min-height: calc(100vh - 72px);
  margin-bottom: 0 !important;
}

body.gf-public-shell .ignis-login-card {
  background: var(--hub-surface-0) !important;
  border: 1px solid rgba(var(--hub-fg-rgb), 0.1) !important;
  border-radius: 22px !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75) !important;
  padding: 44px 36px !important;
  max-width: 420px;
}

body.gf-public-shell .ignis-login-card h1 {
  color: var(--hub-text) !important;
  font-family: var(--hub-font-sans) !important;
  font-size: 1.6rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em;
  margin-bottom: 28px !important;
}

body.gf-public-shell .ignis-input {
  background: var(--hub-surface-2) !important;
  border: 1px solid rgba(var(--hub-fg-rgb), 0.12) !important;
  border-radius: 12px !important;
  color: var(--hub-text) !important;
  -webkit-text-fill-color: var(--hub-text) !important;
  font-family: var(--hub-font-sans) !important;
  padding: 15px 16px !important;
}

body.gf-public-shell .ignis-input::placeholder {
  color: var(--hub-text-dim) !important;
  -webkit-text-fill-color: var(--hub-text-dim) !important;
}

body.gf-public-shell .ignis-input:focus {
  background: var(--hub-surface-3) !important;
  border-color: var(--hub-orange) !important;
  box-shadow: 0 0 0 3px rgba(243, 106, 39, 0.2) !important;
}

/* Autofill do Chrome sem fundo amarelo/branco */
body.gf-public-shell .ignis-input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #141417 inset !important;
  -webkit-text-fill-color: var(--hub-text) !important;
}

body.gf-public-shell .ignis-toggle-pwd {
  background: rgba(var(--hub-fg-rgb), 0.08) !important;
  color: var(--hub-text) !important;
  border: 1px solid rgba(var(--hub-fg-rgb), 0.14) !important;
  border-radius: 8px !important;
  font-family: var(--hub-font-sans) !important;
  font-size: 0.72rem !important;
}

body.gf-public-shell .ignis-toggle-pwd:hover {
  background: var(--hub-orange) !important;
  border-color: var(--hub-orange) !important;
}

body.gf-public-shell .ignis-link {
  color: var(--hub-gray-muted) !important;
  font-family: var(--hub-font-sans) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

body.gf-public-shell .ignis-link:hover {
  color: var(--hub-orange) !important;
}

body.gf-public-shell .ignis-btn {
  background: var(--hub-orange) !important;
  border: 1px solid var(--hub-orange) !important;
  color: #fff !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  font-family: var(--hub-font-sans) !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em;
}

body.gf-public-shell .ignis-btn:hover {
  background: var(--hub-orange-hover) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 10px 28px rgba(243, 106, 39, 0.35) !important;
}

body.gf-public-shell .ignis-btn:active {
  transform: scale(0.98) !important;
}

body.gf-public-shell .ignis-btn.ignis-btn-secondary {
  background: transparent !important;
  border: 1px solid rgba(var(--hub-fg-rgb), 0.18) !important;
}

body.gf-public-shell .ignis-btn.ignis-btn-secondary:hover {
  background: rgba(var(--hub-fg-rgb), 0.08) !important;
  box-shadow: none !important;
}

@media (max-width: 500px) {
  body.gf-public-shell .ignis-login-card {
    padding: 34px 22px !important;
  }
}

/* ==========================================================================
   4. PÁGINA DE TRANSMISSÕES (partials/transmissao.php)
   ========================================================================== */
body.gf-public-shell .transmissao-layout-container {
  max-width: 1280px !important;
}

/* Superfícies (cards) */
body.gf-public-shell .transmissao-header-card,
body.gf-public-shell .waiting-hero-card,
body.gf-public-shell .service-neo-card,
body.gf-public-shell .fallback-neo-card,
body.gf-public-shell .live-action-bar,
body.gf-public-shell .live-chat-panel {
  background: var(--hub-surface-0) !important;
  border: 1px solid rgba(var(--hub-fg-rgb), 0.08) !important;
  border-radius: 20px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55) !important;
  color: var(--hub-text);
}

body.gf-public-shell .responsive-video-wrap {
  border: 1px solid rgba(var(--hub-fg-rgb), 0.08) !important;
  border-radius: 18px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7) !important;
}

/* Tipografia */
body.gf-public-shell .transmissao-main-title,
body.gf-public-shell .waiting-title,
body.gf-public-shell .service-title,
body.gf-public-shell .fallback-title,
body.gf-public-shell .services-block-title,
body.gf-public-shell .service-time-display,
body.gf-public-shell .chat-panel-header h3 {
  color: var(--hub-text) !important;
  font-family: var(--hub-font-sans) !important;
  text-shadow: none !important;
}

body.gf-public-shell .transmissao-main-title {
  font-weight: 800 !important;
  letter-spacing: 0.01em;
}

body.gf-public-shell .services-block-title {
  font-size: 1.3rem !important;
  letter-spacing: -0.01em;
  color: var(--hub-text) !important;
}

body.gf-public-shell .service-time-display {
  font-size: 2.4rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
}

body.gf-public-shell .transmissao-main-desc,
body.gf-public-shell .waiting-lead,
body.gf-public-shell .service-text,
body.gf-public-shell .fallback-desc {
  color: var(--hub-gray-muted) !important;
}

body.gf-public-shell .channel-tag {
  color: var(--hub-gray-dark) !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em;
}

/* Badges / pílulas */
body.gf-public-shell .neo-badge,
body.gf-public-shell .waiting-pill-badge,
body.gf-public-shell .service-featured-badge,
body.gf-public-shell .ignis-badge-tag {
  background: rgba(243, 106, 39, 0.14) !important;
  color: var(--hub-orange) !important;
  border: 1px solid rgba(243, 106, 39, 0.35) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  font-family: var(--hub-font-sans) !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
}

body.gf-public-shell .neo-badge .badge-dot {
  background: var(--hub-orange) !important;
}

body.gf-public-shell .neo-badge.badge-live {
  background: #e53935 !important;
  border-color: #e53935 !important;
  color: var(--hub-text) !important;
}

body.gf-public-shell .neo-badge.badge-live .badge-dot {
  background: #fff !important;
}

body.gf-public-shell .service-featured-badge {
  background: var(--hub-orange) !important;
  color: #fff !important;
  top: -11px;
}

body.gf-public-shell .polling-status-pill {
  background: rgba(var(--hub-fg-rgb), 0.04) !important;
  border: 1px solid rgba(var(--hub-fg-rgb), 0.12) !important;
  box-shadow: none !important;
  color: var(--hub-gray-muted) !important;
  font-weight: 600 !important;
}

body.gf-public-shell .polling-spin-icon {
  border-color: rgba(var(--hub-fg-rgb), 0.2) !important;
  border-top-color: var(--hub-orange) !important;
}

/* Cards de cultos */
body.gf-public-shell .service-neo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(243, 106, 39, 0.45) !important;
}

body.gf-public-shell .service-day-tag {
  color: var(--hub-orange) !important;
  font-size: 0.76rem !important;
  letter-spacing: 0.08em !important;
}

body.gf-public-shell .service-neo-card.featured-service {
  background: radial-gradient(circle at 85% 10%, rgba(243, 106, 39, 0.22) 0%, transparent 60%), var(--hub-surface-1) !important;
  border-color: rgba(243, 106, 39, 0.55) !important;
}

body.gf-public-shell .service-neo-card.featured-service .service-day-tag {
  color: var(--hub-orange) !important;
}

/* Banner IGNIS */
body.gf-public-shell .ignis-neo-banner {
  background: radial-gradient(circle at 90% 20%, rgba(243, 106, 39, 0.35) 0%, transparent 60%), linear-gradient(135deg, #17110d 0%, var(--hub-surface-0) 100%) !important;
  border: 1px solid rgba(243, 106, 39, 0.35) !important;
  border-radius: 22px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
}

body.gf-public-shell .ignis-banner-title {
  text-shadow: none !important;
  font-family: var(--hub-font-sans) !important;
  font-weight: 800 !important;
}

body.gf-public-shell .ignis-banner-text {
  color: var(--hub-gray-muted) !important;
  font-weight: 400 !important;
}

/* Botões da página (neo-btn legados) */
body.gf-public-shell .gf-transmissao-container .neo-btn {
  background: rgba(var(--hub-fg-rgb), 0.06) !important;
  border: 1px solid rgba(var(--hub-fg-rgb), 0.16) !important;
  color: var(--hub-text) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  font-family: var(--hub-font-sans) !important;
  font-weight: 700 !important;
  transition: var(--hub-transition) !important;
}

body.gf-public-shell .gf-transmissao-container .neo-btn:hover {
  background: rgba(var(--hub-fg-rgb), 0.12) !important;
  border-color: #fff !important;
  transform: translateY(-1px) !important;
}

body.gf-public-shell .gf-transmissao-container .neo-btn.btn-yellow,
body.gf-public-shell .gf-transmissao-container .neo-btn.btn-blue {
  background: var(--hub-orange) !important;
  border-color: var(--hub-orange) !important;
}

body.gf-public-shell .gf-transmissao-container .neo-btn.btn-yellow:hover,
body.gf-public-shell .gf-transmissao-container .neo-btn.btn-blue:hover {
  background: var(--hub-orange-hover) !important;
  box-shadow: 0 10px 28px rgba(243, 106, 39, 0.35) !important;
}

/* Chat */
body.gf-public-shell .chat-panel-header {
  background: var(--hub-surface-0) !important;
  border-bottom: 1px solid rgba(var(--hub-fg-rgb), 0.08) !important;
}

body.gf-public-shell .chat-close-btn {
  background: rgba(var(--hub-fg-rgb), 0.06) !important;
  border: 1px solid rgba(var(--hub-fg-rgb), 0.16) !important;
  border-radius: 50% !important;
  box-shadow: none !important;
  color: var(--hub-text) !important;
}

/* ==========================================================================
   5. PÁGINA DE CADASTRO (partials/register.php)
   ========================================================================== */
html body.gf-public-shell .ignis-register-wrapper {
  background: radial-gradient(circle at 50% 15%, rgba(243, 106, 39, 0.14) 0%, transparent 55%), var(--hub-bg) !important;
  background-image: radial-gradient(circle at 50% 15%, rgba(243, 106, 39, 0.14) 0%, transparent 55%) !important;
  font-family: var(--hub-font-sans) !important;
  min-height: calc(100vh - 72px);
  padding: 40px 20px 60px !important;
  margin-bottom: 0 !important;
}

html body.gf-public-shell .ignis-register-card {
  background: var(--hub-surface-0) !important;
  border: 1px solid rgba(var(--hub-fg-rgb), 0.1) !important;
  border-radius: 24px !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.88), 0 0 40px rgba(243, 106, 39, 0.08) !important;
  color: var(--hub-text) !important;
  padding: 42px 38px !important;
  max-width: 780px !important;
  font-family: var(--hub-font-sans) !important;
}

html body.gf-public-shell .ignis-register-card h1 {
  color: var(--hub-text) !important;
  font-family: var(--hub-font-sans) !important;
  font-size: 2rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 8px !important;
}

html body.gf-public-shell .ignis-subtitle {
  color: var(--hub-gray-muted) !important;
  font-family: var(--hub-font-sans) !important;
  font-weight: 400 !important;
  font-size: 0.96rem !important;
  margin-bottom: 32px !important;
}

/* Inputs do Cadastro */
html body.gf-public-shell .ignis-register-card .ignis-input,
html body.gf-public-shell .ignis-register-card #phone_country {
  background-color: var(--hub-surface-2) !important;
  border: 1px solid rgba(var(--hub-fg-rgb), 0.14) !important;
  border-radius: 12px !important;
  color: var(--hub-text) !important;
  -webkit-text-fill-color: var(--hub-text) !important;
  font-family: var(--hub-font-sans) !important;
  font-size: 0.95rem !important;
  padding: 13px 16px !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

html body.gf-public-shell .ignis-register-card .ignis-input:focus {
  background-color: #18181e !important;
  border-color: var(--hub-orange) !important;
  box-shadow: 0 0 0 3px rgba(243, 106, 39, 0.2) !important;
}

html body.gf-public-shell .ignis-register-card .ignis-input::placeholder {
  color: #77777e !important;
  -webkit-text-fill-color: #77777e !important;
}

html body.gf-public-shell .ignis-register-card .password-mismatch .ignis-input {
  border-color: #ef4444 !important;
  background-color: rgba(239, 68, 68, 0.1) !important;
}

html body.gf-public-shell .ignis-register-card .hint {
  color: var(--hub-gray-muted) !important;
  font-family: var(--hub-font-sans) !important;
  font-weight: 500 !important;
  font-size: 0.8rem !important;
  line-height: 1.45 !important;
}

/* Botões internos (Ver senha / Calendário) */
html body.gf-public-shell .ignis-register-card .ignis-btn-inside {
  background: rgba(var(--hub-fg-rgb), 0.08) !important;
  border: 1px solid rgba(var(--hub-fg-rgb), 0.14) !important;
  border-radius: 8px !important;
  color: var(--hub-text) !important;
  font-family: var(--hub-font-sans) !important;
  font-weight: 700 !important;
  font-size: 0.75rem !important;
  right: 8px !important;
}

html body.gf-public-shell .ignis-register-card .ignis-btn-inside:hover {
  background: var(--hub-orange) !important;
  border-color: var(--hub-orange) !important;
  color: #ffffff !important;
}

/* Fieldsets e Checkboxes / Radios */
html body.gf-public-shell .ignis-register-card .ignis-check-wrap {
  background-color: var(--hub-surface-1) !important;
  border: 1px solid rgba(var(--hub-fg-rgb), 0.1) !important;
  border-radius: 16px !important;
  padding: 18px 20px !important;
  margin-bottom: 22px !important;
}

html body.gf-public-shell .ignis-register-card .ignis-check-title {
  color: var(--hub-orange) !important;
  font-family: var(--hub-font-sans) !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  padding: 0 8px !important;
}

html body.gf-public-shell .ignis-register-card .ignis-check-item {
  background: #18181e !important;
  border: 1px solid rgba(var(--hub-fg-rgb), 0.12) !important;
  border-radius: 10px !important;
  color: var(--hub-text) !important;
  font-family: var(--hub-font-sans) !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  padding: 9px 14px !important;
  transition: border-color 0.2s ease, background 0.2s ease !important;
}

html body.gf-public-shell .ignis-register-card .ignis-check-item:hover {
  border-color: rgba(243, 106, 39, 0.55) !important;
  background: rgba(243, 106, 39, 0.1) !important;
}

html body.gf-public-shell .ignis-register-card .ignis-check-item input[type="checkbox"],
html body.gf-public-shell .ignis-register-card .ignis-check-item input[type="radio"] {
  accent-color: var(--hub-orange) !important;
}

/* Seção de Endereço */
html body.gf-public-shell .ignis-register-card .ignis-address-section {
  background-color: var(--hub-surface-1) !important;
  border: 1px solid rgba(var(--hub-fg-rgb), 0.1) !important;
  border-radius: 18px !important;
  padding: 24px !important;
}

html body.gf-public-shell .ignis-register-card .ignis-address-title {
  color: var(--hub-text) !important;
  font-family: var(--hub-font-sans) !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
}

/* Botão de Submit e Link de Login */
html body.gf-public-shell .ignis-register-card .ignis-btn-submit {
  background: var(--hub-orange) !important;
  border: 1px solid var(--hub-orange) !important;
  border-radius: 999px !important;
  box-shadow: 0 10px 28px rgba(243, 106, 39, 0.35) !important;
  color: #ffffff !important;
  font-family: var(--hub-font-sans) !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  max-width: 340px !important;
  padding: 15px 28px !important;
}

html body.gf-public-shell .ignis-register-card .ignis-btn-submit:hover {
  background: var(--hub-orange-hover) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 34px rgba(243, 106, 39, 0.5) !important;
}

html body.gf-public-shell .ignis-register-card .ignis-link {
  color: var(--hub-gray-muted) !important;
  font-family: var(--hub-font-sans) !important;
  font-weight: 600 !important;
  font-size: 0.92rem !important;
  text-decoration: none !important;
}

html body.gf-public-shell .ignis-register-card .ignis-link:hover {
  color: var(--hub-orange) !important;
  text-decoration: underline !important;
}

/* Seletor de País (DDI) e Calendário no Cadastro */
html body.gf-public-shell .ignis-register-card .country-picker-button {
  background: var(--hub-surface-2) !important;
  border: 1px solid rgba(var(--hub-fg-rgb), 0.14) !important;
  border-radius: 12px !important;
  color: var(--hub-text) !important;
  font-family: var(--hub-font-sans) !important;
  min-height: 48px !important;
}

html body.gf-public-shell .ignis-register-card .country-picker-button::after {
  border-right-color: #ffffff !important;
  border-bottom-color: #ffffff !important;
}

html body.gf-public-shell .ignis-register-card .country-picker-list {
  background: var(--hub-surface-2) !important;
  border: 1px solid rgba(var(--hub-fg-rgb), 0.16) !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.85) !important;
}

html body.gf-public-shell .ignis-register-card .country-picker-option {
  background: transparent !important;
  color: var(--hub-text) !important;
  font-family: var(--hub-font-sans) !important;
  border-radius: 8px !important;
}

html body.gf-public-shell .ignis-register-card .country-picker-option:hover,
html body.gf-public-shell .ignis-register-card .country-picker-option.is-selected {
  background: rgba(243, 106, 39, 0.18) !important;
  border: 1px solid rgba(243, 106, 39, 0.5) !important;
  color: var(--hub-text) !important;
}

html body.gf-public-shell .ignis-register-card .country-code-box {
  background: var(--hub-orange) !important;
  color: #ffffff !important;
  border-radius: 6px !important;
}

html body.gf-public-shell .cal-popover {
  background: #121216 !important;
  border: 1px solid rgba(var(--hub-fg-rgb), 0.16) !important;
  border-radius: 18px !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9) !important;
  color: var(--hub-text) !important;
  font-family: var(--hub-font-sans) !important;
}

html body.gf-public-shell .cal-title select {
  background: #1c1c22 !important;
  border: 1px solid rgba(var(--hub-fg-rgb), 0.16) !important;
  border-radius: 8px !important;
  color: var(--hub-text) !important;
  font-family: var(--hub-font-sans) !important;
}

html body.gf-public-shell .cal-nav {
  background: rgba(var(--hub-fg-rgb), 0.08) !important;
  border: 1px solid rgba(var(--hub-fg-rgb), 0.14) !important;
  border-radius: 8px !important;
  color: var(--hub-text) !important;
}

html body.gf-public-shell .cal-nav:hover {
  background: var(--hub-orange) !important;
  border-color: var(--hub-orange) !important;
}

html body.gf-public-shell .cal-weekday {
  color: var(--hub-gray-muted) !important;
  border-bottom-color: rgba(var(--hub-fg-rgb), 0.1) !important;
}

html body.gf-public-shell .cal-day {
  background: transparent !important;
  color: var(--hub-text) !important;
  border-radius: 8px !important;
  font-family: var(--hub-font-sans) !important;
}

html body.gf-public-shell .cal-day:hover {
  background: rgba(var(--hub-fg-rgb), 0.1) !important;
  border-color: rgba(var(--hub-fg-rgb), 0.2) !important;
}

html body.gf-public-shell .cal-day.is-selected {
  background: var(--hub-orange) !important;
  border-color: var(--hub-orange) !important;
  color: #ffffff !important;
}

html body.gf-public-shell .cal-actions {
  border-top-color: rgba(var(--hub-fg-rgb), 0.1) !important;
}

html body.gf-public-shell .cal-actions .cancel {
  background: rgba(var(--hub-fg-rgb), 0.08) !important;
  border: 1px solid rgba(var(--hub-fg-rgb), 0.16) !important;
  border-radius: 8px !important;
  color: var(--hub-text) !important;
  font-family: var(--hub-font-sans) !important;
}

/* Rótulos visíveis (o placeholder some ao digitar e não serve como rótulo) */
html body.gf-public-shell .ignis-register-card .ignis-label {
  display: block !important;
  color: var(--hub-text-soft) !important;
  font-family: var(--hub-font-sans) !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
  margin: 0 0 7px 2px !important;
}

/* Legenda dos grupos dentro do card (no fieldset nativo ela "atravessa" a borda e quebra mal no mobile) */
html body.gf-public-shell .ignis-register-card .ignis-check-title {
  float: left !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 0 4px !important;
  line-height: 1.4 !important;
}

html body.gf-public-shell .ignis-register-card .ignis-check-title + * {
  clear: both !important;
}

html body.gf-public-shell .ignis-register-card .ignis-check-wrap .hint {
  margin: 4px 0 0 !important;
}

/* Membro: sem o fundo amarelado herdado do inline IGNIS */
html body.gf-public-shell .ignis-register-card .ignis-check-wrap[style] {
  background-color: var(--hub-surface-1) !important;
}

/* Seletor de país: código + DDI */
html body.gf-public-shell .ignis-register-card .country-picker-button {
  gap: 8px !important;
  padding-left: 12px !important;
}

html body.gf-public-shell .ignis-register-card .country-ddi {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

html body.gf-public-shell .ignis-register-card .country-picker-button .country-name {
  display: none;
}

html body.gf-public-shell .ignis-register-card .ignis-phone-group {
  grid-template-columns: 116px 1fr !important;
  gap: 10px !important;
}

/* Abaixo de 768px .ignis-grid-2 vira 1 coluna; pares curtos continuam lado a lado */
@media (max-width: 767px) {
  html body.gf-public-shell .ignis-register-card .ignis-grid-pair {
    grid-template-columns: 1fr 1.6fr !important;
    gap: 12px !important;
  }

  html body.gf-public-shell .ignis-register-card .ignis-grid-uf {
    grid-template-columns: 1fr 2fr !important;
  }

  /* Se um rótulo quebrar em 2 linhas, os campos do par continuam alinhados pela base */
  html body.gf-public-shell .ignis-register-card .ignis-grid-pair .ignis-input-group {
    justify-content: flex-end !important;
  }
}

@media (max-width: 640px) {
  /* Paddings do wrapper/card no mobile ficam no bloco responsivo do fim do arquivo */
  html body.gf-public-shell .ignis-register-wrapper {
    align-items: flex-start !important;
  }

  html body.gf-public-shell .ignis-register-card h1 {
    font-size: 1.6rem !important;
    text-transform: none !important;
  }

  html body.gf-public-shell .ignis-subtitle {
    margin-bottom: 24px !important;
  }

  html body.gf-public-shell .ignis-register-card .ignis-grid-1,
  html body.gf-public-shell .ignis-register-card .ignis-grid-2 {
    gap: 16px !important;
    margin-bottom: 16px !important;
  }

  /* 16px evita o zoom automático do iOS ao focar o campo */
  html body.gf-public-shell .ignis-register-card .ignis-input,
  html body.gf-public-shell .ignis-register-card .country-picker-button {
    font-size: 16px !important;
    min-height: 50px !important;
  }

  html body.gf-public-shell .ignis-register-card .ignis-check-wrap {
    padding: 16px 14px !important;
    margin-bottom: 16px !important;
  }

  /* Opções como chips que crescem para preencher cada linha (sem quebrar palavras), alvo de toque de 44px */
  html body.gf-public-shell .ignis-register-card .ignis-check-wrap > div {
    gap: 8px !important;
    margin-top: 8px !important;
  }

  html body.gf-public-shell .ignis-register-card .ignis-check-item {
    flex: 1 1 auto !important;
    margin: 0 !important;
    min-height: 44px !important;
    padding: 9px 12px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
  }

  html body.gf-public-shell .ignis-register-card .ignis-check-item input {
    flex-shrink: 0 !important;
  }

  /* "Sou estrangeiro(a)" ocupa a largura do campo acima */
  html body.gf-public-shell .ignis-register-card .ignis-input-group > .ignis-check-item {
    display: flex !important;
    width: 100% !important;
    white-space: normal !important;
  }

  html body.gf-public-shell .ignis-register-card .ignis-address-section {
    padding: 18px 14px !important;
    margin-top: 4px !important;
  }

  html body.gf-public-shell .ignis-register-card .ignis-address-title {
    font-size: 1.05rem !important;
    text-transform: none !important;
    margin-bottom: 16px !important;
  }

  html body.gf-public-shell .ignis-register-card .ignis-actions {
    gap: 14px !important;
  }

  html body.gf-public-shell .ignis-register-card .ignis-btn-submit {
    max-width: none !important;
    min-height: 52px !important;
  }
}

/* Cadastro em etapas (ativado via JS somente abaixo de 768px: .form-register.is-stepped) */
html body.gf-public-shell .ignis-register-card {
  scroll-margin-top: calc(var(--gf-header-h, 72px) + 12px);
}

html body.gf-public-shell .form-register:not(.is-stepped) .reg-progress {
  display: none !important;
}

html body.gf-public-shell .form-register .reg-step[hidden] {
  display: none !important;
}

html body.gf-public-shell .reg-progress {
  margin: 0 0 22px;
}

html body.gf-public-shell .reg-progress-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

html body.gf-public-shell .reg-progress-count {
  color: var(--hub-orange);
  font-family: var(--hub-font-sans);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

html body.gf-public-shell .reg-progress-title {
  color: var(--hub-text);
  font-family: var(--hub-font-sans);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  outline: none;
}

html body.gf-public-shell .reg-progress-bar {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 6px;
}

html body.gf-public-shell .reg-progress-bar span {
  height: 4px;
  border-radius: 999px;
  background: rgba(var(--hub-fg-rgb), 0.12);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

html body.gf-public-shell .reg-progress-bar span.is-done {
  background: rgba(243, 106, 39, 0.55);
}

html body.gf-public-shell .reg-progress-bar span.is-current {
  background: var(--hub-orange);
  box-shadow: 0 0 10px rgba(243, 106, 39, 0.55);
}

html body.gf-public-shell .reg-step-nav {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

html body.gf-public-shell .reg-step-nav button[hidden] {
  display: none !important;
}

html body.gf-public-shell .reg-btn-back,
html body.gf-public-shell .reg-btn-next {
  min-height: 52px !important;
  border-radius: 999px !important;
  font-family: var(--hub-font-sans) !important;
  font-size: 0.95rem !important;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

html body.gf-public-shell .reg-btn-back {
  flex: 0 0 auto;
  padding: 0 22px !important;
  background: transparent !important;
  border: 1px solid rgba(var(--hub-fg-rgb), 0.18) !important;
  color: var(--hub-text) !important;
  font-weight: 700 !important;
}

html body.gf-public-shell .reg-btn-back:hover {
  background: rgba(var(--hub-fg-rgb), 0.06) !important;
  border-color: rgba(var(--hub-fg-rgb), 0.32) !important;
}

html body.gf-public-shell .reg-btn-next {
  flex: 1 1 auto;
  padding: 0 24px !important;
  background: var(--hub-orange) !important;
  border: 1px solid var(--hub-orange) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  box-shadow: 0 10px 28px rgba(243, 106, 39, 0.35) !important;
}

html body.gf-public-shell .reg-btn-next:hover {
  background: var(--hub-orange-hover) !important;
}

html body.gf-public-shell .reg-step-nav .ignis-btn-submit {
  flex: 1 1 auto;
  width: auto !important;
  margin: 0 !important;
}

/* ==========================================================================
   6. RECUPERAÇÃO E REDEFINIÇÃO DE SENHA (forgot_password.php / reset_password.php)
   ========================================================================== */
html body.gf-public-shell .forgot-page {
  background: radial-gradient(circle at 50% 25%, rgba(243, 106, 39, 0.14) 0%, transparent 55%), var(--hub-bg) !important;
}

html body.gf-public-shell .forgot-card,
html body.gf-public-shell .auth-container {
  background: var(--hub-surface-0) !important;
  border: 1px solid rgba(var(--hub-fg-rgb), 0.1) !important;
  border-radius: 22px !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85) !important;
  color: var(--hub-text) !important;
}

html body.gf-public-shell .forgot-brand img {
  filter: brightness(0) invert(1) !important;
}

html body.gf-public-shell .forgot-copy h1,
html body.gf-public-shell .forgot-form label {
  color: var(--hub-text) !important;
}

html body.gf-public-shell .forgot-copy p {
  color: var(--hub-gray-muted) !important;
}

html body.gf-public-shell .forgot-form input,
html body.gf-public-shell .auth-form input {
  background: var(--hub-surface-2) !important;
  border: 1px solid rgba(var(--hub-fg-rgb), 0.14) !important;
  border-radius: 12px !important;
  color: var(--hub-text) !important;
}

html body.gf-public-shell .forgot-form input:focus,
html body.gf-public-shell .auth-form input:focus {
  border-color: var(--hub-orange) !important;
  box-shadow: 0 0 0 3px rgba(243, 106, 39, 0.2) !important;
}

html body.gf-public-shell .forgot-form button,
html body.gf-public-shell .auth-form button,
html body.gf-public-shell .btn-login-direct {
  background: var(--hub-orange) !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  font-weight: 800 !important;
}

html body.gf-public-shell .forgot-back,
html body.gf-public-shell .auth-form a.link-voltar {
  color: var(--hub-gray-muted) !important;
}

html body.gf-public-shell .forgot-back:hover,
html body.gf-public-shell .auth-form a.link-voltar:hover {
  color: var(--hub-orange) !important;
}

@media (max-width: 640px) {
  html body.gf-public-shell .ignis-register-card {
    padding: 28px 18px !important;
  }
}

/* ==========================================================================
   7. AJUSTES GLOBAIS DE RESPONSIVIDADE MOBILE (TODAS AS TELAS DO HUB)
   Garante visual Premium Dark, fluidez, acessibilidade e ausência de scroll horizontal
   ========================================================================== */

/* Prevenção universal de overflow horizontal */
html,
body.gf-public-shell {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

@media (max-width: 768px) {
  body.gf-public-shell .site-header .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  body.gf-public-shell .site-header .logo img {
    height: 28px !important;
    width: auto !important;
  }

  /* Gaveta do Carrinho adaptada para telas menores */
  body.gf-public-shell #cartDrawer .panel {
    width: 100% !important;
    max-width: 100vw !important;
  }

  body.gf-public-shell #cartDrawer header {
    padding: 16px 18px !important;
  }

  body.gf-public-shell #cartDrawer .cart-footer {
    padding: 16px 18px !important;
  }
}

@media (max-width: 640px) {
  /* Evita zoom automático indesejado no iOS Safari ao focar inputs */
  body.gf-public-shell input:not([type="checkbox"]):not([type="radio"]),
  body.gf-public-shell select,
  body.gf-public-shell textarea {
    font-size: 16px !important;
  }

  /* Cards de autenticação (Cadastro, Login, Esqueci Senha) */
  html body.gf-public-shell .ignis-register-wrapper,
  html body.gf-public-shell .ignis-login-wrapper,
  html body.gf-public-shell .forgot-page {
    padding: 24px 12px 48px !important;
    box-sizing: border-box !important;
  }

  html body.gf-public-shell .ignis-register-card,
  html body.gf-public-shell .ignis-login-card,
  html body.gf-public-shell .forgot-card {
    padding: 24px 16px !important;
    border-radius: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  html body.gf-public-shell .ignis-register-card h1,
  html body.gf-public-shell .ignis-login-card h1,
  html body.gf-public-shell .forgot-copy h1 {
    font-size: 1.65rem !important;
    margin-bottom: 8px !important;
  }

  html body.gf-public-shell .ignis-address-section {
    padding: 16px 12px !important;
    border-radius: 12px !important;
  }

  html body.gf-public-shell .form-register .row,
  html body.gf-public-shell .auth-form .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Imagens responsivas */
  body.gf-public-shell img {
    max-width: 100% !important;
    height: auto;
  }
}

@media (max-width: 480px) {
  body.gf-public-shell .site-header .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}
