/* ========== METAS FINANCEIRAS (PREMIUM) ========== */
.financial-goals {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pure-white);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

.add-goal-btn {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.5rem;
  background: var(--gradient-accent);
  color: white;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(255, 4, 1, 0.2);
}

.add-goal-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #d40000, #FF0401);
  opacity: 0;
  transition: opacity 0.3s;
}

.add-goal-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 4, 1, 0.3);
}

.add-goal-btn:hover::before {
  opacity: 1;
}

.add-goal-btn i {
  font-size: 1rem;
  transition: transform 0.3s;
}

.add-goal-btn:hover i {
  transform: rotate(90deg);
}

/* Container de Metas */
.goals-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.8rem;
}

.goal-card {
  border-radius: 16px;
  padding: 1.8rem;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.goal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.3s;
}

.goal-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.goal-card:hover::before {
  opacity: 1;
}

/* Temas de cores para metas */
.travel-goal {
  border-left: 4px solid #2E86DE;
}

.tech-goal {
  border-left: 4px solid #5F27CD;
}

.car-goal {
  border-left: 4px solid var(--primary-accent);
}

.savings-goal {
  border-left: 4px solid #00A859;
}

/* Cabeçalho da Meta */
.goal-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.8rem;
}

.goal-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: white;
  flex-shrink: 0;
  transition: all 0.3s;
}

.goal-card:hover .goal-icon {
  transform: scale(1.1);
}

.travel-goal .goal-icon {
  background: rgba(46, 134, 222, 0.2);
  box-shadow: 0 4px 12px rgba(46, 134, 222, 0.2);
}

.tech-goal .goal-icon {
  background: rgba(95, 39, 205, 0.2);
  box-shadow: 0 4px 12px rgba(95, 39, 205, 0.2);
}

.car-goal .goal-icon {
  background: rgba(255, 4, 1, 0.2);
  box-shadow: 0 4px 12px rgba(255, 4, 1, 0.2);
}

.savings-goal .goal-icon {
  background: rgba(0, 168, 89, 0.2);
  box-shadow: 0 4px 12px rgba(0, 168, 89, 0.2);
}

.goal-title-container {
  flex: 1;
  min-width: 0;
}

.goal-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--pure-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.goal-tag {
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--secondary-gray);
  display: inline-block;
  font-weight: 500;
}

/* Progresso da Meta */
.goal-progress {
  margin-bottom: 1.8rem;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.progress-amount {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--pure-white);
}

.progress-total {
  font-size: 0.9rem;
  color: var(--secondary-gray);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease;
}

.travel-goal .progress-fill {
  background: linear-gradient(90deg, #2E86DE, #54A0FF);
}

.tech-goal .progress-fill {
  background: linear-gradient(90deg, #5F27CD, #A55EEA);
}

.car-goal .progress-fill {
  background: var(--gradient-accent);
}

.savings-goal .progress-fill {
  background: linear-gradient(90deg, #00A859, #26DE81);
}

.progress-percentage {
  text-align: right;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--pure-white);
}

/* Rodapé da Meta */
.goal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.goal-deadline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--secondary-gray);
}

.goal-deadline i {
  font-size: 1rem;
}

.deposit-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--pure-white);
  border: none;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.deposit-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.travel-goal .deposit-btn {
  color: #2E86DE;
  background: rgba(46, 134, 222, 0.1);
}

.tech-goal .deposit-btn {
  color: #5F27CD;
  background: rgba(95, 39, 205, 0.1);
}

.car-goal .deposit-btn {
  color: var(--primary-accent);
  background: rgba(255, 4, 1, 0.1);
}

.savings-goal .deposit-btn {
  color: #00A859;
  background: rgba(0, 168, 89, 0.1);
}

/* Badge de Status */
.goal-status {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-weight: 600;
}

.status-active {
  background: rgba(0, 168, 89, 0.15);
  color: #00A859;
}

.status-pending {
  background: rgba(255, 152, 0, 0.15);
  color: #FF9800;
}

/* Responsividade */
@media (max-width: 1200px) {
  .goals-container {
    gap: 1.5rem;
  }
  
  .goal-card {
    padding: 1.5rem;
  }
}

@media (max-width: 992px) {
  .financial-goals {
    padding: 2rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .goal-icon {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .add-goal-btn {
    width: 100%;
    justify-content: center;
  }
  
  .goal-title {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .financial-goals {
    padding: 1.5rem;
  }
  
  .goal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .goal-icon {
    width: 48px;
    height: 48px;
  }
  
  .progress-amount {
    font-size: 1.2rem;
  }
}
