.app-content:has(.membership-page) {
  padding: 0;
}

.membership-page {
  background:
    radial-gradient(111.93% 111.3% at 50% 0%, rgba(20, 184, 166, 0.12) 0%, rgba(20, 184, 166, 0) 11.98%),
    radial-gradient(119.3% 118.63% at 12% 20%, rgba(0, 149, 136, 0.06) 0%, rgba(0, 149, 136, 0) 9.13%),
    linear-gradient(180deg, rgba(250, 250, 250, 0.98) 0%, #fbfdfc 35%, #fafafa 100%);
    min-height: calc(100vh - var(--app-header-height, 60px));
    padding-bottom: 64px;
    box-sizing: border-box;
}

.membership-page__inner {
  width: min(1184px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.membership-crumb {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #5b5c60;
  font-size: 14px;
  line-height: 22px;
  white-space: nowrap;
}

.membership-crumb__item,
.membership-crumb__sep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5b5c60;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  margin: 0 1px;
}

a.membership-crumb__item {
  text-decoration: none;
  transition: color var(--app-duration, 240ms) var(--app-ease, ease);
}

a.membership-crumb__item:hover,
a.membership-crumb__item:focus {
  color: #0f9f88;
}

.membership-crumb__current {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 720px;
  color: #293a4c;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  white-space: nowrap;
}

.membership-hero {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
}

.membership-hero h1,
.membership-compare h2 {
  margin: 0;
  width: 100%;
  color: #293a4c;
  font-size: 36px;
  font-weight: 700;
  line-height: 44px;
  text-align: center;
}

.membership-plans-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.membership-billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 8px;
  background: #f5f5f5;
  box-sizing: border-box;
}

.membership-billing-toggle__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 102px;
  padding: 5px 16px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #293a4c;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
  transition:
    background-color 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease;
}

.membership-billing-toggle__btn.is-active {
  background: #fff;
  color: #0f9f88;
  box-shadow: 0 4px 5px rgba(4, 56, 49, 0.05);
}

.membership-billing-toggle__btn:focus-visible {
  outline: 2px solid rgba(15, 159, 136, 0.35);
  outline-offset: 2px;
}

.membership-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  width: 100%;
}

.membership-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
  padding: 24px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 5px rgba(4, 56, 49, 0.05);
  box-sizing: border-box;
}

.membership-plan--current {
  overflow: hidden;
}

.membership-plan__badge {
  position: absolute;
  top: 0;
  right: 24px;
  z-index: 1;
  padding: 1px 8px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(270deg, #ff8122 0%, #ff9f3b 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.membership-plan--featured {
  border-color: #0f9f88;
  background: linear-gradient(180deg, #f0faf7 0%, #fff 100%);
}

.membership-plan__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.membership-plan__head h2 {
  margin: 0;
  color: #293a4c;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
}

.membership-plan__price {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 44px;
  color: #293a4c;
}

.membership-plan__price strong {
  font-size: 36px;
  font-weight: 700;
  line-height: 44px;
}

.membership-plan__price span {
  padding: 0 0 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
}

.membership-plan__price-seats {
  padding: 0 0 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  white-space: nowrap;
}

.membership-plan__price.is-custom {
  position: relative;
  justify-content: center;
}

.membership-plan__price.is-custom strong {
  font-size: 28px;
  line-height: 44px;
  text-align: center;
}

.membership-plan__price.is-custom span {
  position: absolute;
  width: 0;
  height: 0;
  padding: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}

.membership-plan__price.is-custom .membership-plan__price-seats,
.membership-plan__price.is-custom [data-membership-price-seats] {
  display: none;
}

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

.membership-plan__validity {
  margin: 0;
  color: #293a4c;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
  white-space: nowrap;
}

.membership-plan__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.membership-plan__btn--ghost {
  border: 1px solid #e5e5e5;
  background: #fff;
  color: #5b5c60;
}

.membership-plan__btn--primary {
  background: #0f9f88;
  color: #fff;
}

.membership-plan__btn--dark {
  background: #293a4c;
  color: #fff;
}

.membership-plan__trial {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #0f9f88;
  font-size: 14px;
  line-height: 22px;
  text-decoration: none;
}

.membership-plan__trial svg {
  width: 16px;
  height: 16px;
}

.membership-plan__features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.membership-plan__features li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #293a4c;
  font-size: 14px;
  line-height: 22px;
}

.membership-plan__feature > span {
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.membership-plan__feature > span::before {
  content: "";
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background: #293a4c;
  -webkit-mask: var(--membership-feature-icon) center / contain no-repeat;
  mask: var(--membership-feature-icon) center / contain no-repeat;
}

.membership-plan__feature--material {
  --membership-feature-icon: url("/assets/front/image/icons/atom-line.svg");
}

.membership-plan__feature--regulation {
  --membership-feature-icon: url("/assets/front/image/icons/regulation.svg");
}

.membership-plan__feature--translate {
  --membership-feature-icon: url("/assets/front/image/icons/translate-2.svg");
}

.membership-plan__feature--consult {
  --membership-feature-icon: url("/assets/front/image/icons/chat-smile-2-line.svg");
}

.membership-plan__feature--library {
  --membership-feature-icon: url("/assets/front/image/icons/ai-generate-3d-line.svg");
}

.membership-plan__feature--api {
  --membership-feature-icon: url("/assets/front/image/icons/API.svg");
}

.membership-plan__features b {
  display: inline-flex;
  flex: 0 0 20px;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #0f9f88;
}

.membership-plan__features b svg {
  display: block;
  width: 20px;
  height: 20px;
}

.membership-table td {
  color: #0f9f88;
  font-weight: 500;
}

.membership-table-card .membership-table td.is-yes,
.membership-table-card .membership-table td.is-no {
  font-size: 0;
  line-height: 0;
}

.membership-table-card .membership-table td.is-yes::before,
.membership-table-card .membership-table td.is-no::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  background: currentColor;
  -webkit-mask: var(--membership-table-icon) center / contain no-repeat;
  mask: var(--membership-table-icon) center / contain no-repeat;
}

.membership-table-card .membership-table td.is-yes {
  --membership-table-icon: url("/assets/front/image/icons/check-line.svg");
}

.membership-table-card .membership-table td.is-no {
  --membership-table-icon: url("/assets/front/image/icons/close-line.svg");
}

.membership-plan__features .is-no,
.membership-table td.is-no {
  color: #9e9e9e;
}

.membership-plan__features .is-limited {
  flex: 0 0 auto;
  width: auto;
  height: auto;
  color: #5b5c60;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  white-space: nowrap;
}

.membership-sticky-plans {
  position: fixed;
  top: 0;
  left: var(--app-sidebar-width, 208px);
  right: 0;
  z-index: 400;
  padding: 16px 0 10px;
  background: #fff;
  box-shadow: 0 4px 5px rgba(4, 56, 49, 0.05);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition:
    opacity var(--app-duration, 240ms) var(--app-ease, ease),
    transform var(--app-duration, 240ms) var(--app-ease, ease),
    visibility var(--app-duration, 240ms) var(--app-ease, ease);
}

body.app-sidebar-collapsed .membership-sticky-plans,
.app-shell.is-sidebar-collapsed .membership-sticky-plans {
  left: var(--app-sidebar-collapsed-width, 60px);
}

.membership-sticky-plans.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.membership-sticky-plans__inner {
  display: grid;
  gap: 0;
  margin: 0;
  box-sizing: border-box;
}

.membership-sticky-plan--spacer {
  padding: 0;
  min-height: 0;
  visibility: hidden;
  pointer-events: none;
}

.membership-sticky-plan {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 24px;
  border-radius: 16px;
  background: #fff;
  box-sizing: border-box;
}

.membership-sticky-plan h3 {
  margin: 0;
  width: 100%;
  color: #293a4c;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
}

.membership-sticky-plan__price {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  min-height: 28px;
  color: #293a4c;
  text-align: center;
}

.membership-sticky-plan__price strong {
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
}

.membership-sticky-plan__price span {
  display: inline-flex;
  align-items: center;
  width: auto;
  min-height: 28px;
  padding: 0 0 2px;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
}

.membership-sticky-plan__price-seats {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 0 2px;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  white-space: nowrap;
}

.membership-sticky-plan__price.is-custom {
  position: relative;
  justify-content: center;
}

.membership-sticky-plan__price.is-custom strong {
  font-size: 18px;
  line-height: 28px;
  text-align: center;
}

.membership-sticky-plan__price.is-custom span {
  position: absolute;
  width: 0;
  height: 0;
  padding: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}

.membership-sticky-plan__price.is-custom .membership-sticky-plan__price-seats,
.membership-sticky-plan__price.is-custom [data-membership-price-seats] {
  display: none;
}

.membership-sticky-plan__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.membership-sticky-plan__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 32px;
  padding: 5px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.membership-sticky-plan__btn--ghost {
  border: 1px solid #e5e5e5;
  background: #fff;
  color: #5b5c60;
}

.membership-sticky-plan__btn--primary {
  background: #0f9f88;
  color: #fff;
}

.membership-sticky-plan__btn--dark {
  background: #293a4c;
  color: #fff;
}

.membership-compare {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  margin-top: 64px;
}

.membership-compare__labels {
  display: grid;
  grid-template-columns: 24% repeat(3, minmax(0, 1fr));
  align-self: stretch;
  width: calc(100% - 24px);
  margin: 0 12px;
  color: #293a4c;
  font-size: 18px;
  line-height: 48px;
  text-align: center;
  height: 48px;
}

.membership-compare__labels::before {
  content: "";
}

.membership-table-card {
  width: 100%;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 5px rgba(4, 56, 49, 0.05);
  box-sizing: border-box;
}

.membership-table-card h3 {
  margin: 0 0 8px;
  padding: 9px 16px;
  border-radius: 8px;
  background: #f0faf7;
  color: #293a4c;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.membership-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: #293a4c;
  font-size: 14px;
  line-height: 22px;
}

.membership-table th,
.membership-table td {
  height: 48px;
  padding: 13px 16px;
  border-bottom: 1px solid #e5e5e5;
  font-weight: 400;
  text-align: center;
}

.membership-table th {
  width: 24%;
  color: #293a4c;
  text-align: left;
}

.membership-table tr:last-child th,
.membership-table tr:last-child td {
  border-bottom: 0;
}

.membership-apply-lock {
  overflow: hidden;
}

.membership-apply-modal {
  position: fixed;
  inset: 0;
  z-index: 1000002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--app-duration, 240ms) var(--app-ease, ease),
    visibility var(--app-duration, 240ms) var(--app-ease, ease);
}

.membership-apply-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.membership-apply-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 40, 0.22);
}

.membership-apply-modal__dialog {
  position: relative;
  width: min(480px, 100%);
  max-height: calc(100vh - 64px);
  overflow: auto;
  padding: 48px 24px 24px;
  border: 1px solid #fff;
  border-radius: 16px;
  background: #fff;
  box-shadow:
    0 4px 8px rgba(4, 56, 49, 0.08),
    0 12px 32px rgba(4, 56, 49, 0.14),
    0 24px 48px rgba(4, 56, 49, 0.08);
  box-sizing: border-box;
  transform: translateY(12px) scale(0.98);
  transition: transform var(--app-duration, 240ms) var(--app-ease, ease);
}

.membership-apply-modal.is-open .membership-apply-modal__dialog {
  transform: translateY(0) scale(1);
}

.membership-apply-modal__bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  overflow: hidden;
}

.membership-apply-modal__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, #f0faf7 0%, #fff 30.209%, #fff 100%);
}

.membership-apply-modal__bg-image {
  position: absolute;
  left: 0.02%;
  top: -31.58%;
  width: 100%;
  height: 65.02%;
  max-width: none;
  opacity: 0.1;
  object-fit: cover;
  pointer-events: none;
}

.membership-apply-modal__crown {
  position: absolute;
  top: 36px;
  left: 30%;
  z-index: 1;
  width: 142px;
  height: 96px;
  transform: translateX(-50%);
  pointer-events: none;
  object-fit: contain;
  opacity: 0.35;
}

.membership-apply-modal__close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #293a4c;
  cursor: pointer;
  transition: background var(--app-duration, 240ms) var(--app-ease, ease);
}

.membership-apply-modal__close:hover {
  background: #f5f5f5;
}

.membership-apply-modal__close svg {
  width: 16px;
  height: 16px;
}

.membership-apply-modal__head,
.membership-apply-form {
  position: relative;
  z-index: 2;
}

.membership-apply-modal__head {
  margin: 0 0 24px;
  text-align: center;
}

.membership-apply-modal__head h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin: 0;
  color: #293a4c;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
}

.membership-apply-modal__head h2 strong {
  font-style: normal;
  font-weight: 700;
  background: linear-gradient(90deg, #14b8a6 0%, #0f9f88 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.membership-apply-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.membership-apply-form__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.membership-apply-form__item span {
  color: #293a4c;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
}

.membership-apply-form__item input,
.membership-apply-form__item textarea {
  width: 100%;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid #dde0e5;
  border-radius: 8px;
  background: #fff;
  color: #293a4c;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  box-shadow: none;
  box-sizing: border-box;
  transition:
    border-color var(--app-duration, 240ms) var(--app-ease, ease),
    box-shadow var(--app-duration, 240ms) var(--app-ease, ease);
}

.membership-apply-form__item input {
  height: 40px;
}

.membership-apply-form__item--select {
  position: relative;
  z-index: 1;
}

.membership-apply-form__item--select.is-dropdown-open {
  z-index: 20;
}

.membership-plan-select {
  position: relative;
  width: 100%;
}

.membership-plan-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  height: 40px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #dde0e5;
  border-radius: 8px;
  background: #fff;
  color: #293a4c;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  text-align: left;
  box-sizing: border-box;
  cursor: pointer;
  transition:
    border-color var(--app-duration, 240ms) var(--app-ease, ease),
    box-shadow var(--app-duration, 240ms) var(--app-ease, ease);
}

.membership-plan-select__trigger:hover {
  border-color: #c5cad3;
}

.membership-plan-select__value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.membership-plan-select__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: #9e9e9e;
  transition: transform var(--app-duration, 240ms) var(--app-ease, ease);
}

.membership-plan-select__icon svg {
  display: block;
  width: 16px;
  height: 16px;
}

.membership-plan-select__icon svg path {
  stroke: #9e9e9e;
}

.membership-plan-select.is-open .membership-plan-select__icon {
  transform: rotate(180deg);
}

.membership-plan-select__menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 6px;
  border: 1px solid #dde0e5;
  border-radius: 8px;
  background: #fff;
  box-shadow:
    0 4px 8px rgba(4, 56, 49, 0.06),
    0 12px 24px rgba(4, 56, 49, 0.1);
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    opacity var(--app-duration, 240ms) var(--app-ease, ease),
    transform var(--app-duration, 240ms) var(--app-ease, ease),
    visibility var(--app-duration, 240ms) var(--app-ease, ease);
}

.membership-plan-select.is-open .membership-plan-select__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.membership-plan-select__option {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 36px;
  margin: 0;
  padding: 7px 12px 7px 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #293a4c;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  position: relative;
  transition: background-color var(--app-duration, 240ms) var(--app-ease, ease);
}

.membership-plan-select__option:hover {
  background: #f7f8fa;
}

.membership-plan-select__option.is-selected {
  background: #f0faf7;
  color: #0f9f88;
  font-weight: 500;
}

.membership-plan-select__option.is-selected::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' viewBox='0 0 14 14'%3E%3Cpath d='M2.8 7.2 5.6 10l5.6-6' stroke='%230F9F88' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.membership-plan-select.is-open .membership-plan-select__trigger,
.membership-plan-select:focus-within .membership-plan-select__trigger {
  border-color: #0f9f88;
  box-shadow: 0 0 0 3px rgba(15, 159, 136, 0.08);
  outline: none;
}

.membership-apply-form__item textarea {
  height: 84px;
  min-height: 84px;
  resize: none;
}

.membership-apply-form__item input::placeholder,
.membership-apply-form__item textarea::placeholder {
  color: #9e9e9e;
}

.membership-apply-form__item input:focus,
.membership-apply-form__item textarea:focus {
  border-color: #0f9f88;
  box-shadow: 0 0 0 3px rgba(15, 159, 136, 0.08);
  outline: none;
}

.membership-apply-form__item b {
  min-height: 20px;
  color: #d53838;
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
}

.membership-apply-form__item:not(.has-error) b {
  display: none;
}

.membership-apply-form__item.has-error input,
.membership-apply-form__item.has-error textarea,
.membership-apply-form__item.has-error .membership-plan-select__trigger {
  border-color: #d53838;
}

.membership-apply-form__item.has-error .membership-plan-select.is-open .membership-plan-select__trigger,
.membership-apply-form__item.has-error .membership-plan-select:focus-within .membership-plan-select__trigger {
  box-shadow: 0 0 0 3px rgba(213, 56, 56, 0.08);
}

.membership-apply-form__actions {
  display: flex;
  justify-content: flex-start;
  gap: 0;
  margin-top: 0;
}

.membership-apply-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 5px 16px;
  border-radius: 8px;
  border: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  cursor: pointer;
  background: #0f9f88;
  color: #fff;
}

.membership-apply-form__submit:hover {
  background: #0d8a76;
}

.membership-apply-form__submit.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

@media (max-width: 1280px) {
  .membership-page {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 640px) {
  .membership-apply-modal {
    padding: 16px;
  }

  .membership-apply-modal__dialog {
    padding: 44px 16px 20px;
    border-radius: 16px;
  }

  .membership-apply-modal__crown {
    top: 28px;
    width: 120px;
    height: 82px;
  }

  .membership-apply-modal__head {
    margin-bottom: 20px;
  }

  .membership-apply-form {
    gap: 20px;
  }
}

.membership-trial-banner {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(20, 184, 166, 0.12);
  color: #0f766e;
  font-size: 14px;
  line-height: 22px;
}

.membership-trial-banner--pending {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.membership-trial-banner--expired {
  background: rgba(107, 114, 128, 0.12);
  color: #4b5563;
}

.membership-trial-banner--paid {
  background: linear-gradient(90deg, rgba(255, 236, 220, 0.95) 0%, rgba(255, 217, 191, 0.95) 100%);
  color: #6d471f;
}

.membership-plan__trial.is-hidden,
.membership-sticky-plan__btn.is-hidden {
  display: none !important;
}
