/* Dashboard Layout Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.dashboard-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

@media (max-width: 768px) {
  .dashboard-charts {
    grid-template-columns: 1fr;
  }
}

.welcome-banner {
  background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown-medium) 100%);
  color: var(--white);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.welcome-title {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.welcome-subtitle {
  font-size: var(--fs-sm);
  color: var(--beige);
  font-weight: 500;
}

.dashboard-sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
}

@media (max-width: 992px) {
  .dashboard-sections-grid {
    grid-template-columns: 1fr;
  }
}

.recent-activities-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.activity-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--gray-light);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--off-white);
  color: var(--brown-medium);
  flex-shrink: 0;
}

.activity-details {
  flex: 1;
}

.activity-title {
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--brown-dark);
}

.activity-time {
  font-size: var(--fs-xs);
  color: var(--gray-medium);
}

/* ==================== ESTILOS MOBILE-FIRST (MOCKUP ACCORDANCE) ==================== */

/* Títulos das Seções */
.section-title-mobile h3 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #3D2B1F; /* Marrom escuro profundo */
  margin-bottom: 12px;
  margin-top: 24px;
}

/* 1. Cartão Principal de Boas-Vindas */
.premium-welcome-card {
  background: linear-gradient(145deg, #4F321B 0%, #2A190C 100%);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  display: flex;
  min-height: 160px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.welcome-content {
  flex: 1;
  padding: 24px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.welcome-greeting {
  font-size: 11px;
  color: #D6C1A6;
  font-weight: 500;
  display: block;
  margin-bottom: 2px;
}

.welcome-username {
  font-size: 18px;
  font-weight: 800;
  color: #FFF;
  margin: 0 0 12px 0;
}

.welcome-description {
  font-size: 10px;
  color: #9E9E9E;
  line-height: 1.4;
  max-width: 140px;
  margin: 0 0 16px 0;
}

.welcome-progress {
  display: flex;
  height: 4px;
  width: 140px;
}

.welcome-progress-fill {
  background: #D4AF37;
  height: 100%;
  border-radius: 2px 0 0 2px;
}

.welcome-progress-track {
  flex: 1;
  background: #23160D;
  height: 100%;
  border-radius: 0 2px 2px 0;
}

/* Medalha Gigante Círculo */
.welcome-white-circle {
  position: absolute;
  right: -40px;
  top: -20px;
  width: 180px;
  height: 180px;
  background: #FFFFFF;
  border-radius: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.welcome-medal {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-right: 30px; /* offset para compensar a parte escondida do círculo */
  border: 1px solid rgba(214, 193, 166, 0.35); /* aro metálico fino */
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(42, 31, 22, 0.2) 100%) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), inset 0 2px 4px rgba(255, 255, 255, 0.15); /* halo discreto e profundidade */
  position: relative;
  z-index: 2;
}

.welcome-medal.bronze, .welcome-medal.silver, .welcome-medal.gold {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(42, 31, 22, 0.2) 100%) !important;
}

.medal-top-star {
  width: 10px;
  height: 10px;
  color: #FFF;
  fill: #FFF;
  margin-bottom: 2px;
}

.medal-subtitle {
  font-size: 7px;
  font-weight: 800;
  color: #FFF;
  letter-spacing: 0.5px;
}

.medal-title {
  font-size: 13px;
  font-weight: 900;
  color: #FFF;
  letter-spacing: 1px;
}

.medal-bottom-stars {
  display: flex;
  gap: 2px;
  margin-top: 2px;
}

.medal-bottom-stars i {
  width: 8px;
  height: 8px;
  color: #FFF;
  fill: #FFF;
}

/* Barra de Evolução Fina */
.welcome-evolution-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.evolution-progress-container {
  flex: 1;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
}

.evolution-progress-fill {
  height: 100%;
  background-color: #D4AF37; /* Dourado */
  border-radius: 4px;
}

.evolution-percentage-text {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

/* 2. Resumo de Desempenho (Grid 2x2) */
.kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.kpi-card {
  background-color: var(--white);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(0,0,0,0.02);
}

.kpi-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.kpi-label {
  font-size: 9px;
  font-weight: 800;
  color: #8D8D8D;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.kpi-more {
  width: 14px;
  height: 14px;
  color: #A0A0A0;
}

.kpi-main {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.kpi-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 50%; /* Agora é um círculo perfeito */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-icon-box i {
  width: 16px;
  height: 16px;
}

.kpi-value {
  font-size: 16px;
  font-weight: 800;
  color: #3D2B1F;
  letter-spacing: -0.5px;
}

.kpi-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
}

.kpi-trend {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #2E7D32; /* Verde sucesso */
}

.kpi-trend.text-gray {
  color: #8D8D8D;
}
.kpi-trend.text-green {
  color: #2E7D32;
}

.kpi-trend i {
  width: 12px;
  height: 12px;
}

.kpi-extra {
  color: #8D8D8D;
  font-weight: 600;
}

/* 3. Ações Rápidas (Grid 4x2) */
.quick-actions-mobile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  gap: 8px;
}

.quick-action-icon {
  width: 50px;
  height: 50px;
  background-color: var(--white);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
  color: #62402A;
  transition: transform 0.2s;
}

.quick-action-icon i {
  width: 20px;
  height: 20px;
}

.quick-action-btn:active .quick-action-icon {
  transform: scale(0.95);
}

.quick-action-btn span {
  font-size: 11px;
  font-weight: 600;
  color: #555;
  text-align: center;
}

/* 4. Evolução de Nível */
.evolution-card {
  background-color: #2A2A2A;
  border-radius: 20px;
  padding: 24px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.evo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.evo-item.active {
  opacity: 1;
  transform: scale(1.1);
}

.evo-label {
  font-size: 9px;
  font-weight: 700;
  color: #8D8D8D;
  letter-spacing: 1px;
}

.evo-medal {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: #FFF;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3), inset 0 2px 4px rgba(255,255,255,0.2);
}

.evo-medal.bronze { background: linear-gradient(135deg, #A05A2C, #D48C5B); border: 2px solid #E4A77D; }
.evo-medal.silver { background: linear-gradient(135deg, #7F8C8D, #BDC3C7); border: 2px solid #DFE4EA; color: #333; text-shadow: none; }
.evo-medal.gold { background: linear-gradient(135deg, #B8860B, #FFD700); border: 2px solid #FFE55C; color: #5C4033; text-shadow: none; }

.evo-name {
  font-size: 11px;
  font-weight: 700;
  color: #FFF;
}

.evo-value {
  font-size: 9px;
  font-weight: 700;
  color: #D4AF37;
}

.evo-arrow {
  color: #555;
}

/* 5. Metas do Mês (Gauge Semicírculo) */
.goals-card {
  background-color: var(--white);
  border-radius: 20px;
  padding: 24px 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.goal-left, .goal-right {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.goal-right {
  text-align: right;
}

.goal-label {
  font-size: 11px;
  font-weight: 600;
  color: #8D8D8D;
}

.goal-value {
  font-size: 13px;
  font-weight: 800;
  color: #3D2B1F;
}

.goal-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 10px;
}

.gauge-wrapper {
  position: relative;
  width: 140px;
  height: 70px; /* Metade da altura = Semicírculo perfeito */
  overflow: hidden;
  margin-bottom: -15px; /* Compensa o espaço vazio inferior no layout flex */
}

.gauge-arch, .gauge-fill-arch {
  position: absolute;
  top: 0;
  left: 0;
  width: 140px;
  height: 140px; /* Círculo completo */
  border-radius: 50%;
  box-sizing: border-box;
}

.gauge-arch {
  border: 14px solid #F0F0F0; /* Fundo mais claro */
  border-bottom-color: transparent;
  border-right-color: transparent;
  transform: rotate(-45deg); 
}

.gauge-fill-arch {
  border: 14px solid #62402A; /* Cor escura do preenchimento */
  border-bottom-color: transparent;
  border-right-color: transparent;
  transition: transform 1s ease-out;
  /* Rotação é injetada inline pelo JS (de -45deg a 135deg) */
}

.gauge-text {
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 24px;
  font-weight: 900;
  color: #3D2B1F;
}

/* 6. Ranking dos Associados (Cartões Empilhados) */
.ranking-cards-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.ranking-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  background-color: var(--white);
}

.ranking-card.border-gold { border: 1px solid #F2E3B6; }
.ranking-card.border-silver { border: 1px solid #E9ECEF; }
.ranking-card.border-bronze { border: 1px solid #F0DFD3; }

.ranking-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ranking-avatar-box {
  position: relative;
  width: 44px;
  height: 44px;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #F0F4F8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9AB;
  border: 1px solid #E0E5E9;
}
.avatar-placeholder i { width: 22px; height: 22px; }

.ranking-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #FFF;
  border: 2px solid #FFF;
}

.ranking-badge.gold { background-color: #D4AF37; }
.ranking-badge.silver { background-color: #A8A9AD; }
.ranking-badge.bronze { background-color: #CD7F32; }

.ranking-info {
  display: flex;
  flex-direction: column;
}

.ranking-name {
  font-size: 14px;
  font-weight: 800;
  color: #3D2B1F;
}

.ranking-level {
  font-size: 10px;
  font-weight: 600;
  color: #8D8D8D;
}

.ranking-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.ranking-val {
  font-size: 15px;
  font-weight: 800;
}

.ranking-val.gold-text { color: #B8860B; }
.ranking-val.silver-text { color: #6C757D; }
.ranking-val.bronze-text { color: #A0522D; }

.ranking-sales {
  font-size: 10px;
  font-weight: 600;
  color: #8D8D8D;
}

/* 7. Últimas Comissões (Lista Simples) */
.commissions-card {
  background-color: var(--white);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 24px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.commission-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #F0F0F0;
}

.commission-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.comm-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.comm-title {
  font-size: 12px;
  font-weight: 700;
  color: #3D2B1F;
}

.comm-date {
  font-size: 10px;
  color: #8D8D8D;
}

.comm-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.comm-val {
  font-size: 13px;
  font-weight: 800;
}

.comm-val.text-green { color: #2E7D32; }
.comm-val.text-orange { color: #F57F17; }
.comm-val.text-blue { color: #1565C0; }
.comm-val.text-red { color: #C62828; }

.comm-tag {
  font-size: 8px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.comm-tag.bg-green { background-color: #2E7D32; color: #FFF; }
.comm-tag.bg-orange { background-color: #F57F17; color: #FFF; }
.comm-tag.bg-blue { background-color: #1565C0; color: #FFF; }
.comm-tag.bg-red { background-color: #C62828; color: #FFF; }

/* 8. Área de Conquistas (Prateleiras) */
.achievements-shelves {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 32px;
  margin-top: 16px;
}

.shelf {
  position: relative;
}

.shelf-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 0 16px;
  position: relative;
  z-index: 2;
  margin-bottom: -8px; /* Assenta os itens na prateleira */
}

.ach-card {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

.ach-trophy {
  font-size: 24px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.ach-trophy.silver { filter: grayscale(1) brightness(1.2) drop-shadow(0 2px 4px rgba(0,0,0,0.2)); }
.ach-trophy.bronze { filter: sepia(1) hue-rotate(340deg) saturate(2) drop-shadow(0 2px 4px rgba(0,0,0,0.2)); }

.ach-text {
  display: flex;
  flex-direction: column;
}

.ach-name {
  font-size: 10px;
  font-weight: 800;
  color: #3D2B1F;
}

.ach-desc {
  font-size: 8px;
  font-weight: 600;
  color: #8D8D8D;
  margin-top: 2px;
}

.shelf-board {
  height: 16px;
  background: linear-gradient(to bottom, #8C5F3E, #62402A);
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  position: relative;
}

.shelf-board::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: rgba(255,255,255,0.2);
}

/* 9. Mural de Avisos */
.notices-empty {
  background-color: var(--white);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #CCC;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  margin-bottom: 24px;
}

/* Sobrescreve estilos de modal e alertas para mobile, se necessário */
body.mobile-dashboard-theme #main-wrapper {
  margin-left: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

body.mobile-dashboard-theme #main-content {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

body.mobile-dashboard-theme .mobile-dashboard-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

@media (max-width: 992px) {
  body.mobile-dashboard-theme {
    background-color: var(--mobile-bg) !important;
  }
  
  body.mobile-dashboard-theme #main-content {
    padding: 0 !important;
    padding-bottom: 0 !important;
  }

  .mobile-dashboard-wrapper {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    background-color: var(--mobile-bg);
    position: relative;
    padding-top: 10px;
    padding-bottom: 85px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.15);
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
  }
  
  .mobile-dashboard-wrapper .section-title {
    font-size: 17px;
    font-weight: 700;
    margin: 24px 20px 14px;
    color: #2b1d14;
  }
  
  .mobile-dashboard-wrapper .welcome-card {
    background: linear-gradient(145deg, #443021 0%, #24160a 100%);
    border-radius: 20px;
    margin: 16px 20px;
    padding: 24px 20px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  }

  .mobile-dashboard-wrapper .welcome-bg-circle {
    position: absolute;
    top: -20px;
    right: -40px;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.05);
    z-index: 1;
  }

  .mobile-dashboard-wrapper .welcome-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
  }

  .mobile-dashboard-wrapper .user-photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.2);
    margin-right: 14px;
  }

  .mobile-dashboard-wrapper .welcome-texts {
    flex: 1;
    padding-right: 80px;
  }

  .mobile-dashboard-wrapper .welcome-greeting {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 2px;
  }

  .mobile-dashboard-wrapper .welcome-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
  }

  .mobile-dashboard-wrapper .welcome-desc {
    font-size: 11px;
    line-height: 1.4;
    color: rgba(255,255,255,0.7);
    max-width: 170px;
  }

  .mobile-dashboard-wrapper .welcome-medal {
    position: absolute;
    top: 24px;
    right: 20px;
    width: 85px;
    height: 85px;
    z-index: 2;
  }
  
  .mobile-dashboard-wrapper .progress-wrapper {
    position: relative;
    z-index: 2;
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .mobile-dashboard-wrapper .progress-track {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
    position: relative;
  }

  .mobile-dashboard-wrapper .progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #D4AF37 0%, #F5DEB3 100%);
    border-radius: 3px;
  }

  .mobile-dashboard-wrapper .progress-target {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
  }
  
  /* Grid de KPI Responsivo */
  .mobile-dashboard-wrapper .stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 20px;
  }

  @media (min-width: 480px) {
    .mobile-dashboard-wrapper .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  }
  @media (min-width: 600px) {
    .mobile-dashboard-wrapper .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  }
  @media (min-width: 768px) {
    .mobile-dashboard-wrapper .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  }
  @media (min-width: 900px) {
    .mobile-dashboard-wrapper .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  }
  
  .mobile-dashboard-wrapper .stat-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    width: 100%;
    box-sizing: border-box;
  }

  .mobile-dashboard-wrapper .stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
  }

  .mobile-dashboard-wrapper .stat-title {
    font-size: 10px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
  }

  .mobile-dashboard-wrapper .stat-header i {
    color: #ccc;
    width: 16px;
    height: 16px;
  }

  .mobile-dashboard-wrapper .stat-main {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
  }

  .mobile-dashboard-wrapper .stat-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-dashboard-wrapper .stat-icon-wrap.blue { background: #EEF2FF; color: #4F46E5; }
  .mobile-dashboard-wrapper .stat-icon-wrap.gold { background: #FFF9E6; color: #D97706; }
  .mobile-dashboard-wrapper .stat-icon-wrap.brown { background: #F5EFEB; color: #78350F; }
  .mobile-dashboard-wrapper .stat-icon-wrap i { width: 18px; height: 18px; }
  .mobile-dashboard-wrapper .stat-value { font-size: 20px; font-weight: 800; color: #111; }
  
  .mobile-dashboard-wrapper .stat-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: #888;
  }

  .mobile-dashboard-wrapper .stat-footer-left {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .mobile-dashboard-wrapper .stat-footer-left i {
    width: 12px;
    height: 12px;
  }

  .mobile-dashboard-wrapper .stat-footer-right {
    font-weight: 600;
    color: #333;
  }
  
  /* Grid de Ações Responsivo */
  .mobile-dashboard-wrapper .actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 0 12px;
  }

  @media (min-width: 360px) {
    .mobile-dashboard-wrapper .actions-grid { gap: 10px; padding: 0 20px; }
  }
  @media (min-width: 600px) {
    .mobile-dashboard-wrapper .actions-grid { grid-template-columns: repeat(6, 1fr); gap: 12px; }
  }
  @media (min-width: 768px) {
    .mobile-dashboard-wrapper .actions-grid { grid-template-columns: repeat(8, 1fr); gap: 16px; }
  }
  
  .mobile-dashboard-wrapper .action-btn {
    background: #ffffff;
    border-radius: 16px;
    padding: 12px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    text-decoration: none;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }

  @media (min-width: 360px) {
    .mobile-dashboard-wrapper .action-btn { padding: 16px 8px; gap: 10px; }
  }

  .mobile-dashboard-wrapper .action-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #F8F5F1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5A4A3D;
  }

  .mobile-dashboard-wrapper .action-icon-wrap i {
    width: 18px;
    height: 18px;
  }

  .mobile-dashboard-wrapper .action-name {
    font-size: 10px;
    font-weight: 600;
    color: #333;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
  }

  @media (min-width: 360px) {
    .mobile-dashboard-wrapper .action-name { font-size: 11px; }
  }
  
  .mobile-dashboard-wrapper .level-evolution {
    background: linear-gradient(145deg, #443021 0%, #24160a 100%);
    border-radius: 20px;
    margin: 0 20px;
    padding: 24px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    box-sizing: border-box;
  }

  .mobile-dashboard-wrapper .level-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
  }

  .mobile-dashboard-wrapper .level-subtitle {
    font-size: 9px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .mobile-dashboard-wrapper .medal-img {
    width: 48px;
    height: 48px;
  }

  .mobile-dashboard-wrapper .level-name {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
  }

  .mobile-dashboard-wrapper .level-arrow {
    color: rgba(255,255,255,0.3);
    width: 20px;
    height: 20px;
  }

  .mobile-dashboard-wrapper .level-active-box {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #EAEAEA 0%, #C4C4C4 100%);
    border-radius: 16px;
    width: 110px;
    padding: 50px 0 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  }

  .mobile-dashboard-wrapper .level-active-box .level-name {
    color: #111;
    margin-bottom: 2px;
  }

  .mobile-dashboard-wrapper .level-target-val {
    font-size: 11px;
    font-weight: 800;
    color: #111;
  }

  .mobile-dashboard-wrapper .step-active {
    position: relative;
    z-index: 2;
    margin-top: -10px;
  }
  
  .mobile-dashboard-wrapper .goals-card {
    background: #ffffff;
    border-radius: 20px;
    margin: 20px 20px 0;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    width: calc(100% - 40px);
    box-sizing: border-box;
  }

  .mobile-dashboard-wrapper .goal-side {
    display: flex;
    flex-direction: column;
  }

  .mobile-dashboard-wrapper .goal-side.right {
    text-align: right;
  }

  .mobile-dashboard-wrapper .goal-label {
    font-size: 11px;
    color: #888;
    margin-bottom: 4px;
  }

  .mobile-dashboard-wrapper .goal-val {
    font-size: 15px;
    font-weight: 700;
    color: #111;
  }

  .mobile-dashboard-wrapper .goal-meter {
    position: relative;
    width: 90px;
    height: 45px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    box-sizing: border-box;
  }

  .mobile-dashboard-wrapper .meter-bg {
    position: absolute;
    top: 0;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 8px solid #F0F0F0;
  }

  .mobile-dashboard-wrapper .meter-fill {
    position: absolute;
    top: 0;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 8px solid #C4A47C;
    border-bottom-color: transparent;
    border-right-color: transparent;
  }

  .mobile-dashboard-wrapper .meter-text {
    font-size: 18px;
    font-weight: 800;
    color: #111;
    z-index: 2;
    margin-bottom: -5px;
  }
  
  .mobile-dashboard-wrapper .ranking-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .mobile-dashboard-wrapper .rank-item {
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    position: relative;
    width: 100%;
    box-sizing: border-box;
  }

  .mobile-dashboard-wrapper .rank-item.first { background: linear-gradient(90deg, #382517 0%, #1e120a 100%); color: #ffffff; }
  .mobile-dashboard-wrapper .rank-item.second { background: linear-gradient(90deg, #E8E8E8 0%, #BDBDBD 100%); color: #111; }
  .mobile-dashboard-wrapper .rank-item.third { background: linear-gradient(90deg, #423023 0%, #241911 100%); color: #ffffff; }
  
  .mobile-dashboard-wrapper .rank-avatar-wrap {
    position: relative;
    margin-right: 16px;
  }

  .mobile-dashboard-wrapper .rank-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.2);
  }

  .mobile-dashboard-wrapper .rank-position-badge {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    color: #ffffff;
  }

  .mobile-dashboard-wrapper .first .rank-position-badge { background: #D4AF37; box-shadow: 0 2px 4px rgba(212,175,55,0.5); }
  .mobile-dashboard-wrapper .second .rank-position-badge { background: #888; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
  .mobile-dashboard-wrapper .third .rank-position-badge { background: #CD7F32; box-shadow: 0 2px 4px rgba(205,127,50,0.5); }
  
  .mobile-dashboard-wrapper .rank-info {
    flex: 1;
  }

  .mobile-dashboard-wrapper .rank-name {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
  }

  .mobile-dashboard-wrapper .rank-level {
    font-size: 11px;
    opacity: 0.8;
  }

  .mobile-dashboard-wrapper .rank-stats {
    text-align: right;
  }

  .mobile-dashboard-wrapper .rank-sales-val {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 4px;
  }

  .mobile-dashboard-wrapper .rank-sales-count {
    font-size: 11px;
    opacity: 0.8;
  }
  
  .mobile-dashboard-wrapper .comm-card {
    background: #ffffff;
    border-radius: 20px;
    margin: 0 20px;
    padding: 0 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    width: calc(100% - 40px);
    box-sizing: border-box;
  }

  .mobile-dashboard-wrapper .comm-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #F0F0F0;
    box-sizing: border-box;
  }

  .mobile-dashboard-wrapper .comm-item:last-child {
    border-bottom: none;
  }

  .mobile-dashboard-wrapper .comm-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .mobile-dashboard-wrapper .comm-title {
    font-size: 13px;
    font-weight: 700;
    color: #222;
  }

  .mobile-dashboard-wrapper .comm-date {
    font-size: 11px;
    color: #999;
  }

  .mobile-dashboard-wrapper .comm-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }

  .mobile-dashboard-wrapper .comm-val {
    font-size: 14px;
    font-weight: 800;
    color: #10B981;
  }

  .mobile-dashboard-wrapper .comm-val.blue {
    color: #3B82F6;
  }

  .mobile-dashboard-wrapper .comm-badge {
    font-size: 9px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
  }

  .mobile-dashboard-wrapper .comm-badge.green { background: #D1FAE5; color: #059669; }
  .mobile-dashboard-wrapper .comm-badge.blue { background: #DBEAFE; color: #2563EB; }
  
  .mobile-dashboard-wrapper .achievements-section {
    padding: 0 20px;
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
  }

  .mobile-dashboard-wrapper .achievements-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    position: relative;
    z-index: 2;
    margin-bottom: -10px;
    padding: 0 10px;
  }

  .mobile-dashboard-wrapper .achiev-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.02);
    min-width: 0;
    box-sizing: border-box;
  }

  .mobile-dashboard-wrapper .achiev-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
  }

  .mobile-dashboard-wrapper .achiev-texts {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }

  .mobile-dashboard-wrapper .achiev-title {
    font-size: 11px;
    font-weight: 700;
    color: #222;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-dashboard-wrapper .achiev-sub {
    font-size: 9px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-dashboard-wrapper .shelf {
    background: linear-gradient(180deg, #A87D56 0%, #765233 100%);
    height: 14px;
    border-radius: 8px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 10px rgba(0,0,0,0.15), inset 0 2px 3px rgba(255,255,255,0.3);
  }

  .mobile-dashboard-wrapper .shelf::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 2%;
    width: 96%;
    height: 8px;
    background: rgba(0,0,0,0.1);
    filter: blur(4px);
  }
  
  .mobile-dashboard-wrapper .notice-card {
    background: #ffffff;
    border-radius: 20px;
    margin: 0 20px 20px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    width: calc(100% - 40px);
    box-sizing: border-box;
  }

  .mobile-dashboard-wrapper .notice-img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: linear-gradient(135deg, #E0E0E0 0%, #CCCCCC 100%);
  }

  .mobile-dashboard-wrapper .notice-texts {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .mobile-dashboard-wrapper .notice-title {
    font-size: 14px;
    font-weight: 700;
    color: #222;
  }

  .mobile-dashboard-wrapper .notice-sub {
    font-size: 12px;
    color: #777;
  }

  .mobile-dashboard-wrapper .notices-empty {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #CCC;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    margin: 0 20px 24px;
    width: calc(100% - 40px);
    box-sizing: border-box;
  }

  /* Responsive optimization for extra small screens (e.g. 320px) */
  @media (max-width: 360px) {
    .mobile-dashboard-wrapper .welcome-card { margin: 12px 12px; padding: 16px 12px; }
    .mobile-dashboard-wrapper .welcome-texts { padding-right: 60px; }
    .mobile-dashboard-wrapper .welcome-medal { width: 65px; height: 65px; top: 16px; right: 12px; }
    .mobile-dashboard-wrapper .welcome-name { font-size: 16px; }
    
    .mobile-dashboard-wrapper .level-evolution { margin: 0 12px; padding: 16px 12px; }
    
    .mobile-dashboard-wrapper .goals-card { margin: 16px 12px 0; padding: 12px; width: calc(100% - 24px); }
    .mobile-dashboard-wrapper .goal-val { font-size: 13px; }
    
    .mobile-dashboard-wrapper .ranking-list { padding: 0 12px; }
    .mobile-dashboard-wrapper .rank-item { padding: 10px; }
    .mobile-dashboard-wrapper .rank-avatar { width: 36px; height: 36px; }
    .mobile-dashboard-wrapper .rank-name { font-size: 12px; }
    .mobile-dashboard-wrapper .rank-sales-val { font-size: 12px; }
    
    .mobile-dashboard-wrapper .comm-card { margin: 0 12px; padding: 0 12px; width: calc(100% - 24px); }
    .mobile-dashboard-wrapper .comm-title { font-size: 11px; }
    .mobile-dashboard-wrapper .comm-val { font-size: 12px; }
    
    .mobile-dashboard-wrapper .achievements-section { padding: 0 12px; }
    .mobile-dashboard-wrapper .achievements-row { gap: 8px; padding: 0; }
    .mobile-dashboard-wrapper .achiev-card { padding: 8px; gap: 6px; }
    .mobile-dashboard-wrapper .achiev-title { font-size: 10px; }
    .mobile-dashboard-wrapper .achiev-sub { font-size: 8px; }
    
    .mobile-dashboard-wrapper .notice-card { margin: 0 12px 12px; padding: 12px; width: calc(100% - 24px); }
    .mobile-dashboard-wrapper .notices-empty { margin: 0 12px 16px; width: calc(100% - 24px); }
    
  }
}

/* ==================== CUSTOM RESPONSIVE CARD WIDGETS ==================== */
.compare-banner-card {
  background: linear-gradient(135deg, rgba(214, 193, 166, 0.1) 0%, rgba(214, 193, 166, 0.02) 100%);
  border: 1px solid rgba(214, 193, 166, 0.3) !important;
  padding: var(--space-md) var(--space-lg);
  margin-top: var(--space-md);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  width: auto !important;
  box-sizing: border-box;
  border-radius: 16px;
}

.compare-banner-info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

@media (max-width: 480px) {
  .compare-banner-card {
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-md);
    text-align: center;
  }
  .compare-banner-info {
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
  }
  .compare-banner-card a {
    width: 100%;
    text-align: center;
  }
}

.smart-goal-card {
  padding: var(--space-xl);
  width: auto !important;
  box-sizing: border-box;
}

.smart-goal-form {
  display: flex;
  gap: 8px;
  margin-bottom: var(--space-md);
  width: 100%;
}

.smart-goal-form .form-input-wrapper {
  position: relative;
  flex: 1;
  width: 100%;
}

@media (max-width: 480px) {
  .smart-goal-card {
    padding: var(--space-md);
  }
  .smart-goal-form {
    flex-direction: column;
  }
  .smart-goal-form button {
    width: 100%;
  }
}

