/*
 Theme Name: 못난이 박스
 Template: generatepress
 Description: 못난이 박스 — 배우와 캐스팅 디렉터를 연결하는 플랫폼
 Version: 2.0.0
 Author: Boostpage
 Text Domain: montnanibox
*/

/* ══════════════════════════════════════════
   CSS 커스텀 속성 (디자인 토큰)
   화이트 테마 통합 버전 — 다크 네이비 레거시 제거
   ══════════════════════════════════════════ */

:root {
    /* ═══ v3 디자인 토큰 (Notion-style) ═══ */
    --background:         #FFFFFF;
    --foreground:         #0A0A0A;
    --card:               #FFFFFF;
    --card-foreground:    #0A0A0A;
    --muted:              #F5F5F5;
    --muted-foreground:   #737373;
    --border:             #E5E5E5;
    --input:              #E5E5E5;
    --ring:               #0A0A0A;
    --radius:             8px;

    /* ─── 악센트 — 블루 ─── */
    --mn-w-accent:       #2563EB;
    --mn-w-accent-h:     #1D4ED8;

    /* ─── 코랄 CTA ─── */
    --mn-w-coral:        #F97316;
    --mn-w-coral-h:      #EA6700;

    /* ─── 골드 ─── */
    --mn-w-gold:         #D4A843;

    /* ═══ v2→v3 하위 호환 매핑 ═══ */
    --mn-w-bg:           var(--background);
    --mn-w-bg-alt:       var(--muted);
    --mn-w-bg-section:   #F1F3F5;
    --mn-w-text:         var(--foreground);
    --mn-w-text-sub:     var(--muted-foreground);
    --mn-w-border:       var(--border);
    --mn-w-radius:       var(--radius);
    --mn-w-radius-sm:    6px;

    /* ─── 그림자 ─── */
    --mn-w-shadow:       0 2px 12px rgba(0,0,0,0.06);
    --mn-w-shadow-md:    0 4px 24px rgba(0,0,0,0.10);

    /* ─── 폰트 ─── */
    --mn-w-font-sans:    'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --mn-w-font-disp:    'Outfit', sans-serif;

    /* ─── 레거시 별칭 ─── */
    --mn-coral:          var(--mn-w-coral);
    --mn-coral-light:    #FDBA74;
    --mn-blue:           var(--mn-w-accent);
    --mn-blue-light:     #60A5FA;
    --mn-gold:           var(--mn-w-gold);
    --mn-gold-light:     #E8C76A;
    --mn-gold-dark:      #B88D2E;

    /* 상태 뱃지 */
    --mn-status-open:       #F97316;
    --mn-status-progress:   #F0A030;
    --mn-status-announced:  #22C55E;

    /* 폰트 별칭 */
    --mn-font-sans:    var(--mn-w-font-sans);
    --mn-font-display: var(--mn-w-font-disp);

    /* 래퍼 별칭 */
    --mn-radius:    var(--mn-w-radius);
    --mn-radius-sm: var(--mn-w-radius-sm);
    --mn-shadow:    var(--mn-w-shadow-md);
    --mn-border:    var(--mn-w-border);
}


/* ══════════════════════════════════════════
   글로벌 기본값
   ══════════════════════════════════════════ */

html {
    scroll-behavior: smooth;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--mn-w-font-sans);
    font-size: 14px;
    line-height: 1.5;
    background-color: var(--background);
    color: var(--foreground);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 링크 — 화이트 테마 블루 */
body a {
    color: var(--mn-w-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

body a:hover {
    color: var(--mn-w-accent-h);
}

/* 텍스트 선택 */
::selection {
    background: rgba(37, 99, 235, 0.15);
    color: var(--mn-w-text);
}

/* 포커스 접근성 */
:focus-visible {
    outline: 2px solid var(--mn-w-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* 인터랙티브 요소 공통 트랜지션 */
button,
input,
select,
textarea,
a {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}


/* ══════════════════════════════════════════
   GP (GeneratePress) 오버라이드 — 한 곳에서 관리
   ══════════════════════════════════════════ */

/* flex-direction 버그 수정 */
.site-content {
    flex-direction: column !important;
    padding-top: 0 !important;
}

/* 콘텐츠 영역 풀폭 */
.site-content .content-area {
    width: 100%;
    max-width: 100%;
}

/* GP 내부 래퍼 마진/패딩 제거 */
.inside-article,
.entry-content {
    margin: 0;
    padding: 0;
}

.site-main {
    margin: 0;
    padding: 0;
}

/* 블록 에디터 내 max-width 해제 */
.entry-content > * {
    max-width: 100%;
}

/* GP 페이지 제목 숨기기 */
.page .entry-title {
    display: none;
}

/* GP 헤더/푸터 숨기기 — 커스텀 헤더/푸터 사용 */
.site-header,
.site-footer,
.footer-widgets {
    display: none !important;
}

/* GP 진입/종료 메타 숨기기 */
.entry-header,
.entry-footer {
    display: none;
}

/* GP 컨테이너 최대폭/패딩 초기화 */
.container,
.grid-container {
    max-width: 100% !important;
    padding: 0 !important;
}

/* GP 컨테이너 배경/그림자 초기화 */
.one-container .container,
.separate-containers .inside-article,
.inside-article {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* 블록 에디터 Group 블록 풀폭 */
.entry-content > .wp-block-group {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

/* 블록 에디터 buttons 가운데 정렬 */
.entry-content .wp-block-buttons {
    justify-content: center;
}

/* CPT 싱글 entry-title / meta 숨기기 */
.single-actor_profile .entry-title,
.page-template-page-search-actors .entry-title,
.single-actor_profile .entry-meta {
    display: none;
}

/* 관리자 안내 메시지 — 프론트에서 숨김 */
.mn-admin-notice {
    display: none;
}


/* ══════════════════════════════════════════
   레이아웃 유틸리티
   ══════════════════════════════════════════ */

/* 내부 폭 제한 래퍼 */
.mn-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 레거시 별칭 */
.mn-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 섹션 공통 여백 */
.mn-section {
    padding: 80px 0;
}

.mn-section-alt {
    background: var(--mn-w-bg-alt);
}

/* 섹션 제목 */
.mn-section-title {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--mn-w-text);
}


/* ══════════════════════════════════════════
   스크롤 애니메이션 유틸리티
   ══════════════════════════════════════════ */

.mn-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.mn-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ══════════════════════════════════════════
   스크롤-탑 버튼
   ══════════════════════════════════════════ */

.mn-scroll-top {
    position: fixed;
    bottom: 92px; /* 카카오톡 플로팅 버튼(56px) 위에 스택 — 겹침 방지 (2026-06-01) */
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--mn-w-accent);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--mn-w-shadow-md);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
    z-index: 999;
}

.mn-scroll-top.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.mn-scroll-top:hover {
    background: var(--mn-w-accent-h);
    transform: translateY(-2px);
}


/* ══════════════════════════════════════════
   공통 컴포넌트 — 상태 뱃지
   ══════════════════════════════════════════ */

.mn-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.mn-badge-open       { background: var(--mn-status-open);      color: #fff; }
.mn-badge-progress   { background: var(--mn-status-progress);  color: #fff; }
.mn-badge-announced  { background: var(--mn-status-announced); color: #fff; }


/* ══════════════════════════════════════════
   공통 컴포넌트 — 칩/태그
   ══════════════════════════════════════════ */

.mn-chip {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    background: var(--mn-w-bg-section);
    color: var(--mn-w-text-sub);
    border: 1px solid var(--mn-w-border);
    margin: 2px 4px;
}

.mn-chip.active {
    background: var(--mn-w-accent);
    border-color: var(--mn-w-accent);
    color: #fff;
}


/* ══════════════════════════════════════════
   공통 컴포넌트 — 버튼
   ══════════════════════════════════════════ */

.mn-btn-primary {
    background: var(--mn-w-coral);
    color: #fff;
    padding: 12px 28px;
    border-radius: 100px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.mn-btn-primary:hover {
    background: var(--mn-w-coral-h);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--mn-w-shadow-md);
}

.mn-btn-accent {
    background: var(--mn-w-accent);
    color: #fff;
    padding: 12px 28px;
    border-radius: 100px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.mn-btn-accent:hover {
    background: var(--mn-w-accent-h);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--mn-w-shadow-md);
}

.mn-btn-outline {
    background: transparent;
    border: 1.5px solid var(--mn-w-border);
    color: var(--mn-w-text-sub);
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.mn-btn-outline:hover {
    border-color: var(--mn-w-accent);
    color: var(--mn-w-accent);
}

.mn-btn-ghost {
    padding: 12px 24px;
    color: var(--mn-w-text-sub);
    font-weight: 500;
    border-radius: 100px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
}

.mn-btn-ghost:hover {
    color: var(--mn-w-text);
    background: var(--mn-w-bg-alt);
}

.mn-btn-lg {
    padding: 16px 40px;
    font-size: 1.05rem;
}

.mn-btn-full {
    display: block;
    width: 100%;
    text-align: center;
}


/* ══════════════════════════════════════════
   공통 컴포넌트 — 폼
   ══════════════════════════════════════════ */

.mn-form-group {
    margin-bottom: 14px;
}

.mn-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--mn-w-text-sub);
}

.mn-form-group input[type="text"],
.mn-form-group input[type="email"],
.mn-form-group input[type="password"],
.mn-form-group input[type="tel"],
.mn-form-group select,
.mn-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--mn-w-border);
    border-radius: var(--mn-w-radius-sm);
    background: var(--mn-w-bg);
    color: var(--mn-w-text);
    font-size: 0.95rem;
    font-family: inherit;
    appearance: none;
}

.mn-form-group input:focus,
.mn-form-group select:focus,
.mn-form-group textarea:focus {
    outline: none;
    border-color: var(--mn-w-accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.10);
}

.mn-form-group input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 1.5px dashed var(--mn-w-border);
    border-radius: var(--mn-w-radius-sm);
    background: var(--mn-w-bg-alt);
    color: var(--mn-w-text-sub);
    font-size: 0.85rem;
}

.mn-form-help {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    color: var(--mn-w-text-sub);
}

.mn-form-note {
    font-size: 0.85rem;
    color: var(--mn-w-text-sub);
    line-height: 1.6;
    margin: 12px 0 20px;
    padding: 12px 16px;
    background: rgba(37,99,235,0.04);
    border-radius: var(--mn-w-radius-sm);
    border-left: 3px solid var(--mn-w-accent);
}

.mn-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.mn-form-step {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0 12px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--mn-w-accent);
}

.mn-form-step:first-child {
    margin-top: 0;
}

.mn-form-step__num {
    font-size: 1rem;
}

/* 체크박스 그리드 */
.mn-checkbox-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mn-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1.5px solid var(--mn-w-border);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--mn-w-text-sub);
    cursor: pointer;
    background: var(--mn-w-bg);
}

.mn-checkbox-label:has(input:checked) {
    background: var(--mn-w-accent);
    border-color: var(--mn-w-accent);
    color: #fff;
}

.mn-checkbox-label input[type="checkbox"] {
    display: none;
}

.mn-toggle-label {
    font-size: 0.95rem;
    padding: 12px 0;
    border: none;
    background: none;
}

.mn-toggle-label input[type="checkbox"] {
    display: inline-block;
    width: auto;
    margin-right: 8px;
}

/* 알럿 */
.mn-alert {
    padding: 16px 20px;
    border-radius: var(--mn-w-radius-sm);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.mn-alert--error {
    background: rgba(249,115,22,0.08);
    border: 1px solid var(--mn-w-coral);
    color: #B91C35;
}

.mn-alert--success {
    background: rgba(34,197,94,0.08);
    border: 1px solid var(--mn-status-announced);
    color: #15803D;
}


/* ══════════════════════════════════════════
   페이지 헤더 (서브페이지 공통)
   ══════════════════════════════════════════ */

.mn-page-header {
    padding: 80px 0 48px;
    text-align: center;
    background: var(--mn-w-bg-alt);
    border-bottom: 1px solid var(--mn-w-border);
}

.mn-page-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--mn-w-text);
}

.mn-page-header__sub {
    color: var(--mn-w-text-sub);
    font-size: 1.05rem;
}

.mn-page-header--compact {
    padding: 60px 0 20px;
}

/* 뒤로가기 링크 */
.mn-back-link {
    color: var(--mn-w-text-sub);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mn-back-link:hover {
    color: var(--mn-w-accent);
}


/* ══════════════════════════════════════════
   캐스팅 뉴스방
   ══════════════════════════════════════════ */

.mn-casting-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mn-casting-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: var(--mn-w-bg-alt);
    border-radius: var(--mn-w-radius-sm);
    padding: 4px;
    border: 1px solid var(--mn-w-border);
}

.mn-casting-tab {
    flex: 1;
    padding: 10px 16px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: var(--mn-w-text-sub);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

.mn-casting-tab.active {
    background: var(--mn-w-bg);
    color: var(--mn-w-text);
    box-shadow: var(--mn-w-shadow);
}

.mn-casting-tab__count {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-left: 4px;
}

.mn-casting-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mn-casting-card {
    background: var(--mn-w-bg);
    border: 1px solid var(--mn-w-border);
    border-radius: var(--mn-w-radius);
    padding: 20px 24px;
    box-shadow: var(--mn-w-shadow);
}

.mn-casting-card:hover {
    transform: translateX(4px);
    box-shadow: var(--mn-w-shadow-md);
    border-color: var(--mn-w-accent);
}

.mn-casting-card__top {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.mn-casting-card__dday {
    font-size: 12px;
    font-weight: 800;
}

.mn-casting-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
    color: var(--mn-w-text);
}

.mn-casting-card__meta {
    font-size: 0.9rem;
    color: var(--mn-w-text-sub);
    margin-bottom: 12px;
}

.mn-casting-card__sep {
    margin: 0 6px;
    opacity: 0.4;
}

.mn-casting-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--mn-w-border);
}

.mn-casting-card__company {
    font-size: 0.85rem;
    color: var(--mn-w-text-sub);
}

.mn-casting-card__date {
    font-size: 0.8rem;
    color: var(--mn-w-text-sub);
}


/* ══════════════════════════════════════════
   가격 안내 — 이용 방법
   ══════════════════════════════════════════ */

.mn-usage__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.mn-usage__column {
    background: var(--mn-w-bg);
    border: 1px solid var(--mn-w-border);
    border-radius: var(--mn-w-radius);
    overflow: hidden;
    box-shadow: var(--mn-w-shadow);
}

.mn-usage__header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mn-usage__header.actor {
    background: linear-gradient(135deg, rgba(37,99,235,0.06) 0%, rgba(37,99,235,0.02) 100%);
    border-bottom: 2px solid var(--mn-w-accent);
}

.mn-usage__header.director {
    background: linear-gradient(135deg, rgba(249,115,22,0.06) 0%, rgba(249,115,22,0.02) 100%);
    border-bottom: 2px solid var(--mn-w-coral);
}

.mn-usage__icon {
    font-size: 1.8rem;
}

.mn-usage__header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--mn-w-text);
}

.mn-usage__steps {
    padding: 24px;
}

.mn-usage__step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 12px 0;
}

.mn-usage__step + .mn-usage__step {
    border-top: 1px solid var(--mn-w-border);
}

.mn-usage__step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--mn-w-bg-section);
    color: var(--mn-w-accent);
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mn-usage__step strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.95rem;
    color: var(--mn-w-text);
}

.mn-usage__step p {
    color: var(--mn-w-text-sub);
    font-size: 0.85rem;
    margin: 0;
}


/* ══════════════════════════════════════════
   가격 안내 — 가격 카드
   ══════════════════════════════════════════ */

.mn-pricing__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.mn-pricing__card {
    background: var(--mn-w-bg);
    border: 1px solid var(--mn-w-border);
    border-radius: var(--mn-w-radius);
    padding: 32px;
    text-align: center;
    box-shadow: var(--mn-w-shadow);
}

.mn-pricing__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mn-w-shadow-md);
}

.mn-pricing__card.featured {
    border-color: var(--mn-w-accent);
    position: relative;
}

.mn-pricing__card.featured::before {
    content: 'BEST';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--mn-w-accent);
    color: #fff;
    padding: 4px 16px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
}

.mn-pricing__badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(37,99,235,0.10);
    color: var(--mn-w-accent);
    margin-bottom: 16px;
}

.mn-pricing__badge.director {
    background: rgba(249,115,22,0.10);
    color: var(--mn-w-coral);
}

.mn-pricing__card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--mn-w-text);
}

.mn-pricing__amount {
    font-family: var(--mn-w-font-disp);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--mn-w-text);
}

.mn-pricing__unit {
    font-size: 1.2rem;
    color: var(--mn-w-text-sub);
}

.mn-pricing__period {
    color: var(--mn-w-text-sub);
    font-size: 0.85rem;
    margin-bottom: 24px;
}

.mn-pricing__features {
    list-style: none;
    padding: 0;
    margin-bottom: 24px;
    text-align: left;
}

.mn-pricing__features li {
    padding: 8px 0 8px 20px;
    color: var(--mn-w-text-sub);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--mn-w-border);
    position: relative;
}

.mn-pricing__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--mn-w-accent);
    font-weight: 700;
}


/* ══════════════════════════════════════════
   가격 안내 — 환불/보안
   ══════════════════════════════════════════ */

.mn-refund__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.mn-refund__card {
    background: var(--mn-w-bg);
    border: 1px solid var(--mn-w-border);
    border-radius: var(--mn-w-radius-sm);
    padding: 20px;
    box-shadow: var(--mn-w-shadow);
}

.mn-refund__card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--mn-w-text);
}

.mn-refund__card p {
    color: var(--mn-w-text-sub);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
}


/* ══════════════════════════════════════════
   가격 안내 — 로드맵
   ══════════════════════════════════════════ */

.mn-roadmap__timeline {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    padding-left: 32px;
}

.mn-roadmap__timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--mn-w-border);
}

.mn-roadmap__phase {
    position: relative;
    padding-bottom: 32px;
}

.mn-roadmap__marker {
    position: absolute;
    left: -32px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--mn-w-bg);
    border: 2px solid var(--mn-w-border);
}

.mn-roadmap__phase.active .mn-roadmap__marker {
    background: var(--mn-w-accent);
    border-color: var(--mn-w-accent);
    box-shadow: 0 0 0 4px rgba(37,99,235,0.15);
}

.mn-roadmap__label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--mn-w-accent);
    margin-bottom: 4px;
}

.mn-roadmap__content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--mn-w-text);
}

.mn-roadmap__content p {
    color: var(--mn-w-text-sub);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
}


/* ══════════════════════════════════════════
   마이페이지
   ══════════════════════════════════════════ */

.mn-mypage__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mn-mypage__summary {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--mn-w-bg);
    border: 1px solid var(--mn-w-border);
    border-radius: var(--mn-w-radius);
    margin-bottom: 32px;
    box-shadow: var(--mn-w-shadow);
}

.mn-mypage__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--mn-w-bg-section);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mn-w-accent);
    flex-shrink: 0;
}

.mn-mypage__summary-info h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--mn-w-text);
}

.mn-mypage__summary-info p {
    color: var(--mn-w-text-sub);
    font-size: 0.9rem;
    margin: 0;
}

.mn-mypage__form {
    background: var(--mn-w-bg);
    border: 1px solid var(--mn-w-border);
    border-radius: var(--mn-w-radius);
    padding: 32px;
    box-shadow: var(--mn-w-shadow);
}

.mn-mypage__form-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--mn-w-border);
    color: var(--mn-w-text);
}

.mn-mypage__director-info,
.mn-mypage__upgrade {
    text-align: center;
    padding: 40px;
    background: var(--mn-w-bg);
    border: 1px solid var(--mn-w-border);
    border-radius: var(--mn-w-radius);
    box-shadow: var(--mn-w-shadow);
}

.mn-mypage__director-info p,
.mn-mypage__upgrade p {
    color: var(--mn-w-text-sub);
    margin-bottom: 16px;
}


/* ══════════════════════════════════════════
   배우 찾기 — 스텝 인디케이터
   ══════════════════════════════════════════ */

.mn-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
}

.mn-steps__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    cursor: pointer;
    opacity: 0.4;
}

.mn-steps__item.active,
.mn-steps__item.done {
    opacity: 1;
}

.mn-steps__num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    background: var(--mn-w-bg-section);
    border: 2px solid var(--mn-w-border);
}

.mn-steps__item.active .mn-steps__num,
.mn-steps__item.done .mn-steps__num {
    background: var(--mn-w-accent);
    border-color: var(--mn-w-accent);
    color: #fff;
}

.mn-steps__item.done .mn-steps__num::after {
    content: '✓';
}

.mn-steps__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--mn-w-text);
}

.mn-steps__line {
    width: 32px;
    height: 2px;
    background: var(--mn-w-border);
}


/* ══════════════════════════════════════════
   배우 찾기 — 필터 패널
   ══════════════════════════════════════════ */

.mn-filter-group {
    display: none;
    padding: 24px;
    background: var(--mn-w-bg);
    border: 1px solid var(--mn-w-border);
    border-radius: var(--mn-w-radius);
    margin-bottom: 16px;
    box-shadow: var(--mn-w-shadow);
}

.mn-filter-group.active {
    display: block;
}

.mn-filter-group h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--mn-w-text);
}

.mn-filter-group h3 small {
    font-weight: 400;
    color: var(--mn-w-text-sub);
    font-size: 0.85rem;
}

.mn-tag-count {
    float: right;
    color: var(--mn-w-accent);
    font-size: 0.85rem;
}


/* ══════════════════════════════════════════
   v3 공유 컴포넌트 — Notion-style UI
   search-actors-v3.html 디자인 토큰 기반
   ══════════════════════════════════════════ */

/* ─── 버튼: Ghost ─── */
.btn-ghost {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted-foreground);
    padding: 6px 12px;
    border-radius: var(--radius);
    transition: color 0.15s, background 0.15s;
    font-family: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-ghost:hover {
    color: var(--foreground);
    background: var(--muted);
}

/* ─── 버튼: Outline ─── */
.btn-outline {
    background: none;
    border: 1px solid var(--border);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--foreground);
    padding: 6px 14px;
    border-radius: var(--radius);
    transition: background 0.15s;
    font-family: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-outline:hover {
    background: var(--muted);
}

/* ─── 버튼: Primary (v3 — foreground bg) ─── */
.btn-primary {
    background: var(--foreground);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 18px;
    border-radius: var(--radius);
    transition: opacity 0.15s;
    font-family: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-primary:hover {
    opacity: 0.85;
    color: #fff;
}

/* ─── 버튼: Search (하단 바 전용) ─── */
.btn-search {
    background: var(--foreground);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 32px;
    border-radius: var(--radius);
    transition: opacity 0.15s;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-search:hover {
    opacity: 0.85;
}

/* ─── 스텝 탭 (진행 표시기) ─── */
.step-progress {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.step-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px 12px 0;
    margin-right: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted-foreground);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
    user-select: none;
}

.step-tab:hover {
    color: var(--foreground);
}

.step-tab.active {
    color: var(--foreground);
    border-bottom-color: var(--foreground);
}

.step-tab.done {
    color: var(--muted-foreground);
}

.step-circle {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    background: #fff;
    color: var(--muted-foreground);
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.step-tab.active .step-circle {
    background: var(--foreground);
    border-color: var(--foreground);
    color: #fff;
}

.step-tab.done .step-circle {
    background: var(--foreground);
    border-color: var(--foreground);
    color: #fff;
}

/* ─── 4단 필터 그리드 ─── */
.filter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
    align-items: start;
}

.filter-col {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.filter-col-header {
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--border);
}

.filter-col-header .step-num {
    font-size: 10px;
    font-weight: 700;
    color: var(--muted-foreground);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.filter-col-header h2 {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    color: var(--foreground);
    letter-spacing: -0.3px;
}

.filter-col-header .sub {
    font-size: 11px;
    color: var(--muted-foreground);
    margin-top: 2px;
}

.filter-col-body {
    padding: 12px;
}

/* ─── 배우 카드 (가로 스크롤) ─── */
.actor-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.actor-row::-webkit-scrollbar {
    height: 4px;
}

.actor-row::-webkit-scrollbar-track {
    background: var(--muted);
    border-radius: 2px;
}

.actor-row::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.actor-card {
    flex-shrink: 0;
    width: 200px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    scroll-snap-align: start;
    transition: box-shadow 0.15s;
}

.actor-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* ─── 고정 하단 바 ─── */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ─── 정렬 탭 (pill 스타일) ─── */
.sort-tabs {
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--muted);
    border-radius: var(--radius);
    padding: 3px;
}

.sort-tab {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted-foreground);
    cursor: pointer;
    user-select: none;
    transition: background 0.12s, color 0.12s;
}

.sort-tab:hover {
    color: var(--foreground);
}

.sort-tab.active {
    background: #fff;
    color: var(--foreground);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ─── 카운트 뱃지 (pill) ─── */
.count-badge {
    background: var(--foreground);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
}

/* ─── 페이지 컨테이너 ─── */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px 24px 120px;
}

/* ─── v3 반응형 — 필터 그리드 ─── */
@media (max-width: 1024px) {
    .filter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .step-progress {
        overflow-x: auto;
    }

    .step-tab {
        padding: 12px 12px 12px 0;
        margin-right: 8px;
    }

    .bottom-bar {
        flex-wrap: wrap;
        padding: 12px 16px;
    }

    .btn-search {
        width: 100%;
        justify-content: center;
    }

    .page-container {
        padding: 24px 16px 120px;
    }
}

.mn-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mn-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 100px;
    background: var(--mn-w-bg-alt);
    border: 1.5px solid var(--mn-w-border);
    color: var(--mn-w-text-sub);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
}

.mn-filter-chip:hover {
    border-color: var(--mn-w-accent);
    color: var(--mn-w-accent);
    background: rgba(37,99,235,0.04);
}

.mn-filter-chip.active {
    background: var(--mn-w-accent);
    border-color: var(--mn-w-accent);
    color: #fff;
}

.mn-filter-chip__icon {
    font-size: 1.2rem;
}

.mn-job-chips .mn-filter-chip {
    flex-direction: column;
    padding: 14px 18px;
    min-width: 90px;
    text-align: center;
}

.mn-job-chips .mn-filter-chip__icon {
    font-size: 1.6rem;
}


/* ══════════════════════════════════════════
   배우 찾기 — 필터 액션
   ══════════════════════════════════════════ */

.mn-filter-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 24px 0 32px;
}

.mn-result-count {
    font-weight: 600;
    color: var(--mn-w-accent);
    font-size: 0.95rem;
}


/* ══════════════════════════════════════════
   배우 찾기 — 결과 그리드
   ══════════════════════════════════════════ */

.mn-actor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.mn-actor-card {
    background: var(--mn-w-bg);
    border: 1px solid var(--mn-w-border);
    border-radius: var(--mn-w-radius);
    overflow: hidden;
    box-shadow: var(--mn-w-shadow);
}

.mn-actor-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mn-w-shadow-md);
    border-color: var(--mn-w-accent);
}

.mn-actor-card__photo {
    aspect-ratio: 3/4;
    background: var(--mn-w-bg-section);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mn-actor-card__placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--mn-w-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--mn-w-accent);
    border: 2px solid var(--mn-w-border);
}

.mn-actor-card__info {
    padding: 16px;
}

.mn-actor-card__info h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--mn-w-text);
}

.mn-actor-card__meta {
    font-size: 0.85rem;
    color: var(--mn-w-text-sub);
    margin-bottom: 8px;
}

.mn-actor-card__tags {
    margin-bottom: 8px;
}

.mn-actor-card__bio {
    font-size: 0.85rem;
    color: var(--mn-w-text-sub);
    line-height: 1.5;
    margin: 0;
}

.mn-actor-card__link {
    display: block;
    text-align: center;
    padding: 12px;
    border-top: 1px solid var(--mn-w-border);
    color: var(--mn-w-accent);
    font-weight: 600;
    font-size: 0.9rem;
}

.mn-actor-card__link:hover {
    background: rgba(37,99,235,0.05);
    color: var(--mn-w-accent-h);
}

/* 결과 없음 */
.mn-no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--mn-w-text-sub);
    font-size: 1rem;
}


/* ══════════════════════════════════════════
   회원가입
   ══════════════════════════════════════════ */

.mn-register-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.mn-register-card {
    background: var(--mn-w-bg);
    border: 1px solid var(--mn-w-border);
    border-radius: var(--mn-w-radius);
    overflow: hidden;
    box-shadow: var(--mn-w-shadow);
}

.mn-register-card__header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
}

.mn-register-card__header.actor {
    background: linear-gradient(135deg, rgba(37,99,235,0.06), rgba(37,99,235,0.02));
    border-bottom: 2px solid var(--mn-w-accent);
}

.mn-register-card__header.director {
    background: linear-gradient(135deg, rgba(249,115,22,0.06), rgba(249,115,22,0.02));
    border-bottom: 2px solid var(--mn-w-coral);
}

.mn-register-card__header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: var(--mn-w-text);
}

.mn-register-form {
    padding: 24px;
}

/* 하단 환불/보안 */
.mn-register-footer {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--mn-w-border);
}

.mn-register-footer__item {
    text-align: center;
}

.mn-register-footer__item strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.9rem;
    color: var(--mn-w-text);
}

.mn-register-footer__item p {
    font-size: 0.8rem;
    color: var(--mn-w-text-sub);
    margin: 0;
}


/* ══════════════════════════════════════════
   배우 프로필 상세
   ══════════════════════════════════════════ */

.mn-profile {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 40px;
    align-items: start;
}

.mn-profile__photo-area {
    position: sticky;
    top: 100px;
}

.mn-profile__placeholder {
    aspect-ratio: 3/4;
    background: var(--mn-w-bg-section);
    border: 1px solid var(--mn-w-border);
    border-radius: var(--mn-w-radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mn-profile__placeholder span {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--mn-w-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: var(--mn-w-accent);
    border: 2px solid var(--mn-w-border);
}

.mn-profile__gallery img {
    width: 100%;
    border-radius: var(--mn-w-radius);
    margin-bottom: 12px;
}

.mn-profile__name {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--mn-w-text);
}

.mn-profile__meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 28px;
}

.mn-profile__meta-item {
    background: var(--mn-w-bg-alt);
    border: 1px solid var(--mn-w-border);
    border-radius: var(--mn-w-radius-sm);
    padding: 12px 16px;
}

.mn-profile__meta-label {
    display: block;
    font-size: 11px;
    color: var(--mn-w-text-sub);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.mn-profile__meta-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--mn-w-text);
}

.mn-profile__section {
    margin-bottom: 28px;
}

.mn-profile__section h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--mn-w-text-sub);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mn-profile__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mn-profile__bio {
    color: var(--mn-w-text-sub);
    line-height: 1.8;
    font-size: 0.95rem;
}

.mn-profile__career-table {
    width: 100%;
    border-collapse: collapse;
}

.mn-profile__career-table th {
    text-align: left;
    padding: 8px 12px;
    font-size: 0.85rem;
    color: var(--mn-w-text-sub);
    border-bottom: 1px solid var(--mn-w-border);
}

.mn-profile__career-table td {
    padding: 10px 12px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--mn-w-border);
    color: var(--mn-w-text);
}

.mn-profile__video {
    border-radius: var(--mn-w-radius);
    overflow: hidden;
}

.mn-profile__video iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
}

/* 푸터 정보 뱃지 */
.mn-footer-info {
    padding: 32px 0;
    background: var(--mn-w-bg-alt);
    border-top: 1px solid var(--mn-w-border);
}

.mn-footer-info__badges {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.mn-footer-badge {
    font-size: 13px;
    color: var(--mn-w-text-sub);
    padding: 8px 16px;
    border: 1px solid var(--mn-w-border);
    border-radius: var(--mn-w-radius-sm);
    background: var(--mn-w-bg);
}

/* 하단 CTA */
.mn-bottom-cta {
    padding: 80px 0;
    background: var(--mn-w-bg);
}

.mn-bottom-cta h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--mn-w-text);
}

.mn-bottom-cta__sub {
    color: var(--mn-w-text-sub);
    font-size: 1rem;
}

/* 골드 텍스트 포인트 */
.mn-gold-text {
    color: var(--mn-w-gold);
}

/* 결과 없음 */
.mn-front-page {
    padding-top: 0;
}


/* ══════════════════════════════════════════
   반응형 — 태블릿 (768px 이하)
   ══════════════════════════════════════════ */

@media (max-width: 768px) {
    .mn-section {
        padding: 56px 0;
    }

    .mn-usage__grid,
    .mn-pricing__grid,
    .mn-refund__grid,
    .mn-register-grid {
        grid-template-columns: 1fr;
    }

    .mn-steps__label {
        display: none;
    }

    .mn-steps__line {
        width: 16px;
    }

    .mn-job-chips .mn-filter-chip {
        min-width: 70px;
        padding: 10px 12px;
    }

    .mn-actor-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .mn-filter-actions {
        flex-wrap: wrap;
    }

    .mn-profile {
        grid-template-columns: 1fr;
    }

    .mn-profile__photo-area {
        position: static;
    }

    .mn-profile__meta-grid {
        grid-template-columns: 1fr 1fr;
    }

    .mn-register-footer {
        gap: 24px;
    }

    .mn-scroll-top {
        bottom: 80px; /* 모바일 카톡 버튼 위 스택 */
        right: 20px;
    }
}


/* ══════════════════════════════════════════
   반응형 — 모바일 (480px 이하)
   ══════════════════════════════════════════ */

@media (max-width: 480px) {
    .mn-actor-grid {
        grid-template-columns: 1fr;
    }

    .mn-inner,
    .mn-container {
        padding: 0 16px;
    }
}

/* ══════════════════════════════════════════
   WooCommerce 페이지 가로폭 제한
   (체크아웃/카트/샵/마이어카운트/상품상세)
   GP 컨테이너 해제의 side-effect 보정
   ══════════════════════════════════════════ */
.woocommerce-page .entry-content,
.woocommerce-checkout .entry-content,
.woocommerce-cart .entry-content,
.single-product .entry-content,
.post-type-archive-product .entry-content,
.woocommerce-account .entry-content {
    max-width: 1280px;
    margin: 40px auto;
    padding: 0 24px;
}

/* WooCommerce Blocks (wc-blocks) 래퍼도 동일 처리 */
.wp-block-woocommerce-checkout,
.wp-block-woocommerce-cart,
.wp-block-woocommerce-classic-shortcode,
.woocommerce-checkout form.checkout,
.woocommerce-cart .woocommerce,
.woocommerce-account .woocommerce,
.woocommerce-order-received .woocommerce {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .woocommerce-page .entry-content,
    .woocommerce-checkout .entry-content,
    .woocommerce-cart .entry-content,
    .single-product .entry-content,
    .post-type-archive-product .entry-content,
    .woocommerce-account .entry-content {
        padding: 0 16px;
        margin: 24px auto;
    }
}

/* ──────────────────────────────────────────
   모바일 가로 스크롤 차단 (2026-05-15 e2e Round 1 fix)
   - .actor-row, .step-progress 같은 의도된 horizontal scroll 컴포넌트는
     자체 overflow-x:auto 로 자기 scope 안에서만 작동
   - body / html 차원의 가로 누출만 차단
   ────────────────────────────────────────── */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

.page-container,
.mp-page,
.mnr-page {
    max-width: 100%;
    box-sizing: border-box;
}

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

/* ══════════════════════════════════════════
   접근성 — 모션 민감 대응 (prefers-reduced-motion)
   fade-in · 카운트업 · 티커 · 아코디언 등 모든 모션 무력화
   ══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ══════════════════════════════════════════
   접근성 — 인터랙티브 컴포넌트 포커스 가시성 강화
   전역 :focus-visible 외 컴포넌트별 명시적 링 추가
   ══════════════════════════════════════════ */

/* 버튼류 */
.mn-btn-primary:focus-visible,
.mn-btn-accent:focus-visible,
.mn-btn-outline:focus-visible,
.mn-btn-ghost:focus-visible {
    outline: 2px solid var(--mn-w-coral);
    outline-offset: 2px;
}

/* details/summary 아코디언 */
summary:focus-visible {
    outline: 2px solid var(--mn-w-coral);
    outline-offset: 2px;
    border-radius: 4px;
}

/* 탭 컴포넌트 */
.mn-howto-tab:focus-visible,
[class*="mn-"][class*="-tab"]:focus-visible {
    outline: 2px solid var(--mn-w-coral);
    outline-offset: 2px;
    border-radius: 4px;
}

/* 티커 도트 / 페이지네이션 dot류 */
[class*="mn-"][class*="-dot"]:focus-visible,
[class*="mn-"][class*="dot"]:focus-visible {
    outline: 2px solid var(--mn-w-coral);
    outline-offset: 2px;
    border-radius: 50%;
}


/* ════════════════════════════════════════════════════════════════════
   v4 디자인 토큰 + 공통 컴포넌트 (검색·프로필·리빌드 시안 계승)
   ────────────────────────────────────────────────────────────────────
   ⚠️ 비파괴 이식 규칙: 위 기존 룰/변수는 절대 변경하지 않음. 아래는 전부 신규.
   - 토큰: 신규 이름(--bg, --orange, --teal …)만 추가. CSS는 다중 :root 를
     병합(additive)하므로 기존 변수 미충돌.
   - 컴포넌트: 기존 점유 클래스(.mn-btn / .mn-btn-outline / .mn-actor-card /
     .mn-badge / .mn-filter-chip)는 재정의하지 않음. v4 변형은 신규 이름
     (.mn-btn-orange, .mn-card, .mn-actor-card-v4, .mn-filter-chip-v4 …)로 분리.
   출처: 04-design/rebuild/design-direction-search-profile.md / main-v4-master.html
   ════════════════════════════════════════════════════════════════════ */

:root {
    /* ─── 배경 (화이트/크림 기준, 다크는 포인트 1곳만) ─── */
    --bg:          #FFFCF9;
    --bg-card:     #FFFFFF;
    --bg-warm:     #FFF5EC;
    --bg-cream:    #FFF8F0;
    --bg-dark:     #181410;   /* 유일한 다크 band */

    /* ─── 오렌지 악센트 (메인) — 기존 --mn-w-coral(#F97316)과 동일값 alias ─── */
    --orange:        #F97316;
    --orange-dark:   #EA6C0A;
    --orange-light:  #FEF1E5;
    --orange-mid:    #FDDFC4;
    --orange-rgb:    249,115,22;

    /* ─── 청록 (디렉터 색) ─── */
    --teal:        #0E7C86;
    --teal-dark:   #0A626A;
    --teal-light:  #E4F4F5;

    /* ─── 시맨틱 (성공/경고/주의) ─── */
    --green-bg:    #E6F5EC;
    --green-text:  #1A7A45;
    --red-bg:      #FEE7E3;
    --red-text:    #D6422B;
    --amber-bg:    #FEF6E0;
    --amber-text:  #A87208;

    /* ─── 잉크 스케일 (텍스트/보더) ─── */
    --ink:          #1F1A16;
    --ink-70:       #57514B;
    --ink-50:       #8A837C;
    --ink-30:       #C4BDB5;
    --border:       #ECE6DF;    /* 신규 v4 보더(따뜻한 톤). 기존 --mn-w-border 별개 */
    --border-warm:  #F2EBE3;
    --border-hover: #DCD3C8;

    /* ─── radius ─── */
    --r-xs:   8px;
    --r-sm:   12px;
    --r-md:   16px;
    --r-lg:   22px;
    --r-xl:   28px;
    --r-pill: 999px;

    /* ─── spacing (8pt) ─── */
    --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
    --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px;
    --s-12: 48px; --s-16: 64px; --s-20: 80px; --s-24: 96px;

    /* ─── shadow ─── */
    --sh-sm:     0 1px 3px rgba(31,26,22,.06), 0 1px 2px rgba(31,26,22,.04);
    --sh-md:     0 4px 14px rgba(31,26,22,.08), 0 2px 5px rgba(31,26,22,.04);
    --sh-lg:     0 10px 34px rgba(31,26,22,.12), 0 4px 10px rgba(31,26,22,.06);
    --sh-orange: 0 4px 16px rgba(var(--orange-rgb),.30);

    /* ─── transition ─── */
    --t:      0.22s cubic-bezier(.4,0,.2,1);
    --t-slow: 0.4s  cubic-bezier(.4,0,.2,1);
}

/* ─── 보더 별칭 (기존 --border 토큰명을 v4가 재정의했으므로, 레거시 그레이가
   필요한 곳을 위한 명시 별칭. 기존 룰은 --mn-w-border 를 쓰므로 영향 없음) ─── */
:root { --border-v4: #ECE6DF; }


/* ──────────────── 버튼 (신규 prefix만) ──────────────── */
.mn-btn-orange,
.mn-btn-teal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    padding: 13px 26px;
    font-family: var(--mn-font-sans);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    border: none;
    border-radius: var(--r-pill);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: transform var(--t), box-shadow var(--t), background var(--t);
}
.mn-btn-orange {
    background: var(--orange);
    color: #fff;
    box-shadow: var(--sh-orange);
}
.mn-btn-orange:hover {
    background: var(--orange-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(var(--orange-rgb),.38);
}
.mn-btn-teal {
    background: var(--teal);
    color: #fff;
    box-shadow: 0 4px 16px rgba(14,124,134,.28);
}
.mn-btn-teal:hover {
    background: var(--teal-dark);
    color: #fff;
    transform: translateY(-1px);
}
/* 아웃라인 v4 변형 (기존 .mn-btn-outline 미충돌하도록 -v4 접미) */
.mn-btn-outline-v4 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    padding: 12px 24px;
    font-family: var(--mn-font-sans);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    background: var(--bg-card);
    color: var(--ink-70);
    border: 1.5px solid var(--border-v4);
    border-radius: var(--r-pill);
    cursor: pointer;
    text-decoration: none;
    transition: border-color var(--t), color var(--t), background var(--t);
}
.mn-btn-outline-v4:hover {
    border-color: var(--orange);
    color: var(--orange);
    background: var(--orange-light);
}
/* pill 사이즈 보조 (어느 v4 버튼에든 부착) */
.mn-btn-pill { border-radius: var(--r-pill); }
.mn-btn-sm   { padding: 9px 18px;  font-size: 13.5px; }
.mn-btn-lg-v4 { padding: 16px 34px; font-size: 16.5px; }


/* ──────────────── 카드 ──────────────── */
.mn-card {
    background: var(--bg-card);
    border: 1px solid var(--border-v4);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-sm);
    padding: var(--s-6);
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.mn-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--sh-md);
    border-color: var(--border-hover);
}

/* 배우 컴프카드 (v4) — 기존 .mn-actor-card 와 충돌 피하려 -v4 접미 */
.mn-actor-card-v4 {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-v4);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-sm);
    overflow: hidden;
    transition: transform var(--t), box-shadow var(--t);
}
.mn-actor-card-v4:hover {
    transform: translateY(-3px);
    box-shadow: var(--sh-md);
}
.mn-actor-card-v4__photo {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    background: var(--bg-warm);
    overflow: hidden;
}
.mn-actor-card-v4__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.mn-actor-card-v4__body {
    padding: var(--s-4) var(--s-5) var(--s-5);
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
}
.mn-actor-card-v4__name {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
}
.mn-actor-card-v4__meta {
    font-size: 13.5px;
    color: var(--ink-50);
}
.mn-actor-card-v4__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}


/* ──────────────── 배지 (신규만) ──────────────── */
/* 관리자 승인 배지 (🚫 "검증" 금지 → "관리자 승인을 거친") */
.mn-badge-approved {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1;
    color: var(--green-text);
    background: var(--green-bg);
    border-radius: var(--r-pill);
}
.mn-badge-approved::before {
    content: "✓";
    font-weight: 800;
}
/* 잠금 배지 (🔒 매칭 전 민감정보 안내) */
.mn-badge-lock {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1;
    color: var(--ink-50);
    background: var(--bg-warm);
    border: 1px solid var(--border-v4);
    border-radius: var(--r-pill);
}
.mn-badge-lock::before {
    content: "🔒";
    font-size: 11px;
}
/* 디렉터(청록) 배지 */
.mn-badge-teal {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1;
    color: var(--teal-dark);
    background: var(--teal-light);
    border-radius: var(--r-pill);
}


/* ──────────────── 🔒 마스킹 잠금 (매칭 전 개인정보 보호) ──────────────── */
/* 잠금 블록 — 자물쇠 + "제안 수락 후 공개" 마이크로카피 */
.mn-mask-lock {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    padding: 10px 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-70);
    background: var(--bg-warm);
    border: 1px dashed var(--border-hover);
    border-radius: var(--r-sm);
}
.mn-mask-lock::before {
    content: "🔒";
    font-size: 15px;
    line-height: 1;
}
.mn-mask-lock small {
    font-weight: 500;
    color: var(--ink-50);
}
/* 마스킹된 필드 — 블러/점선 처리 (실명·연락처 자리) */
.mn-masked-field {
    display: inline-block;
    min-width: 84px;
    padding: 2px 10px;
    color: transparent;
    background: var(--orange-light);
    border-bottom: 1.5px dashed var(--orange-mid);
    border-radius: var(--r-xs);
    user-select: none;
    position: relative;
    filter: blur(.2px);
}
.mn-masked-field::after {
    content: "🔒";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    filter: none;
}


/* ──────────────── 필터 (신규 prefix만) ──────────────── */
/* 필터 칩 v4 — 기존 .mn-filter-chip 미충돌하도록 -v4 접미 */
.mn-filter-chip-v4 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    font-family: var(--mn-font-sans);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink-70);
    background: var(--bg-card);
    border: 1.5px solid var(--border-v4);
    border-radius: var(--r-pill);
    cursor: pointer;
    transition: all var(--t);
}
.mn-filter-chip-v4:hover {
    border-color: var(--orange);
    color: var(--orange);
}
.mn-filter-chip-v4.is-active {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
    font-weight: 600;
}
/* 활성 필터 칩 제거(×) 토큰 */
.mn-filter-chip-v4__remove {
    cursor: pointer;
    font-weight: 700;
    opacity: .7;
}
.mn-filter-chip-v4__remove:hover { opacity: 1; }

/* 좌측 고정 필터 사이드바 (S1 Backstage식) */
.mn-filter-sidebar {
    width: 280px;
    flex: 0 0 280px;
    align-self: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border-v4);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-sm);
    padding: var(--s-5);
}
.mn-filter-sidebar__group {
    padding: var(--s-4) 0;
    border-bottom: 1px solid var(--border-warm);
}
.mn-filter-sidebar__group:last-child { border-bottom: none; }
.mn-filter-sidebar__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 var(--s-3);
}
.mn-filter-sidebar__reset {
    color: var(--orange);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
}


/* ──────────────── 슬라이더 (연령/키 범위 등 기본형) ──────────────── */
.mn-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: var(--r-pill);
    background: var(--orange-mid);
    outline: none;
}
.mn-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--orange);
    border: 2px solid #fff;
    box-shadow: var(--sh-sm);
    cursor: pointer;
}
.mn-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--orange);
    border: 2px solid #fff;
    box-shadow: var(--sh-sm);
    cursor: pointer;
}
.mn-slider-track {
    position: relative;
    width: 100%;
    height: 4px;
    border-radius: var(--r-pill);
    background: var(--orange-mid);
}
.mn-slider-track__fill {
    position: absolute;
    height: 100%;
    border-radius: var(--r-pill);
    background: var(--orange);
}

/* =====================================================
 * 한국어 줄바꿈 — 단어 중간 깨짐 방지 (2026-06-07)
 * word-break: keep-all  → 한글 어절 단위 줄바꿈
 * overflow-wrap: break-word → 긴 영문/URL 강제 래핑
 * 제외: code/pre/kbd (코드·URL 표시는 기존 동작 유지)
 * ===================================================== */
body,
h1, h2, h3, h4, h5, h6,
p, span, a, li,
button, label, dt, dd, th, td, figcaption, blockquote,
.mn-v4, [class*="mn-"], [class*="mnp-"], [class*="mns-"],
[class*="mn-pr"], [class*="mn-ad"] {
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* 코드·URL 표시 영역은 기존 break-all 동작 유지 */
code, pre, kbd, samp, .mono {
    word-break: break-all;
    overflow-wrap: anywhere;
}

/* ===== FR-B3 자사 홍보 배너 (Customizer mn_promo_*, front-page 하단, .mn-v4 스코프) ===== */
.mn-v4 .mn-promo-banner { width: 100%; padding: 36px 20px; background: var(--bg, #FFFCF9); }
.mn-v4 .mn-promo-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.mn-v4 .mn-promo-link { display: inline-block; line-height: 0; }
.mn-v4 .mn-promo-img { max-width: 100%; height: auto; border-radius: 16px; display: block; margin: 0 auto; }
@media (max-width: 768px) { .mn-v4 .mn-promo-banner { padding: 24px 16px; } .mn-v4 .mn-promo-img { border-radius: 12px; } }
