/* Modern Dark Theme Pricing Cards Styling */

/* Category Tabs */
.rez-plan-categories {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
  flex-wrap: wrap;
  gap: 10px;
}

.rez-plan-category-tab {
  padding: 12px 25px;
  background: rgb(23 26 37);
  /* border: 2px solid rgba(255, 255, 255, 0.1); */
  border-radius: 6px;
  cursor: pointer;
  color: #a0a9b8;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); */
}

.rez-plan-category-tab:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(220deg, rgba(118, 55, 189, 0.7) 0%, rgba(71, 120, 255, 0.7) 50%,  rgba(0, 216, 255, 0.7) 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.rez-plan-category-tab:hover {
  transform: translateY(-3px);
}

.rez-plan-category-tab.active {
    background: linear-gradient(220deg, rgba(0, 216, 255, 0.7) 0%, rgba(71, 120, 255, 0.7) 50%, rgba(118, 55, 189, 0.7) 100%);
    color: #fff;
}

.rez-plan-category-tab.active:before {
  opacity: 1;
}

/* Main Pricing Section */
.rez-plan-area {
  padding: 60px 0;
  background-color: #121212;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.rez-plan-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
}

.rez-plan-title-container {
  text-align: center;
  margin-bottom: 40px;
}

.rez-plan-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 15px;
  color:#fff;
  font-family: "gallery_modernregular";
  text-shadow: 0 2px 10px rgba(94, 44, 237, 0.3);
}

.rez-plan-subtitle {
  font-size: 18px;
  color: #ffffff;
  max-width: 700px;
  margin: 0 auto 30px;
  letter-spacing: 0.5px;
}

.rez-plan-category-description {
  font-size: 16px;
  color: #8a8fa3;
  max-width: 700px;
  margin: 0 auto 40px;
  text-align: center;
  font-style: italic;
}

.rez-plan-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin: 0 auto;
  max-width: 1280px;
  transition: all 0.5s ease;
}

.rez-plan-col {
  flex: 0 0 auto;
  width: 350px;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.rez-plan-col.visible {
  opacity: 1;
  transform: translateY(0);
}

.rez-plan-card {
  position: relative;
  border-radius: 12px;
  background-color: #0a0d14;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: visible;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgb(57 54 63);
  will-change: transform, box-shadow;
}

.rez-plan-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  border-color: rgba(94, 44, 237, 0.3);
  border-color: rgba(255, 255, 255, 0.1);
}

.rez-plan-card.active {
  /* box-shadow: 0 20px 50px rgba(94, 44, 237, 0.25); */
  /* border-color: rgba(164, 133, 253, 0.3); */
  z-index: 1;
  background-color: #0a0d14;
}

.rez-plan-badge {
  position: absolute;
  top: -12px;
  right: 30px;
  background: linear-gradient(220deg, rgba(0, 216, 255, 0.7) 0%, rgba(71, 120, 255, 0.7) 50%, rgba(118, 55, 189, 0.7) 100%);
  color: white;
  padding: 8px 20px;
  font-weight: 600;
  font-size: 14px;
  border-radius: 30px;
  z-index: 1;
  box-shadow: 0 5px 15px rgba(94, 44, 237, 0.4);
  letter-spacing: 0.5px;
}

.rez-plan-header {
  padding: 35px 30px 30px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background-color: #0f1119;
  border-radius: 12px 12px 0 0;
  position: relative;
  overflow: hidden;
}

.rez-plan-tier {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
  background-color: rgb(201 201 201 / 15%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 15px;
}

.rez-plan-title-text {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 25px;
  color:#fff;
  font-family: "gallery_modernregular";
}

.rez-plan-price {
  display: flex;
  align-items: flex-end;
  margin-bottom: 5px;
}

.rez-plan-price-discounted {
  font-size: 36px;
  font-weight: 700;
  color: #a485fd;
  line-height: 1;
  background: linear-gradient(90deg, #5e2ced, #a485fd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rez-plan-price-regular {
  font-size: 18px;
  color: #9097a7;
  text-decoration: line-through;
  margin-left: 10px;
  font-weight: 500;
  margin-bottom: 5px;
}

.rez-plan-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.rez-plan-features {
  margin-bottom: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rez-plan-features-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.rez-plan-features-list li {
  padding: 4px 0;
  font-size: 15px;
  color: #c0c5d0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: flex-start;
}

.rez-plan-features-list li:last-child {
  border-bottom: none;
}

.rez-plan-features-list li i {
  margin-right: 12px;
  color: #4CAF50;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 3px;
}

.rez-plan-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 15px 30px;
  background: linear-gradient(220deg, rgba(0, 216, 255, 0.7) 0%, rgba(71, 120, 255, 0.7) 50%, rgba(118, 55, 189, 0.7) 100%);
  color: #fff !important;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 100%;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 5px 15px rgba(94, 44, 237, 0.3);
}

.rez-plan-btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(220deg, rgba(0, 216, 255, 0.7) 0%, rgba(71, 120, 255, 0.7) 50%, rgba(118, 55, 189, 0.7) 100%);
  z-index: -1;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.rez-plan-btn:hover:before {
  opacity: 1;
}

.rez-plan-btn span {
  margin-left: 10px;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.rez-plan-btn:hover span {
  transform: translateX(5px);
}

.rez-plan-btn:hover {
  box-shadow: 0 10px 25px rgba(94, 44, 237, 0.4);
  transform: translateY(-2px);
}

/* Modal/Popup Styles */
.rez-plan-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: flex-end; /* Changed from center to flex-end to align at bottom */
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  overflow: hidden;
}

.rez-plan-modal.active {
  opacity: 1;
  visibility: visible;
}

.rez-plan-modal-content {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px 20px 0 0; /* Rounded corners only at the top */
  width: 100%; /* Full width at the bottom */
  max-width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  transform: translateY(100%); /* Start from below the screen */
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Material motion curve */
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5); /* Shadow from top */
  scrollbar-width: thin;
  scrollbar-color: #5e2ced rgba(255, 255, 255, 0.05);
}

.rez-plan-modal.active .rez-plan-modal-content {
  transform: translateY(0); /* Slide up to visible position */
}
.rez-plan-modal-content::-webkit-scrollbar {
  width: 6px;
}

.rez-plan-modal-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.rez-plan-modal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #5e2ced, #a485fd);
  border-radius: 10px;
}

.rez-plan-modal-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #4919d5, #8c6cec);
}

.rez-plan-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #333333;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 18px;
}

.rez-plan-modal-close:hover {
  background: #5e2ced;
  transform: rotate(90deg);
}

/* Bottom sheet handle indicator */
.rez-plan-modal-handle {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  margin: 0 auto 30px;
  display: block;
}

.rez-plan-modal-title {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 24px;
  color: #fff;
  font-weight: 700;
}

.rez-plan-modal-features {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rez-plan-modal-features li {
  padding: 12px 0;
  font-size: 15px;
  color: #c0c5d0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
}

.rez-plan-modal-features li:last-child {
  border-bottom: none;
}

.rez-plan-modal-features li i {
  margin-right: 15px;
  color: #4CAF50;
  font-size: 18px;
  flex-shrink: 0;
}

/* Category content container */
.rez-plan-category-content {
  display: none;
  animation: fadeIn 0.5s ease forwards;
}

.rez-plan-category-content.active {
  display: block;
}

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

/* No plans message */
.rez-plan-no-plans {
  text-align: center;
  padding: 50px 0;
  color: #6a7c92;
  font-size: 18px;
}

/* See all features button */
.rez-plan-see-all {
  margin-top: 15px;
  text-align: center;
}

.rez-plan-see-all-btn {
  background: none;
  border: none;
  color: #a485fd;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: all 0.3s ease;
}

.rez-plan-see-all-btn:hover {
  color: #ffffff;
  text-shadow: 0 0 5px rgba(164, 133, 253, 0.5);
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .rez-plan-col {
    width: 320px;
  }
}

@media (max-width: 992px) {
  .rez-plan-col {
    width: calc(50% - 20px);
  }
  
  .rez-plan-row {
    justify-content: center;
  }

  .rez-plan-title {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .rez-plan-area {
    padding: 80px 0;
  }
  
  .rez-plan-col {
    width: 100%;
    max-width: 400px;
  }
  
  .rez-plan-category-tab {
    padding: 10px 15px;
    font-size: 14px;
  }
  
  .rez-plan-title {
    font-size: 32px;
  }
  
  .rez-plan-subtitle {
    font-size: 16px;
  }
  
  .rez-plan-price-discounted {
    font-size: 32px;
  }
  
  .rez-plan-header {
    padding: 25px 20px;
  }
  
  .rez-plan-body {
    padding: 25px 20px;
  }
  
  .rez-plan-modal-content {
    padding: 30px 20px;
  }
}
