/* ===== PÁGINA DE PRÊMIOS E CONQUISTAS ===== */
.rewards-page main {
  padding-bottom: 50px;
}

.rewards-hero {
  text-align: center;
  margin: 30px 0;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--secondary);
}

.rewards-hero h1 {
  color: var(--primary);
  font-family: var(--font-title);
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.rewards-hero p {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.user-level {
  max-width: 500px;
  margin: 0 auto;
}

.level-progress {
  height: 10px;
  background-color: #eee;
  border-radius: 5px;
  margin-bottom: 5px;
  overflow: hidden;
}

.level-progress .progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 5px;
}

.level-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.current-level {
  font-weight: bold;
  color: var(--primary);
}

.points-to-next {
  color: #666;
}

.rewards-tabs {
  display: flex;
  border-bottom: 1px solid #ddd;
  margin: 30px 0 20px;
  gap: 5px;
}

.tab-btn {
  padding: 12px 20px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.3s;
}

.tab-btn:hover {
  color: var(--primary);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Estilos da aba de Conquistas */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.achievement-card {
  background-color: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  display: flex;
  gap: 15px;
  align-items: center;
  transition: all 0.3s;
}

.achievement-card.unlocked {
  border-left: 4px solid var(--primary);
}

.achievement-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.achievement-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  position: relative;
}

.achievement-badge i {
  z-index: 2;
}

.badge-level {
  position: absolute;
  bottom: -5px;
  right: -5px;
  background-color: #f1c40f;
  color: #333;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.6rem;
  font-weight: bold;
}

.achievement-info h3 {
  margin: 0 0 5px 0;
  color: #333;
}

.achievement-info p {
  margin: 0 0 10px 0;
  color: #666;
  font-size: 0.9rem;
}

.achievement-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.8rem;
  color: #999;
}

.achievement-meta i {
  margin-right: 5px;
}

.history-title {
  color: var(--primary);
  margin: 40px 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.achievements-history {
  background-color: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.history-item {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.history-item:last-child {
  border-bottom: none;
}

.history-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f5f5f5;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.history-details h4 {
  margin: 0 0 5px 0;
  color: #333;
}

.history-details p {
  margin: 0 0 5px 0;
  color: #666;
  font-size: 0.9rem;
}

.history-date {
  font-size: 0.8rem;
  color: #999;
}

/* Estilos da aba de Prêmios Disponíveis */
.available-filters {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reward-select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: white;
}

.available-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.available-card {
  background-color: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  display: flex;
  gap: 15px;
  align-items: center;
  opacity: 0.9;
  transition: all 0.3s;
}

.available-card:hover {
  opacity: 1;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.available-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #ddd;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  position: relative;
}

.available-badge.locked {
  opacity: 0.7;
}

.badge-level {
  position: absolute;
  bottom: -5px;
  right: -5px;
  background-color: #333;
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.6rem;
  font-weight: bold;
}

.available-info h3 {
  margin: 0 0 5px 0;
  color: #333;
}

.available-info p {
  margin: 0 0 10px 0;
  color: #666;
  font-size: 0.9rem;
}

.progress-container {
  margin-bottom: 10px;
}

.progress-container span {
  display: block;
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 5px;
}

.progress-bar {
  height: 6px;
  background-color: #eee;
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: var(--primary);
  border-radius: 3px;
}

.reward-details {
  display: flex;
  gap: 15px;
  font-size: 0.8rem;
  color: #999;
}

.reward-details i {
  margin-right: 3px;
}

/* Estilos da aba de Troféus */
.trophies-description {
  color: #666;
  margin-bottom: 20px;
}

.trophies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.trophy-card {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
  transition: all 0.3s;
}

.trophy-card.unlocked {
  border-top: 4px solid var(--primary);
}

.trophy-card.locked {
  opacity: 0.7;
}

.trophy-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.trophy-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
  background-color:  var(--primary);
}

.trophy-info h3 {
  margin: 0 0 5px 0;
  color: #333;
}

.trophy-info p {
  margin: 0 0 10px 0;
  color: #666;
  font-size: 0.9rem;
}

.trophy-date {
  font-size: 0.8rem;
  color: #27ae60;
  font-weight: bold;
}

.trophy-progress {
  font-size: 0.8rem;
  color: #e74c3c;
  font-style: italic;
}

/* Estilo para o nível máximo */
.fa-crown {
    margin-left: 5px;
}

.user-level.max-level .progress-bar {
    background-color: #FFD700 !important;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.trophies-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.stat-box {
  background-color: white;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
}

/* Estilos para os novos elementos */
  .premio-info-box {
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary);
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
    display: flex;
    gap: 15px;
  }

  .premio-info-box i {
    color: var(--primary);
    font-size: 1.5rem;
  }

  .premio-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
  }

  .premio-type-badge.titulo {
    background-color: #e3f2fd;
    color: #1976d2;
  }

  .premio-type-badge.voucher {
    background-color: #e8f5e9;
    color: #388e3c;
  }

  .premio-type-badge.produto {
    background-color: #fff3e0;
    color: #e65100;
  }

  .empty-message {
    text-align: center;
    grid-column: 1 / -1;
    padding: 40px 0;
  }

  .empty-message i {
    font-size: 3rem;
    color: #b0bec5;
    margin-bottom: 15px;
  }

  .btn-resgatar {
    display: block;
    background-color: var(--secondary);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-align: center;
    margin-top: 15px;
  }

  .voucher-detail-container {
    max-width: 500px;
    margin: 30px auto;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-top: 5px solid var(--primary);
  }

  .voucher-header {
    background: var(--primary);
    color: white;
    padding: 20px;
    text-align: center;
  }

  .voucher-header h2 {
    margin: 0;
    font-size: 1.8rem;
  }

  .voucher-parceiro {
    display: block;
    margin-top: 5px;
    opacity: 0.9;
  }

  .voucher-body {
    padding: 25px;
  }

  .voucher-value {
    font-size: 3rem;
    text-align: center;
    color: var(--primary);
    font-weight: bold;
    margin: 15px 0;
  }

  .voucher-desc {
    text-align: center;
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 25px;
  }

  .voucher-code-box {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    padding: 10px 15px;
    border-radius: 6px;
    margin: 20px 0;
  }

  #voucher-code {
    flex: 1;
    border: none;
    background: transparent;
    font-family: monospace;
    font-size: 1.1rem;
    padding: 5px;
  }

  .btn-copiar {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
  }

  .btn-copiar:hover {
    background: #e0a800;
  }

  .voucher-instructions {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-top: 25px;
  }

  .voucher-footer {
    border-top: 1px dashed #ddd;
    padding: 15px;
  }

  .voucher-meta p {
    margin: 5px 0;
    color: var(--dark);
  }

  .voucher-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
  }

  .btn-ir-loja {
    flex: 1;
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    text-decoration: none;
  }

  .btn-utilizado {
    flex: 1;
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
  }

  .badge-used {
    flex: 1;
    background: #28a745;
    color: white;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
  }

  .voucher-expirado {
    opacity: 0.8;
    border-top-color: #6c757d !important;
  }

  .voucher-expirado .voucher-value {
    color: #6c757d;
  }

  .voucher-alert {
    background: #fff3cd;
    color: #856404;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: center;
  }

  .back-link {
    text-align: center;
    margin-top: 20px;
  }

  .btn-whatsapp-voucher {
    background: #25D366;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }

  .voucher-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  @media (max-width: 576px) {
    .voucher-actions {
      grid-template-columns: 1fr;
    }
  }
