/* Membership shared (subscribe/order/paystub) */
.membership-panel {
  padding-bottom: 8px;
}

.membership-tabs-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 26px 32px 0;
  border-bottom: 1px solid #e1e6f0;
}

.membership-tabs__actions {
  min-width: 160px;
  min-height: 40px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.membership-tabs {
  display: flex;
  gap: 36px;
}

.membership-tab {
  border: none;
  background: none;
  padding: 0 0 10px;
  font-size: 20px;
  color: #656565;
  position: relative;
  text-decoration: none;
  cursor: pointer;
}

.membership-tab--active {
  font-weight: 700;
  color: #1F558B;
}

.membership-tab--active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: #0b61aa;
}

.membership-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  padding: 32px;
}

.membership-main {
  border-right: 1px solid #e6eaf4;
  padding-right: 28px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.membership-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.membership-section__title {
  text-transform: uppercase;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 0.15em;
  color: #333333;
}

.membership-pill {
  height: 50px;
  font-size: 16px;
  border-radius: 12px;
  border: 1px solid var(--uc-primary);
  background: rgba(11, 97, 170, 0.1);
  color: var(--uc-primary);
  width: 220px;
}

.membership-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.membership-plan {
  position: relative;
  padding: 56px 22px 0;
  border-radius: 18px;
  border: 1px solid #e1e6f0;
  background: #fff;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.membership-plan input {
  display: none;
}

.membership-plan__flag {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 104px;
  height: 34px;
  border-bottom-right-radius: 20px;
  background: #dfe3ea;
  color: #2f3248;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  font-size: 14px;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

.membership-plan__flag strong {
  font-size: 16px;
}

.membership-plan__flag small {
  font-size: 12px;
}

.membership-plan__flag--muted {
  color: #4a5165;
}

.membership-plan__center {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  width: 100%;
}

.membership-plan__price {
  font-size: 30px;
  font-weight: 700;
  color: #1f2640;
}

.membership-plan__strike {
  font-size: 14px;
  color: #b6bdca;
}

.membership-plan__hint {
  margin-top: auto;
  font-size: 16px;
  color: #656565;
  background: #E7EEF3;
  padding: 12px 0;
  width: calc(100% + 44px);
  margin-left: -22px;
  margin-right: -22px;
  border-radius: 0;
  text-align: center;
}

.membership-plan__hint--active {
  color: #1F558B;
  background: #D6E5F1;
}

.membership-plan--active {
  border-color: #20558B;
}

.membership-plan--active .membership-plan__flag {
  background: #20558B;
  color: #fff;
}

.membership-plan--active .membership-plan__price {
  color: #20558B;
}

.membership-plan--accent {
  background: #F3F7FA;
}

.membership-payments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.membership-payment {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 10px;
  height: 50px;
  border-radius: 14px;
  border: 1px solid #e0e4f0;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  justify-content: center;
}

.membership-payment input {
  display: none;
}

.membership-payment__icon {
  width: auto;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.membership-payment__icon img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.membership-payment__text strong {
  display: block;
  font-size: 15px;
  color: #1f2640;
}

.membership-payment__text small {
  font-size: 12px;
  color: #8b92a5;
}

/* Membership payment: hide right side text, only show icons */
.membership-payment__text {
  display: none;
}

.membership-payment--active {
  border-color: var(--uc-primary);
  box-shadow: 0 16px 28px rgba(9, 54, 120, 0.18);
}

.membership-cta {
  align-self: flex-start;
  border: none;
  border-radius: 12px;
  padding: 14px 42px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, #0b61aa, #0f7cd1);
  cursor: pointer;
}

.membership-info {
  display: flex;
  justify-content: center;
}

.membership-info__card {
  width: 100%;
  border-radius: 18px;
  padding: 24px;
  line-height: 1.7;
  color: #4b5166;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.membership-info__title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #333;
}

.membership-info__card p {
  color: #656565;
  font-size: 16px;
  margin-bottom: 16px;
}

.membership-info__card hr {
  border: none;
  border-top: 1px dashed #cfd6e5;
  margin: 18px 0;
}

@media (max-width: 1100px) {
  .membership-body {
    grid-template-columns: 1fr;
  }

  .membership-main {
    border-right: none;
    padding-right: 0;
  }

  .membership-info {
    padding-left: 0;
  }
}

@media (max-width: 720px) {
  .membership-tabs-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}