.plan-comparison {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.plan-column {
  border: 1px solid rgba(31, 61, 99, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  padding: 18px;
}

.plan-column-highlight {
  border-color: rgba(200, 108, 46, 0.42);
  background: linear-gradient(180deg, rgba(255, 248, 236, 0.95), rgba(245, 231, 207, 0.86));
  box-shadow: 0 14px 32px rgba(90, 54, 24, 0.12);
}

.plan-column-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(31, 61, 99, 0.1);
  color: #173658;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.plan-column h3 {
  color: #173658;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.plan-column p,
.plan-column li {
  color: #596a7f;
  font-size: 0.9rem;
}

.plan-column ul {
  margin: 12px 0 0 18px;
}

.plan-column li + li {
  margin-top: 7px;
}

.tier-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 22, 35, 0.45);
  backdrop-filter: blur(2px);
  display: none;
  z-index: 12000;
}

.tier-modal-backdrop.is-open {
  display: block;
}

.tier-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: min(860px, calc(100vw - 28px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 22px;
  border: 1px solid rgba(31, 61, 99, 0.2);
  background: linear-gradient(180deg, #fffdf8, #f7efe1);
  box-shadow: 0 28px 70px rgba(20, 32, 46, 0.32);
  padding: 22px;
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

.tier-modal-backdrop.is-open .tier-modal {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.tier-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.tier-modal-head h3 {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  color: #173658;
}

.tier-modal-head p {
  margin: 6px 0 0;
  color: #596a7f;
  font-size: 0.9rem;
}

.tier-close {
  appearance: none;
  border: 1px solid rgba(31, 61, 99, 0.2);
  background: rgba(255, 255, 255, 0.85);
  color: #173658;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  font-size: 1rem;
  cursor: pointer;
}

.tier-table-wrap {
  border: 1px solid rgba(31, 61, 99, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  overflow: hidden;
}

.tier-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.tier-table thead th {
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #173658;
  background: rgba(237, 219, 194, 0.5);
  padding: 12px 14px;
  border-bottom: 1px solid rgba(31, 61, 99, 0.16);
}

.tier-table thead th:first-child {
  text-align: left;
  width: 52%;
}

.tier-table th:not(:first-child),
.tier-table td:not(:first-child) {
  text-align: center;
  width: 24%;
}

.tier-table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(31, 61, 99, 0.12);
  color: #27435f;
  font-size: 0.93rem;
}

.tier-table tbody tr:last-child td {
  border-bottom: 0;
}

.tier-plan-label {
  display: block;
  font-weight: 700;
  color: #173658;
}

.tier-plan-price {
  display: block;
  margin-top: 3px;
  font-size: 0.83rem;
  color: #8b4d21;
  font-weight: 700;
}

.tier-mark {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  display: inline-block;
}

.tier-mark.yes {
  color: #1f8c4d;
}

.tier-mark.no {
  color: #ba3a3a;
}

.tier-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 18px;
}

@media (max-width: 740px) {
  .plan-comparison {
    grid-template-columns: 1fr;
  }

  .tier-modal {
    padding: 18px;
  }

  .tier-table-wrap {
    overflow-x: auto;
  }

  .tier-modal-actions {
    justify-content: stretch;
  }

  .tier-modal-actions .btn {
    width: 100%;
  }
}
