:root {
  --pitch-black:  #08080a;
  --bg-slate:     #0d0e12;
  --bg-card:      #16171d;
  --bg-elevated:  #1f2028;
  --border:       rgba(255, 255, 255, 0.08);
  --border-soft:  rgba(255, 255, 255, 0.12);
  --border-gold:  rgba(255, 215, 0, 0.25);
  --accent:       #FFD700;
  --accent-dim:   #e6c200;
  --accent-glow:  rgba(255, 215, 0, 0.15);
  --white:        #ffffff;
  --text-primary: #f8f9fa;
  --text-muted:   #a0a5b5;
  --text-faint:   #6c7284;
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --radius-pill:  100px;
  --transition:   0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Force Dark Mode Body Background */
body, 
body.elementor-page, 
#page, 
#content, 
.site-content, 
.elementor-section, 
.elementor-container {
  background-color: var(--bg-slate) !important;
  color: var(--text-primary);
}

/* Base Widget Scope */
.mesa-conecta-widget {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-primary);
  width: 100%;
}

.mesa-conecta-widget * {
  box-sizing: border-box;
}

/* ══════════════════════════════════════════════════════
   1. PREMIUM FLOATING HEADER
   ══════════════════════════════════════════════════════ */
.mesa-conecta-widget .mesa-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(22, 23, 29, 0.85) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-gold);
  padding: 10px 28px;
  border-radius: var(--radius-pill);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 215, 0, 0.05);
  gap: 24px;
  overflow: visible !important;
  z-index: 9999;
}

.mesa-conecta-widget .mesa-header-logo a {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-shadow: 0 0 12px var(--accent-glow);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mesa-conecta-widget .mesa-header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.mesa-conecta-widget .mesa-nav-link {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
}

.mesa-conecta-widget .mesa-nav-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.mesa-conecta-widget .mesa-header-auth {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mesa-conecta-widget .mesa-user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-elevated);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.mesa-conecta-widget .mesa-badge-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.mesa-conecta-widget .mesa-badge-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
}

.mesa-conecta-widget .btn-logout-mini {
  background: rgba(231, 76, 60, 0.15);
  color: #ff6b6b;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(231, 76, 60, 0.3);
  transition: all var(--transition);
  margin-left: 4px;
}

.mesa-conecta-widget .btn-logout-mini:hover {
  background: rgba(231, 76, 60, 0.35);
  color: #ffffff;
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════════
   2. PREMIUM MEMBER CARD (CARTÃO DO MEMBRO)
   ══════════════════════════════════════════════════════ */
.mesa-conecta-widget .mesa-member-card {
  background: linear-gradient(145deg, #181920, #111216);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  max-width: 500px;
  margin: 20px auto;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(255, 215, 0, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Subtle Card Glow Effect behind avatar */
.mesa-conecta-widget .mesa-member-card::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.mesa-conecta-widget .mesa-member-avatar-wrapper {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--bg-elevated);
  box-shadow: 0 0 25px var(--accent-glow), 0 8px 20px rgba(0,0,0,0.5);
  position: relative;
  z-index: 1;
}

.mesa-conecta-widget .mesa-member-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mesa-conecta-widget .mesa-member-name {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.mesa-conecta-widget .mesa-member-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.1);
  position: relative;
  z-index: 1;
}

.mesa-conecta-widget .mesa-member-bio {
  color: #e2e8f0;
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 28px;
  background: rgba(255, 255, 255, 0.03);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 1;
}

.mesa-conecta-widget .mesa-member-actions {
  display: flex;
  gap: 14px;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.mesa-conecta-widget .btn-social {
  height: 46px;
  padding: 0 22px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.mesa-conecta-widget .btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #ffffff;
}
.mesa-conecta-widget .btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35);
  color: #ffffff;
}

.mesa-conecta-widget .btn-instagram {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
}
.mesa-conecta-widget .btn-instagram:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(220, 39, 67, 0.35);
  color: #ffffff;
}

.mesa-conecta-widget .btn-website {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #08080a;
}
.mesa-conecta-widget .btn-website:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 215, 0, 0.35);
  color: #08080a;
}

/* ══════════════════════════════════════════════════════
   3. AUTH FORMS (LOGIN, CADASTRO, EDITAR PERFIL)
   ══════════════════════════════════════════════════════ */
.mesa-conecta-widget .auth-form-wrapper {
  background: linear-gradient(145deg, #181920, #111216);
  padding: 44px;
  border-radius: var(--radius-lg);
  max-width: 540px;
  margin: 20px auto;
  border: 1px solid var(--border-gold);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.mesa-conecta-widget .auth-form-header {
  text-align: center;
  margin-bottom: 32px;
}

.mesa-conecta-widget .auth-form-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.mesa-conecta-widget .auth-form-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.mesa-conecta-widget .form-group {
  margin-bottom: 22px;
  text-align: left;
}

.mesa-conecta-widget .form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mesa-conecta-widget .form-input {
  width: 100%;
  height: 50px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 0 18px;
  color: var(--white);
  font-size: 1rem;
  transition: all var(--transition);
}

.mesa-conecta-widget .form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: #252732;
}

.mesa-conecta-widget textarea.form-input {
  height: 120px;
  padding: 16px;
  resize: vertical;
}

/* Buttons Base */
.mesa-conecta-widget .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 700;
  transition: all var(--transition);
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.mesa-conecta-widget .btn-primary {
  background: linear-gradient(135deg, #FFD700, #e6b800);
  color: #08080a;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.25);
}

.mesa-conecta-widget .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 215, 0, 0.4);
  color: #08080a;
}

.mesa-conecta-widget .btn-block {
  width: 100%;
}

/* Alerts */
.mesa-conecta-widget .mesa-alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
}
.mesa-conecta-widget .mesa-alert-error {
  background: rgba(231, 76, 60, 0.12);
  color: #ff6b6b;
  border: 1px solid rgba(231, 76, 60, 0.3);
}
.mesa-conecta-widget .mesa-alert-success {
  background: rgba(39, 174, 96, 0.12);
  color: #2ecc71;
  border: 1px solid rgba(39, 174, 96, 0.3);
}

/* Vitrine Grid */
.mesa-conecta-widget .mesa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 28px;
  padding: 20px 0;
}

.mesa-conecta-widget .mesa-card {
  background: linear-gradient(145deg, #181920, #111216);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}

.mesa-conecta-widget .mesa-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.6), 0 0 20px var(--accent-glow);
  border-color: var(--border-gold);
}

.mesa-conecta-widget .mesa-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
}

.mesa-conecta-widget .mesa-card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 22px;
  flex: 1;
}

/* ══════════════════════════════════════════════════════
   4. RESPONSIVIDADE E MOBILE
   ══════════════════════════════════════════════════════ */
.mesa-conecta-widget .mesa-mobile-menu-icon {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}
.mesa-conecta-widget .hamburger-line {
  width: 25px;
  height: 3px;
  background-color: var(--accent);
  border-radius: 3px;
  transition: 0.3s;
}

@media (max-width: 768px) {
  /* Cabecalho e Menu Hamburguer */
  .mesa-conecta-widget .mesa-header-bar {
    flex-wrap: wrap;
    padding: 12px 20px;
    border-radius: 16px;
  }
  .mesa-conecta-widget .mesa-mobile-menu-icon {
    display: flex;
    order: 2;
  }
  .mesa-conecta-widget .mesa-header-auth {
    order: 1;
    margin-left: auto;
    margin-right: 15px;
  }
  
  .mesa-conecta-widget .mesa-header-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    order: 3;
    padding-top: 20px;
    gap: 15px;
    border-top: 1px solid var(--border-soft);
    margin-top: 15px;
  }
  
  #mesa-mobile-toggle:checked ~ .mesa-header-nav {
    display: flex;
  }

  /* Grid: Duas colunas em telas menores */
  .mesa-conecta-widget .mesa-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 10px 0;
  }

  /* Ajustes dos Cards para caberem 2 por linha */
  .mesa-conecta-widget .mesa-card {
    padding: 12px !important;
  }
  
  .mesa-conecta-widget .mesa-card-title {
    font-size: 1rem !important;
    margin-bottom: 6px !important;
  }
  
  .mesa-conecta-widget .mesa-card-desc {
    font-size: 0.8rem !important;
    line-height: 1.3 !important;
    margin-bottom: 12px !important;
  }
  
  .mesa-conecta-widget .mesa-card .btn {
    padding: 0 10px !important;
    font-size: 0.75rem !important;
    height: 36px !important;
  }
  
  .mesa-vitrine-author-badge {
    padding: 4px 6px !important;
    gap: 4px !important;
  }
  .mesa-vitrine-author-badge img {
    width: 20px !important;
    height: 20px !important;
  }
  .mesa-vitrine-author-badge span {
    font-size: 0.7rem !important;
  }
}

/* ══════════════════════════════════════════════════════
   5. MÓDULO DE AULAS
   ══════════════════════════════════════════════════════ */

/* Grade de Aulas (lista de módulos) */
.mesa-aulas-wrapper {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 20px 0;
}

.mesa-aulas-modulo-titulo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-left: 4px solid var(--accent);
  padding-left: 14px;
}

.mesa-aulas-grade {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

/* Card da Aula */
.mesa-aula-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, #181920, #111216);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  transition: all var(--transition);
}

.mesa-aula-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-gold);
  box-shadow: 0 14px 32px rgba(0,0,0,0.6), 0 0 18px var(--accent-glow);
}

.mesa-aula-card.mesa-aula-assistida {
  border-color: rgba(46, 204, 113, 0.4);
}

/* Thumbnail */
.mesa-aula-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-elevated);
  overflow: hidden;
}

.mesa-aula-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.mesa-aula-card:hover .mesa-aula-thumb img {
  transform: scale(1.05);
}

.mesa-aula-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--text-faint);
}

.mesa-aula-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(255,255,255,0.85);
  opacity: 0;
  transition: opacity var(--transition);
}

.mesa-aula-card:hover .mesa-aula-play-overlay {
  opacity: 1;
}

.mesa-aula-badge-visto {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(46, 204, 113, 0.85);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
}

/* Info do Card */
.mesa-aula-info {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mesa-aula-numero {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mesa-aula-titulo {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  margin: 0;
}

/* ─── Player ─────────────────────────────────── */

.mesa-player-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 0;
}

.mesa-player-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mesa-player-back {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color var(--transition);
}
.mesa-player-back:hover { color: var(--accent); }

.mesa-player-numero {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--accent-glow);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
}

.mesa-player-titulo {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0;
}

.mesa-player-video-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 50px rgba(0,0,0,0.7);
}

.mesa-player-video-wrap iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.mesa-player-no-video {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 1.1rem;
}

.mesa-player-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mesa-marcar-btn { cursor: pointer; }

.mesa-assistida-ok {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2ecc71;
  font-weight: 700;
  font-size: 1rem;
  background: rgba(46,204,113,0.1);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(46,204,113,0.3);
}

.mesa-player-descricao {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  border: 1px solid var(--border);
}

.mesa-player-descricao h2 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.mesa-player-conteudo {
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.7;
}

.mesa-player-nav-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.mesa-nav-btn-prev {
  background: var(--bg-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border-soft);
}
.mesa-nav-btn-prev:hover {
  color: var(--white);
  border-color: var(--white);
}

/* Responsivo – aulas */
@media (max-width: 768px) {
  .mesa-aulas-grade {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }

  .mesa-player-titulo {
    font-size: 1.25rem;
  }

  .mesa-player-descricao {
    padding: 18px 16px;
  }

  .mesa-player-nav-bottom {
    flex-direction: column;
  }
}

/* ══════════════════════════════════════════════════════
   6. MENU OFF-CANVAS (USER GAVETA)
   ══════════════════════════════════════════════════════ */
.mesa-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2147483640; /* Logo abaixo da sidebar */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mesa-sidebar-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.mesa-user-sidebar {
    position: fixed;
    top: 0;
    right: -320px; /* Fora da tela */
    width: 300px;
    height: 100vh;
    background: #111216;
    border-left: 1px solid var(--border-gold);
    z-index: 2147483647; /* Suprema prioridade na janela inteira */
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mesa-user-sidebar.is-open {
    right: 0;
}

.mesa-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border-soft);
}

.mesa-sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mesa-sidebar-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.mesa-sidebar-name {
    font-weight: 700;
    color: var(--white);
    font-size: 1rem;
}

.mesa-sidebar-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    transition: color var(--transition);
}
.mesa-sidebar-close:hover { color: var(--white); }

.mesa-sidebar-body {
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

/* Links dentro da gaveta lateral — sempre branco */
.mesa-sidebar-body a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-primary) !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition);
}
.mesa-sidebar-body a:hover {
    background: rgba(255,255,255,0.06);
    color: var(--white) !important;
}

/* Link de sair — cor vermelha mas escopo controlado */
.mesa-sidebar-body a.text-danger {
    color: #ff6b6b !important;
}
.mesa-sidebar-body a.text-danger:hover {
    background: rgba(231,76,60,0.12);
    color: #ff8888 !important;
}

@media (max-width: 768px) {
    .mesa-user-sidebar {
        width: 100vw;
        right: -100vw;
    }
}

/* ══════════════════════════════════════════════════════
   7. CRUD DE OFERTAS / CLASSIFICADOS
   ══════════════════════════════════════════════════════ */
.mesa-crud-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mesa-crud-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 24px;
}

.mesa-crud-tab {
  padding: 10px 20px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.mesa-crud-tab:hover {
  color: var(--white);
}
.mesa-crud-tab.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.mesa-crud-panel {
  display: none;
}
.mesa-crud-panel.is-active {
  display: block;
}

.mesa-minha-lista {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mesa-minha-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(145deg, #181920, #111216);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  transition: border-color var(--transition);
}
.mesa-minha-item:hover {
  border-color: var(--border-gold);
}

.mesa-minha-item-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-elevated);
}

.mesa-minha-item-info {
  flex: 1;
  min-width: 0;
}

.mesa-minha-item-title {
  font-weight: 700;
  color: var(--white);
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mesa-status-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-top: 4px;
}
.mesa-status-pending {
  background: rgba(255,165,0,0.15);
  color: #FFA500;
  border: 1px solid rgba(255,165,0,0.35);
}
.mesa-status-publish {
  background: rgba(46,204,113,0.12);
  color: #2ecc71;
  border: 1px solid rgba(46,204,113,0.3);
}
.mesa-status-trash {
  background: rgba(231,76,60,0.1);
  color: #ff6b6b;
  border: 1px solid rgba(231,76,60,0.2);
}

.mesa-minha-item-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.mesa-btn-editar,
.mesa-btn-excluir {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}
.mesa-btn-editar {
  background: var(--bg-elevated);
  color: var(--accent);
  border: 1px solid var(--border-gold);
}
.mesa-btn-editar:hover {
  background: rgba(255,215,0,0.1);
}
.mesa-btn-excluir {
  background: rgba(231,76,60,0.12);
  color: #ff6b6b;
  border: 1px solid rgba(231,76,60,0.25);
}
.mesa-btn-excluir:hover {
  background: rgba(231,76,60,0.25);
}

.mesa-lista-vazia {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ══════════════════════════════════════════════════════
   8. COMENTÁRIOS DE AULAS
   ══════════════════════════════════════════════════════ */
.mesa-comentarios-section {
  margin-top: 32px;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 28px 32px;
}

.mesa-comentarios-section h2 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.mesa-comentario-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.mesa-comentario-form textarea {
  width: 100%;
  min-height: 80px;
  background: #111216;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  color: var(--white);
  padding: 12px 14px;
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color var(--transition);
  font-family: inherit;
}
.mesa-comentario-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.mesa-comentario-form .btn-comentar {
  align-self: flex-end;
  height: 40px;
  padding: 0 22px;
  font-size: 0.9rem;
}

.mesa-comentarios-lista {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mesa-comentario-item {
  display: flex;
  gap: 14px;
}

.mesa-comentarios-lista .mesa-comentario-item img.mesa-comentario-avatar {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  max-width: 38px !important;
  max-height: 38px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
  border: 2px solid var(--border-soft) !important;
  display: block !important;
  aspect-ratio: 1 / 1 !important;
}

.mesa-comentario-body {
  flex: 1;
  background: #111216;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  border: 1px solid var(--border);
}

.mesa-comentario-autor {
  font-weight: 700;
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.mesa-comentario-texto {
  color: var(--text-primary);
  font-size: 0.92rem;
  line-height: 1.55;
}

.mesa-comentario-data {
  color: var(--text-faint);
  font-size: 0.78rem;
  margin-top: 6px;
}

.mesa-pendente-notice {
  background: rgba(255,215,0,0.06);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--accent);
  font-size: 0.85rem;
  text-align: center;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .mesa-comentarios-section {
    padding: 18px 16px;
  }
  .mesa-minha-item {
    flex-wrap: wrap;
  }
  .mesa-minha-item-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

  /* ══════════════════════════════════════════════════════
   13. WOOCOMMERCE CHECKOUT - DARK MODE DESIGN SYSTEM
   ══════════════════════════════════════════════════════ */

/* Global CSS Variables Override for WooCommerce & Gutenberg Blocks */
html body.woocommerce-checkout,
html body.woocommerce-checkout .woocommerce,
html body.woocommerce-checkout .wc-block-checkout,
html body.woocommerce-checkout .wp-block-woocommerce-checkout {
  --wp--preset--color--white: #16171d !important;
  --wp--preset--color--base: #16171d !important;
  --wp--preset--color--base-2: #1f2028 !important;
  --wp--preset--color--neutral-0: #16171d !important;
  --wp--preset--color--neutral-10: #1f2028 !important;
  --wp--preset--color--neutral-20: #2a2b36 !important;
  background-color: var(--bg-slate) !important;
  color: var(--text-primary) !important;
}

/* Force Dark Background on Body, Page, Content and Header */
html body.woocommerce-checkout,
html body.woocommerce-checkout #page,
html body.woocommerce-checkout #content,
html body.woocommerce-checkout .site-content,
html body.woocommerce-checkout header,
html body.woocommerce-checkout .site-header,
html body.woocommerce-checkout #masthead,
html body.woocommerce-checkout .header-wrapper,
html body.woocommerce-checkout .ast-primary-header-bar,
html body.woocommerce-checkout .elementor-location-header {
  background-color: var(--bg-slate) !important;
  color: var(--text-primary) !important;
}

/* Ultra-high Specificity Dark Mode Cards (Main Steps, Progress Bar, Sidebar, Summary) */
html body.woocommerce-checkout .wc-block-checkout__main .wc-block-components-checkout-step,
html body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-sidebar-layout,
html body.woocommerce-checkout .wc-block-components-checkout-step,
html body.woocommerce-checkout .wc-block-components-checkout-step__container,
html body.woocommerce-checkout .wc-block-components-panel,
html body.woocommerce-checkout .wc-block-components-sidebar,
html body.woocommerce-checkout .wc-block-components-sidebar-layout,
html body.woocommerce-checkout .wc-block-components-totals-wrapper,
html body.woocommerce-checkout .wc-block-components-order-summary,
html body.woocommerce-checkout .wc-block-card,
html body.woocommerce-checkout .wc-block-components-card,
html body.woocommerce-checkout fieldset,
html body.woocommerce-checkout fieldset.wc-block-components-checkout-step,
html body.woocommerce-checkout div[class*="wc-block-components-checkout-step"],
html body.woocommerce-checkout div[class*="wc-block-components-sidebar"],
html body.woocommerce-checkout div[class*="wc-block-components-totals"],
html body.woocommerce-checkout div[class*="wc-block-components-panel"],
html body.woocommerce-checkout div[class*="wp-block-woocommerce-checkout"],
html body.woocommerce-checkout .woocommerce-billing-fields,
html body.woocommerce-checkout .woocommerce-shipping-fields,
html body.woocommerce-checkout #order_review_heading,
html body.woocommerce-checkout #order_review,
html body.woocommerce-checkout .fc-step__inner,
html body.woocommerce-checkout .fc-checkout-order-review,
html body.woocommerce-checkout .fc-sidebar {
  background: linear-gradient(145deg, #181920, #111216) !important;
  background-color: #16171d !important;
  border: 1px solid var(--border-soft) !important;
  border-radius: var(--radius-md) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
  padding: 24px !important;
  margin-bottom: 24px !important;
}

/* Make Inner Wrappers Transparent to eliminate nested box artifacts */
html body.woocommerce-checkout .wc-block-components-checkout-step__content,
html body.woocommerce-checkout .wc-block-components-checkout-step__header,
html body.woocommerce-checkout .wc-block-components-panel__content,
html body.woocommerce-checkout .wc-block-components-sidebar-layout > div,
html body.woocommerce-checkout .wc-block-components-totals-wrapper > div,
html body.woocommerce-checkout .wc-block-components-order-summary > div,
html body.woocommerce-checkout .wc-block-components-order-summary-item,
html body.woocommerce-checkout .wc-block-components-totals-item,
html body.woocommerce-checkout .wc-block-components-totals-footer-item,
html body.woocommerce-checkout .wc-block-components-checkout-step__container > div,
html body.woocommerce-checkout div[class*="wc-block-components-order-summary-item"],
html body.woocommerce-checkout div[class*="wc-block-components-totals-item"] {
  background: transparent !important;
  background-color: transparent !important;
}

/* Step Header & Titles ("PASSO 1 DE 3", "CONTATO", "RESUMO DO PEDIDO") */
html body.woocommerce-checkout .wc-block-components-checkout-step__title,
html body.woocommerce-checkout .wc-block-components-title,
html body.woocommerce-checkout .wc-block-components-checkout-step__heading,
html body.woocommerce-checkout .wc-block-components-order-summary__title,
html body.woocommerce-checkout .wc-block-components-checkout-step__header,
html body.woocommerce-checkout .wc-block-components-checkout-step__header *,
html body.woocommerce-checkout .woocommerce h1,
html body.woocommerce-checkout .woocommerce h2,
html body.woocommerce-checkout .woocommerce h3,
html body.woocommerce-checkout .woocommerce h4,
html body.woocommerce-checkout .wp-block-woocommerce-checkout h1,
html body.woocommerce-checkout .wp-block-woocommerce-checkout h2,
html body.woocommerce-checkout .wp-block-woocommerce-checkout h3,
html body.woocommerce-checkout .wp-block-woocommerce-checkout h4,
html body.woocommerce-checkout legend,
html body.woocommerce-checkout .fc-step__title,
html body.woocommerce-checkout .fc-step__sub-title,
html body.woocommerce-checkout .fc-checkout-step__title {
  color: #ffffff !important;
  background: transparent !important;
  font-weight: 700 !important;
}

/* Accent Gold for Main Section Titles */
html body.woocommerce-checkout .wc-block-components-order-summary__title,
html body.woocommerce-checkout .wc-block-components-title {
  color: var(--accent) !important;
  letter-spacing: -0.01em !important;
}

/* Step Progress Indicator ("PASSO 1 DE 3") */
html body.woocommerce-checkout .wc-block-components-checkout-step__badge {
  background: var(--accent) !important;
  color: #000000 !important;
  font-weight: 700 !important;
}

html body.woocommerce-checkout .wc-block-components-checkout-step__progress-bar,
html body.woocommerce-checkout .wc-block-components-step-indicator {
  background: rgba(255, 255, 255, 0.08) !important;
  border-radius: var(--radius-pill) !important;
}

html body.woocommerce-checkout .wc-block-components-checkout-step__progress-bar-fill,
html body.woocommerce-checkout .wc-block-components-step-indicator__bar {
  background: linear-gradient(90deg, #FFD700, #e6c200) !important;
  border-radius: var(--radius-pill) !important;
}

/* Form Input Containers & Inputs */
html body.woocommerce-checkout .wc-block-components-text-input,
html body.woocommerce-checkout .wc-block-components-combobox,
html body.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input {
  background: transparent !important;
}

html body.woocommerce-checkout .wc-block-components-text-input input,
html body.woocommerce-checkout .wc-block-components-combobox input,
html body.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input,
html body.woocommerce-checkout .woocommerce input[type="text"],
html body.woocommerce-checkout .woocommerce input[type="email"],
html body.woocommerce-checkout .woocommerce input[type="tel"],
html body.woocommerce-checkout .woocommerce input[type="password"],
html body.woocommerce-checkout .woocommerce select,
html body.woocommerce-checkout .woocommerce textarea,
html body.woocommerce-checkout .wp-block-woocommerce-checkout input[type="text"],
html body.woocommerce-checkout .wp-block-woocommerce-checkout input[type="email"],
html body.woocommerce-checkout .wp-block-woocommerce-checkout input[type="tel"],
html body.woocommerce-checkout .wp-block-woocommerce-checkout input[type="password"],
html body.woocommerce-checkout .wp-block-woocommerce-checkout select,
html body.woocommerce-checkout .wp-block-woocommerce-checkout textarea,
html body.woocommerce-checkout .fc-wrapper input[type="text"],
html body.woocommerce-checkout .fc-wrapper input[type="email"],
html body.woocommerce-checkout .fc-wrapper input[type="tel"],
html body.woocommerce-checkout .fc-wrapper input[type="password"],
html body.woocommerce-checkout .fc-wrapper select,
html body.woocommerce-checkout .fc-wrapper textarea,
html body.woocommerce-checkout .fc-wrapper .select2-selection,
html body.woocommerce-checkout .fc-wrapper .select2-search__field {
  background-color: var(--bg-elevated) !important;
  color: #ffffff !important;
  border: 1px solid var(--border-soft) !important;
  border-radius: var(--radius-sm) !important;
  padding: 14px 16px !important;
  font-size: 0.95rem !important;
}

html body.woocommerce-checkout input:-webkit-autofill,
html body.woocommerce-checkout input:-webkit-autofill:hover, 
html body.woocommerce-checkout input:-webkit-autofill:focus, 
html body.woocommerce-checkout input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #1f2028 inset !important;
  -webkit-text-fill-color: #ffffff !important;
  transition: background-color 5000s ease-in-out 0s !important;
}

html body.woocommerce-checkout .wc-block-components-text-input input:focus,
html body.woocommerce-checkout .woocommerce input:focus,
html body.woocommerce-checkout .woocommerce select:focus,
html body.woocommerce-checkout .woocommerce textarea:focus,
html body.woocommerce-checkout .wp-block-woocommerce-checkout input:focus,
html body.woocommerce-checkout .wp-block-woocommerce-checkout select:focus,
html body.woocommerce-checkout .wp-block-woocommerce-checkout textarea:focus,
html body.woocommerce-checkout .fc-wrapper input[type="text"]:focus,
html body.woocommerce-checkout .fc-wrapper input[type="email"]:focus,
html body.woocommerce-checkout .fc-wrapper input[type="tel"]:focus,
html body.woocommerce-checkout .fc-wrapper input[type="password"]:focus,
html body.woocommerce-checkout .fc-wrapper select:focus,
html body.woocommerce-checkout .fc-wrapper textarea:focus {
  border-color: var(--accent) !important;
  outline: none !important;
  box-shadow: 0 0 12px var(--accent-glow) !important;
}

/* Form Labels & Description Text */
html body.woocommerce-checkout .wc-block-components-text-input label,
html body.woocommerce-checkout .wc-block-components-text-input__label,
html body.woocommerce-checkout .wc-block-components-checkout-step label,
html body.woocommerce-checkout .woocommerce label,
html body.woocommerce-checkout .wp-block-woocommerce-checkout label,
html body.woocommerce-checkout .wc-block-components-checkbox label,
html body.woocommerce-checkout .wc-block-components-text-input__help,
html body.woocommerce-checkout .wc-block-components-checkout-step__description,
html body.woocommerce-checkout .wc-block-components-totals-item__label,
html body.woocommerce-checkout .wc-block-components-order-summary-item__description,
html body.woocommerce-checkout .fc-wrapper label,
html body.woocommerce-checkout .fc-wrapper .form-row label,
html body.woocommerce-checkout .fc-wrapper .fc-step__description,
html body.woocommerce-checkout .fc-wrapper .fc-control-radio__label,
html body.woocommerce-checkout .fc-wrapper .fc-control-checkbox__label {
  color: var(--text-muted) !important;
}

/* Active Floating Labels */
html body.woocommerce-checkout .wc-block-components-text-input.is-active label,
html body.woocommerce-checkout .wc-block-components-text-input input:focus ~ label {
  color: var(--accent) !important;
  background-color: transparent !important;
}

/* Action Buttons ("Prosseguir ao faturamento", "Finalizar pedido") */
html body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
html body.woocommerce-checkout .wc-block-components-checkout-step__submit-button,
html body.woocommerce-checkout .wc-block-components-button,
html body.woocommerce-checkout button.wc-block-components-button,
html body.woocommerce-checkout .woocommerce button[type="submit"],
html body.woocommerce-checkout .wp-block-woocommerce-checkout button[type="submit"],
html body.woocommerce-checkout .button.alt {
  background: linear-gradient(135deg, #FFD700 0%, #e6c200 100%) !important;
  color: #000000 !important;
  font-weight: 800 !important;
  font-size: 1.05rem !important;
  border: none !important;
  border-radius: var(--radius-pill) !important;
  padding: 16px 32px !important;
  cursor: pointer !important;
  box-shadow: 0 4px 18px rgba(255, 215, 0, 0.35) !important;
  transition: all var(--transition) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  width: 100% !important;
  display: block !important;
  margin-top: 16px !important;
}

html body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover,
html body.woocommerce-checkout .wc-block-components-checkout-step__submit-button:hover,
html body.woocommerce-checkout .wc-block-components-button:hover,
html body.woocommerce-checkout button.wc-block-components-button:hover,
html body.woocommerce-checkout .woocommerce button[type="submit"]:hover,
html body.woocommerce-checkout .wp-block-woocommerce-checkout button[type="submit"]:hover,
html body.woocommerce-checkout .button.alt:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 24px rgba(255, 215, 0, 0.5) !important;
  background: linear-gradient(135deg, #ffe033 0%, #FFD700 100%) !important;
  color: #000000 !important;
}

/* Product Titles, Quantities, Prices in Summary */
html body.woocommerce-checkout .wc-block-components-product-name,
html body.woocommerce-checkout .wc-block-components-order-summary-item__title,
html body.woocommerce-checkout .wc-block-components-totals-item__value,
html body.woocommerce-checkout table.shop_table th,
html body.woocommerce-checkout table.shop_table td {
  color: #ffffff !important;
}

html body.woocommerce-checkout .wc-block-components-product-price,
html body.woocommerce-checkout .wc-block-components-totals-item__value,
html body.woocommerce-checkout .wc-block-components-order-summary-item__price,
html body.woocommerce-checkout .amount {
  color: var(--accent) !important;
  font-weight: 700 !important;
}

/* Item Quantity Badge */
html body.woocommerce-checkout .wc-block-components-order-summary-item__quantity {
  background: var(--bg-elevated) !important;
  color: var(--white) !important;
  border: 1px solid var(--border-soft) !important;
}

/* Links ("Editar carrinho") */
html body.woocommerce-checkout .wc-block-components-order-summary__edit-link,
html body.woocommerce-checkout .woocommerce a,
html body.woocommerce-checkout .wp-block-woocommerce-checkout a {
  color: var(--accent) !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}

html body.woocommerce-checkout .wc-block-components-order-summary__edit-link:hover,
html body.woocommerce-checkout .woocommerce a:hover,
html body.woocommerce-checkout .wp-block-woocommerce-checkout a:hover {
  text-decoration: underline !important;
}

/* Borders & Dividers inside Summary */
html body.woocommerce-checkout .wc-block-components-totals-item,
html body.woocommerce-checkout .wc-block-components-order-summary-item,
html body.woocommerce-checkout .wc-block-components-panel__button,
html body.woocommerce-checkout .wc-block-components-totals-wrapper,
html body.woocommerce-checkout table.shop_table tr,
html body.woocommerce-checkout table.shop_table td,
html body.woocommerce-checkout table.shop_table th {
  border-color: var(--border-soft) !important;
}

/* Recurring Totals Box ("Totais recorrentes") */
html body.woocommerce-checkout .wc-block-components-totals-footer_item,
html body.woocommerce-checkout .wc-block-components-totals-item--recurring,
html body.woocommerce-checkout .wc-block-components-totals-wrapper .wc-block-components-panel {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid var(--border-soft) !important;
  border-radius: var(--radius-sm) !important;
  padding: 12px 16px !important;
  margin-top: 12px !important;
}

/* Payment Method Selectors & Options */
html body.woocommerce-checkout .wc-block-components-radio-control,
html body.woocommerce-checkout .wc-block-components-radio-control-accordion,
html body.woocommerce-checkout .wc-block-components-payment-method,
html body.woocommerce-checkout .wc-block-components-radio-control-option,
html body.woocommerce-checkout #payment ul.payment_methods li {
  background: var(--bg-elevated) !important;
  border: 1px solid var(--border-soft) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text-primary) !important;
  margin-bottom: 8px !important;
  padding: 12px 16px !important;
}

html body.woocommerce-checkout .wc-block-components-radio-control-option--checked,
html body.woocommerce-checkout .wc-block-components-radio-control-accordion__option--checked,
html body.woocommerce-checkout .wc-block-components-radio-control-option:hover {
  border-color: var(--accent) !important;
  background: rgba(255, 215, 0, 0.05) !important;
}

/* Checkboxes & Radio Accent */
html body.woocommerce-checkout .wc-block-components-radio-control__input,
html body.woocommerce-checkout .woocommerce input[type="radio"],
html body.woocommerce-checkout .woocommerce input[type="checkbox"],
html body.woocommerce-checkout .wp-block-woocommerce-checkout input[type="radio"],
html body.woocommerce-checkout .wp-block-woocommerce-checkout input[type="checkbox"] {
  accent-color: var(--accent) !important;
}

/* ==========================================================================
   Fluid Checkout Dark Mode Overrides (Absolute Specificity)
   ========================================================================== */

/* Main Checkout Wrapper and Grid */
html body.woocommerce-checkout #fc-wrapper,
html body.woocommerce-checkout #fc-wrapper .fc-checkout-step,
html body.woocommerce-checkout #fc-wrapper .fc-step,
html body.woocommerce-checkout #fc-wrapper .fc-step__header,
html body.woocommerce-checkout #fc-wrapper .fc-step__content,
html body.woocommerce-checkout #fc-wrapper .fc-step__substep,
html body.woocommerce-checkout #fc-wrapper .fc-progress-bar {
    background-color: #0d0e12 !important;
    color: #ffffff !important;
    border-color: #2d2d35 !important;
}

/* Header bar inside checkout */
html body.woocommerce-checkout #fc-wrapper .fc-header {
    background-color: #111216 !important;
    border-bottom: 1px solid #2d2d35 !important;
}

/* Step container backgrounds */
html body.woocommerce-checkout #fc-wrapper .fc-step__inner {
    background-color: #181920 !important;
    border: 1px solid #2d2d35 !important;
    border-radius: 8px !important;
}

/* Completed Step Recap Card */
html body.woocommerce-checkout #fc-wrapper .fc-step--completed .fc-step__substep-text-content,
html body.woocommerce-checkout #fc-wrapper .fc-step__substep-text-content,
html body.woocommerce-checkout #fc-wrapper .fc-step__substep {
    background-color: #111216 !important;
    color: #ffffff !important;
    border: 1px solid #2d2d35 !important;
}

html body.woocommerce-checkout #fc-wrapper .fc-step__substep-text-content * {
    color: #ffffff !important;
}

/* Alterar link */
html body.woocommerce-checkout #fc-wrapper .fc-step__substep-edit,
html body.woocommerce-checkout #fc-wrapper .fc-step__substep-edit a,
html body.woocommerce-checkout #fc-wrapper .fc-step__substep-edit span {
    color: #FFD700 !important;
    font-weight: bold !important;
    text-decoration: none !important;
}

html body.woocommerce-checkout #fc-wrapper .fc-step__substep-edit:hover,
html body.woocommerce-checkout #fc-wrapper .fc-step__substep-edit a:hover {
    color: #e6c300 !important;
    text-decoration: underline !important;
}

/* Progress bar step count */
html body.woocommerce-checkout #fc-wrapper .fc-progress-bar__count {
    color: #ffffff !important;
}

html body.woocommerce-checkout #fc-wrapper .fc-progress-bar__current-step {
    color: #FFD700 !important;
}

/* Progress bar step tracks */
html body.woocommerce-checkout #fc-wrapper .fc-progress-bar__steps .fc-progress-bar__step {
    background-color: #2d2d35 !important;
}

html body.woocommerce-checkout #fc-wrapper .fc-progress-bar__steps .fc-progress-bar__step.is-complete,
html body.woocommerce-checkout #fc-wrapper .fc-progress-bar__steps .fc-progress-bar__step.is-current {
    background-color: #FFD700 !important;
}

/* Form Inputs and Select Boxes */
html body.woocommerce-checkout #fc-wrapper input[type="text"],
html body.woocommerce-checkout #fc-wrapper input[type="email"],
html body.woocommerce-checkout #fc-wrapper input[type="tel"],
html body.woocommerce-checkout #fc-wrapper input[type="password"],
html body.woocommerce-checkout #fc-wrapper select,
html body.woocommerce-checkout #fc-wrapper textarea,
html body.woocommerce-checkout #fc-wrapper .select2-container--default .select2-selection--single,
html body.woocommerce-checkout #fc-wrapper .select2-selection,
html body.woocommerce-checkout #fc-wrapper .input-text,
html body.woocommerce-checkout #fc-wrapper .fc-text-field input {
    background-color: #111216 !important;
    color: #ffffff !important;
    border: 1px solid #2d2d35 !important;
    border-radius: 6px !important;
    padding: 10px 15px !important;
    height: auto !important;
}

html body.woocommerce-checkout #fc-wrapper input[type="text"]:focus,
html body.woocommerce-checkout #fc-wrapper input[type="email"]:focus,
html body.woocommerce-checkout #fc-wrapper input[type="tel"]:focus,
html body.woocommerce-checkout #fc-wrapper select:focus,
html body.woocommerce-checkout #fc-wrapper textarea:focus,
html body.woocommerce-checkout #fc-wrapper .fc-text-field input:focus {
    border-color: #FFD700 !important;
    outline: none !important;
}

/* Select2 container text */
html body.woocommerce-checkout #fc-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #ffffff !important;
}

/* Form section labels / legends */
html body.woocommerce-checkout #fc-wrapper .fc-step__substep-title,
html body.woocommerce-checkout #fc-wrapper label,
html body.woocommerce-checkout #fc-wrapper legend {
    color: #ffffff !important;
}

/* Order comments expandable section */
html body.woocommerce-checkout #fc-wrapper .fc-expansible-form-section__toggle,
html body.woocommerce-checkout #fc-wrapper .fc-expansible-form-section__toggle-plus {
    color: #FFD700 !important;
    text-decoration: none !important;
}

/* Checkout Next Step Button */
html body.woocommerce-checkout #fc-wrapper button.fc-step__next-step,
html body.woocommerce-checkout #fc-wrapper button.button,
html body.woocommerce-checkout #fc-wrapper .button.alt,
html body.woocommerce-checkout #fc-wrapper #place_order {
    background-color: #FFD700 !important;
    color: #111216 !important;
    font-weight: bold !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 12px 24px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
}

/* Somente botões principais de avanço/finalizar ficam com 100% de largura */
html body.woocommerce-checkout #fc-wrapper button.fc-step__next-step,
html body.woocommerce-checkout #fc-wrapper #place_order {
    width: 100% !important;
}

html body.woocommerce-checkout #fc-wrapper button.fc-step__next-step:hover,
html body.woocommerce-checkout #fc-wrapper button.button:hover,
html body.woocommerce-checkout #fc-wrapper .button.alt:hover,
html body.woocommerce-checkout #fc-wrapper #place_order:hover {
    background-color: #e6c300 !important;
}

/* Sidebar (Order Review) - Bulletproof Selectors */
html body.woocommerce-checkout #fc-wrapper .fc-sidebar,
html body.woocommerce-checkout #fc-wrapper .fc-checkout-order-review,
html body.woocommerce-checkout #fc-wrapper .fc-checkout-order-review__inner,
html body.woocommerce-checkout .fc-checkout-order-review__inner,
html body.woocommerce-checkout .fc-checkout-summary,
html body.woocommerce-checkout .fc-order-summary,
html body.woocommerce-checkout .fc-sidebar,
html body.woocommerce-checkout aside.fc-sidebar,
html body.woocommerce-checkout .fc-checkout-order-review {
    background-color: #181920 !important;
    border: 1px solid #2d2d35 !important;
    border-radius: 8px !important;
    padding: 20px !important;
}

html body.woocommerce-checkout .fc-sidebar *,
html body.woocommerce-checkout .fc-checkout-order-review *,
html body.woocommerce-checkout .fc-checkout-order-review__inner * {
    color: #ffffff !important;
}

html body.woocommerce-checkout .woocommerce-checkout-review-order-table th,
html body.woocommerce-checkout .woocommerce-checkout-review-order-table td,
html body.woocommerce-checkout #fc-wrapper .woocommerce-checkout-review-order-table th,
html body.woocommerce-checkout #fc-wrapper .woocommerce-checkout-review-order-table td {
    background-color: transparent !important;
    border-bottom: 1px solid #2d2d35 !important;
    color: #ffffff !important;
}

html body.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total,
html body.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total *,
html body.woocommerce-checkout #fc-wrapper .woocommerce-checkout-review-order-table .order-total,
html body.woocommerce-checkout #fc-wrapper .woocommerce-checkout-review-order-table .order-total * {
    color: #FFD700 !important;
}

/* ==========================================================================
   Select2 Dropdown / List Box Overrides
   ========================================================================== */
html body.woocommerce-checkout #fc-wrapper .select2-container,
html body.woocommerce-checkout #fc-wrapper .select2-container .select2-selection,
html body.woocommerce-checkout #fc-wrapper .select2-dropdown,
html body.woocommerce-checkout #fc-wrapper .select2-results,
html body.woocommerce-checkout #fc-wrapper .select2-results__options,
html body.woocommerce-checkout #fc-wrapper .select2-results__option,
html body.woocommerce-checkout #fc-wrapper .select2-search,
html body.woocommerce-checkout #fc-wrapper .select2-search__field,
html body.woocommerce-checkout .select2-container,
html body.woocommerce-checkout .select2-container .select2-selection,
html body.woocommerce-checkout .select2-dropdown,
html body.woocommerce-checkout .select2-results,
html body.woocommerce-checkout .select2-results__options,
html body.woocommerce-checkout .select2-results__option,
html body.woocommerce-checkout .select2-search,
html body.woocommerce-checkout .select2-search__field {
    background-color: #111216 !important;
    color: #ffffff !important;
    border-color: #2d2d35 !important;
}

html body.woocommerce-checkout #fc-wrapper .select2-container--default .select2-results__option--highlighted,
html body.woocommerce-checkout #fc-wrapper .select2-container--default .select2-results__option--highlighted[aria-selected],
html body.woocommerce-checkout #fc-wrapper .select2-container--default .select2-results__option--highlighted[data-selected],
html body.woocommerce-checkout #fc-wrapper .select2-container--default .select2-results__option[aria-selected=true],
html body.woocommerce-checkout .select2-container--default .select2-results__option--highlighted,
html body.woocommerce-checkout .select2-container--default .select2-results__option--highlighted[aria-selected],
html body.woocommerce-checkout .select2-container--default .select2-results__option--highlighted[data-selected],
html body.woocommerce-checkout .select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #FFD700 !important;
    color: #111216 !important;
}

/* Make sure the main select2 box matches inputs */
html body.woocommerce-checkout #fc-wrapper .select2-container--default .select2-selection--single,
html body.woocommerce-checkout #fc-wrapper .select2-selection,
html body.woocommerce-checkout #fc-wrapper .select2-selection__rendered,
html body.woocommerce-checkout .select2-container--default .select2-selection--single,
html body.woocommerce-checkout .select2-selection,
html body.woocommerce-checkout .select2-selection__rendered {
    background-color: #111216 !important;
    color: #ffffff !important;
}

/* ==========================================================================
   Checkout UI Fixes (Coupon & Payment Methods)
   ========================================================================== */

/* Fix Coupon Button overlapping / taking 100% width */
html body.woocommerce-checkout #fc-wrapper form.checkout_coupon button,
html body.woocommerce-checkout #fc-wrapper .fc-coupon-form button,
html body.woocommerce-checkout #fc-wrapper .checkout_coupon button[name="apply_coupon"],
html body.woocommerce-checkout #fc-wrapper .fc-coupon-code button,
html body.woocommerce-checkout #fc-wrapper .fc-coupon-code__button,
html body.woocommerce-checkout #fc-wrapper button.fc-button {
    width: auto !important;
    min-width: 120px !important;
    position: relative !important;
    flex: 0 0 auto !important;
    padding: 10px 20px !important;
}

/* Force coupon form to be a flex row so the button sits next to the input */
html body.woocommerce-checkout #fc-wrapper form.checkout_coupon,
html body.woocommerce-checkout #fc-wrapper .fc-coupon-form,
html body.woocommerce-checkout #fc-wrapper .fc-coupon-code__inner {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 10px !important;
    position: relative !important;
}

html body.woocommerce-checkout #fc-wrapper form.checkout_coupon .form-row,
html body.woocommerce-checkout #fc-wrapper .fc-coupon-form .form-row,
html body.woocommerce-checkout #fc-wrapper .fc-coupon-code__input-wrapper {
    flex: 1 !important;
    margin: 0 !important;
    width: auto !important;
}

/* Payment Methods Background Fix */
html body.woocommerce-checkout #fc-wrapper ul.payment_methods li.wc_payment_method,
html body.woocommerce-checkout #fc-wrapper .wc_payment_method,
html body.woocommerce-checkout #fc-wrapper .payment_methods > li,
html body.woocommerce-checkout #fc-wrapper .fc-payment-method,
html body.woocommerce-checkout #fc-wrapper .fc-choice,
html body.woocommerce-checkout #fc-wrapper .fc-choice__label,
html body.woocommerce-checkout #fc-wrapper .fc-choice__content {
    background-color: transparent !important;
    background: transparent !important;
    color: #ffffff !important;
}

html body.woocommerce-checkout #fc-wrapper ul.payment_methods li.wc_payment_method,
html body.woocommerce-checkout #fc-wrapper .payment_methods > li {
    background-color: #181920 !important;
    border: 1px solid #2d2d35 !important;
    border-radius: 8px !important;
    margin-bottom: 10px !important;
    padding: 15px !important;
}

/* Payment Box / Instructions (Inner box) */
html body.woocommerce-checkout #fc-wrapper .payment_box,
html body.woocommerce-checkout #fc-wrapper .wc_payment_method .payment_box,
html body.woocommerce-checkout #fc-wrapper ul.payment_methods li .payment_box,
html body.woocommerce-checkout #fc-wrapper .fc-payment-method__description {
    background-color: #111216 !important;
    color: #cccccc !important;
    border: 1px solid #2d2d35 !important;
    border-radius: 6px !important;
    padding: 15px !important;
    margin-top: 10px !important;
    box-shadow: none !important;
}

/* Hide white arrow/triangle from WooCommerce default payment box */
html body.woocommerce-checkout #fc-wrapper ul.payment_methods li .payment_box:before {
    display: none !important;
}

/* Payment method label text */
html body.woocommerce-checkout #fc-wrapper ul.payment_methods li label,
html body.woocommerce-checkout #fc-wrapper .wc_payment_method label,
html body.woocommerce-checkout #fc-wrapper .fc-choice__label-text {
    background-color: transparent !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* ==========================================================================
   12. WOOCOMMERCE "MINHA CONTA" DARK MODE
   ========================================================================== */
.mesa-woocommerce-minha-conta-wrapper .woocommerce {
    color: #e2e8f0;
    font-family: inherit;
}
.mesa-woocommerce-minha-conta-wrapper .woocommerce-MyAccount-navigation {
    width: 25%;
    float: left;
}
.mesa-woocommerce-minha-conta-wrapper .woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    overflow: hidden;
}
.mesa-woocommerce-minha-conta-wrapper .woocommerce-MyAccount-navigation ul li {
    border-bottom: 1px solid var(--border-soft);
}
.mesa-woocommerce-minha-conta-wrapper .woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: none;
}
.mesa-woocommerce-minha-conta-wrapper .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 15px 20px;
    color: #e2e8f0;
    text-decoration: none;
    transition: 0.3s;
}
.mesa-woocommerce-minha-conta-wrapper .woocommerce-MyAccount-navigation ul li a:hover,
.mesa-woocommerce-minha-conta-wrapper .woocommerce-MyAccount-navigation ul li.is-active a {
    background: rgba(255, 215, 0, 0.05);
    color: var(--accent);
    font-weight: 600;
}
.mesa-woocommerce-minha-conta-wrapper .woocommerce-MyAccount-content {
    width: 70%;
    float: right;
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 30px;
}
.mesa-woocommerce-minha-conta-wrapper table.shop_table {
    width: 100%;
    border-collapse: collapse;
    border: none;
}
.mesa-woocommerce-minha-conta-wrapper table.shop_table th {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 15px;
    color: var(--accent);
    text-align: left;
    border-bottom: 2px solid var(--border-soft);
}
.mesa-woocommerce-minha-conta-wrapper table.shop_table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-soft);
    color: #e2e8f0;
}
.mesa-woocommerce-minha-conta-wrapper .woocommerce-button,
.mesa-woocommerce-minha-conta-wrapper .button {
    background: var(--accent);
    color: #0d0e12;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
}
.mesa-woocommerce-minha-conta-wrapper .woocommerce-button:hover,
.mesa-woocommerce-minha-conta-wrapper .button:hover {
    background: #e6c200;
    color: #000;
}
.mesa-woocommerce-minha-conta-wrapper fieldset {
    border: 1px solid var(--border-soft);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}
.mesa-woocommerce-minha-conta-wrapper legend {
    color: var(--accent);
    font-weight: 600;
    padding: 0 10px;
}
.mesa-woocommerce-minha-conta-wrapper input[type="text"],
.mesa-woocommerce-minha-conta-wrapper input[type="password"],
.mesa-woocommerce-minha-conta-wrapper input[type="email"] {
    width: 100%;
    background: #0d0e12;
    border: 1px solid var(--border-soft);
    color: #ffffff;
    padding: 12px;
    border-radius: 6px;
}
.mesa-woocommerce-minha-conta-wrapper mark {
    background: rgba(255, 215, 0, 0.1);
    color: var(--accent);
}
@media (max-width: 768px) {
    .mesa-woocommerce-minha-conta-wrapper .woocommerce-MyAccount-navigation,
    .mesa-woocommerce-minha-conta-wrapper .woocommerce-MyAccount-content {
        width: 100%;
        float: none;
        margin-bottom: 20px;
    }
}
