.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(6px);
  z-index: 100;
}

.modal.show {
  display: flex;
  animation: fadeIn 0.4s ease forwards;
}

.modal-content {
  position: relative;
  color: #354055;
  border-radius: 20px;
  max-width: 700px;
  width: 90%;
  padding: 40px 30px;
  background: #2d3748;
  animation: slideUp 0.4s ease forwards;
}

.close-btn {
  width: 30px;
  height: 30px;
  position: absolute;
  top: 16px;
  right: 16px;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  font-weight: 600;
  background-color: #354055;
  border: 1px solid rgba(74, 85, 104, 0.5);
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.close-btn:hover {
  background-color: rgb(71, 87, 114);
}

.modal-title {
  color: #fff;
  text-align: center;
  margin-bottom: 25px;
  font-size: 1.8rem;
  font-weight: 700;
}

.plans {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.plan-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  flex: 1 1 280px;
  padding: 25px;
  text-align: center;
  border-radius: 16px;
  transition: transform 0.4s, box-shadow 0.4s;
  background: linear-gradient(145deg, #f9fafb, #e5e7eb);
  position: relative;
  overflow: hidden;
}

.plan-card:hover {
  transform: translateY(-6px);
}

.plan-div {
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.plan-header h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.price {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 12px;
}

.gold {
  background: linear-gradient(135deg, #ffda6a, #fbbf24);
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
}

.platinum {
  background: linear-gradient(135deg, #e0e0e0, #bdbdbd);
  box-shadow: 0 4px 20px rgba(180, 180, 180, 0.2);
}

.benefits {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 0;
  margin: 0 0 25px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  text-align: left;
  gap: 5px;
}

.benefits li::before {
  content: "•";
  margin-right: 6px;
  font-weight: bold;
}

.select-btn {
  color: #fff;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  background-color: #354055;
  border: 1px solid #f5f5f5;
  transition: background 0.4s;
}

.select-btn:hover {
  background-color: rgb(71, 87, 114);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 600px) {
  .modal-content {
    padding: 25px 20px;
  }

  .plans {
    flex-direction: column;
    gap: 15px;
  }

  .plan-card {
    flex: 1 1 auto;
  }

  .modal-title {
    font-size: 1.5rem;
  }
}
