.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
  background: rgba(5, 5, 5, 0.75);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.planes-modal {
  position: relative;
  width: 100%;
  max-width: 1080px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px 40px;
  transform: translateY(24px) scale(0.98);
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

.modal-overlay.open .planes-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s var(--ease);
}

.modal-close:hover {
  color: var(--text);
  border-color: var(--orange);
}

.modal-close svg {
  width: 16px;
  height: 16px;
}

.planes-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 40px;
}

.planes-head h2 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.25;
}

.planes-head p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.planes-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.6;
  margin-top: 28px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
}

.plan-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
}

.plan-card.featured {
  border-color: var(--orange-dim);
  box-shadow: 0 0 40px rgba(255, 106, 0, 0.18);
}

.plan-badge {
  position: absolute;
  top: -12px;
  right: 22px;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.plan-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.plan-desc {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 18px;
  min-height: 34px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 2px;
}

.plan-price .amount {
  font-size: 32px;
  font-weight: 800;
}

.plan-price .period {
  color: var(--text-muted);
  font-size: 13px;
}

.plan-equiv {
  color: var(--text-faint);
  font-size: 12px;
  margin-bottom: 18px;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  flex: 1;
}

.plan-features li {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.plan-features svg {
  width: 14px;
  height: 14px;
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 2px;
}

.plan-extras {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 16px;
}

.plan-extras-title {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 8px;
}

.plan-extras div.extra-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-muted);
  padding: 3px 0;
}

.plan-offer {
  color: var(--orange-light);
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.plan-card .btn {
  margin-top: auto;
}

@media (max-width: 900px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }
  .planes-modal {
    padding: 40px 20px 28px;
  }
}
