/* Moart 사용자 통합 결제 모달 (Moart Checkout · 라이트 & 다크 모드) */
.mcm-backdrop {
  position: fixed; inset: 0; z-index: 10020; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.mcm-modal {
  width: 100%; max-width: 860px; max-height: 92vh; overflow-y: auto;
  background: #ffffff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 24px 26px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28); display: flex; flex-direction: column; gap: 16px;
}
.mcm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mcm-eyebrow {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800;
  color: #4f46e5; background: #eef2ff; padding: 4px 10px; border-radius: 999px; margin-bottom: 6px;
}
.mcm-title { margin: 0; font-size: 20px; font-weight: 900; color: #0f172a; }
.mcm-close {
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid #e2e8f0; background: #f8fafc;
  color: #475569; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}

.mcm-tabs { display: flex; gap: 18px; border-bottom: 1.5px solid #e2e8f0; }
.mcm-tab {
  border: none; background: transparent; padding: 8px 2px 11px; font-size: 13.5px; font-weight: 800;
  color: #64748b; cursor: pointer; border-bottom: 2.5px solid transparent; margin-bottom: -1.5px;
}
.mcm-tab.is-active { color: #4f46e5; border-bottom-color: #4f46e5; }

.mcm-err { padding: 10px 13px; border-radius: 10px; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; font-size: 12.5px; font-weight: 700; }

.mcm-grid { display: grid; grid-template-columns: minmax(0, 58%) minmax(0, 42%); gap: 20px; align-items: start; }
.mcm-left, .mcm-right { display: flex; flex-direction: column; gap: 13px; }

.mcm-plan-row, .mcm-packs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mcm-plan-card {
  text-align: left; padding: 13px 14px; border-radius: 13px; border: 1.5px solid #e2e8f0;
  background: #ffffff; cursor: pointer; display: flex; flex-direction: column; gap: 6px;
}
.mcm-plan-card.is-active { border-color: #4f46e5; background: #eef2ff; }
.mcm-plan-top { display: flex; align-items: center; gap: 8px; }
.mcm-plan-top strong { font-size: 14px; font-weight: 800; color: #0f172a; }
.mcm-radio {
  width: 15px; height: 15px; border-radius: 999px; border: 2px solid #cbd5e1; display: inline-block; flex-shrink: 0;
}
.mcm-plan-card.is-active .mcm-radio { border-color: #4f46e5; box-shadow: inset 0 0 0 3px #ffffff; background: #4f46e5; }
.mcm-plan-price { font-size: 12.5px; font-weight: 700; color: #475569; }
.mcm-free-badge {
  align-self: flex-start; font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px;
  background: #059669; color: #ffffff;
}

.mcm-addon-box {
  display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px; border-radius: 13px;
  border: 1.5px solid #c7d2fe; background: #eef2ff; cursor: pointer;
}
.mcm-addon-box input { width: 17px; height: 17px; accent-color: #4f46e5; margin-top: 2px; flex-shrink: 0; }
.mcm-addon-body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.mcm-addon-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.mcm-addon-top strong { font-size: 13px; font-weight: 800; color: #0f172a; }
.mcm-addon-price { font-size: 12.5px; font-weight: 900; color: #4f46e5; }
.mcm-addon-body small { font-size: 11.5px; color: #475569; }

.mcm-included-note {
  display: flex; align-items: flex-start; gap: 8px; padding: 11px 13px; border-radius: 11px;
  background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; font-size: 12px; line-height: 1.5;
}
.mcm-hosting-hero {
  padding: 14px 16px; border-radius: 13px; background: #f8fafc; border: 1px solid #e2e8f0;
  display: flex; flex-direction: column; gap: 8px;
}
.mcm-hosting-hero strong { font-size: 14px; color: #0f172a; }
.mcm-hosting-hero ul { margin: 0; padding-left: 18px; font-size: 12.5px; color: #475569; line-height: 1.6; }

.mcm-sec-label { font-size: 13px; font-weight: 800; color: #0f172a; margin-top: 2px; }
.mcm-methods-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.mcm-method-tile {
  text-align: left; padding: 11px 13px; border-radius: 11px; border: 1.5px solid #e2e8f0;
  background: #ffffff; cursor: pointer; display: flex; flex-direction: column; gap: 3px;
}
.mcm-method-tile.is-active { border-color: #4f46e5; background: #eef2ff; }
.mcm-method-tile strong { font-size: 13px; font-weight: 800; color: #0f172a; }
.mcm-method-tile small { font-size: 11px; color: #64748b; }

.mcm-tax-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: #334155; cursor: pointer; }
.mcm-tax-toggle input { width: 16px; height: 16px; accent-color: #4f46e5; }
.mcm-tax-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mcm-tax-fields input {
  padding: 8px 10px; border-radius: 9px; border: 1px solid #cbd5e1; font-size: 12px; color: #0f172a; background: #ffffff;
}

.mcm-summary-card {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; padding: 16px;
  display: flex; flex-direction: column; gap: 11px;
}
.mcm-summary-card h4 { margin: 0; font-size: 14px; font-weight: 800; color: #0f172a; }
.mcm-summary-lines { display: flex; flex-direction: column; gap: 7px; }
.mcm-sum-row { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: #334155; }
.mcm-sum-row strong { font-weight: 800; color: #0f172a; }
.mcm-free-txt { font-style: normal; color: #059669; }
.mcm-sum-sub { font-size: 11px; color: #64748b; }
.mcm-sum-total {
  display: flex; align-items: baseline; justify-content: space-between; padding-top: 10px;
  border-top: 1px solid #e2e8f0; font-size: 13px; font-weight: 800; color: #0f172a;
}
.mcm-sum-total strong { font-size: 22px; font-weight: 900; color: #4f46e5; }
.mcm-sum-period { font-size: 11.5px; color: #64748b; }

.mcm-policy-box {
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: 11px 13px; color: #92400e; font-size: 12px;
}
.mcm-policy-box strong { display: block; margin-bottom: 4px; font-size: 12.5px; }
.mcm-policy-box p { margin: 0; line-height: 1.5; }

.mcm-agree-check { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: #334155; cursor: pointer; line-height: 1.45; }
.mcm-agree-check input { width: 16px; height: 16px; accent-color: #4f46e5; margin-top: 2px; flex-shrink: 0; }

.mcm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 800; cursor: pointer; border: 1px solid transparent;
}
.mcm-btn--indigo { background: linear-gradient(135deg, #4f46e5, #6366f1); color: #ffffff; }
.mcm-btn--outline { background: #ffffff; border-color: #cbd5e1; color: #0f172a; }
.mcm-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.mcm-pay-cta { width: 100%; }
.mcm-secure-foot { text-align: center; font-size: 11.5px; color: #64748b; }

.mcm-receipt { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 14px 8px; }
.mcm-receipt-icon {
  width: 54px; height: 54px; border-radius: 999px; background: #ecfdf5; color: #059669;
  display: flex; align-items: center; justify-content: center;
}
.mcm-receipt h3 { margin: 0; font-size: 19px; font-weight: 900; color: #0f172a; }
.mcm-receipt-sub { margin: 0; font-size: 13px; color: #475569; max-width: 520px; }
.mcm-receipt-box {
  width: 100%; max-width: 520px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; text-align: left;
}
.mcm-receipt-box > div { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: #475569; }
.mcm-receipt-box > div strong { color: #0f172a; font-weight: 800; }
.mcm-receipt-box > div.is-total { padding-top: 8px; border-top: 1px solid #e2e8f0; font-size: 14px; }
.mcm-receipt-box > div.is-total strong { color: #4f46e5; font-size: 17px; }
.mcm-receipt-actions { display: flex; gap: 10px; margin-top: 4px; }

@media (max-width: 820px) {
  .mcm-grid { grid-template-columns: 1fr; }
}

/* 다크 모드 */
html[data-theme="dark"] .mcm-modal { background: #1e293b; border-color: #334155; }
html[data-theme="dark"] .mcm-title,
html[data-theme="dark"] .mcm-plan-top strong,
html[data-theme="dark"] .mcm-addon-top strong,
html[data-theme="dark"] .mcm-sec-label,
html[data-theme="dark"] .mcm-method-tile strong,
html[data-theme="dark"] .mcm-summary-card h4,
html[data-theme="dark"] .mcm-sum-row strong,
html[data-theme="dark"] .mcm-sum-total,
html[data-theme="dark"] .mcm-receipt h3,
html[data-theme="dark"] .mcm-receipt-box > div strong,
html[data-theme="dark"] .mcm-hosting-hero strong { color: #f8fafc; }
html[data-theme="dark"] .mcm-tabs { border-bottom-color: #334155; }
html[data-theme="dark"] .mcm-close,
html[data-theme="dark"] .mcm-plan-card,
html[data-theme="dark"] .mcm-method-tile,
html[data-theme="dark"] .mcm-summary-card,
html[data-theme="dark"] .mcm-hosting-hero,
html[data-theme="dark"] .mcm-receipt-box,
html[data-theme="dark"] .mcm-tax-fields input,
html[data-theme="dark"] .mcm-btn--outline { background: #0f172a; border-color: #334155; color: #e2e8f0; }
html[data-theme="dark"] .mcm-plan-card.is-active,
html[data-theme="dark"] .mcm-method-tile.is-active,
html[data-theme="dark"] .mcm-addon-box { background: rgba(79, 70, 229, 0.22); border-color: #6366f1; }
html[data-theme="dark"] .mcm-sum-row,
html[data-theme="dark"] .mcm-tax-toggle,
html[data-theme="dark"] .mcm-agree-check,
html[data-theme="dark"] .mcm-plan-price,
html[data-theme="dark"] .mcm-addon-body small,
html[data-theme="dark"] .mcm-hosting-hero ul { color: #cbd5e1; }
html[data-theme="dark"] .mcm-sum-total { border-top-color: #334155; }
html[data-theme="dark"] .mcm-sum-total strong { color: #a5b4fc; }
