/* Special Plans Section */
.special-plans-section {
  margin-top: 3rem;
  padding-top: 2rem;
  position: relative;
  z-index: 1; /* Ensure it's below main pricing cards in stacking context */
}

.special-plans-section .section-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  text-align: center;
}

/* Special Plan Card Component */
.special-plan-card {
  /* Subtle glassmorphism effect for dark theme */
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.15s ease;
  width: 100%; /* Ensure card fills grid cell */
  box-sizing: border-box; /* Include padding in width calculation */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.special-plan-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

/* All special cards use the same subtle styling */
.special-plan-free,
.special-plan-trial,
.special-plan-custom {
  /* Inherits base styling from .special-plan-card */
}

/* Current plan state */
.special-plan-card.current {
  border: 2px solid rgba(16, 185, 129, 0.5);
  position: relative;
  background: rgba(16, 185, 129, 0.05);
}

.special-plan-card.current::before {
  content: "Current";
  position: absolute;
  top: -8px;
  right: 12px;
  background: #10b981;
  color: #000000;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Content layout */
.special-plan-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.special-plan-icon {
  display: none; /* Remove icons for minimal appearance */
}

.special-plan-title {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.375rem;
  text-align: center;
}

.special-plan-description {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8125rem;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  text-align: center;
}

/* Features paragraph */
.special-plan-features {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8125rem;
  line-height: 1.4;
  margin: 0 0 1rem 0;
  text-align: center;
}

/* Action button */
.special-plan-action {
  margin-top: auto;
  padding-top: 0.75rem;
  text-align: center; /* Center the inline button */
}

/* Special plan buttons are only as wide as their content */
.special-plan-action .button {
  display: inline-flex;
  text-decoration: none;
}

/* Grid layout already defined in three-column-grid.css */
/* Ensure proper grid behavior for special plans */
.special-plans-grid {
  margin-top: 2rem;
  display: grid;
  gap: 2rem;
  /* Center the grid container */
  justify-content: center;
}

/* Ensure 2-column layout on larger screens, centered with max-width */
@media (min-width: 768px) {
  .special-plans-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 450px));
    max-width: 920px; /* Max width for 2 cards with gap */
    margin-left: auto;
    margin-right: auto;
  }

  /* Ensure cards take full width of their grid cell */
  .special-plans-grid .special-plan-card {
    width: 100%;
  }
}

/* Single column on smaller screens */
@media (max-width: 767px) {
  .special-plans-grid {
    grid-template-columns: 1fr;
  }

  /* Ensure cards take full width */
  .special-plans-grid .special-plan-card {
    width: 100%;
  }
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .special-plan-card {
    padding: 1rem;
  }

  .special-plan-title {
    font-size: 1rem;
  }

  .special-plan-description {
    font-size: 0.8125rem;
  }

  .special-plan-features {
    font-size: 0.8125rem;
  }
}



