/* Base Styles */
#credits-pricing-table {
  background-color: #282d31;
  padding: 40px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.pricing-table-wrapper {
  max-width: 960px;
  margin: 10px auto 40px auto;
  padding: 20px;
  border-radius: 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cp-title {
  color: #ffffff;
  font-size: 25px;
  font-weight: 500;
  margin-bottom: 16px;
  text-align: center;
}

.cp-subtitle {
  color: #bdbebf;
  font-size: 14px;
  margin-bottom: 30px;
  text-align: center;
}

/* Toggle Switch - KEEPING TRANSITION */
.cp-toggle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
  gap: 0px;
}

.cp-toggle {
  background: #3a3e41;
  border-radius: 50px;
  padding: 4px;
  display: inline-flex;
  gap: 2px;
}

.cp-toggle-btn {
  padding: 6px 20px;
  border-radius: 50px;
  border: none;
  background: transparent;
  color: #bdbebf;
  font-weight: 400;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease; /* KEEP THIS TRANSITION */
}

.cp-toggle-btn.active {
  background: #40d9f2;
  color: #191919;
}

.cp-savings-note {
  color: #bdbebf;
  font-size: 12px;
  font-weight: 500;
  padding-top: 10px;
  padding-bottom: 5px;
}

/* Three Column Layout */
.cp-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 20px;
}

/* Pricing Cards - NO HOVER EFFECTS */
.cp-card {
  background: #282d31;
  border-radius: 16px;
  padding: 65px 35px 35px 35px;
  position: relative;
  /* REMOVED: transition: transform 0.3s ease; */
  display: flex;
  flex-direction: column;
}

/* REMOVED: .cp-card:hover {
  transform: translateY(-8px);
} */

/* Common Card Styling */
.cp-card.common {
  background: #42464a;
  border: 0.7px solid #8e8e8e;
}

.cp-badge.most-popular {
  position: absolute;
  top: 30px;
  left: 35px; /* Changed from left: 50% */
  background: #343333;
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.2px;
  backdrop-filter: blur(6px);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  /* Remove: transform: translateX(-50%); */
}

.cp-badge.most-popular::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -70%;
  width: 20%;
  height: 260%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(45deg);
  animation: shimmer 3s infinite ease-in-out;
  pointer-events: none;
}

@keyframes shimmer {
  0% {
    left: -70%;
  }
  33.3% {
    left: 140%;
  }
  100% {
    left: 140%;
  }
}

/* Common badges */
.cp-card.common .cp-badge {
  background: #f;
}

.cp-card.common-plus .cp-badge {
  background: #40d9f2;
}

/* Rare badge */
.cp-card.rare .cp-badge {
  background: #ff527a;
  color: #ffffff;
}

.cp-plan-name {
  color: #ffffff;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 16px;
  text-align: left;
}

.cp-credits {
  padding: 20px 0;
  text-align: left;
  margin-bottom: 24px;
  margin-top: -24px;
}

/* Animation Styles for Cards */
.cp-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.cp-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.cp-card.animate-out {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.3s ease;
}

/* REMOVED ALL CARD HOVER EFFECTS:
.cp-card:hover {
  transform: translateY(-5px) scale(1.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cp-card.animate-in:hover {
  transform: translateY(-5px) scale(1.02);
} */

.cp-card.common .cp-credit-count,
.cp-card.common-plus .cp-credit-count {
  color: #ffffff;
}

.cp-card.rare .cp-credit-count {
  color: #ffffff;
}

.cp-credit-label {
  color: #bdbebf;
  font-size: 14px;
  font-weight: 450;
}

.cp-price-container {
  text-align: left;
  flex-grow: 1;
}

.cp-original-price {
  color: #bdbebf;
  text-decoration: line-through;
  font-size: 1px;
  margin-bottom: 4px;
}

.cp-current-price {
  color: #ffffff;
  font-size: 32px;
  font-weight: 650;
  margin-bottom: 8px;
  margin-top: -10px;
}

.cp-per-item {
  font-size: 11px;
  font-weight: 400;
  margin-bottom: 4px;
}



.cp-card.common .cp-per-item,
.cp-card.common-plus .cp-per-item {
  color: #bebebe;
}

.cp-card.rare .cp-per-item {
  color: #bebebe;
}

.cp-features {
    margin-top: 20px;
    margin-bottom: 10px;
  flex-grow: 1;
}

.cp-feature {
  color: #e5e5e6;
  font-size: 13px;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.cp-card.common .cp-feature:before,
.cp-card.common-plus .cp-feature:before {
  content: "✓";
  color: #e7e7e7;
  font-weight: 550;
  flex-shrink: 0;
}

.cp-card.rare .cp-feature:before {
  content: "✓";
  color: #dcdcdc;
  font-weight: bold;
  flex-shrink: 0;
}

/* Update button styles to work for both buttons and links */
.cp-button {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  transition: background-color 0.3s ease; /* KEEP ONLY COLOR TRANSITION */
  margin-top: 20px;
  margin-bottom: 0;
  text-decoration: none; /* Remove underline from links */
  display: block; /* Make links behave like buttons */
  text-align: center;
  box-sizing: border-box;
}

/* Ensure links look like buttons */
.cp-button:hover {
  text-decoration: none;
}

/* Common group button - COLOR HOVER EFFECTS ONLY */
.cp-card.common .cp-button,
.cp-card.common-plus .cp-button {
  background: #40d9f2;
  color: #191919;
}

.cp-card.common .cp-button:hover,
.cp-card.common-plus .cp-button:hover {
  background: #33c4dc; /* COLOR CHANGE ONLY */
  /* REMOVED: transform: translateY(-2px); */
}

/* Rare button - COLOR HOVER EFFECTS ONLY */
.cp-card.rare .cp-button {
  background: #ff527a;
  color: #ffffff;
}

.cp-card.rare .cp-button:hover {
  background: #f3476f; /* COLOR CHANGE ONLY */
  /* REMOVED: transform: translateY(-2px); */
}

/* Mobile Responsive - Updated for better readability */
@media (max-width: 992px) {
  .cp-cards-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .cp-card.rare {
    grid-column: span 2;
    max-width: 350px;
    margin: 20 auto;
  }
  
  .cp-footer-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .cp-badge.most-popular {
    top: 20px !important; /* Move badge higher up */
    left: 20px !important; /* Move badge more to the left */
    font-size: 11px !important;
    padding: 3px 10px !important;
    z-index: 2; /* Ensure it stays above other content */
  }
}

@media (max-width: 480px) {
  .cp-badge.most-popular {
    top: 16px !important;
    left: 16px !important;
    font-size: 10px !important;
    padding: 3px 8px !important;
  }
  
  /* Adjust card padding to accommodate badge */
  .cp-card {
    padding-top: 60px !important; /* More space at top for badge */
  }

  /* Add padding for tablet */
  #credits-pricing-table,
  .pricing-table-wrapper {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

@media (max-width: 768px) {
  /* FILL TO SIDES - NEW CODE ADDED HERE */
  #credits-pricing-table {
    padding: 40px 0 !important; /* Changed from 24px 20px */
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
  }
  
  .pricing-table-wrapper {
    padding: 10px 0 !important; /* Changed from 24px 20px */
    max-width: none !important;
    width: 100% !important;
    margin: -20px 0 40px 0 !important;
    border-radius: 0 !important;
  }
  
  .cp-cards-row {
    grid-template-columns: 1fr;
    max-width: none !important; /* Changed from 100% */
    width: 100% !important;
    margin: 0 auto 40px auto;
    padding: 0 10px !important; /* Added !important */
    box-sizing: border-box;
    gap: 15px !important; /* Added gap reduction */
  }
  
  .cp-card.rare {
    grid-column: span 1;
    max-width: 100%;
  }
  
  .cp-footer-features {
    grid-template-columns: 1fr;
  }
  
  .cp-title {
    font-size: 28px;
    padding: 0 10px !important; /* Added !important */
    text-align: center;
  }
  
  .cp-plan-name {
    font-size: 22px;
    padding-top: 15px;
  }
  
  .cp-credit-count {
    font-size: 40px;
  }
  
  .cp-current-price {
    font-size: 35px;
  }
}

@media (max-width: 768px) {
  /* FILL TO SIDES - NEW CODE ADDED HERE */
  #credits-pricing-table {
    padding: 40px 10px !important; /* Added 10px side padding */
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  
  .pricing-table-wrapper {
    padding: 10px 0 !important;
    max-width: none !important;
    width: 100% !important;
    margin: 20px 0 20px 0 !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
  }
  
  .cp-cards-row {
    grid-template-columns: 1fr;
    max-width: none !important;
    width: 100% !important;
    margin: 0 auto 40px auto;
    padding: 0 !important; /* REMOVED: padding: 0 10px !important; */
    box-sizing: border-box;
    gap: 20px !important; /* Increased gap for 10px spacing */
  }
  
  .cp-card {
    padding: 30px 25px !important; /* INCREASED INSIDE PADDING */
    margin: 0 10px !important; /* 10px OUTSIDE MARGIN */
    width: calc(100% - 20px) !important; /* Accounts for 10px + 10px margins */
    box-sizing: border-box !important;
    border-radius: 16px !important; /* Ensure cards keep rounded corners */
  }
  
  .cp-card.rare {
    grid-column: span 1;
    max-width: 100%;
  }
  
  .cp-footer-features {
    grid-template-columns: 1fr;
  }
  
  .cp-title {
    font-size: 28px;
    padding: 0 10px !important;
    text-align: center;
  }
  
  .cp-plan-name {
    font-size: 22px;
    padding-top: 15px;
  }
  
  .cp-credit-count {
    font-size: 40px;
  }
  
  .cp-current-price {
    font-size: 35px;
  }
}

@media (max-width: 480px) {
  .cp-toggle-btn {
    padding: 6px 18px !important;
    font-size: 14px !important;
  }
  
  .cp-card {
    padding: 28px 22px !important; /* INCREASED INSIDE PADDING */
    margin: 0 10px !important; /* 10px OUTSIDE MARGIN */
    width: calc(100% - 20px) !important; /* Accounts for 10px + 10px margins */
    box-sizing: border-box !important;
  }
  
  #credits-pricing-table {
    padding: 40px 10px !important; /* Added 10px side padding */
    max-width: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .pricing-table-wrapper {
    padding: 20px 0 !important;
    margin: -20px 0 40px 0 !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
  }
  
  /* FILL TO SIDES - Cards row adjustment */
  .cp-cards-row {
    padding: 0 !important; /* REMOVED: padding: 0 8px !important; */
    gap: 18px !important; /* Increased gap for spacing */
  }
  
  /* Improve readability on small screens */
  .cp-title {
    font-size: 24px !important;
    line-height: 1.3;
    padding: 0 10px !important;
  }
  
  .cp-subtitle {
    font-size: 14px;
    padding: 0 15px;
    line-height: 1.4;
  }
  
  .cp-plan-name {
    font-size: 20px !important;
  }
  
  .cp-credit-count {
    font-size: 36px !important;
  }
  
  .cp-current-price {
    font-size: 30px !important;
  }
  
  .cp-per-item {
    font-size: 12px !important;
  }
  
  .cp-feature {
    font-size: 13px !important;
    line-height: 1;
  }
  
  .cp-button {
    padding: 14px 16px !important;
    font-size: 15px !important;
  }
}

/* Extra small devices (phones under 360px) */
@media (max-width: 360px) {
  .cp-card {
    padding: 24px 20px !important; /* INCREASED INSIDE PADDING */
    margin: 0 10px !important; /* 10px OUTSIDE MARGIN */
    width: calc(100% - 20px) !important; /* Accounts for 10px + 10px margins */
    box-sizing: border-box !important;
  }
  
  .cp-toggle-btn {
    padding: 6px 14px !important;
    font-size: 13px !important;
  }
  
  .cp-title {
    font-size: 22px !important;
    padding: 0 10px !important;
  }
  
  .cp-button {
    padding: 12px !important;
    font-size: 14px !important;
  }
  
  /* FILL TO SIDES - Smallest screen adjustment */
  .cp-cards-row {
    padding: 0 !important; /* REMOVED: padding: 0 6px !important; */
    gap: 16px !important; /* Increased gap for spacing */
  }
}