#planosTabs {
  width: 100%;
  display: flex;
  justify-content: center;
}
.planos-tabs {
  padding: 2rem 0 0;
}

.planos-tabs .nav-tabs {
  border: none;
  gap: 1rem;
}

.planos-tabs .nav-link {
  border: none;
  background: white;
  color: #6b7280;
  padding: 1rem 2rem;
  border-radius: 12px 12px 0 0;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.planos-tabs .nav-link:hover {
  transform: translateY(-2px);
}

.planos-tabs .nav-link.active {
  background: #f97316;
  color: white;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.planos-tabs .nav-link i {
  font-size: 1.5rem;
  display: block;
}

.planos-ordenar {
  padding: 1rem 0 0;
}

.planos-ordenar__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.planos-ordenar__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  white-space: nowrap;
}

.planos-ordenar__options {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.planos-ordenar__btn {
  padding: 0.375rem 1rem;
  border-radius: 99px;
  border: 1.5px solid #d1d5db;
  background: white;
  color: #6b7280;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.planos-ordenar__btn:hover {
  border-color: #f97316;
  color: #f97316;
}

.planos-ordenar__btn.active {
  background: #f97316;
  border-color: #f97316;
  color: white;
}

.planos-container {
  padding: 0 0 4rem;
}

.plano-card {
  background: white;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 2px solid #ccc;
}

.plano-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  border-color: #f97316;
}

.plano-header {
  padding: 1.5rem;
  text-align: center;
  color: #1e40af;
}

.plano-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
}

.plano-price {
  padding: 2rem;
  text-align: center;
}

.price-flag {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.price-original {
  text-decoration: line-through;
  color: #9ca3af;
  font-weight: 600;
}

.price-currency {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ea580c;
  vertical-align: super;
}

.price-value {
  font-size: 4rem;
  font-weight: 800;
  color: #ea580c;
  line-height: 1;
}

.price-decimal {
  font-size: 2rem;
  font-weight: 700;
  color: #ea580c;
}

.price-period {
  display: block;
  font-size: 1rem;
  color: #1e40af;
  margin-top: 0.5rem;
}

.plano-description {
  padding: 1.5rem;
  text-align: center;
  color: #1e40af;
  font-size: 0.95rem;
}

.plano-features {
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.features-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1e40af;
  margin: 1rem 0;
  text-align: center;
}

.features-title i {
  color: #f97316;
  margin-right: 0.5rem;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features-list .feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: #f9fafb;
  border-radius: 6px;
  transition: all 0.2s;
  position: relative;
  cursor: default;
}

.features-list .feature-item:hover {
  background: #f3f4f6;
  transform: translateX(4px);
}

.features-list .feature-item:last-child {
  margin-bottom: 0;
}

.feature-icon {
  font-size: 1.25rem;
  color: #f97316;
  flex-shrink: 0;
}

.feature-name {
  font-weight: 600;
  color: #1f2937;
  font-size: 0.9rem;
  line-height: 1.3;
  flex: 1;
}

/* Tooltip styles */
.feature-item[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 8px;
  padding: 0.5rem 0.75rem;
  background: #1f2937;
  color: white;
  font-size: 0.8rem;
  line-height: 1.4;
  border-radius: 6px;
  white-space: normal;
  max-width: 250px;
  width: max-content;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: tooltipFadeIn 0.2s ease;
}

.feature-item[data-tooltip]:hover::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 2px;
  border: 6px solid transparent;
  border-top-color: #1f2937;
  z-index: 1000;
  animation: tooltipFadeIn 0.2s ease;
}

@keyframes tooltipFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.plano-footer {
  padding: 1.5rem;
  text-align: center;
  margin-top: auto;
}

.btn-assinar-planos {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  background: #004968;
  border: none;
  color: white;
  border-radius: 6px;
  border: 2px solid #004968;
  transition: all 0.3s;
}

.btn-assinar-planos:hover {
  transform: translateY(-2px);
  border-color: #004968;
  color: #004968;
  cursor: pointer;
}

.plano-disclaimer {
  font-size: 0.75rem;
  color: #9ca3af;
  margin: 1rem 0 0;
}

@media (max-width: 768px) {
  .planos-tabs .nav-link {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .planos-tabs .nav-link i {
    font-size: 1.25rem;
  }

  .price-value {
    font-size: 3rem;
  }
}

/* ===== LOADING CUSTOMIZADO ===== */
.planos-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
  min-height: 400px;
}

.loading-spinner {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 2rem;
}

.spinner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 4px solid transparent;
  border-top-color: #f97316;
  border-radius: 50%;
  animation: spin 1.5s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.spinner-ring:nth-child(1) {
  animation-delay: -0.45s;
  border-top-color: #f97316;
}

.spinner-ring:nth-child(2) {
  animation-delay: -0.3s;
  border-top-color: #ea580c;
}

.spinner-ring:nth-child(3) {
  animation-delay: -0.15s;
  border-top-color: #fb923c;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: #6b7280;
  margin: 0;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* ===== ERROR STATE ===== */
.planos-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
  min-height: 400px;
  text-align: center;
}

.planos-error i {
  font-size: 5rem;
  color: #ef4444;
  margin-bottom: 1.5rem;
}

.planos-error h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.75rem;
}

.planos-error p {
  font-size: 1.05rem;
  color: #6b7280;
  margin-bottom: 2rem;
}

.btn-reload {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: #f97316;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-reload:hover {
  background: #ea580c;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.3);
}

.btn-reload i {
  font-size: 1.25rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .planos-loading,
  .planos-error {
    padding: 4rem 1.5rem;
    min-height: 300px;
  }

  .loading-spinner {
    width: 60px;
    height: 60px;
  }

  .loading-text {
    font-size: 1rem;
  }

  .planos-error i {
    font-size: 4rem;
  }

  .planos-error h3 {
    font-size: 1.5rem;
  }
}
