/*!
 * membership-lifecycle.css
 * ----------------------------------------------------------------------------
 * 구독 지속 장치 — 만료 임박 배너 / 마이페이지 상태 카드 / 재결제 모달 스타일.
 * 디자인 토큰은 var(--brand, #143A6B) 형태 폴백과 함께 사용한다(bank-transfer.css 와 동일 규칙).
 * ⚠️ 배너는 경고색(빨강/주황 배경)이 아니라 브랜드색 기반이다 — 공포마케팅 금지.
 *    코랄(--accent)은 화면당 주 CTA 1개(배너의 "지금 연장하기" 또는 모달의 "재결제 신청")에만 적용한다.
 * 모바일 우선 설계, 터치 타깃 44px 이상.
 * ============================================================================
 */

/* ---------------------------------------------------------------------
 * 만료 임박 배너
 * --------------------------------------------------------------------- */
.ml-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--brand, #143A6B) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand, #143A6B) 25%, #fff);
  margin: 0 0 16px;
}

.ml-banner__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 220px;
  min-width: 0;
}

.ml-banner__days {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand, #143A6B);
}

.ml-banner__loss {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.ml-banner__cta {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 18px;
  border: none;
  border-radius: 8px;
  background: var(--accent, #E2431F);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.ml-banner__cta:hover {
  filter: brightness(0.96);
}

.ml-banner__cta:focus-visible {
  outline: 2px solid var(--brand-link, #2E5FD0);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------------
 * 마이페이지 상태 카드
 * --------------------------------------------------------------------- */
.ml-card {
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 18px;
  background: #fff;
}

.ml-card--login {
  color: #64748B;
  font-size: 14px;
  text-align: center;
}

.ml-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  flex-wrap: wrap;
}

.ml-card__tier {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand, #143A6B);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.ml-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #E2E8F0;
  color: #475569;
  background: #F8FAFC;
}

.ml-badge--paused {
  color: var(--brand, #143A6B);
  border-color: color-mix(in srgb, var(--brand, #143A6B) 40%, #fff);
  background: color-mix(in srgb, var(--brand, #143A6B) 8%, #fff);
}

.ml-badge--optout {
  color: #64748B;
  background: #F1F5F9;
}

.ml-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 14px;
}

.ml-card__row {
  margin: 0;
  font-size: 14px;
  color: #1E293B;
  line-height: 1.6;
}

.ml-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------------------------------------------------------------------
 * 버튼(카드/모달 공용)
 * --------------------------------------------------------------------- */
.ml-btn {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--brand, #143A6B);
  background: #fff;
  color: var(--brand, #143A6B);
}

.ml-btn:focus-visible {
  outline: 2px solid var(--brand-link, #2E5FD0);
  outline-offset: 2px;
}

.ml-btn--primary {
  background: var(--brand, #143A6B);
  color: #fff;
  border-color: var(--brand, #143A6B);
}

.ml-btn--ghost {
  background: #fff;
}

.ml-btn--text {
  border-color: transparent;
  color: #64748B;
}

.ml-btn--full {
  width: 100%;
  margin-top: 10px;
}

/* ---------------------------------------------------------------------
 * 1클릭 재결제 모달
 * --------------------------------------------------------------------- */
.ml-noscroll {
  overflow: hidden;
}

.ml-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(15, 23, 42, 0.55);
}

.ml-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 88vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 22px 20px 24px;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .ml-overlay {
    align-items: center;
  }
  .ml-modal {
    border-radius: 16px;
  }
}

.ml-modal__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: #0F172A;
}

.ml-modal__desc {
  margin: 0 0 14px;
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
}

.ml-modal__error {
  min-height: 18px;
  margin: 0 0 8px;
  font-size: 13px;
  color: #DC2626;
}

.ml-input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
  margin: 0 0 12px;
}

.ml-input:focus-visible {
  outline: 2px solid var(--brand-link, #2E5FD0);
  outline-offset: 1px;
}

.ml-guide-box {
  background: #F8FAFC;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 0 0 14px;
}

.ml-guide-row {
  margin: 0 0 4px;
  font-size: 14px;
  color: #1E293B;
}

.ml-guide-row:last-child {
  margin-bottom: 0;
}
