.subscription-management {
  background-color: #f9fafb;
  padding: 60px 20px;
}

.header {
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #4b5563;
  margin: 0;
}

.header p {
  color: #4b5563;
  margin: 0;
  margin-top: 0.25rem;
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  font-size: 1.125rem;
  color: #6b7280;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid #e5e7eb;
  border-top: 2px solid #4f46e5;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 0.5rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.plans-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 640px) {
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .plans-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .plans-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.plan-card {
  position: relative;
  background-color: white;
  border-radius: 1rem;
  padding: 60px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.plan-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.plan-card.yearly {
  background-color: #114945;
  color: white;
}

/* .plan-card.paid {
    background-color: #114945;
    color: white;
  } */

.plan-card.free {
  background-color: #e5e7eb;
  color: black;
}

.badge {
  position: absolute;
  top: 20px;
  right: -25px;
  width: 120px;
  height: 30px;
  overflow: hidden;
}

/* .badge.recommended {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
  } */
/* 
  .badge p {
    display: inline-block;
    padding: 0.25rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    position: absolute;
    transform: rotate(-45deg);
    top: 5px;
    right: -15px;
    background-color: #fbbf24;
  } */
/* 
  .badge.forever-free p {
    background-color: #9ca3af;
    color: white;
  } */

.plan-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.plan-description {
  margin-top: 0.5rem;
  opacity: 0.8;
}

.plan-pricing {
  margin-top: 1rem;
}

.plan-price {
  font-size: 1.1rem;
  font-weight: 700;
}

.plan-period {
  margin-left: 0.5rem;
  opacity: 0.8;
}

.features-list {
  margin-top: 1.2rem;
  list-style: none;
  padding: 0;
}

.features-list li {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
  align-items: flex-start;
}

.features-list li:first-child {
  margin-top: 0;
}

.check-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.yearly .plan-name,
.yearly .plan-price {
  color: white;
}

.yearly .plan-description,
.yearly .plan-period {
  color: rgba(255, 255, 255, 0.8);
}

.yearly .features-list span {
  color: rgba(255, 255, 255, 0.9);
}

.free .plan-name,
.free .plan-price {
  color: black;
}

.free .plan-description,
.free .plan-period {
  color: rgba(0, 0, 0, 0.6);
}

.free .features-list span {
  color: rgba(0, 0, 0, 0.7);
}

span.badge {
  padding: 7px 30px;
  position: absolute;
  top: 32px;
  left: -40px;
  transform: rotate(-45deg);
  width: 170px;
  font-size: 0.9rem; /* 14px */
  font-weight: 490; /* font-medium */
  font-family: Poppins, sans-serif;
}

span.recommended {
  background-color: #fbae20;
  color: black;
}
span.best-value {
  background-color: #036661;
}
span.forever-free {
  /* background-color: #98a2b3; */
  background-color: #fbae20;
}
span.trial {
  background-color: #98a2b3;
}

#plans-container {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
  max-width: 1320px;
  padding: 0px 15px;
  margin: 0 auto;
}
.plan-card {
  width: 40%;
}

li.country-pricing-message {
  background: rgb(3 102 97 / 8%);
  padding: 10px 6px;
  border-radius: 8px;
  color: #036661;
}

.discount {
  font-size: 12px;
  color: #e60000;
}

@media screen and (max-width: 1024px) {
  .plan-card {
    width: calc(50% - 25px);
  }
}

@media screen and (max-width: 767px) {
  .plan-card {
    width: 100%;
    max-width: 500px;
  }
  .subscription-management {
    padding: 60px 15px;
  }
}
