.plans-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.plans-modal.is-open {
  display: flex;
}

.plans-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.78);
  backdrop-filter: blur(8px);
}

.plans-modal-dialog {
  position: relative;
  z-index: 2;
  width: min(1200px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 28px;
  border-radius: 28px;
  background: #0f172a;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}

.plans-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.plans-modal-kicker {
  color: #a78bfa;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.plans-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.plans-head-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plans-modal-head h2 {
  margin: 0 0 10px;
  font-size: 32px;
}

.plans-modal-head p {
  margin: 0;
  color: #94a3b8;
  line-height: 1.6;
}

.plans-billing-switch {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
}

.plans-billing-btn {
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: transparent;
  cursor: pointer;
  transition: 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.plans-billing-btn.is-active {
  background: rgba(124, 58, 237, 0.22);
  border: 1px solid rgba(124, 58, 237, 0.28);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.plan-card {
  position: relative;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
}

.plan-card-accent {
  background: rgba(15, 109, 66, 0.35);
  border-color: rgba(34, 197, 94, 0.24);
}

.plan-badge {
  position: absolute;
  top: -12px;
  right: 18px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #fff;
  color: #111827;
  font-size: 12px;
  font-weight: 800;
}

.plan-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.plan-price {
  color: #94a3b8;
  font-size: 16px;
  margin-bottom: 18px;
}

.plan-btn {
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 15px 18px;
  font-size: 14px;
  font-weight: 800;
  color: #00e676;
  background: rgba(22, 101, 52, 0.75);
  cursor: pointer;
  transition: 0.2s ease;
}

.plan-btn:hover {
  transform: translateY(-2px);
}

.plan-btn-accent {
  color: #000;
  background: #00e65f;
}

.plan-features {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: grid;
  gap: 12px;
  color: #fff;
  line-height: 1.55;
  font-size: 15px;
}

@media (max-width: 1100px) {
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .plans-modal-dialog {
    padding: 22px 16px;
    border-radius: 22px;
  }

  .plans-grid {
    grid-template-columns: 1fr;
  }

  .plans-modal-head {
    flex-direction: column;
    align-items: stretch;
  }
}