.plans {
  text-align: center;
  background: var(--background);
  position: relative;
  overflow: hidden;
}

/* Background pattern similar to features */
.plans::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(45deg, transparent 48%, var(--primary) 49%, var(--primary) 51%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, var(--secondary) 49%, var(--secondary) 51%, transparent 52%);
  background-size: 60px 60px;
  opacity: 0.03;
  animation: patternShift 30s linear infinite;
}

@keyframes patternShift {
  from { background-position: 0 0; }
  to { background-position: 60px 60px; }
}

.plans h2 {
  margin-bottom: 3rem;
  font-size: 2.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  z-index: 2;
}

.plan-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.plan-box {
  padding: 2rem;
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 300px;
  min-height: 500px;
  transition: all var(--transition-speed) ease;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1;
}

/* Glow effect on hover, matching features */
.plan-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
  z-index: -2;
}

.plan-box:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--primary);
  box-shadow: 
    0 20px 40px rgba(187, 134, 252, 0.2),
    0 0 20px rgba(187, 134, 252, 0.1);
}

.plan-box:hover::before {
  opacity: 0.1;
}

.plan-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.plan-box h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

/* Underline effect matching features */
.plan-box h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-speed) ease;
}

.plan-box:hover h3::after {
  width: 100%;
}

.plan-box .price {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 1rem 0;
  color: var(--primary);
  transition: all var(--transition-speed) ease;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.plan-box .cta-button {
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

.cta-button .blockoPayBtn {
  color: inherit !important;
  text-decoration: none !important;
}

.plan-box:hover .price {
  transform: scale(1.1);
}

.plan-box .discount {
  text-decoration: line-through;
  color: var(--text-secondary);
  font-size: 1rem;
}

.plan-box .save {
  color: var(--secondary);
  font-weight: 600;
  margin-top: 1rem;
  position: relative;
  display: inline-block;
}

.features-list {
  text-align: left;
  margin: 1.5rem 0;
  color: var(--text-secondary);
  flex-grow: 1;
  padding-left: 1rem;
}

.features-list li {
  margin: 0.8rem 0;
  list-style: none;
  position: relative;
  padding-left: 1.5rem;
  transition: transform var(--transition-speed) ease;
}

.features-list li::before {
  content: '✓';
  color: var(--secondary);
  position: absolute;
  left: 0;
  transition: transform var(--transition-speed) ease;
}

.features-list li:hover {
  transform: translateX(5px);
  color: var(--text);
}

.features-list li:hover::before {
  transform: scale(1.2);
  color: var(--primary);
}

/* Shine effect matching features */
.plan-box::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: rotate(45deg);
  transition: transform 0.8s ease;
  opacity: 0;
  pointer-events: none;
}

.plan-box:hover::after {
  opacity: 1;
  transform: rotate(45deg) translate(50%, 50%);
}

@media (max-width: 768px) {
  .plan-options {
    flex-direction: column;
    align-items: center;
  }

  .plan-box {
    width: 100%;
    max-width: 300px;
  }
}