/* ==========================================================================
   landing.css — MongManagerWeb 공개 랜딩/문서 디자인 시스템 (단일 파일)
   메모리 feedback_no_css_split 준수. 전 클래스 prefix: mm-
   구성:
     §1 토큰 / 리셋 / 타이포
     §2 레이아웃 유틸 (container · section · grid)
     §3 버튼
     §4 헤더 / 내비
     §5 푸터
     §6 토스트
     §7 스크롤 리빌
     §8 랜딩 섹션 (hero · loop · features · ai · alimtalk · security · reviews · pricing · cta)
     §9 Policy 문서 (.mm-doc)
     §10 Blog 스텁 (T4)
     §11 Pay 스텁 (T5)
     §12 MyPages 계정 및 보안 (T8)
   ========================================================================== */

/* ==========================================================================
   §1 디자인 토큰 · 리셋 · 타이포
   ========================================================================== */
:root {
    --mm-blue: #0047D9;        /* primary — CTA, 링크, 액센트 */
    --mm-blue-deep: #0038AC;   /* primary hover */
    --mm-cyan: #35D2DE;        /* 보조 액센트 — 포인트·그라디언트 */
    --mm-navy: #0B1B4D;        /* 헤더·히어로·AI밴드·푸터 배경 */
    --mm-navy-2: #14297A;      /* navy 그라디언트 끝점 */
    --mm-ink: #131c33;         /* 헤딩 텍스트 */
    --mm-body: #46516b;        /* 본문 텍스트 */
    --mm-line: #e3e9f6;        /* 보더 */
    --mm-bg-soft: #f5f8ff;     /* 교차 섹션 배경 */
    --mm-white: #ffffff;
    --mm-radius: 18px;
    --mm-radius-sm: 12px;
    --mm-shadow: 0 10px 30px rgba(11, 27, 77, .07);
    --mm-shadow-lg: 0 24px 60px rgba(11, 27, 77, .14);
    --mm-container: 1140px;
    --mm-header-h: 64px;
    --mm-font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--mm-header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body.mm-body {
    margin: 0;
    padding-top: var(--mm-header-h);
    font-family: var(--mm-font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--mm-body);
    background: var(--mm-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    word-break: keep-all;
}

body.mm-noscroll {
    overflow: hidden;
}

/* 기본 색은 :where() 로 특이도를 0으로 낮춰 컴포넌트 단일 클래스(.mm-btn, .mm-nav-link,
   .mm-hero-title 등)의 color 선언이 항상 이기게 한다 — (0,1,1) 전역 규칙이 navy 배경
   컴포넌트의 흰 글자를 덮어 텍스트가 보이지 않던 대비 결함의 수정. */
:where(.mm-body) h1,
:where(.mm-body) h2,
:where(.mm-body) h3,
:where(.mm-body) h4 {
    margin: 0;
    color: var(--mm-ink);
    line-height: 1.28;
    letter-spacing: -0.01em;
}

.mm-body p {
    margin: 0;
}

:where(.mm-body) a {
    color: var(--mm-blue);
    text-decoration: none;
    transition: color .18s ease;
}

:where(.mm-body) a:where(:hover) {
    color: var(--mm-blue-deep);
}

.mm-body img {
    max-width: 100%;
    display: block;
}

/* 접근성: 본문 바로가기 */
.mm-skip {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 2000;
    transform: translateY(-150%);
    padding: 10px 18px;
    background: var(--mm-blue);
    color: #fff;
    border-radius: 999px;
    font-weight: 600;
    transition: transform .2s ease;
}

.mm-skip:focus {
    transform: none;
    color: #fff;
    outline: 3px solid rgba(53, 210, 222, .6);
}

/* ==========================================================================
   §2 레이아웃 유틸
   ========================================================================== */
.mm-container {
    width: 100%;
    max-width: var(--mm-container);
    margin: 0 auto;
    padding: 0 24px;
}

.mm-section {
    padding: clamp(64px, 9vw, 110px) 0;
    position: relative;
}

.mm-section--soft {
    background: var(--mm-bg-soft);
}

.mm-section--navy {
    background: var(--mm-navy);
    color: rgba(255, 255, 255, .82);
}

.mm-section-head {
    max-width: 720px;
    margin: 0 auto clamp(40px, 6vw, 64px);
    text-align: center;
}

.mm-eyebrow {
    display: inline-block;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--mm-blue);
    margin-bottom: 14px;
}

.mm-section--navy .mm-eyebrow {
    color: var(--mm-cyan);
}

.mm-h2 {
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    font-weight: 700;
}

.mm-section--navy .mm-h2 {
    color: #fff;
}

.mm-sub {
    margin-top: 16px;
    font-size: 1.08rem;
    color: var(--mm-body);
}

.mm-section--navy .mm-sub {
    color: rgba(255, 255, 255, .78);
}

.mm-grid {
    display: grid;
    gap: 24px;
}

/* ==========================================================================
   §3 버튼
   ========================================================================== */
.mm-btn,
.mm-btn-ghost,
.mm-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
    white-space: nowrap;
}

/* 파랑 채움 */
.mm-btn {
    background: var(--mm-blue);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 71, 217, .22);
}

.mm-btn:hover {
    background: var(--mm-blue-deep);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 71, 217, .3);
}

/* navy 배경 위 — 투명 + 흰 보더 */
.mm-btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .55);
}

.mm-btn-ghost:hover {
    background: rgba(255, 255, 255, .1);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

/* 흰 배경 위 — 흰 채움 + 파랑 보더/글자 */
.mm-btn-outline {
    background: #fff;
    color: var(--mm-blue);
    border-color: var(--mm-blue);
}

.mm-btn-outline:hover {
    background: var(--mm-blue);
    color: #fff;
    transform: translateY(-2px);
}

.mm-btn--sm {
    padding: 9px 18px;
    font-size: .92rem;
}

.mm-btn--lg {
    padding: 16px 32px;
    font-size: 1.08rem;
}

.mm-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

/* ==========================================================================
   §4 헤더 / 내비
   ========================================================================== */
.mm-header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--mm-header-h);
    z-index: 1000;
    background: var(--mm-navy);
    transition: box-shadow .25s ease, background-color .25s ease;
}

.mm-header.is-scrolled {
    box-shadow: 0 6px 24px rgba(11, 27, 77, .28);
    background: rgba(11, 27, 77, .96);
    backdrop-filter: saturate(160%) blur(8px);
}

.mm-header-inner {
    max-width: var(--mm-container);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.mm-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.mm-logo img {
    height: 26px;
    width: auto;
}

.mm-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.mm-nav-link {
    padding: 8px 14px;
    border-radius: 8px;
    color: rgba(255, 255, 255, .82);
    font-size: .96rem;
    font-weight: 500;
    transition: color .18s ease, background-color .18s ease;
}

.mm-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.mm-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 12px;
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, .16);
}

/* 햄버거 */
.mm-nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.mm-nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform .25s ease, opacity .2s ease;
}

.mm-header.is-nav-open .mm-nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mm-header.is-nav-open .mm-nav-toggle span:nth-child(2) {
    opacity: 0;
}

.mm-header.is-nav-open .mm-nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   §5 푸터
   ========================================================================== */
.mm-footer {
    background: var(--mm-navy);
    color: rgba(255, 255, 255, .68);
    padding: clamp(48px, 7vw, 76px) 0 40px;
    font-size: .9rem;
}

.mm-footer-inner {
    max-width: var(--mm-container);
    margin: 0 auto;
    padding: 0 24px;
}

.mm-footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.mm-footer-brand {
    flex: 1 1 220px;
    min-width: 200px;
}

.mm-footer-brand img {
    height: 26px;
    width: auto;
    margin-bottom: 14px;
}

.mm-footer-tag {
    color: rgba(255, 255, 255, .58);
    font-size: .92rem;
}

.mm-footer-links,
.mm-footer-social {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mm-footer-links a,
.mm-footer-social a {
    color: rgba(255, 255, 255, .72);
    font-size: .92rem;
    transition: color .18s ease;
}

.mm-footer-links a:hover,
.mm-footer-social a:hover {
    color: #fff;
}

.mm-footer-strong {
    font-weight: 700;
    color: #fff !important;
}

.mm-footer-biz {
    padding-top: 28px;
    color: rgba(255, 255, 255, .5);
    font-size: .82rem;
    line-height: 1.9;
}

.mm-footer-biz-list {
    list-style: none;
    margin: 0 0 6px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
}

.mm-footer-note {
    margin-top: 12px;
}

.mm-footer-note span {
    color: rgba(255, 255, 255, .72);
}

.mm-footer-copy {
    margin-top: 14px;
    color: rgba(255, 255, 255, .38);
}

/* ==========================================================================
   §6 토스트 (바닐라 — landing.js window.mmToast)
   ========================================================================== */
.mm-toast-wrap {
    position: fixed;
    top: calc(var(--mm-header-h) + 16px);
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: min(380px, calc(100vw - 40px));
    pointer-events: none;
}

.mm-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--mm-line);
    border-left: 4px solid var(--mm-blue);
    border-radius: var(--mm-radius-sm);
    box-shadow: var(--mm-shadow-lg);
    color: var(--mm-ink);
    font-size: .92rem;
    line-height: 1.55;
    pointer-events: auto;
    cursor: pointer;
    opacity: 0;
    transform: translateX(24px);
    transition: opacity .3s ease, transform .3s ease;
}

.mm-toast.is-shown {
    opacity: 1;
    transform: none;
}

.mm-toast__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--mm-blue);
    position: relative;
}

.mm-toast__icon::after {
    content: '';
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}

.mm-toast__body :is(ul, ol) {
    margin: 0;
    padding-left: 18px;
}

.mm-toast--success {
    border-left-color: #16a34a;
}
.mm-toast--success .mm-toast__icon {
    background: #16a34a;
}

.mm-toast--info {
    border-left-color: var(--mm-blue);
}
.mm-toast--info .mm-toast__icon {
    background: var(--mm-blue);
}

.mm-toast--warning {
    border-left-color: #d97706;
}
.mm-toast--warning .mm-toast__icon {
    background: #d97706;
}

.mm-toast--error {
    border-left-color: #dc2626;
}
.mm-toast--error .mm-toast__icon {
    background: #dc2626;
}

/* ==========================================================================
   §7 스크롤 리빌
   ========================================================================== */
.mm-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s cubic-bezier(.22, .61, .36, 1),
                transform .6s cubic-bezier(.22, .61, .36, 1);
    will-change: opacity, transform;
}

.mm-reveal.is-visible {
    opacity: 1;
    transform: none;
}

.mm-reveal--d1 { transition-delay: .08s; }
.mm-reveal--d2 { transition-delay: .16s; }
.mm-reveal--d3 { transition-delay: .24s; }
.mm-reveal--d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .mm-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ==========================================================================
   §8 랜딩 섹션
   ========================================================================== */

/* ----- S1 히어로 --------------------------------------------------------- */
.mm-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--mm-navy) 0%, var(--mm-navy-2) 100%);
    color: #fff;
    padding: clamp(72px, 10vw, 128px) 0 clamp(64px, 9vw, 112px);
}

/* 심볼 아크 장식 — 우상단 시안 글로우 */
.mm-hero::before {
    content: '';
    position: absolute;
    top: -160px;
    right: -160px;
    width: 620px;
    height: 620px;
    background: radial-gradient(circle at 50% 50%, rgba(53, 210, 222, .22), transparent 62%);
    pointer-events: none;
}

/* 심볼 아크 장식 — 좌하단 동심 사분원 (브랜드 심볼 기하) */
.mm-hero::after {
    content: '';
    position: absolute;
    left: -120px;
    bottom: -120px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle at 0% 100%,
        transparent 0 148px,
        rgba(53, 210, 222, .16) 148px 150px,
        transparent 150px 228px,
        rgba(0, 71, 217, .28) 228px 230px,
        transparent 230px 310px,
        rgba(53, 210, 222, .1) 310px 312px,
        transparent 312px);
    pointer-events: none;
}

.mm-hero-inner {
    position: relative;
    z-index: 1;
    max-width: var(--mm-container);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 56px;
    align-items: center;
}

.mm-hero-eyebrow {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid rgba(53, 210, 222, .4);
    border-radius: 999px;
    color: var(--mm-cyan);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .02em;
    margin-bottom: 22px;
}

.mm-hero-title {
    color: #fff;
    font-size: clamp(2.1rem, 5vw, 3.3rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.mm-hero-sub {
    margin-top: 20px;
    max-width: 520px;
    font-size: 1.12rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, .82);
}

.mm-hero-actions {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.mm-hero-badges {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    list-style: none;
    padding: 0;
}

.mm-hero-badges li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .92rem;
    color: rgba(255, 255, 255, .78);
}

.mm-hero-badges li::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mm-cyan);
    box-shadow: 0 0 0 4px rgba(53, 210, 222, .18);
}

/* 히어로 비주얼 — 추상 대시보드 카드 클러스터 (순수 장식) */
.mm-hero-visual {
    position: relative;
    min-height: 340px;
}

.mm-viz-card {
    position: absolute;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--mm-radius);
    backdrop-filter: blur(6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .28);
    padding: 20px;
}

.mm-viz-card--main {
    inset: 20px 40px 40px 0;
}

.mm-viz-card--float {
    right: 0;
    bottom: 8px;
    width: 210px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, .95);
    border-color: rgba(255, 255, 255, .5);
}

.mm-viz-label {
    font-size: .78rem;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .6);
    text-transform: uppercase;
    margin-bottom: 14px;
}

.mm-viz-card--float .mm-viz-label {
    color: var(--mm-body);
}

.mm-viz-bars {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 140px;
}

.mm-viz-bar {
    flex: 1;
    border-radius: 6px 6px 0 0;
    background: linear-gradient(180deg, var(--mm-cyan), var(--mm-blue));
    opacity: .9;
}

.mm-viz-bar:nth-child(1) { height: 44%; }
.mm-viz-bar:nth-child(2) { height: 62%; }
.mm-viz-bar:nth-child(3) { height: 38%; }
.mm-viz-bar:nth-child(4) { height: 78%; }
.mm-viz-bar:nth-child(5) { height: 56%; }
.mm-viz-bar:nth-child(6) { height: 92%; }
.mm-viz-bar:nth-child(7) { height: 70%; }

.mm-viz-donut {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: conic-gradient(var(--mm-cyan) 0 62%, rgba(11, 27, 77, .12) 62% 100%);
    display: grid;
    place-items: center;
    margin-bottom: 10px;
}

.mm-viz-donut::after {
    content: '';
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
}

.mm-viz-metric {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--mm-ink);
    line-height: 1.2;
}

.mm-viz-metric small {
    display: block;
    font-size: .74rem;
    font-weight: 500;
    color: var(--mm-body);
    margin-top: 2px;
}

/* ----- S2 핵심 루프 ------------------------------------------------------ */
.mm-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

.mm-step {
    position: relative;
    background: #fff;
    border: 1px solid var(--mm-line);
    border-radius: var(--mm-radius);
    box-shadow: var(--mm-shadow);
    padding: 32px 28px;
}

.mm-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--mm-blue), var(--mm-navy-2));
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 18px;
}

.mm-step-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.mm-step-desc {
    font-size: .98rem;
    color: var(--mm-body);
}

.mm-step:not(:last-child)::after {
    content: '→';
    position: absolute;
    top: 50%;
    right: -22px;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--mm-blue);
    opacity: .5;
    z-index: 1;
}

/* ----- S3 기능 그리드 ---------------------------------------------------- */
.mm-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.mm-feature-card {
    background: #fff;
    border: 1px solid var(--mm-line);
    border-radius: var(--mm-radius);
    box-shadow: var(--mm-shadow);
    padding: 30px 26px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.mm-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mm-shadow-lg);
    border-color: rgba(0, 71, 217, .3);
}

.mm-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 71, 217, .1), rgba(53, 210, 222, .16));
    color: var(--mm-blue);
    margin-bottom: 20px;
}

.mm-feature-icon svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
}

.mm-feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.mm-feature-desc {
    font-size: .96rem;
    color: var(--mm-body);
    line-height: 1.65;
}

/* ----- S4 AI 밴드 -------------------------------------------------------- */
.mm-ai-inner {
    max-width: var(--mm-container);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.mm-ai-copy .mm-h2 {
    color: #fff;
}

.mm-ai-body {
    margin-top: 18px;
    font-size: 1.08rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, .8);
}

.mm-chat {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--mm-radius);
    padding: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}

.mm-chat-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.mm-chat-row--user {
    flex-direction: row-reverse;
}

.mm-chat-avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: .8rem;
    font-weight: 700;
    color: #fff;
}

.mm-chat-row--ai .mm-chat-avatar {
    background: linear-gradient(135deg, var(--mm-cyan), var(--mm-blue));
}

.mm-chat-row--user .mm-chat-avatar {
    background: rgba(255, 255, 255, .18);
}

.mm-chat-bubble {
    max-width: 78%;
    padding: 14px 18px;
    border-radius: 16px;
    font-size: .98rem;
    line-height: 1.6;
}

.mm-chat-row--ai .mm-chat-bubble {
    background: #fff;
    color: var(--mm-ink);
    border-top-left-radius: 4px;
}

.mm-chat-row--user .mm-chat-bubble {
    background: var(--mm-blue);
    color: #fff;
    border-top-right-radius: 4px;
}

.mm-chat-note {
    margin-top: 6px;
    text-align: center;
    font-size: .78rem;
    color: rgba(255, 255, 255, .45);
}

/* ----- S5 알림톡 --------------------------------------------------------- */
.mm-alimtalk-inner {
    max-width: var(--mm-container);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 56px;
    align-items: center;
}

.mm-alimtalk-copy {
    max-width: 480px;
}

.mm-alimtalk-body {
    margin-top: 18px;
    font-size: 1.08rem;
    color: var(--mm-body);
    line-height: 1.75;
}

/* 폰 목업 */
.mm-phone {
    width: 288px;
    justify-self: center;
    background: #0f1830;
    border-radius: 40px;
    padding: 14px;
    box-shadow: var(--mm-shadow-lg);
}

.mm-phone-screen {
    background: #e9edf6;
    border-radius: 28px;
    overflow: hidden;
    min-height: 440px;
    padding: 40px 16px 24px;
    position: relative;
}

.mm-phone-screen::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 6px;
    border-radius: 999px;
    background: rgba(15, 24, 48, .25);
}

/* 카카오 알림톡 카드 */
.mm-kakao {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(11, 27, 77, .14);
}

.mm-kakao-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #FEE500;
    color: #191600;
    font-weight: 700;
    font-size: .9rem;
}

.mm-kakao-head::before {
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: #191600;
    -webkit-mask: radial-gradient(circle at 50% 42%, #000 34%, transparent 36%) center/contain no-repeat;
    mask: radial-gradient(circle at 50% 42%, #000 34%, transparent 36%) center/contain no-repeat;
}

.mm-kakao-body {
    padding: 18px 16px 20px;
}

.mm-kakao-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--mm-ink);
    margin-bottom: 12px;
}

.mm-kakao-line {
    font-size: .92rem;
    color: var(--mm-body);
    line-height: 1.6;
    margin-bottom: 6px;
}

.mm-kakao-time {
    margin-top: 12px;
    font-size: .76rem;
    color: #67708b;
    text-align: right;
}

/* ----- S6 보안 ----------------------------------------------------------- */
.mm-secure-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.mm-secure-card {
    background: #fff;
    border: 1px solid var(--mm-line);
    border-radius: var(--mm-radius);
    box-shadow: var(--mm-shadow);
    padding: 28px 24px;
    transition: transform .25s ease, box-shadow .25s ease;
}

.mm-secure-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mm-shadow-lg);
}

.mm-secure-icon {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(0, 71, 217, .09);
    color: var(--mm-blue);
    margin-bottom: 18px;
}

.mm-secure-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
}

.mm-secure-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.mm-secure-desc {
    font-size: .94rem;
    color: var(--mm-body);
    line-height: 1.6;
}

/* ----- S7 후기 ----------------------------------------------------------- */
.mm-review-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.mm-review-card {
    background: #fff;
    border: 1px solid var(--mm-line);
    border-radius: var(--mm-radius);
    box-shadow: var(--mm-shadow);
    padding: 32px;
    position: relative;
}

.mm-review-card::before {
    content: '\201C';
    position: absolute;
    top: 14px;
    right: 26px;
    font-size: 4rem;
    line-height: 1;
    font-family: Georgia, serif;
    color: rgba(0, 71, 217, .12);
}

.mm-review-quote {
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--mm-ink);
    margin-bottom: 22px;
}

.mm-review-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mm-review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--mm-bg-soft);
    flex-shrink: 0;
}

.mm-review-name {
    font-weight: 700;
    color: var(--mm-ink);
    font-size: .98rem;
}

.mm-review-role {
    font-size: .86rem;
    color: var(--mm-body);
}

/* ----- S8 요금 ----------------------------------------------------------- */
.mm-price-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 380px));
    gap: 24px;
    justify-content: center;
    align-items: stretch;
}

/* 단일 플랜(현행 8만 8천원) 시 카드 1개를 중앙 배치 */
.mm-price-grid--single {
    grid-template-columns: minmax(0, 400px);
}

.mm-price-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--mm-line);
    border-radius: var(--mm-radius);
    box-shadow: var(--mm-shadow);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
}

.mm-price-card--featured {
    border: 2px solid var(--mm-blue);
    box-shadow: 0 24px 60px rgba(0, 71, 217, .16);
}

.mm-price-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 18px;
    border-radius: 999px;
    background: var(--mm-blue);
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.mm-price-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--mm-ink);
    margin-bottom: 14px;
}

.mm-price-amount {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--mm-ink);
    letter-spacing: -0.02em;
}

.mm-price-sub {
    margin-top: 8px;
    font-size: .94rem;
    color: var(--mm-body);
}

.mm-price-point {
    display: inline-block;
    margin-top: 14px;
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(53, 210, 222, .16);
    color: var(--mm-blue-deep);
    font-size: .88rem;
    font-weight: 700;
}

.mm-price-list {
    list-style: none;
    margin: 26px 0 0;
    padding: 26px 0 0;
    border-top: 1px solid var(--mm-line);
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.mm-price-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .96rem;
    color: var(--mm-body);
}

.mm-price-list li::before {
    content: '';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border-radius: 50%;
    background: rgba(0, 71, 217, .1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230047D9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}

.mm-price-cta {
    margin-top: 26px;
}

.mm-price-cta .mm-btn,
.mm-price-cta .mm-btn-outline {
    width: 100%;
}

.mm-price-notes {
    max-width: 780px;
    margin: 40px auto 0;
    padding: 0;
    list-style: none;
    text-align: center;
}

.mm-price-notes li {
    font-size: .86rem;
    color: var(--mm-body);
    margin-bottom: 6px;
}

.mm-price-actions {
    justify-content: center;
    margin-top: 34px;
}

/* ----- S9 마감 CTA 밴드 -------------------------------------------------- */
.mm-cta-band {
    background: linear-gradient(135deg, var(--mm-navy) 0%, var(--mm-navy-2) 100%);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mm-cta-band::before {
    content: '';
    position: absolute;
    top: -140px;
    left: 50%;
    transform: translateX(-50%);
    width: 640px;
    height: 640px;
    background: radial-gradient(circle, rgba(53, 210, 222, .18), transparent 60%);
    pointer-events: none;
}

.mm-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

.mm-cta-band .mm-h2 {
    color: #fff;
}

.mm-cta-body {
    margin-top: 16px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, .82);
}

.mm-cta-actions {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

/* ==========================================================================
   §9 Policy 문서 스타일 (.mm-doc) — 약관 본문 이관용 (T2)
   ========================================================================== */
.mm-doc {
    max-width: 820px;
    margin: 0 auto;
    padding: clamp(48px, 8vw, 88px) 24px;
    color: var(--mm-body);
    line-height: 1.8;
}

.mm-doc-head {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--mm-line);
}

.mm-doc-head h1 {
    font-size: clamp(1.7rem, 4vw, 2.3rem);
    font-weight: 800;
    color: var(--mm-ink);
}

.mm-doc-head p {
    margin-top: 10px;
    color: var(--mm-body);
    font-size: .96rem;
}

.mm-doc h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--mm-ink);
    margin: 40px 0 14px;
}

.mm-doc h3 {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--mm-ink);
    margin: 28px 0 12px;
}

.mm-doc p {
    margin: 0 0 14px;
}

.mm-doc ul,
.mm-doc ol {
    margin: 0 0 16px;
    padding-left: 22px;
}

.mm-doc li {
    margin-bottom: 8px;
}

.mm-doc a {
    color: var(--mm-blue);
    text-decoration: underline;
}

.mm-doc table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: .94rem;
}

.mm-doc th,
.mm-doc td {
    border: 1px solid var(--mm-line);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.mm-doc th {
    background: var(--mm-bg-soft);
    font-weight: 700;
    color: var(--mm-ink);
}

/* ==========================================================================
   §10 Blog — 목록 · 상세(아티클) · 사이드바 · 작성/수정 폼 (T4)
   레이아웃: 본문 + 사이드바 2컬럼 (모바일 1열 스택)
   ========================================================================== */

/* ----- 2컬럼 셸 --------------------------------------------------------- */
.mm-blog {
    padding: clamp(32px, 5vw, 56px) 0 clamp(64px, 9vw, 96px);
    background: var(--mm-bg-soft);
}

.mm-blog-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 304px;
    gap: 40px;
    align-items: start;
}

.mm-blog-main {
    min-width: 0;
}

/* ----- 목록 헤더 -------------------------------------------------------- */
.mm-blog-head {
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--mm-line);
}

.mm-blog-head h1 {
    font-size: clamp(1.6rem, 3.4vw, 2.1rem);
    font-weight: 800;
    color: var(--mm-ink);
}

.mm-blog-head p {
    margin-top: 8px;
    color: var(--mm-body);
    font-size: .98rem;
}

/* ----- 카드 그리드 ------------------------------------------------------ */
.mm-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 26px;
}

.mm-blog-empty {
    padding: 64px 24px;
    text-align: center;
    color: var(--mm-body);
    background: #fff;
    border: 1px dashed var(--mm-line);
    border-radius: var(--mm-radius);
    font-size: 1rem;
}

.mm-blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--mm-line);
    border-radius: var(--mm-radius);
    box-shadow: var(--mm-shadow);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.mm-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mm-shadow-lg);
    border-color: rgba(0, 71, 217, .28);
}

.mm-blog-card__thumb {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #eef3ff, #dfe8ff);
}

.mm-blog-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.mm-blog-card:hover .mm-blog-card__thumb img {
    transform: scale(1.04);
}

.mm-blog-card__thumb--empty::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(53, 210, 222, .28), transparent 45%),
        radial-gradient(circle at 72% 68%, rgba(0, 71, 217, .22), transparent 48%);
}

.mm-blog-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 22px 24px;
}

.mm-blog-card__cat {
    align-self: flex-start;
    margin-bottom: 12px;
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(0, 71, 217, .08);
    color: var(--mm-blue-deep);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .01em;
}

.mm-blog-card__title {
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--mm-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mm-blog-card__title a {
    color: inherit;
}

.mm-blog-card__title a:hover {
    color: var(--mm-blue);
}

.mm-blog-card__summary {
    margin-top: 10px;
    font-size: .92rem;
    line-height: 1.6;
    color: var(--mm-body);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mm-blog-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--mm-line);
    font-size: .82rem;
    color: #8b94ac;
}

.mm-blog-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ----- 페이지네이션 ----------------------------------------------------- */
.mm-blog-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 44px;
}

.mm-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid var(--mm-line);
    background: #fff;
    color: var(--mm-body);
    font-size: .94rem;
    font-weight: 600;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.mm-page-link:hover {
    border-color: var(--mm-blue);
    color: var(--mm-blue);
}

.mm-page-link.is-active {
    background: var(--mm-blue);
    border-color: var(--mm-blue);
    color: #fff;
}

.mm-page-link.is-disabled {
    opacity: .45;
    pointer-events: none;
}

/* ==========================================================================
   §10-b Blog 상세 (아티클)
   ========================================================================== */
.mm-article {
    max-width: 760px;
    margin: 0 auto;
}

.mm-article-title {
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    font-weight: 800;
    line-height: 1.32;
    color: var(--mm-ink);
    margin-bottom: 4px;
}

/* 헤더 타입: Text·BackgroundImage 는 .mm-article-title 타이포로 통합 (2026-07-18), Image 는 figure */
.mm-article-figure {
    margin-bottom: 8px;
    border-radius: var(--mm-radius);
    overflow: hidden;
    box-shadow: var(--mm-shadow);
}

.mm-article-figure img {
    width: 100%;
    height: auto;
}

/* 메타 */
.mm-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    margin: 18px 0 6px;
    padding: 0 0 22px;
    border-bottom: 1px solid var(--mm-line);
    list-style: none;
    font-size: .88rem;
    color: #8b94ac;
}

.mm-article-meta li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mm-article-meta a {
    color: var(--mm-body);
    font-weight: 600;
}

.mm-article-meta a:hover {
    color: var(--mm-blue);
}

.mm-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(217, 119, 6, .12);
    color: #b45309;
    font-size: .74rem;
    font-weight: 700;
}

/* 본문 */
.mm-article-body {
    padding: 34px 0 10px;
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--mm-ink);
}

.mm-article-body .ck-content {
    word-break: break-word;
}

/* 태그 */
.mm-article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 26px 0;
}

.mm-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 13px;
    border-radius: 999px;
    background: var(--mm-bg-soft);
    border: 1px solid var(--mm-line);
    color: var(--mm-body);
    font-size: .84rem;
    font-weight: 600;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.mm-tag::before {
    content: '#';
    margin-right: 2px;
    color: var(--mm-blue);
    opacity: .7;
}

.mm-tag:hover {
    background: rgba(0, 71, 217, .08);
    border-color: rgba(0, 71, 217, .3);
    color: var(--mm-blue-deep);
}

/* 링크 복사 · 뒤로 */
.mm-article-share {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    padding-top: 22px;
    border-top: 1px solid var(--mm-line);
}

.mm-article-share-label {
    margin-right: auto;
    font-size: .92rem;
    color: var(--mm-body);
    font-weight: 600;
}

.mm-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1.5px solid var(--mm-line);
    background: #fff;
    color: var(--mm-ink);
    font-family: inherit;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}

.mm-copy-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.mm-copy-btn:hover {
    border-color: var(--mm-blue);
    color: var(--mm-blue);
    background: rgba(0, 71, 217, .04);
}

.mm-article-back {
    margin: 8px 0 40px;
}

/* 관련 글 */
.mm-related {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid var(--mm-line);
}

.mm-related-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--mm-ink);
    margin-bottom: 20px;
}

.mm-related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.mm-related-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--mm-line);
    border-radius: var(--mm-radius-sm);
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.mm-related-card:hover {
    border-color: rgba(0, 71, 217, .28);
    box-shadow: var(--mm-shadow);
}

.mm-related-thumb {
    flex-shrink: 0;
    width: 74px;
    height: 74px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, #eef3ff, #dfe8ff);
}

.mm-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mm-related-info {
    min-width: 0;
}

.mm-related-info h4 {
    font-size: .98rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--mm-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mm-related-info h4 a {
    color: inherit;
}

.mm-related-info h4 a:hover {
    color: var(--mm-blue);
}

.mm-related-meta {
    margin-top: 6px;
    font-size: .8rem;
    color: #8b94ac;
}

/* 댓글 */
.mm-comments {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid var(--mm-line);
}

.mm-comments-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--mm-ink);
    margin-bottom: 22px;
}

.mm-comments-title span {
    color: var(--mm-blue);
}

.mm-comment-list {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mm-comment {
    display: flex;
    gap: 14px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--mm-line);
    border-radius: var(--mm-radius-sm);
}

.mm-comment-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--mm-bg-soft);
}

.mm-comment-main {
    flex: 1;
    min-width: 0;
}

.mm-comment-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
    margin-bottom: 6px;
}

.mm-comment-author {
    font-weight: 700;
    color: var(--mm-ink);
    font-size: .95rem;
}

.mm-comment-date {
    font-size: .8rem;
    color: #67708b;
}

.mm-comment-body {
    margin: 0;
    font-size: .95rem;
    line-height: 1.65;
    color: var(--mm-body);
    white-space: pre-line;
    word-break: break-all;
}

.mm-comment-del {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border: 1px solid var(--mm-line);
    border-radius: 8px;
    background: #fff;
    color: #67708b;
    font-family: inherit;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .18s ease, color .18s ease;
}

.mm-comment-del:hover {
    border-color: #dc2626;
    color: #dc2626;
}

/* 댓글 작성 폼 */
.mm-comment-form {
    background: #fff;
    border: 1px solid var(--mm-line);
    border-radius: var(--mm-radius);
    padding: 22px;
}

.mm-comment-form h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--mm-ink);
    margin-bottom: 14px;
}

.mm-comment-form h3 span {
    color: var(--mm-blue);
}

.mm-comment-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--mm-line);
    border-radius: var(--mm-radius-sm);
    font-family: inherit;
    font-size: .95rem;
    line-height: 1.6;
    color: var(--mm-ink);
    background: var(--mm-bg-soft);
    resize: vertical;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.mm-comment-input:focus {
    outline: none;
    background: #fff;
    border-color: var(--mm-blue);
    box-shadow: 0 0 0 3px rgba(0, 71, 217, .12);
}

.mm-comment-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}

/* ==========================================================================
   §10-c Blog 사이드바
   ========================================================================== */
.mm-blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 22px;
    position: sticky;
    top: calc(var(--mm-header-h) + 24px);
}

.mm-widget {
    background: #fff;
    border: 1px solid var(--mm-line);
    border-radius: var(--mm-radius);
    box-shadow: var(--mm-shadow);
    padding: 22px;
}

.mm-widget-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--mm-ink);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--mm-line);
}

/* 카테고리 */
.mm-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mm-cat-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    color: var(--mm-body);
    font-size: .94rem;
    font-weight: 500;
    transition: background-color .16s ease, color .16s ease;
}

.mm-cat-list a:hover {
    background: var(--mm-bg-soft);
    color: var(--mm-blue);
}

.mm-cat-list a.is-active {
    background: rgba(0, 71, 217, .08);
    color: var(--mm-blue-deep);
    font-weight: 700;
}

.mm-cat-count {
    flex-shrink: 0;
    font-size: .8rem;
    color: #67708b;
}

/* 검색 */
.mm-search {
    display: flex;
    gap: 8px;
}

.mm-search input {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    border: 1px solid var(--mm-line);
    border-radius: var(--mm-radius-sm);
    font-family: inherit;
    font-size: .92rem;
    color: var(--mm-ink);
    background: var(--mm-bg-soft);
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.mm-search input:focus {
    outline: none;
    background: #fff;
    border-color: var(--mm-blue);
    box-shadow: 0 0 0 3px rgba(0, 71, 217, .12);
}

.mm-search button {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    border: 0;
    border-radius: var(--mm-radius-sm);
    background: var(--mm-blue);
    color: #fff;
    cursor: pointer;
    transition: background-color .18s ease;
}

.mm-search button:hover {
    background: var(--mm-blue-deep);
}

.mm-search button svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* 작성 권한 액션 */
.mm-side-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mm-side-actions .mm-btn,
.mm-side-actions .mm-btn-outline {
    width: 100%;
}

.mm-side-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* 최신 글 */
.mm-recent {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mm-recent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    transition: background-color .16s ease;
}

.mm-recent-item:hover {
    background: var(--mm-bg-soft);
}

.mm-recent-thumb {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, #eef3ff, #dfe8ff);
}

.mm-recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mm-recent-text {
    min-width: 0;
}

.mm-recent-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--mm-ink);
}

.mm-recent-item:hover .mm-recent-title {
    color: var(--mm-blue);
}

.mm-recent-meta {
    display: block;
    margin-top: 3px;
    font-size: .78rem;
    color: #67708b;
}

/* 태그 클라우드 */
.mm-tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ==========================================================================
   §10-d Blog 작성/수정 폼 (관리자용 — 최소 정돈)
   ========================================================================== */
.mm-blog-form-head {
    margin-bottom: 26px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--mm-line);
}

.mm-blog-form-head h1 {
    font-size: clamp(1.5rem, 3.2vw, 1.95rem);
    font-weight: 800;
    color: var(--mm-ink);
}

.mm-blog-form .form-group {
    margin-bottom: 20px;
}

.mm-blog-form label {
    display: block;
    margin-bottom: 8px;
    font-size: .92rem;
    font-weight: 700;
    color: var(--mm-ink);
}

.mm-blog-form .form-control,
.mm-blog-form .form-select,
.mm-blog-form select,
.mm-blog-form textarea,
.mm-blog-form input[type="text"],
.mm-blog-form input[type="color"] {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--mm-line);
    border-radius: var(--mm-radius-sm);
    font-family: inherit;
    font-size: .95rem;
    color: var(--mm-ink);
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.mm-blog-form input[type="color"] {
    height: 46px;
    padding: 5px;
    cursor: pointer;
}

.mm-blog-form .form-control:focus,
.mm-blog-form .form-select:focus,
.mm-blog-form select:focus,
.mm-blog-form textarea:focus,
.mm-blog-form input:focus {
    outline: none;
    border-color: var(--mm-blue);
    box-shadow: 0 0 0 3px rgba(0, 71, 217, .12);
}

.mm-blog-form input[type="file"] {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 1px dashed var(--mm-line);
    border-radius: var(--mm-radius-sm);
    font-size: .9rem;
    color: var(--mm-body);
    background: var(--mm-bg-soft);
}

.mm-blog-form .form-text {
    display: block;
    margin-top: 6px;
    font-size: .82rem;
    color: #8b94ac;
}

.mm-blog-form .card {
    border: 1px solid var(--mm-line);
    border-radius: var(--mm-radius);
    background: #fff;
    overflow: hidden;
    margin: 26px 0;
}

.mm-blog-form .card-header {
    padding: 16px 20px;
    background: var(--mm-bg-soft);
    border-bottom: 1px solid var(--mm-line);
}

.mm-blog-form .card-header .card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--mm-ink);
}

.mm-blog-form .card-body {
    padding: 20px;
}

.mm-blog-form .row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0;
}

.mm-blog-form .row > [class*="col-"] {
    flex: 1 1 200px;
    padding: 0;
}

.mm-blog-form kbd {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 5px;
    background: var(--mm-navy);
    color: #fff;
    font-size: .78rem;
}

.mm-blog-form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mm-blog-form-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--mm-blue);
}

.mm-blog-form-check label {
    margin: 0;
    font-weight: 600;
    cursor: pointer;
}

.mm-blog-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--mm-line);
}

.mm-blog-form-cancel {
    color: var(--mm-body);
    font-weight: 600;
}

.mm-blog-form-cancel:hover {
    color: var(--mm-blue);
}

/* ==========================================================================
   §10-e Blog 반응형
   ========================================================================== */
@media (max-width: 1024px) {
    .mm-blog-shell {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .mm-blog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        align-items: start;
    }
}

@media (max-width: 768px) {
    .mm-blog-grid {
        grid-template-columns: 1fr;
    }

    .mm-blog-sidebar {
        grid-template-columns: 1fr;
    }

    .mm-related-grid {
        grid-template-columns: 1fr;
    }

    .mm-blog-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .mm-blog-form-actions .mm-btn {
        width: 100%;
    }

    .mm-blog-form-cancel {
        text-align: center;
    }
}

/* ==========================================================================
   §11 Pay — 구독/해지 결제 화면 · 약관 아코디언 · 대기 스피너 (T5)
   결제 플로우·폼 로직 무변경. 마크업 래퍼·클래스 재스킨 전용.
   ========================================================================== */

/* ----- 섹션 셸 (2컬럼: 약관 좌 / 주문 우) ------------------------------- */
.mm-pay {
    padding: clamp(28px, 5vw, 56px) 0 clamp(56px, 9vw, 96px);
    background: var(--mm-bg-soft);
}

.mm-pay-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 44px);
    align-items: start;
}

.mm-pay-heading {
    margin: 0 0 20px;
    font-size: clamp(1.35rem, 2.6vw, 1.7rem);
    font-weight: 800;
    color: var(--mm-ink);
    line-height: 1.35;
}

.mm-pay-subheading {
    margin: 0 0 18px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--mm-ink);
}

/* ----- 약관 아코디언 (<details class="mm-terms">) ---------------------- */
.mm-terms {
    background: var(--mm-white);
    border: 1px solid var(--mm-line);
    border-radius: var(--mm-radius-sm);
    box-shadow: var(--mm-shadow);
    margin-bottom: 16px;
    overflow: hidden;
}

.mm-terms > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--mm-ink);
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background-color .18s ease;
}

.mm-terms > summary::-webkit-details-marker {
    display: none;
}

.mm-terms > summary::after {
    content: '';
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--mm-blue);
    border-bottom: 2px solid var(--mm-blue);
    transform: rotate(45deg);
    transition: transform .22s ease;
}

.mm-terms[open] > summary::after {
    transform: rotate(-135deg);
}

.mm-terms > summary:hover {
    background: var(--mm-bg-soft);
}

.mm-terms-body {
    max-height: 340px;
    overflow-y: auto;
    padding: 4px 22px 22px;
    border-top: 1px solid var(--mm-line);
    color: var(--mm-body);
    font-size: .92rem;
    line-height: 1.7;
}

.mm-terms-body h4 {
    margin: 20px 0 8px;
    font-size: .98rem;
    font-weight: 700;
    color: var(--mm-ink);
}

.mm-terms-body h5 {
    margin: 16px 0 6px;
    font-size: .92rem;
    font-weight: 700;
    color: var(--mm-ink);
}

.mm-terms-body p {
    margin: 0 0 10px;
}

.mm-terms-body ul,
.mm-terms-body ol {
    margin: 0 0 12px;
    padding-left: 20px;
    line-height: 2;
}

.mm-terms-body li {
    margin-left: 1em;
}

.mm-terms-body .read-more-trigger {
    display: none;
}

/* ----- 주문/요금 카드 컬럼 -------------------------------------------- */
.mm-pay-order {
    position: sticky;
    top: calc(var(--mm-header-h) + 20px);
    background: var(--mm-white);
    border: 1px solid var(--mm-line);
    border-radius: var(--mm-radius);
    box-shadow: var(--mm-shadow);
    padding: clamp(22px, 3vw, 30px);
}

.mm-pay-state {
    text-align: center;
    padding: 24px 8px;
}

.mm-pay-state h4 {
    margin: 0 0 16px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--mm-ink);
}

/* 요금 카드 */
.mm-pay-card {
    border: 1px solid var(--mm-line);
    border-radius: var(--mm-radius-sm);
    background: var(--mm-bg-soft);
    padding: 24px 22px;
}

.mm-pay-card-head {
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--mm-line);
}

.mm-pay-cycle {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(0, 71, 217, .1);
    color: var(--mm-blue);
    font-size: .8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.mm-pay-name {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--mm-ink);
}

.mm-pay-price {
    text-align: center;
    padding: 18px 0 6px;
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--mm-ink);
    line-height: 1.1;
}

.mm-pay-unit {
    font-size: 1.1rem;
    font-weight: 700;
    margin-left: 2px;
}

.mm-pay-tenure {
    display: block;
    margin-top: 6px;
    font-size: .86rem;
    font-weight: 600;
    color: var(--mm-body);
}

.mm-pay-old-user {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(53, 210, 222, .14);
    color: #0a6b74;
    font-size: .86rem;
    font-weight: 600;
    text-align: center;
}

.mm-pay-features {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    font-size: .9rem;
    color: var(--mm-body);
}

.mm-pay-features li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
    line-height: 1.55;
}

.mm-pay-features li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 4px;
    width: 6px;
    height: 11px;
    border-right: 2px solid var(--mm-blue);
    border-bottom: 2px solid var(--mm-blue);
    transform: rotate(45deg);
}

/* 동의 체크박스 */
.mm-pay-agree {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
    padding: 14px 16px;
    border: 1px solid var(--mm-line);
    border-radius: 10px;
    background: var(--mm-white);
}

.mm-pay-agree input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--mm-blue);
    cursor: pointer;
}

.mm-pay-agree label {
    margin: 0;
    font-size: .9rem;
    line-height: 1.55;
    color: var(--mm-body);
    cursor: pointer;
}

/* 안내 배너 */
.mm-pay-notice {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(0, 71, 217, .08);
    border: 1px solid rgba(0, 71, 217, .18);
    color: var(--mm-blue-deep);
    font-size: .88rem;
    line-height: 1.5;
}

.mm-pay-notice--warn {
    background: rgba(217, 119, 6, .1);
    border-color: rgba(217, 119, 6, .24);
    color: #b45309;
}

/* 액션 버튼 행 */
.mm-pay-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
}

.mm-pay-actions--start {
    justify-content: center;
}

.mm-pay-actions .mm-btn,
.mm-pay-actions .mm-btn-outline {
    padding: 12px 22px;
    font-size: .95rem;
}

.mm-pay-lead {
    margin: 0 0 18px;
    color: var(--mm-body);
    line-height: 1.65;
}

/* ----- 해지 화면 상태 카드 -------------------------------------------- */
.mm-pay-status-card {
    background: var(--mm-white);
    border: 1px solid var(--mm-line);
    border-radius: var(--mm-radius-sm);
    box-shadow: var(--mm-shadow);
    padding: 8px 24px;
    margin-bottom: 20px;
}

.mm-pay-status-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--mm-line);
}

.mm-pay-status-row:last-child {
    border-bottom: 0;
}

.mm-pay-status-label {
    font-size: .92rem;
    font-weight: 600;
    color: var(--mm-body);
}

.mm-pay-status-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--mm-ink);
}

.mm-pay-status-value small {
    font-size: .85rem;
    font-weight: 500;
    color: var(--mm-body);
    margin-left: 4px;
}

.mm-pay-empty {
    color: var(--mm-body);
    font-size: 1rem;
}

/* ----- WaitBillingSuccess (Layout=null 독립 폴링 페이지) -------------- */
.mm-wait-page {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-family: var(--mm-font);
    background: var(--mm-bg-soft);
    color: var(--mm-body);
}

.mm-wait-card {
    width: 100%;
    max-width: 420px;
    text-align: center;
    background: var(--mm-white);
    border: 1px solid var(--mm-line);
    border-radius: var(--mm-radius);
    box-shadow: var(--mm-shadow);
    padding: clamp(36px, 7vw, 56px) 28px;
}

.mm-spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 24px;
    border: 4px solid var(--mm-line);
    border-top-color: var(--mm-blue);
    border-radius: 50%;
    animation: mm-spin .8s linear infinite;
}

@keyframes mm-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mm-spinner {
        animation-duration: 2.4s;
    }
}

.mm-wait-title {
    margin: 0 0 12px;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--mm-ink);
}

.mm-wait-desc {
    margin: 0;
    font-size: .96rem;
    line-height: 1.7;
    color: var(--mm-body);
}

/* ----- Pay 반응형 ----------------------------------------------------- */
@media (max-width: 1024px) {
    .mm-pay-shell {
        grid-template-columns: 1fr;
    }

    .mm-pay-order {
        position: static;
    }
}

@media (max-width: 768px) {
    .mm-pay-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .mm-pay-actions .mm-btn,
    .mm-pay-actions .mm-btn-outline {
        width: 100%;
    }

    .mm-pay-status-row {
        flex-direction: column;
        gap: 4px;
    }
}

/* ==========================================================================
   반응형 — 1024px(태블릿) · 768px(모바일)
   ========================================================================== */
@media (max-width: 1024px) {
    .mm-feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .mm-secure-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .mm-hero-inner,
    .mm-ai-inner,
    .mm-alimtalk-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .mm-hero-visual {
        display: none;
    }
    .mm-alimtalk-inner {
        justify-items: center;
        text-align: center;
    }
    .mm-alimtalk-copy {
        text-align: center;
    }
}

@media (max-width: 768px) {
    /* 헤더 → 모바일 드롭 패널 */
    .mm-nav-toggle {
        display: flex;
    }

    .mm-nav {
        position: fixed;
        top: var(--mm-header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        margin: 0;
        padding: 16px 20px 24px;
        background: var(--mm-navy);
        border-top: 1px solid rgba(255, 255, 255, .1);
        box-shadow: 0 20px 40px rgba(11, 27, 77, .35);
        transform: translateY(-14px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .22s ease, transform .22s ease, visibility .22s;
        max-height: calc(100vh - var(--mm-header-h));
        overflow-y: auto;
    }

    .mm-header.is-nav-open .mm-nav {
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .mm-nav-link {
        padding: 12px 14px;
        font-size: 1rem;
    }

    .mm-nav-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin: 12px 0 0;
        padding: 16px 0 0;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, .12);
    }

    .mm-nav-actions .mm-btn,
    .mm-nav-actions .mm-nav-link {
        width: 100%;
        text-align: center;
    }

    /* 섹션 그리드 1열 */
    .mm-feature-grid,
    .mm-secure-grid,
    .mm-steps,
    .mm-review-grid,
    .mm-price-grid {
        grid-template-columns: 1fr;
    }

    .mm-price-grid {
        max-width: 400px;
        margin: 0 auto;
    }

    /* 스텝 화살표 → 아래 방향 */
    .mm-step:not(:last-child)::after {
        content: '↓';
        top: auto;
        right: 50%;
        bottom: -20px;
        transform: translateX(50%);
    }

    .mm-hero-actions .mm-btn,
    .mm-hero-actions .mm-btn-ghost,
    .mm-cta-actions .mm-btn,
    .mm-cta-actions .mm-btn-ghost {
        flex: 1 1 100%;
    }

    .mm-toast-wrap {
        left: 16px;
        right: 16px;
        max-width: none;
    }

    .mm-review-card,
    .mm-price-card {
        padding: 28px 24px;
    }
}

/* ==========================================================================
   §12 MyPages — 계정 및 보안 (프로필 · 비밀번호 · 이메일 · 프로필 수정) (T8)
   레이아웃: 사이드바 + 콘텐츠 2컬럼 (모바일 1열 스택, 사이드바 위)
   폼·검증 로직 무변경. 마크업 래퍼·클래스 재스킨 전용.
   ========================================================================== */
.mm-account {
    padding: clamp(28px, 5vw, 56px) 0 clamp(56px, 9vw, 96px);
    background: var(--mm-bg-soft);
}

.mm-account-grid {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    gap: clamp(24px, 4vw, 40px);
    align-items: start;
}

/* ----- 사이드바 ------------------------------------------------------- */
.mm-account-side {
    position: sticky;
    top: calc(var(--mm-header-h) + 24px);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mm-account-user {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: var(--mm-white);
    border: 1px solid var(--mm-line);
    border-radius: var(--mm-radius);
    box-shadow: var(--mm-shadow);
}

.mm-account-avatar {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    background: var(--mm-bg-soft);
    border: 1px solid var(--mm-line);
}

.mm-account-user-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.mm-account-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--mm-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mm-account-id {
    font-size: .84rem;
    color: var(--mm-body);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mm-account-nav {
    display: flex;
    flex-direction: column;
    padding: 10px;
    background: var(--mm-white);
    border: 1px solid var(--mm-line);
    border-radius: var(--mm-radius);
    box-shadow: var(--mm-shadow);
}

.mm-account-nav-link {
    display: block;
    padding: 11px 14px;
    border-radius: var(--mm-radius-sm);
    color: var(--mm-body);
    font-size: .96rem;
    font-weight: 600;
    transition: background-color .18s ease, color .18s ease;
}

.mm-account-nav-link:hover {
    background: var(--mm-bg-soft);
    color: var(--mm-blue);
}

.mm-account-nav-link.is-active {
    background: rgba(0, 71, 217, .1);
    color: var(--mm-blue);
}

.mm-account-nav-link--danger {
    color: #c02636;
}

.mm-account-nav-link--danger:hover {
    background: rgba(192, 38, 54, .08);
    color: #c02636;
}

/* ----- 콘텐츠 헤딩 ---------------------------------------------------- */
.mm-account-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.mm-account-head h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--mm-ink);
}

.mm-account-head p {
    margin-top: 8px;
    color: var(--mm-body);
    font-size: 1rem;
}

/* ----- 패널 카드 ------------------------------------------------------ */
.mm-panel {
    background: var(--mm-white);
    border: 1px solid var(--mm-line);
    border-radius: var(--mm-radius);
    box-shadow: var(--mm-shadow);
    padding: clamp(22px, 3vw, 32px);
}

.mm-panel-head {
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--mm-line);
}

.mm-panel-head h2 {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--mm-ink);
}

.mm-panel-head p {
    margin-top: 6px;
    font-size: .92rem;
    color: var(--mm-body);
}

/* ----- 프로필 읽기전용 사실 목록 -------------------------------------- */
.mm-account-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px 24px;
    margin: 0;
}

.mm-account-fact {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mm-account-fact dt {
    font-size: .82rem;
    font-weight: 600;
    color: var(--mm-body);
}

.mm-account-fact dd {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--mm-ink);
    word-break: break-all;
}

.mm-account-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

.mm-account-empty {
    padding: 16px 18px;
    border-radius: var(--mm-radius-sm);
    background: rgba(217, 119, 6, .08);
    border: 1px solid rgba(217, 119, 6, .22);
    color: #92500a;
    font-size: .94rem;
    line-height: 1.6;
}

/* ----- 내 병원 테이블 ------------------------------------------------- */
.mm-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.mm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
    min-width: 640px;
}

.mm-table th,
.mm-table td {
    padding: 12px 14px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--mm-line);
}

.mm-table thead th {
    font-size: .82rem;
    font-weight: 700;
    color: var(--mm-body);
    background: var(--mm-bg-soft);
    white-space: nowrap;
}

.mm-table tbody tr:last-child td {
    border-bottom: 0;
}

.mm-table td {
    color: var(--mm-ink);
}

.mm-table a {
    color: var(--mm-blue);
    font-weight: 600;
}

.mm-table a:hover {
    color: var(--mm-blue-deep);
    text-decoration: underline;
}

/* 배지 변형 (베이스 .mm-badge 모양 재사용, 색만 덮음) */
.mm-badge--primary {
    background: rgba(0, 71, 217, .1);
    color: var(--mm-blue);
}

.mm-badge--danger {
    background: rgba(192, 38, 54, .1);
    color: #c02636;
}

/* 아바타 */
.mm-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--mm-bg-soft);
    border: 1px solid var(--mm-line);
}

.mm-avatar--lg {
    width: 44px;
    height: 44px;
}

.mm-avatar-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mm-avatar-stack li {
    display: inline-flex;
}

.mm-account-private {
    font-size: .88rem;
    color: var(--mm-body);
}

/* ----- 폼 필드 -------------------------------------------------------- */
.mm-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 18px;
}

.mm-field:last-child {
    margin-bottom: 0;
}

.mm-field label {
    font-size: .9rem;
    font-weight: 600;
    color: var(--mm-ink);
}

.mm-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--mm-line);
    border-radius: var(--mm-radius-sm);
    background: var(--mm-white);
    font-family: inherit;
    font-size: .98rem;
    color: var(--mm-ink);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.mm-input::placeholder {
    color: #97a0b5;
}

.mm-input:focus {
    outline: none;
    border-color: var(--mm-blue);
    box-shadow: 0 0 0 3px rgba(0, 71, 217, .12);
}

.mm-input--file {
    padding: 9px 12px;
    background: var(--mm-bg-soft);
    cursor: pointer;
}

.mm-field-error {
    font-size: .84rem;
    color: #c02636;
    line-height: 1.5;
}

/* 프로필 이미지 미리보기 + 업로드 */
.mm-account-photo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mm-account-photo .mm-input--file {
    flex: 1 1 auto;
    min-width: 0;
}

/* 체크박스 */
.mm-account-checks {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--mm-line);
}

.mm-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mm-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--mm-blue);
    cursor: pointer;
}

.mm-check label {
    margin: 0;
    font-size: .96rem;
    font-weight: 500;
    color: var(--mm-ink);
    cursor: pointer;
}

/* ----- 폼 하단 (안내문 + 버튼) --------------------------------------- */
.mm-account-formfoot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
}

.mm-account-formfoot--end {
    justify-content: flex-end;
}

.mm-account-formhint {
    flex: 1 1 260px;
    font-size: .9rem;
    color: var(--mm-body);
    line-height: 1.6;
}

.mm-account-formbtns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ----- MyPages 반응형 ------------------------------------------------- */
@media (max-width: 900px) {
    .mm-account-grid {
        grid-template-columns: 1fr;
    }

    .mm-account-side {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }

    .mm-account-user,
    .mm-account-nav {
        flex: 1 1 240px;
    }

    /* 가로 배치 시 세그먼트 컨트롤 형태: 링크 3개 동일 폭 + 수직 중앙 정렬.
       기본값(stretch)이면 활성 배경 박스만 카드 높이만큼 늘어나 정렬이 어긋나 보인다. */
    .mm-account-nav {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px;
    }

    .mm-account-nav-link {
        flex: 1 1 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        white-space: nowrap;
    }
}

@media (max-width: 620px) {
    .mm-account-side {
        flex-direction: column;
    }

    /* 900px 블록의 flex-basis 240px 는 가로 배치용 — column 전환 시 세로축(높이)에
       적용되어 카드·내비가 240px 이상으로 부풀므로 auto 로 리셋한다. */
    .mm-account-user,
    .mm-account-nav {
        flex: 0 0 auto;
    }

    .mm-account-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .mm-account-nav-link {
        flex: 0 0 auto;
        justify-content: flex-start;
        text-align: left;
    }

    .mm-account-actions {
        flex-direction: column-reverse;
    }

    .mm-account-actions .mm-btn,
    .mm-account-actions .mm-btn-outline {
        width: 100%;
    }

    .mm-account-formfoot {
        flex-direction: column;
        align-items: stretch;
    }

    .mm-account-formbtns {
        flex-direction: column-reverse;
    }

    .mm-account-formbtns .mm-btn,
    .mm-account-formbtns .mm-btn-outline {
        width: 100%;
    }
}

/* ==========================================================================
   §12 인증 페이지 (로그인·회원가입·비밀번호·이메일 확인 등) — Account 뷰 공용
   폼 내부는 위의 .mm-field / .mm-input / .mm-field-error / .mm-check 를 재사용한다.
   ========================================================================== */
/* 인증 레이아웃 body — 랜딩 헤더가 없으므로 헤더 오프셋 패딩 제거.
   body.mm-body(0,1,1) 를 이기도록 body.mm-auth-body(0,1,1, 후순위)로 지정.
   배경도 .mm-auth 상단 색과 맞춰 상단 빈 영역이 흰 띠로 보이지 않게 한다. */
body.mm-auth-body {
    padding-top: 0;
    background: var(--mm-bg-soft);
}

.mm-auth {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 48px 20px 72px;
    background: linear-gradient(180deg, var(--mm-bg-soft), var(--mm-white));
}

/* 서버 검증(ModelState) 요약 알림 — 카드 상단 */
.mm-auth-alert {
    border: 1px solid rgba(192, 38, 54, .28);
    background: rgba(192, 38, 54, .07);
    color: #a51d2b;
    border-radius: var(--mm-radius-sm);
    padding: 12px 14px;
    margin-bottom: 20px;
    font-size: .9rem;
    line-height: 1.55;
}

.mm-auth-alert ul {
    margin: 0;
    padding-left: 18px;
}

.mm-auth-alert:empty {
    display: none;
}

/* 안내 리스트(가입/탈퇴 주의사항 등) */
.mm-auth-list {
    list-style: none;
    margin: 0 0 4px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mm-auth-list li {
    position: relative;
    padding-left: 26px;
    font-size: .93rem;
    color: var(--mm-body);
    line-height: 1.55;
}

.mm-auth-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .35em;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(0, 71, 217, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%230047D9' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

textarea.mm-input {
    min-height: 130px;
    resize: vertical;
    line-height: 1.6;
}

.mm-auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--mm-white);
    border: 1px solid var(--mm-line);
    border-radius: var(--mm-radius);
    box-shadow: var(--mm-shadow-lg);
    padding: 40px 34px;
}

/* 로고는 카드 밖(.mm-auth 셸) 상단에 위치 — flex(align-items:center)로 중앙 정렬,
   간격은 .mm-auth 의 gap 이 담당한다. */
.mm-auth-logo {
    display: block;
    margin: 0;
}

.mm-auth-logo img {
    height: 34px;
    width: auto;
}

.mm-auth-head {
    text-align: center;
    margin-bottom: 26px;
}

.mm-auth-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--mm-ink);
    margin: 0 0 8px;
    letter-spacing: -.01em;
}

.mm-auth-sub {
    font-size: .96rem;
    color: var(--mm-body);
    margin: 0;
    line-height: 1.6;
}

.mm-btn--block {
    width: 100%;
}

/* 로그인 유지 + 비밀번호 찾기 한 줄 */
.mm-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin: -2px 0 20px;
    font-size: .92rem;
}

/* 하단 대체 안내 (회원가입/로그인 전환 등) */
.mm-auth-alt {
    text-align: center;
    margin-top: 22px;
    font-size: .94rem;
    color: var(--mm-body);
}

.mm-auth-alt a {
    font-weight: 600;
}

.mm-auth-divider {
    border: none;
    border-top: 1px solid var(--mm-line);
    margin: 24px 0;
}

/* 정적 안내 페이지(가입 완료·로그아웃·이메일 확인 등) 아이콘 + 메시지 */
.mm-auth-icon {
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 71, 217, .1);
    color: var(--mm-blue);
    font-size: 1.7rem;
    margin: 0 auto 6px;
}

.mm-auth-icon--ok {
    background: rgba(53, 210, 222, .16);
    color: #0a8f9c;
}

.mm-auth-icon--warn {
    background: rgba(192, 38, 54, .1);
    color: #c02636;
}

/* 페이지 하단 링크 (홈·소개·공지 등) */
.mm-auth-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 16px;
    font-size: .86rem;
}

.mm-auth-foot a {
    color: var(--mm-body);
}

.mm-auth-foot a:hover {
    color: var(--mm-blue);
}

@media (max-width: 480px) {
    .mm-auth-card {
        padding: 30px 22px;
    }

    .mm-auth-title {
        font-size: 1.35rem;
    }
}
