/* =========================================================
   JDTI 회원 페이지 레이아웃 + 로그인 디자인
   ========================================================= */

/* ── 페이지 레이아웃 ── */
body.mb-user-page {
    margin: 0;
    padding: 0;
    background: #fff;
    font-family: 'Pretendard', sans-serif;
}

.mup-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100dvh;             /* dvh: iOS Safari 하단바 포함 동적 뷰포트 */
    overflow: hidden;
}

/* 관리자바 보정 */
.admin-bar .mup-layout { height: calc(100dvh - 32px); }
@media (max-width: 782px) {
    .admin-bar .mup-layout { height: calc(100dvh - 46px); }
}

/* ── LEFT: 브랜드 패널 ── */
.mup-brand {
    position: relative;
    background: #0A1F44;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 52px 56px 60px;
    overflow: hidden;
}

.mup-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(0, 168, 232, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 60, 120, 0.4) 0%, transparent 60%);
}

.mup-brand-logo {
    position: relative;
    z-index: 1;
    text-decoration: none;
}

.mup-logo-img {
    height: 52px;
    width: auto;
}

.mup-logo-text {
    font-family: 'Black Han Sans', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.15em;
}

.mup-brand-copy {
    position: relative;
    z-index: 1;
}

.mup-brand-title {
    font-family: 'Pretendard', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.04em;
    line-height: 1.25;
    margin: 0 0 16px !important;
}

.mup-brand-sub {
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.02em;
    margin: 0 !important;
}

.mup-brand-bg-text {
    position: absolute;
    bottom: -20px;
    right: -10px;
    font-family: 'Black Han Sans', sans-serif;
    font-size: clamp(100px, 16vw, 180px);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.04);
    letter-spacing: 0.05em;
    line-height: 1;
    pointer-events: none;
    z-index: 0;
    user-select: none;
}

/* ── RIGHT: 폼 패널 — 우측만 스크롤 ── */
.mup-form {
    display: flex;
    flex-direction: column;
    padding: 48px 40px 0;       /* 하단 패딩 없음 — 각 페이지 컨텐츠에서 처리 */
    background: #fff;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

.mup-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.35);
    text-decoration: none;
    transition: color 0.15s;
    margin-bottom: 15px !important;
    align-self: flex-start;
}

.mup-back-link:hover { color: #0A1F44; }

.mup-form-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 560px;
    width: 100%;
    margin: 0 auto !important;
}

/* ── 망보드 기본 스타일 리셋 ── */
.mb-user-page .mb-user .mb-login-template { padding: 0 !important; }
.mb-user-page .mb-user .mb-login-basic1   { all: unset; display: block; }
.mb-user-page .mb-user .mb-user-template  { padding: 0 !important; }

/* ── 로그인 폼 래퍼 ── */
.jdti-login-wrap { width: 100%; }

/* ── 제목 ── */
.jdti-login-title {
    font-family: 'Pretendard', sans-serif;
    font-size: 34px;
    font-weight: 900;
    color: #0A1F44;
    letter-spacing: -0.04em;
    margin: 0 0 48px !important;
}

/* ── 입력 필드 ── */
.jdti-login-field {
    margin-bottom: 20px !important;
}

.jdti-login-field .jdti-login-label {
    display: block;
    font-size: 13px !important;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.45);
    letter-spacing: 0.02em;
    margin-bottom: 3px !important;
}

body.mb-user-page .jdti-login-input,
body.mb-user-page .jdti-login-input:focus,
body.mb-user-page .jdti-login-input:active {
    display: block !important;
    width: 100% !important;
    height: 48px !important;
    padding: 0 14px !important;
    border: 1px solid rgba(0, 0, 0, 0.38) !important;
    border-radius: 2px !important;
    background: #fff !important;
    background-color: #fff !important;
    font-family: 'Pretendard', sans-serif !important;
    font-size: 18px !important;
    color: #0A1F44 !important;
    outline: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    transition: border-color 0.15s !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

body.mb-user-page .jdti-login-input:focus {
    border-color: #0A1F44 !important;
}

/* 크롬 자동완성 배경색 제거 */
body.mb-user-page .jdti-login-input:-webkit-autofill,
body.mb-user-page .jdti-login-input:-webkit-autofill:hover,
body.mb-user-page .jdti-login-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: #0A1F44 !important;
    font-size: 18px !important;
    font-family: 'Pretendard', sans-serif !important;
    background-color: #fff !important;
    transition: background-color 9999s ease-in-out 0s !important;
}

/* ── 자동 로그인 ── */
.jdti-login-auto {
    margin: 4px 0 36px !important;
}

.jdti-login-auto-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.45);
}

.jdti-login-auto-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #00A8E8;
    cursor: pointer;
    flex-shrink: 0;
}

/* ── 로그인 버튼 ── */
.jdti-login-btn,
form#mb_form_login .jdti-login-btn {
    display: block !important;
    width: 100% !important;
    height: 58px !important;
    background: #0A1F44 !important;
    color: #fff !important;
    text-decoration: none !important;
    border: none !important;
    border-radius: 14px !important;
    font-family: 'Pretendard', sans-serif !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
    cursor: pointer !important;
    transition: background 0.2s ease, transform 0.1s ease !important;
}

form#mb_form_login .jdti-login-btn:hover  { background: #00A8E8 !important; color: #fff !important; }
form#mb_form_login .jdti-login-btn:active { transform: scale(0.99) !important; }

/* ── 링크 ── */
.jdti-login-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px !important;
}

.jdti-login-link {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.4);
    text-decoration: none;
    transition: color 0.15s;
}

.jdti-login-link:hover { color: #00A8E8; }

.jdti-login-link-divider {
    color: rgba(0, 0, 0, 0.18);
    font-size: 11px;
}

/* ── OR 구분선 ── */
.jdti-login-or {
    position: relative;
    text-align: center;
    margin: 40px 0 32px !important;
}

.jdti-login-or::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
}

.jdti-login-or span {
    position: relative;
    background: #fff;
    padding: 0 16px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.3);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ── 소셜 버튼 ── */
.jdti-social-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.jdti-social-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    width: 100% !important;
    height: 58px !important;
    border: none !important;
    border-radius: 14px !important;
    font-family: 'Pretendard', sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
    cursor: pointer !important;
    transition: opacity 0.15s, transform 0.1s !important;
}

.jdti-social-btn img {
    position: absolute !important;
    left: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    flex-shrink: 0;
}

.jdti-social-btn:hover  { opacity: 0.88 !important; }
.jdti-social-btn:active { transform: scale(0.99) !important; }

.jdti-social-kakao  { background: #FEE500 !important; color: rgba(0,0,0,0.85) !important; }
.jdti-social-naver  { background: #03C75A !important; color: #fff !important; }
.jdti-social-google { background: #fff !important; color: rgba(0,0,0,0.65) !important; border: 1.5px solid rgba(0,0,0,0.12) !important; }

/* ── 홈 링크 ── */
.jdti-login-footer-text { margin-top: 28px !important; text-align: center; }

.jdti-login-home-link {
    font-size: 13px;
    color: rgba(0, 0, 0, 0.3);
    text-decoration: none;
    transition: color 0.15s;
}

.jdti-login-home-link:hover { color: #00A8E8; }

/* ── 로고/서브타이틀 숨기기 (page-mb-user에선 브랜드 패널이 대신) ── */
.mb-user-page .jdti-login-logo,
.mb-user-page .jdti-login-footer-text { display: none; }


/* =========================================================
   망보드 회원가입 커스텀 스타일
   (page-mb-user.php 템플릿 — .mb-user-page 컨텍스트)
   ========================================================= */

/* ── 기본 래퍼 리셋 ── */
.mb-user-page .mb-user { padding: 0 !important; }
.mb-user-page .mb-user-template { padding: 0 !important; width: 100% !important; }

/* ── STEP 1: 약관 동의 ─────────────────────────────────── */

/* 약관 전체 컨테이너 */
.mb-user-page .mb-user-template > div[style*="padding:20px"] {
    padding: 0 !important;
    max-width: 100% !important;
    font-size: 14px !important;
}

/* ── "회원 가입약관" 헤더 행 ── */
.mb-user-page .mb-user-template .pull-left {
    font-family: 'Pretendard', sans-serif !important;
    font-size: 24px !important;
    font-weight: 900 !important;
    color: #0A1F44 !important;
    letter-spacing: -0.03em !important;
    text-transform: none !important;
    line-height: 1.2 !important;
}
.mb-user-page .mb-user-template .pull-right {
    font-family: 'Pretendard', sans-serif !important;
    display: flex !important;
    align-items: center !important;
    margin-top: 6px !important;
}
.mb-user-page .mb-user-template .pull-right label {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #0A1F44 !important;
    cursor: pointer !important;
    line-height: 1 !important;
}

/* clear div 아래 여백 */
.mb-user-page .mb-user-template .clear { margin-bottom: 16px !important; }

/* ── 안내 문구 박스 ── */
.mb-user-page .mb-user-template .border-ccc-1:first-of-type {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 0 4px !important;
    font-family: 'Pretendard', sans-serif !important;
    font-size: 14px !important;
    color: rgba(10, 31, 68, 0.45) !important;
    line-height: 1.7 !important;
    margin-top: 0 !important;
}
.mb-board .border-ccc-1 {
    border:0 !important;
}

/* ── 약관 섹션 제목 (이용약관 / 개인정보처리방침) ── */
.mb-user-page .mb-user-template > div > div > div[style*="font-size:15px"],
.mb-user-page .mb-user-template div[style*="font-size:15px;font-weight:600"] {
    font-family: 'Pretendard', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: rgba(0, 0, 0, 0.35) !important;
    letter-spacing: 0 !important;
    text-transform: uppercase !important;
    margin-top: 32px !important;
    margin-bottom: 10px !important;
    padding:8px 0 !important;
}

/* ── 약관 스크롤 박스 ── */
.mb-user-page .border-ccc-1[style*="overflow-y:scroll"] {
    height: 160px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    border: 1px solid rgba(0, 0, 0, 0.07) !important;
    border-radius: 12px 12px 0 0 !important;
    background: #F8F9FB !important;
    color: rgba(0, 0, 0, 0.5) !important;
    font-family: 'Pretendard', sans-serif !important;
    font-size: 12.5px !important;
    line-height: 1.8 !important;
    padding: 16px 14px 16px 18px !important;  /* 우측: 스크롤바 공간 */
    box-shadow: none !important;
}

/* ── 약관 동의 체크박스 행 ── */
.mb-user-page .border-ccc-1[style*="background-color:#F9F9F9"] {
    background: #F8F9FB !important;
    border: 1px solid rgba(0, 0, 0, 0.07) !important;
    border-top: none !important;
    border-radius: 0 0 12px 12px !important;
    padding: 16px 20px !important;
    box-shadow: none !important;
    margin-bottom: 12px !important;
}
.mb-user-page .border-ccc-1[style*="background-color:#F9F9F9"] label {
    font-family: 'Pretendard', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: rgba(0, 0, 0, 0.6) !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    cursor: pointer !important;
    line-height: 1.3 !important;
}

/* ── 체크박스 커스텀 (mb-user-page 컨텍스트 — page.css 전역과 동일 스타일 명시) ── */
.mb-user-page input[type="checkbox"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    border: 1.5px solid rgba(0, 0, 0, 0.22) !important;
    border-radius: 5px !important;
    background: #fff !important;
    cursor: pointer !important;
    position: relative !important;
    transition: border-color 0.15s, background 0.15s !important;
    flex-shrink: 0 !important;
    vertical-align: middle !important;
    box-shadow: none !important;
    outline: none !important;
}
.mb-user-page input[type="checkbox"]:hover { border-color: #0066FF !important; }
.mb-user-page input[type="checkbox"]:checked {
    background: #0066FF !important;
    border-color: #0066FF !important;
}
.mb-user-page input[type="checkbox"]:checked::after {
    content: '' !important;
    position: absolute !important;
    left: 5px !important;
    top: 1px !important;
    width: 5px !important;
    height: 9px !important;
    border: 2px solid #fff !important;
    border-top: none !important;
    border-left: none !important;
    transform: rotate(45deg) !important;
}

/* ── STEP 2: 가입 폼 ────────────────────────────────────── */

/* "회원가입" 제목 */
.mb-user-page .mb-user-title {
    font-family: 'Pretendard', sans-serif !important;
    font-size: 34px !important;
    font-weight: 900 !important;
    color: #0A1F44 !important;
    letter-spacing: -0.04em !important;
    border-bottom: none !important;
    padding: 0 !important;
    margin: 0 0 40px !important;
}
.mb-user-page .mb-user-title span { font-family: inherit !important; }

/* 폼 테이블 */
.mb-user-page .table.table-write {
    width: 100% !important;
    border: none !important;
    border-collapse: collapse !important;
}
.mb-user-page .table.table-write > tbody > tr {
    background: transparent !important;
    border: none !important;
}
.mb-user-page .table.table-write > tbody > tr > th {
    background: none !important;
    border: none !important;
    font-family: 'Pretendard', sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: rgba(0, 0, 0, 0.45) !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
    padding: 10px 16px 0 0 !important;
    width: 90px !important;
    vertical-align: top !important;
    white-space: nowrap !important;
}
.mb-user-page .table.table-write > tbody > tr > td {
    border: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07) !important;
    padding: 8px 0 !important;
    vertical-align: middle !important;
}
/* 첫 번째 행 위 선 + 여백 제거 */
.mb-user-page .table.table-write > tbody > tr:first-child > td,
.mb-user-page .table.table-write > tbody > tr:first-child > th {
    border-top: none !important;
    padding-top: 0 !important;
}

/* 망보드 responsive 박스 wrapper — 인라인 height 초기화 */
.mb-user-page .table.table-write .mb-responsive-box,
.mb-user-page .table.table-write .mb-responsive-box-item,
.mb-user-page .table.table-write .mb-responsive-box-inner {
    height: auto !important;
    min-height: 0 !important;
    line-height: 1 !important;
}
/* 행/셀 높이 초기화 */
.mb-user-page .table.table-write tr,
.mb-user-page .table.table-write td {
    height: auto !important;
}

/* 텍스트/비밀번호/이메일 인풋 */
.mb-user-page .table.table-write input[type="text"],
.mb-user-page .table.table-write input[type="password"],
.mb-user-page .table.table-write input[type="email"],
.mb-user-page .table.table-write input[type="tel"],
.mb-user-page .table.table-write input[type="number"] {
    border: 1px solid rgba(0, 0, 0, 0.14) !important;
    border-radius: 2px !important;
    background: #fff !important;
    font-family: 'Pretendard', sans-serif !important;
    font-size: 15px !important;
    color: #111827 !important;
    padding: 0 16px !important;
    height: 50px !important;
    box-sizing: border-box !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.15s, box-shadow 0.15s !important;
}

/* 핸드폰 앞자리 select (010 등) */
.mb-user-page .table.table-write select {
    border: 1px solid rgba(0, 0, 0, 0.14) !important;
    border-radius: 2px !important;
    background: #fff !important;
    font-family: 'Pretendard', sans-serif !important;
    font-size: 15px !important;
    color: #111827 !important;
    padding: 0 12px !important;
    height: 50px !important;
    box-sizing: border-box !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
.mb-user-page .table.table-write input[type="text"]:focus,
.mb-user-page .table.table-write input[type="password"]:focus,
.mb-user-page .table.table-write input[type="email"]:focus {
    border-color: #0066FF !important;
    box-shadow: 0 0 0 3px rgba(0,102,255,0.12) !important;
}

/* 중복확인 버튼 */
.mb-user-page .table.table-write .mb-responsive-box .btn.btn-default,
.mb-user-page .table.table-write .btn.btn-default {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 38px !important;
    padding: 0 18px !important;
    line-height: 1 !important;
    background: #0A1F44 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 2px !important;
    font-family: 'Pretendard', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}
.mb-user-page .table.table-write .btn.btn-default:hover {
    background: #0066FF !important;
}

/* 라디오/체크박스 */
.mb-user-page .table.table-write input[type="radio"],
.mb-user-page .table.table-write input[type="checkbox"] {
    accent-color: #0A1F44 !important;
}

/* 설명 텍스트 */
.mb-user-page .table.table-write .mb-description,
.mb-user-page .table.table-write br + * {
    font-size: 12px !important;
    color: rgba(0, 0, 0, 0.35) !important;
    margin-top: 4px !important;
    line-height: 1.5 !important;
}

/* ── 공통 버튼 (동의하고 가입 / 회원가입 완료) ── */
.mb-user-page .btn.btn-send-user,
.mb-user-page .btn-box-center .btn.btn-send-user {
    display: block !important;
    width: 100% !important;
    height: 58px !important;
    background: #0A1F44 !important;
    color: #fff !important;
    text-decoration: none !important;
    border: none !important;
    border-radius: 14px !important;
    font-family: 'Pretendard', sans-serif !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
    cursor: pointer !important;
    transition: background 0.2s, transform 0.1s !important;
    margin-top: 32px !important;
    min-width: auto !important;
    max-width: 100% !important;
}
.mb-user-page .btn.btn-send-user:hover { background: #00A8E8 !important; color: #fff !important; }
.mb-user-page .btn.btn-send-user:active { transform: scale(0.99) !important; }

/* 버튼 컨테이너 — float 정리 + 항상 block 표시 */
.mb-user-page .btn-box-center,
.mb-user-page .btn-box-left {
    display: block !important;
    clear: both !important;
    overflow: hidden !important;
    width: 100% !important;
    margin-top: 24px !important;
}

/* Step 2 PC: 버튼 위 여백 넉넉하게 + 버튼이 컨텐츠 하단에 자리잡도록 */
.mb-user-page .jdti-form-step .btn-box-center,
.mb-user-page .jdti-form-step .btn-box-left {
    margin-top: 48px !important;
    padding-bottom: 48px !important;
}

/* 소셜 로그인 연동 시 float 제거 */
.mb-user-page .btn-box-left .pull-right,
.mb-user-page .btn-box-left .pull-left,
.mb-user-page .btn-box-left .btn-box-right {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* max-width-m100 인라인 클래스 오버라이드 */
.mb-user-page .max-width-m100 {
    max-width: 100% !important;
    width: 100% !important;
}

/* ── max-width 제거 (폼 패널 전체 폭 사용) ── */
.mb-user-page .mb-max-width-700,
.mb-user-page .main-style1 {
    max-width: 100% !important;
    margin: 0 !important;
}

/* =========================================================
   약관 동의 페이지 — JS 주입 요소 스타일
   ========================================================= */

/* ── 타이틀 영역 ── */
.jdti-terms-heading {
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.jdti-terms-greeting {
    font-family: 'Pretendard', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.35);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 10px;
}

.jdti-terms-title {
    font-family: 'Pretendard', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: #0A1F44;
    letter-spacing: -0.04em;
    line-height: 1.25;
    margin: 0;
}

.jdti-terms-title em {
    font-style: normal;
    color: #0066FF;
}

/* ── 전체 동의 카드 ── */
.jdti-all-agree-card {
    display: flex !important;
    align-items: center !important;
    overflow: visible !important;
    background: #F0F5FF !important;
    border: 1.5px solid rgba(0, 102, 255, 0.2) !important;
    border-radius: 14px !important;
    padding: 18px 20px !important;
    margin-top: 16px !important;
    margin-bottom: 24px !important;
    cursor: pointer !important;
}

/* pull-right 가 카드 내부에서 full-width 차지 */
.jdti-all-agree-card .pull-right {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    float: none !important;
    margin: 0 !important;
    overflow: visible !important;
}

.jdti-all-agree-card label {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    cursor: pointer !important;
    font-family: 'Pretendard', sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0A1F44 !important;
    width: 100% !important;
    line-height: normal !important;
}

.jdti-all-agree-card input[type="checkbox"] {
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    border: 1.5px solid rgba(0, 0, 0, 0.2) !important;
    flex-shrink: 0 !important;
    vertical-align: 0 !important;
}

.jdti-all-agree-card input[type="checkbox"]:checked {
    background: #0066FF !important;
    border-color: #0066FF !important;
}

.jdti-all-agree-card input[type="checkbox"]:checked::after {
    left: 6px !important;
    top: 2px !important;
    width: 6px !important;
    height: 11px !important;
}

/* ── 섹션 제목 행 (아코디언 헤더) ── */
.jdti-section-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 16px 20px !important;
    margin-bottom: 0 !important;
    cursor: pointer !important;
    font-family: 'Pretendard', sans-serif !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: rgba(0, 0, 0, 0.65) !important;
    letter-spacing: -0.02em !important;
    text-transform: none !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07) !important;
    border-radius: 0 !important;
    transition: color 0.15s !important;
    user-select: none !important;
}

.jdti-section-row:hover {
    background: transparent !important;
    color: rgba(0, 0, 0, 0.8) !important;
}

/* 열렸을 때 */
.jdti-section-row.is-open {
    border-radius: 0 !important;
    border-bottom-color: transparent !important;
    color: #1A7FFF !important;
}

.jdti-section-arrow {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: rgba(0, 0, 0, 0.35);
    transition: transform 0.22s ease, color 0.15s;
    transform: rotate(0deg);
    flex-shrink: 0;
}

.jdti-section-arrow.is-open {
    transform: rotate(180deg);
    color: #0066FF;
}

/* ── 약관 내용 전환 애니메이션 ── */
.jdti-terms-content {
    transition: height 0.25s ease, padding 0.25s ease !important;
}

/* ── 약관 Step 1: 오리지널 버튼 숨김 (sticky bar로 대체) ── */
.mb-user-page .jdti-terms-step .btn-box-center,
.mb-user-page .jdti-terms-step .btn-box-left {
    display: none !important;
}

/* ── Sticky 동의 버튼 바 ── */
.jdti-agree-bar {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    padding: 20px 40px 28px;
    margin: 0 -40px;            /* mup-form padding 상쇄 */
    z-index: 20;
    flex-shrink: 0;
}

.jdti-agree-btn {
    display: block;
    width: 100%;
    height: 58px;
    background: #C8CDD6;
    color: #fff;
    border: none;
    border-radius: 14px;
    font-family: 'Pretendard', -apple-system, sans-serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: not-allowed;
    transition: background 0.25s, transform 0.1s;
}

.jdti-agree-btn.is-active {
    background: #0A1F44;
    cursor: pointer;
}

.jdti-agree-btn.is-active:hover  { background: #00A8E8; }
.jdti-agree-btn.is-active:active { transform: scale(0.99); }

/* mup-form-inner — Step 1 에서 flex 공간 확보 */
.mb-user-page .mup-form-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 560px;
    width: 100%;
    margin: 0 auto !important;
    padding-bottom: 80px;       /* PC: sticky 버튼 위 여백 확보 */
}

/* 약관 스텝: 상단 정렬 (내용이 길어서 center 부적합) */
.mb-user-page .mup-form-inner.jdti-terms-form-inner {
    justify-content: flex-start !important;
}

/* =========================================================
   비밀번호 찾기 페이지 (page-find-password.php)
   ========================================================= */

.jdti-fp-inner {
    justify-content: center;
    padding-bottom: 56px;       /* PC: 버튼 아래 대신 내용 안에서 여백 확보 */
}

/* ── 탭 ── */
.jdti-fp-tabs {
    display: flex;
    gap: 0;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 28px;
}

.jdti-fp-tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    border-radius: 9px;
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.4);
    text-decoration: none;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.jdti-fp-tab.is-active {
    background: #fff;
    color: #0A1F44;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.10);
}

/* ── 부제목 ── */
.jdti-fp-sub {
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.42);
    line-height: 1.7;
    margin: -8px 0 32px;
}

/* ── 에러 박스 ── */
.jdti-fp-error {
    background: rgba(220, 38, 38, 0.06);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 10px;
    padding: 12px 16px;
    font-family: 'Pretendard', sans-serif;
    font-size: 13px;
    color: #dc2626;
    margin-bottom: 24px;
}

/* ── 폼 ── */
.jdti-fp-form {
    width: 100%;
}

/* ── 제출 버튼 (button/a 태그 공용) ── */
.jdti-fp-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 58px;
    margin-top: 32px;
    background: #0A1F44;
    color: #fff !important;
    border: none;
    border-radius: 14px;
    font-family: 'Pretendard', sans-serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    text-decoration: none !important;
    box-sizing: border-box;
    transition: background 0.2s, transform 0.1s;
}
.jdti-fp-submit:hover  { background: #00A8E8; color: #fff !important; }
.jdti-fp-submit:active { transform: scale(0.99); }

/* ── 발송 완료 상태 ── */
.jdti-fp-sent {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.jdti-fp-sent-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #F0F5FF;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0066FF;
    margin-bottom: 24px;
}

.jdti-fp-sent .jdti-terms-greeting { margin-bottom: 10px; }
.jdti-fp-sent .jdti-terms-title    { margin-bottom: 16px; }

.jdti-fp-sent-desc {
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.45);
    line-height: 1.7;
    margin: 0 0 36px;
}

.jdti-fp-back-btn {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    height: 52px;
    padding: 0 28px;
    background: #0A1F44;
    color: #fff;
    text-decoration: none;
    border-radius: 14px;
    font-family: 'Pretendard', sans-serif;
    font-size: 15px;
    font-weight: 700;
    transition: background 0.2s;
}
.jdti-fp-back-btn:hover { background: #00A8E8; color: #fff; }

/* =========================================================
   Find: 아이디/비밀번호 찾기 페이지
   ========================================================= */

/* 섹션 제목 (비밀번호 찾기 / 아이디 찾기) */
.mb-user-page .mb-password-template1 .jdti-find-section-title {
    font-size: 14px !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em !important;
    color: rgba(0, 0, 0, 0.35) !important;
    text-transform: uppercase !important;
    margin: 0 0 20px !important;
    padding: 0 !important;
    border-bottom: none !important;
}
.mb-user-page .mb-password-template1 .jdti-find-section-title span {
    font-family: 'Pretendard', sans-serif !important;
}

/* 두 번째 섹션 구분 */
.mb-user-page .mb-password-template1 .jdti-find-section-second {
    margin-top: 12px !important;
    padding-top: 32px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.07) !important;
}

/* main-style1 래퍼 리셋 */
.mb-user-page .mb-password-template1 .main-style1 {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 버튼 컨테이너 여백 */
.mb-user-page .mb-password-template1 .btn-box-center {
    margin-top: 20px !important;
}

/* =========================================================
   Step 2: 프로필 사진 업로드 + 크롭 모달
   ========================================================= */

/* ── 사진 선택 버튼 ── */
.jdti-photo-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: #0A1F44;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Pretendard', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 4px;
}
.jdti-photo-btn:hover { background: #00A8E8; }

/* ── 미리보기 ── */
.jdti-photo-preview-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.jdti-photo-preview {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 0, 0, 0.08);
    display: block;
}

.jdti-photo-remove {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.10);
    color: rgba(0, 0, 0, 0.45);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}
.jdti-photo-remove:hover { background: rgba(200, 0, 0, 0.12); color: #c00; }

/* ── 크롭 모달 오버레이 ── */
.jdti-crop-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.jdti-crop-modal.is-open { display: flex; }

/* ── 크롭 모달 박스 ── */
.jdti-crop-box {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    width: min(480px, 100%);
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

.jdti-crop-header {
    padding: 20px 24px;
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #0A1F44;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.jdti-crop-area {
    background: #111;
    height: 320px;
    overflow: hidden;
}

.jdti-crop-area img {
    max-width: 100%;
    display: block;
}

.jdti-crop-footer {
    padding: 16px 24px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.jdti-crop-cancel {
    padding: 10px 20px;
    border: 1.5px solid rgba(0, 0, 0, 0.15);
    background: #fff;
    border-radius: 10px;
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.55);
    cursor: pointer;
    transition: border-color 0.15s;
}
.jdti-crop-cancel:hover { border-color: rgba(0, 0, 0, 0.35); }

.jdti-crop-confirm {
    padding: 10px 20px;
    border: none;
    background: #0A1F44;
    border-radius: 10px;
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}
.jdti-crop-confirm:hover { background: #00A8E8; }

/* ── 모바일 전용 헤더 ── */
.mup-mobile-header {
    display: none;
}

@media (max-width: 768px) {
    .mup-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 24px;
        min-height: 70px;
        background: #fff;
        border-bottom: 1px solid rgba(0, 0, 0, 0.07);
        margin: -36px -32px 28px;   /* mup-form 패딩 상쇄 후 full-width */
    }

    .mup-mobile-header-logo-img {
        height: 36px;
        width: auto;
    }

    .mup-mobile-header-logo-text {
        font-family: 'Black Han Sans', sans-serif;
        font-size: 1.2rem;
        font-weight: 900;
        color: #0A1F44;
    }

    .mup-mobile-header-home {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 14px;
        color: rgba(0, 0, 0, 0.4);
        text-decoration: none;
        transition: color 0.15s;
    }

    .mup-mobile-header-home:hover { color: #0A1F44; }
}

/* ── 모바일 ── */
@media (max-width: 768px) {
    .mup-layout {
        grid-template-columns: 1fr;
    }

    .mup-brand {
        display: none;
    }

    .mup-form {
        height: 100dvh;
        padding: 36px 32px calc(80px + env(safe-area-inset-bottom, 0px));
    }

    /* 모바일: fp-inner 패딩 제거 (mup-form 하단 패딩이 대신 처리) */
    .jdti-fp-inner {
        padding-bottom: 0;
    }

    /* 모바일: Step 2 버튼 컨텐츠 패딩 제거 (mup-form 하단 패딩이 대신 처리) */
    .mb-user-page .jdti-form-step .btn-box-center,
    .mb-user-page .jdti-form-step .btn-box-left {
        padding-bottom: 0 !important;
    }

    .mup-back-link {
        display: none !important;
    }

    .mb-board button.mup-back-link {
        color:#fff !important;
    }

    .mup-form-inner {
        max-width: 100%;
        justify-content: flex-start;
        padding-bottom: 0 !important;   /* 모바일: sticky 버튼이 static으로 전환되므로 불필요 */
    }

    /* 모바일: 로그인 인풋 — 전체 보더 + 패딩 */
    body.mb-user-page .jdti-login-input,
    body.mb-user-page .jdti-login-input:focus,
    body.mb-user-page .jdti-login-input:active {
        border: 1.5px solid rgba(0, 0, 0, 0.38) !important;
        border-radius: 2px !important;
        background: #fff !important;
        background-color: #fff !important;
        padding: 0 14px !important;
    }

    /* 모바일: 테이블 폼 인풋/셀렉트 — 전체 보더 + 패딩 */
    .mb-user-page .table.table-write input[type="text"],
    .mb-user-page .table.table-write input[type="password"],
    .mb-user-page .table.table-write input[type="email"],
    .mb-user-page .table.table-write input[type="tel"],
    .mb-user-page .table.table-write input[type="number"],
    .mb-user-page .table.table-write select {
        border: 1.5px solid rgba(0, 0, 0, 0.38) !important;
        border-radius: 2px !important;
        background: #fff !important;
        padding: 6px 12px !important;
    }

    /* 모바일: 테이블 행 구분선 제거 */
    .mb-user-page .table.table-write > tbody > tr > td {
        border-bottom: none !important;
        padding: 8px 0 !important;
    }

    .mb-user-page .table.table-write > tbody > tr > th {
        padding: 12px 16px 0 0 !important;
    }

    /* 모바일: sticky 버튼 → 일반 흐름 */
    .jdti-agree-bar {
        position: static !important;
        margin: 24px 0 0 !important;
        padding: 0 !important;
        border-top: none !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}

/* ==========================================================
   비밀번호 재설정 페이지 (page-reset-password.php)
   ========================================================== */

/* 비밀번호 입력 래퍼 */
.jdti-pw-wrap {
    position: relative;
}

.jdti-pw-wrap .jdti-login-input {
    padding-right: 48px !important;
}

.jdti-pw-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
}

.jdti-pw-toggle:hover {
    color: #1A7FFF;
}

/* 비밀번호 강도 바 */
.jdti-pw-strength {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 20px;
}

.jdti-pw-strength-bar {
    height: 4px;
    border-radius: 2px;
    transition: width 0.3s ease, background 0.3s ease;
    flex-shrink: 0;
    max-width: 120px;
}

.jdti-pw-strength span {
    font-size: 12px;
    font-weight: 600;
}

/* ==========================================================
   마이페이지 레이아웃
   ========================================================== */

/* ── 전체 페이지 ── */
.is-mypage body,
body.is-mypage {
    background: #f4f5f7;
}

.mup-mp-page {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 24px 100px;
    box-sizing: border-box;
}

/* ── 상단 바 ── */
.mup-mp-topbar {
    width: 100%;
    max-width: 1120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 0 24px;
}

/* ── 바디: 프로필(좌) + 콘텐츠(우) ── */
.mup-mp-body {
    width: 100%;
    max-width: 1120px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* ── 우측 컬럼 ── */
.mup-mp-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mup-mp-topbar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.mup-mp-logo-img {
    height: 40px;
    width: auto;
}
.mup-mp-logo-text {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 900;
    color: #0A1F44;
    letter-spacing: 0.05em;
}

.mup-mp-home-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(0,0,0,0.4);
    text-decoration: none;
    transition: color 0.15s;
}
.mup-mp-home-link:hover { color: #0A1F44; }

/* ── 프로필 사이드카드 ── */
.mup-mp-hero {
    width: 260px;
    flex-shrink: 0;
    background: linear-gradient(160deg, #0A1F44 0%, #1C3060 60%, #0A2A5C 100%);
    border-radius: 20px;
    padding: 36px 28px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    position: sticky;
    top: 0;
    box-shadow: 0 8px 32px rgba(10,31,68,0.18);
    overflow: visible; /* absolute 버튼이 잘리지 않도록 */
}

/* 배경 워터마크 */
.mup-mp-hero::before {
    content: 'JDTI';
    position: absolute;
    right: -20px;
    bottom: -30px;
    font-family: 'Inter', 'Anton', sans-serif;
    font-size: 120px;
    font-weight: 900;
    color: rgba(255,255,255,0.04);
    letter-spacing: 0.05em;
    pointer-events: none;
    line-height: 1;
    border-radius: 20px; /* 배경과 함께 잘리도록 */
    clip-path: inset(0 0 0 0 round 20px);
}

/* ── 아바타 ── */
.mup-mp-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    cursor: pointer;
}

.mup-mp-avatar-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.25);
    display: block;
}

.mup-mp-avatar-initial {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 3px solid rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Pretendard', sans-serif;
    font-size: 44px;
    font-weight: 700;
    color: #fff;
}

/* 사진 편집 오버레이 버튼 */
.mup-mp-avatar-edit { display: none; }

/* 아바타 + 사진변경/삭제 묶음 */
.mup-mp-avatar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

/* 사진 변경/삭제 버튼 묶음 */
.mup-mp-photo-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 14px;
}

/* 사진 변경 버튼 */
.mup-mp-photo-change-link {
    display: inline-flex;
    align-items: center;
    padding: 0;
    background: none;
    border: none;
    color: rgba(100, 180, 255, 0.7);
    cursor: pointer;
    transition: color 0.2s;
}
.mup-mp-photo-change-link:hover { color: #7dd3fc; }

/* 사진 삭제 버튼 */
.mup-mp-photo-delete-link {
    display: inline-flex;
    align-items: center;
    padding: 0;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: color 0.2s;
}
.mup-mp-photo-delete-link:hover { color: #fca5a5; }

/* ── 구분선 ── */
.mup-mp-hero-info::before {
    content: '';
    display: block;
    width: 40px;
    height: 0px;
    background: rgba(255,255,255,0.12);
    margin: 20px auto 16px;
}

/* ── 히어로 액션 버튼 (로그아웃) ── */
.mup-mp-hero-actions {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 30px;
    width: auto;
}
.mup-mp-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 7px;
    font-family: 'Pretendard', sans-serif;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    cursor: pointer;
}
.mup-mp-action-admin {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
}
.mup-mp-action-admin:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}
.mup-mp-action-logout {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.45);
    border-radius: 7px;
    padding: 5px 11px;
    font-size: 11px;
}
.mup-mp-action-logout:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

/* 데스크탑 기본: 로그아웃 텍스트 표시 */
.mup-logout-text { display: inline; }

/* ── 히어로 텍스트 ── */
.mup-mp-hero-info {
    width: 100%;
    margin-top: 20px;
}

.mup-mp-hero-name-row {
    display: flex;
    justify-content: center;
    align-items: end;
    margin-bottom:10px;
    gap:7px;
}

.mup-mp-hero-name {
    font-family: 'Pretendard', sans-serif;
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: -0.02em;
    line-height:1;
}

.mup-mp-level-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    background: rgba(0,102,255,0.35);
    border: 1px solid rgba(0,102,255,0.5);
    border-radius: 20px;
    font-family: 'Pretendard', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mup-mp-hero-id {
    font-family: 'Inter', monospace;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    margin: 0 0 3px;
    letter-spacing: 0.01em;
    text-align: center;
}

.mup-mp-hero-email {
    font-family: 'Pretendard', sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin: 0;
    text-align: center;
    word-break: break-all;
}

/* ── 어드민 탭 네비 ── */
.mup-ap-tabs {
    width: 100%;
    max-width: none;
    display: flex;
    flex-wrap: nowrap;          /* 항상 한 줄 */
    gap: 4px;
    margin-bottom: 16px;
    background: #fff;
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow-x: auto;           /* 넘치면 스크롤 */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;      /* Firefox */
}
.mup-ap-tabs::-webkit-scrollbar { display: none; } /* Chrome/Safari */
.mup-ap-tab {
    flex: 1 0 auto;             /* 기본은 균등 분배, 좁아지면 내용 기준으로 고정 */
    min-width: 80px;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    text-align: center;
}
.mup-ap-tab:hover { background: #f3f4f6; color: #111; }
.mup-ap-tab.is-active {
    background: #0B0F15;
    color: #fff;
    font-weight: 600;
}

/* ── 탭 패널 ── */
.mup-ap-panel { display: none; }
.mup-ap-panel.is-active { display: block; }


/* ── 폼 카드 ── */
.mup-mp-form-wrap {
    width: 100%;
    max-width: none;
}

.mup-mp-form-card {
    background: #fff;
    border-radius: 20px;
    padding: 36px 40px 40px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.mup-mp-form-title {
    font-family: 'Pretendard', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    text-transform: none;
    margin-bottom: 0;
    padding-bottom: 16px;
    border-bottom: 0;
}

/* ── 마이페이지: 망보드 자동 생성 타이틀 숨김 ── */
body.is-mypage .mb-user-title {
    display: none !important;
}

/* ── 마이페이지: 폼 래퍼 상단 여백 제거 (아이디 위 공간/border 제거) ── */
body.is-mypage .mb-user-page .mb-user-template,
body.is-mypage .mb-user-page .main-style1,
body.is-mypage .mb-user-page #mb_users_board_box {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
}
body.is-mypage .mb-user-page #mb_form_user {
    margin: 0 !important;
}
.is-mypage .mb-user-page .table.table-write > tbody > tr:first-child th {
    padding-top: 0 !important;
}
.is-mypage .mb-user-page .table.table-write > tbody > tr:first-child td {
    padding-top: 0 !important;
    border-top: none !important;
}
/* 테이블 자체 상단 여백/라인 완전 제거 */
body.is-mypage .table.table-write {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
body.is-mypage .mb-user-page .table.table-write > tbody > tr:first-child > th,
body.is-mypage .mb-user-page .table.table-write > tbody > tr:first-child > td {
    border-top: none !important;
    padding-top: 0 !important;
}

/* ── 마이페이지: 썸네일 행 숨김 ── */
body.is-mypage .table.table-write tr:has(th[class*="thumbnail"]),
body.is-mypage .table.table-write tr.jdti-thumb-row {
    display: none !important;
}


/* ── 입력 필드 없는 행(텍스트/라디오만) — 수직 중앙 정렬 ── */
.is-mypage .mb-user-page .table.table-write tr.jdti-row-no-field th,
.is-mypage .mb-user-page .table.table-write tr.jdti-row-no-field td {
    vertical-align: middle !important;
    padding-top: 16px !important;
    padding-bottom: 16px !important;
}

/* ── 마이페이지 폼 필드 스타일 오버라이드 ── */
.is-mypage .mb-user-page .table.table-write {
    width: 100% !important;
}

.is-mypage .mb-user-page .table.table-write th {
    width: 110px !important;
    min-width: 110px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: rgba(0,0,0,0.45) !important;
    padding: 16px 16px 16px 0 !important;
    vertical-align: middle !important;
    white-space: nowrap;
    border-bottom: 1px solid rgba(0,0,0,0.06) !important;
}

.is-mypage .mb-user-page .table.table-write td {
    padding: 16px 0 !important;
    border-bottom: 1px solid rgba(0,0,0,0.06) !important;
    width: 100% !important;
}

/* 입력 필드 너비 제한 */
.is-mypage .mb-user-page .table.table-write td input[type="text"],
.is-mypage .mb-user-page .table.table-write td input[type="email"],
.is-mypage .mb-user-page .table.table-write td input[type="password"],
.is-mypage .mb-user-page .table.table-write td input[type="tel"],
.is-mypage .mb-user-page .table.table-write td select,
.is-mypage .mb-user-page .table.table-write td textarea {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.is-mypage .mb-user-page .table.table-write tr:last-child th,
.is-mypage .mb-user-page .table.table-write tr:last-child td {
    border-bottom: none !important;
}

/* ── 저장 버튼 바 ── */
.mup-mp-save-bar {
    margin-top: 32px;
    /* 항상 표시 — 비활성 시에는 버튼 스타일로 구분 */
}

.mup-mp-save-btn {
    width: 100%;
    height: 58px;
    background: rgba(0,0,0,0.08);
    color: rgba(0,0,0,0.3);
    border: none;
    border-radius: 14px;
    font-family: 'Pretendard', -apple-system, sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: not-allowed;
    transition: background 0.2s, color 0.2s, transform 0.1s;
}

/* 변경 사항 있을 때 활성화 */
.mup-mp-save-btn.is-active {
    background: #0A1F44;
    color: #fff;
    cursor: pointer;
}
.mup-mp-save-btn.is-active:hover  { background: #0066FF; }
.mup-mp-save-btn.is-active:active { transform: scale(0.99); }

/* ── 비밀번호 변경 모달 ── */
.jdti-pw-modal {
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 20, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
.jdti-pw-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}
.jdti-pw-modal-box {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    margin: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
    transform: translateY(10px) scale(0.97);
    transition: transform 0.2s;
}
.jdti-pw-modal.is-open .jdti-pw-modal-box {
    transform: translateY(0) scale(1);
}
.jdti-pw-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px 18px;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    font-family: 'Pretendard', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #0A1F44;
}
.jdti-pw-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    color: rgba(0,0,0,0.35);
    cursor: pointer;
    line-height: 1;
    padding: 0 2px;
    transition: color 0.12s;
}
.jdti-pw-modal-close:hover { color: #333; }
.jdti-pw-modal-body {
    padding: 24px 24px 8px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.jdti-pw-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.jdti-pw-field label {
    font-family: 'Pretendard', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: rgba(0,0,0,0.4);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.jdti-pw-field input {
    border: none !important;
    border-bottom: 1.5px solid rgba(0,0,0,0.12) !important;
    border-radius: 0 !important;
    background: transparent !important;
    font-family: 'Pretendard', sans-serif !important;
    font-size: 16px !important;
    color: #0A1F44 !important;
    padding: 6px 0 !important;
    height: 42px !important;
    outline: none !important;
    box-shadow: none !important;
    width: 100% !important;
    transition: border-color 0.15s !important;
}
.jdti-pw-field input:focus {
    border-bottom-color: #0A1F44 !important;
}
.jdti-pw-modal-error {
    display: none;
    font-family: 'Pretendard', sans-serif;
    font-size: 13px;
    color: #e53e3e;
    background: rgba(229,62,62,0.06);
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: -8px;
}
.jdti-pw-modal-footer {
    display: flex;
    gap: 10px;
    padding: 20px 24px 24px;
}
.jdti-pw-cancel,
.jdti-pw-submit {
    flex: 1;
    height: 50px;
    border: none;
    border-radius: 12px;
    font-family: 'Pretendard', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}
.jdti-pw-cancel {
    background: rgba(0,0,0,0.06);
    color: rgba(0,0,0,0.5);
}
.jdti-pw-cancel:hover { background: rgba(0,0,0,0.1); }
.jdti-pw-submit {
    background: #0A1F44;
    color: #fff;
}
.jdti-pw-submit:hover { background: #0066FF; }
.jdti-pw-submit:active { transform: scale(0.98); }
.jdti-pw-submit:disabled {
    background: rgba(0,0,0,0.08);
    color: rgba(0,0,0,0.25);
    cursor: not-allowed;
}

/* ── 모바일 ── */
@media (max-width: 860px) {
    .mup-mp-page { padding: 0 0 80px; }
    .mup-mp-topbar { padding: 10px 20px 10px; max-width: 100%; }
    .mup-mp-body {
        flex-direction: column;
        gap: 0;
    }
    .mup-mp-hero {
        width: 100%;
        flex-direction: row;
        text-align: left;
        border-radius: 0;
        padding: 33px 20px;
        position: relative;
        gap: 40px;
    }
    .mup-mp-avatar-col { align-items: center; gap:0px;}
    .mup-mp-hero-info { margin-top: 0; }
    .mup-mp-hero-info::before { display: none; }
    .mup-mp-hero-name-row {
        flex-direction: row;
        align-items: center;
        justify-content: start;
        margin-bottom: 10px;
        margin-top: 15px;   
    }
    .mup-mp-hero-id, .mup-mp-hero-email { text-align: left;}
    .mup-mp-photo-actions { justify-content: flex-start; margin-top: 10px; gap: 12px; }
    .mup-mp-hero-actions {position:absolute; bottom: 24px; right: 14px; margin-top:0;}
    .mup-mp-right { gap: 0;width: 100%; }
    .mup-ap-tabs {
        position: sticky;
        top: 0;
        z-index: 50;
        border-radius: 0;
        padding: 8px 16px;
        margin-bottom: 0;
        gap: 4px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.07);
        border-bottom: 1px solid #e5e7eb;
    }
    .mup-ap-tabs::-webkit-scrollbar { display: none; }
    .mup-ap-tab {
        flex: 0 0 auto;
        font-size: 14px;
        padding: 10px 14px 14px;
        min-width: unset;
        border-radius: 0;
        background: transparent !important;
        color: #6b7280;
        border-bottom: 2px solid transparent;
        margin-bottom: -8px;
    }
    .mup-ap-tab:hover { background: transparent !important; color: #111; }
    .mup-ap-tab.is-active {
        background: transparent !important;
        color: #111 !important;
        font-weight: 600;
        border-bottom-color: #0B0F15;
    }
    .mup-mp-form-card {
        border-radius: 0;
        padding: 24px 20px 40px;
        box-shadow: none;
    }
    .mup-mp-avatar-wrap { width: 64px; height: 64px; flex-shrink: 0; }
    .mup-mp-avatar-img,
    .mup-mp-avatar-initial { width: 64px; height: 64px; }
    .mup-mp-avatar-initial { font-size: 34px; }
    .mup-mp-hero-name { font-size: 30px; }
}

/* ==========================================================
   망보드 팝업 전체 리디자인
   ========================================================= */

/* ── 배경 오버레이 ── */
.pop-bg {
    background: rgba(5, 10, 20, 0.55) !important;
    background-image: none !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
}

/* ── 팝업 공통 ── */
.mb-pop {
    background: #fff !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 24px 60px rgba(0,0,0,0.22), 0 4px 16px rgba(0,0,0,0.1) !important;
    text-align: center !important;
    position: fixed !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    top: 50% !important;
    margin-top: -120px !important;
}

.mb-board .pop-alert,
.mb-board .pop-confirm {
    width: 100% !important;
    max-width: 360px !important;
    padding-bottom: 0 !important;
    padding: 0 !important;
}

/* ── 헤더 (Message 텍스트 영역) ── */
.mb-pop .pop-title-head {
    background: linear-gradient(135deg, #0A1F44, #1a3360) !important;
    color: #fff !important;
    font-family: 'Pretendard', sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    padding: 18px 24px !important;
    border-bottom: none !important;
    text-align: left !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

/* 헤더 앞 아이콘 */
.mb-pop .pop-title-head::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E") center/14px no-repeat;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── 메시지 본문 ── */
.mb-pop .pop-title {
    padding: 0 !important;
}
.mb-pop .pop-title-message {
    font-family: 'Pretendard', -apple-system, sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #1a1a2e !important;
    line-height: 1.6 !important;
    padding: 24px 24px 4px !important;
    text-align: left !important;
    word-break: keep-all !important;
}

/* confirm 텍스트 */
.mb-pop .pop-title-confirm {
    font-family: 'Pretendard', sans-serif !important;
    font-size: 14px !important;
    color: rgba(0,0,0,0.6) !important;
    padding: 8px 24px 4px !important;
    line-height: 1.6 !important;
    text-align: left !important;
}

/* ── 버튼 영역 ── */
.mb-pop .btn-box-center,
.mb-pop .btn-box-right,
.mb-pop .btn-box-left {
    padding: 16px 24px 24px !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    text-align: right !important;
}

/* ── 버튼 공통 ── */
.mb-pop .btn-default {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 44px !important;
    padding: 0 24px !important;
    border-radius: 12px !important;
    border: none !important;
    font-family: 'Pretendard', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background 0.15s, transform 0.1s !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    text-decoration: none !important;
}

/* 확인(OK) 버튼 */
.mb-pop .btn-ok,
.mb-pop .btn-default {
    background: #0A1F44 !important;
    color: #fff !important;
    min-width: 80px !important;
}
.mb-pop .btn-ok:hover,
.mb-pop .btn-default:hover {
    background: #0066FF !important;
    color: #fff !important;
}

/* 취소 버튼 */
.mb-pop .btn-cancel {
    background: rgba(0,0,0,0.06) !important;
    color: rgba(0,0,0,0.5) !important;
}
.mb-pop .btn-cancel:hover {
    background: rgba(0,0,0,0.1) !important;
    color: rgba(0,0,0,0.7) !important;
}

/* ── 애니메이션 ── */
.mb-board .pop-main .pop-confirm,
.mb-board .pop-main .pop-alert {
    opacity: 0 !important;
    transition: opacity 0.2s, transform 0.22s cubic-bezier(0.16,1,0.3,1) !important;
    transform: translateX(-50%) translateY(12px) scale(0.97) !important;
}
.mb-board .pop-main .mb-ani-pop-open {
    opacity: 1 !important;
    transform: translateX(-50%) translateY(0) scale(1) !important;
}


/* =========================================================
   어드민 패널 공통 스타일
   ========================================================= */

/* ── 섹션 헤더 (제목 + 버튼 한줄) ── */
.mup-ap-section-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.mup-ap-section-hd .mup-mp-form-title { margin-bottom: 0; }

/* ── 설명 텍스트 ── */
.mup-ap-desc {
    font-size: 13px;
    color: #6b7280;
    margin: -8px 0 20px;
}

/* ── 새 공지 버튼 ── */
.mup-ap-new-btn {
    padding: 8px 16px;
    background: #0B0F15;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
}
.mup-ap-new-btn:hover { opacity: 0.8; }

/* ── 저장 버튼 (ACF form) ── */
/* ── 폼 버튼: page.css .btn--primary 와 동일한 스타일 유지 ── */
.mup-ap-save-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 24px;
    background: #0066FF;
    color: #fff;
    border: none;
    border-radius: var(--radius-sm, 6px);
    font-family: 'Pretendard', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
    white-space: nowrap;
}
.mup-ap-save-btn:hover { background: #0055dd; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,102,255,0.25); }

/* ── 공지 작성 폼 ── */
.mup-ap-write-form {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
/* ── 폼 입력: page.css .nf-input 과 동일한 스타일 유지 ── */
.mup-ap-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid rgba(0,0,0,0.14);
    border-radius: 2px;
    font-size: 15px;
    font-family: 'Pretendard', sans-serif;
    color: #111827;
    background: #fff;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.mup-ap-input:focus { border-color: #0066FF; box-shadow: 0 0 0 3px rgba(0,102,255,0.12); }
.mup-ap-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 2px;
    font-size: 14px;
    font-family: 'Pretendard', sans-serif;
    outline: none;
    box-sizing: border-box;
    resize: vertical;
    transition: border-color 0.15s;
}
.mup-ap-textarea:focus { border-color: #0066FF; }
.mup-ap-check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    padding-left: 14px;
}
.mup-ap-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
/* ── 취소 버튼: page.css .btn--outline-dark 와 동일한 스타일 유지 ── */
.mup-ap-cancel-btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 18px;
    border: 1.5px solid rgba(28,37,51,0.25);
    background: transparent;
    border-radius: var(--radius-sm, 6px);
    font-family: 'Pretendard', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    color: #374151;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.mup-ap-cancel-btn:hover { background: rgba(28,37,51,0.05); border-color: rgba(28,37,51,0.4); }
.mup-ap-msg {
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 4px;
}
.mup-ap-msg.is-ok { background: #d1fae5; color: #065f46; }
.mup-ap-msg.is-error { background: #fee2e2; color: #991b1b; }

/* ── 사이트 설정 이미지 그리드 ── */
.jdti-ss-img-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 860px) {
    .jdti-ss-img-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .jdti-ss-img-grid { grid-template-columns: 1fr; }
}
.jdti-ss-img-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 16px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    background: #f9fafb;
}
.jdti-ss-img-card-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-align: center;
    margin: 0;
    letter-spacing: 0.02em;
}
.jdti-ss-img-card-preview {
    width: 100%;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}
.jdti-ss-img-preview {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.jdti-ss-img-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 12px;
    color: #c4c9d4;
}
.jdti-ss-img-card-btns {
    display: flex;
    flex-direction: row;
    gap: 6px;
    width: 100%;
}
.jdti-ss-img-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    border: 1.5px solid transparent;
    cursor: pointer;
    line-height: 1;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    font-family: 'Pretendard', sans-serif;
}
.jdti-ss-img-btn--upload {
    background: #e0edff;
    color: #1d63d8;
    border-color: #b3d0ff;
}
.jdti-ss-img-btn--upload:hover {
    background: #c7dfff;
    border-color: #80b4ff;
}
.jdti-ss-img-btn--delete {
    background: #fff0f0;
    color: #c0392b;
    border-color: #fbd0cc;
}
.jdti-ss-img-btn--delete:hover {
    background: #ffd8d5;
    border-color: #f5a49e;
}
.mup-ap-hint {
    font-size: 11px;
    color: #9ca3af;
    margin: 0;
}

/* ── 공지 목록 ── */
.mup-ap-list { display: flex; flex-direction: column; gap: 8px; }
.mup-ap-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    gap: 12px;
}
.mup-ap-list-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.mup-ap-list-title {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}
.mup-ap-list-date {
    font-size: 12px;
    color: #9ca3af;
    white-space: nowrap;
}
.mup-ap-pin-badge {
    font-size: 11px;
    font-weight: 600;
    color: #0066FF;
    background: #eff6ff;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
}
.mup-ap-private-badge {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    background: #f3f4f6;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
}
.mup-ap-list-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.mup-ap-view-link,
.mup-ap-edit-link,
.mup-ap-edit-btn {
    display: inline-flex;
    height:30px;
    align-items: center;
    padding: 5px 12px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    cursor: pointer;
    background: #fff;
    border: 1px solid #d1d5db;
    font-family: 'Pretendard', sans-serif;
    white-space: nowrap;
    transition: background 0.12s, border-color 0.12s;
}
.mup-ap-view-link:hover,
.mup-ap-edit-link:hover,
.mup-ap-edit-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #111;
    text-decoration: none;
}
.mup-ap-del-btn {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 7px;
    font-size: 12px;
    height:30px;
    font-weight: 500;
    color: #ef4444;
    background: #fff;
    border: 1px solid rgba(239, 68, 68, 0.3);
    cursor: pointer;
    font-family: 'Pretendard', sans-serif;
    white-space: nowrap;
    transition: background 0.12s, border-color 0.12s;
}
.mup-ap-del-btn:hover {
    background: #fef2f2;
    border-color: #ef4444;
    text-decoration: none;
}
.mup-ap-load-more-btn {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    font-family: 'Pretendard', sans-serif;
    transition: background 0.12s;
}
.mup-ap-load-more-btn:hover { background: #f3f4f6; }
.mup-ap-load-more-btn:disabled { opacity: 0.5; cursor: default; }

/* ── 공지사항 모달 ── */
.mup-notice-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.mup-notice-modal.is-open { display: flex; }
.mup-notice-modal-box {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    overflow: hidden;
}
.mup-notice-modal-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 16px;
    font-weight: 700;
    color: #111;
    flex-shrink: 0;
}
.mup-notice-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 18px;
    color: #6b7280;
    cursor: pointer;
    line-height: 1;
    transition: background 0.12s, color 0.12s;
}
.mup-notice-modal-close:hover { background: #e5e7eb; color: #111; }
.mup-notice-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mup-notice-modal-ft {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 24px;
    border-top: 1px solid #f3f4f6;
    flex-shrink: 0;
}

/* ── 공지사항 보기 모달 ── */
.mup-notice-view-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9001;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.mup-notice-view-modal.is-open { display: flex; }
.mup-notice-view-box {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    overflow: hidden;
}
.mup-notice-view-hd {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 24px 20px;
    border-bottom: 1px solid #f3f4f6;
    flex-shrink: 0;
}
.mup-notice-view-meta { flex: 1; min-width: 0; }
.mup-notice-view-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #0066FF;
    background: rgba(0, 102, 255, 0.08);
    border-radius: 5px;
    padding: 2px 8px;
    margin-bottom: 8px;
}
.mup-notice-view-title {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin: 0 0 8px;
    line-height: 1.4;
    word-break: keep-all;
}
.mup-notice-view-date { font-size: 13px; color: #9ca3af; }
.mup-notice-view-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    font-size: 15px;
    line-height: 1.8;
    color: #374151;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    word-break: keep-all;
}
.mup-notice-view-body p  { margin: 0 0 1em; }
.mup-notice-view-body ul,
.mup-notice-view-body ol { padding-left: 1.5em; margin-bottom: 1em; }
.mup-notice-view-body li { margin-bottom: 0.3em; }
.mup-notice-view-body strong { font-weight: 700; }
.mup-notice-view-body a { color: #0066FF; text-decoration: underline; }

.mup-ap-cat-badge {
    font-size: 11px;
    font-weight: 600;
    color: #0066FF;
    background: rgba(0, 102, 255, 0.08);
    border-radius: 5px;
    padding: 2px 7px;
    white-space: nowrap;
}
.mup-notice-title-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.mup-notice-title-row .mup-ap-input {
    flex: 1;
    margin-bottom: 0;
}
.mup-ap-select {
    width: 100%;
    padding: 10px 32px 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 2px;
    font-size: 14px;
    font-family: 'Pretendard', sans-serif;
    outline: none;
    box-sizing: border-box;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 0.15s;
}
.mup-ap-select--inline {
    width: auto;
    min-width: 120px;
    flex-shrink: 0;
}
.mup-ap-select:focus { border-color: #0066FF; }
.mup-ap-empty {
    font-size: 14px;
    color: #9ca3af;
    padding: 24px 0;
    text-align: center;
}

/* ── 회원 관리 ── */
.mup-ap-member-section { margin-bottom: 32px; }
.mup-ap-member-section:last-child { margin-bottom: 0; }
.mup-ap-member-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #111;
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}
.mup-ap-member-hd-label {
    display: flex;
    align-items: center;
    gap: 6px;
}
.mup-ap-count-sep {
    color: #d1d5db;
    font-weight: 400;
    font-size: 12px;
}
.mup-ap-count-hint {
    font-size: 11px;
    font-weight: 400;
    color: #9ca3af;
}
.mup-ap-count--pending { background: #f59e0b !important; }
.mup-ap-count--approved { background: #10b981 !important; }

/* 승인 필요 토글 */
.mup-ap-toggle-wrap {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    flex-shrink: 0;
}
.mup-ap-toggle-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
}
.mup-ap-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.mup-ap-toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.mup-ap-toggle-slider {
    position: absolute;
    inset: 0;
    background: #d1d5db;
    border-radius: 999px;
    transition: background 0.2s;
    cursor: pointer;
}
.mup-ap-toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.mup-ap-toggle-input:checked + .mup-ap-toggle-slider { background: #0066FF; }
.mup-ap-toggle-input:checked + .mup-ap-toggle-slider::before { transform: translateX(20px); }

/* 역할 전환 셀렉트 */
.mup-ap-role-select {
    padding: 6px 8px;
    font-size: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 2px;
    background: #fff;
    color: #374151;
    cursor: pointer;
    outline: none;
    min-width: 120px;
}
.mup-ap-role-select:focus { border-color: #0066FF; }
.mup-ap-role-select:disabled { opacity: 0.5; cursor: not-allowed; }

/* 상태 뱃지 */
.mup-ap-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}
.mup-ap-status--pending { background: #fef3c7; color: #92400e; }
.mup-ap-status--approved { background: #d1fae5; color: #065f46; }

.mup-ap-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: #0B0F15;
    color: #fff;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}
.mup-ap-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.mup-ap-table th {
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid #e5e7eb;
    color: #6b7280;
    font-weight: 600;
    font-size: 14px;        
}
.mup-ap-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    vertical-align: middle;
    font-size: 15px;
    font-weight: 600;
}
.mup-ap-table tr:last-child td { border-bottom: none; }
.mup-ap-action-cell { display: flex; gap: 6px; align-items: center; }
.mup-ap-action-cell--col { flex-direction: column; align-items: flex-start; gap: 8px; }
.mup-ap-action-btns { display: flex; gap: 6px; align-items: center; }
.mup-ap-approve-btn {
    padding: 5px 12px;
    background: #0066FF;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
}
.mup-ap-approve-btn:hover { opacity: 0.8; }
.mup-ap-reject-btn {
    padding: 5px 12px;
    background: #fff;
    color: #ef4444;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.mup-ap-reject-btn:hover { background: #fef2f2; }
.mup-ap-notice {
    font-size: 14px;
    color: #6b7280;
    padding: 20px 0;
}

/* ── 회원 관리 내부 탭 ── */
.mup-mb-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e5e7eb;
}
.mup-mb-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #6b7280;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    margin-bottom: -1px;
    white-space: nowrap;
}
.mup-mb-tab:hover { color: #111; }
.mup-mb-tab.is-active {
    color: #111;
    border-bottom-color: #0066FF;
}
.mup-mb-panel { display: none; }
.mup-mb-panel.is-active { display: block; }

/* ── 검색 헤더 ── */
.mup-mb-panel-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}
.mup-mb-search-wrap {
    position: relative;
    flex: 1;
    max-width: 280px;
}
.mup-mb-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}
.mup-mb-search {
    width: 100%;
    padding: 7px 10px 7px 32px;
    font-size: 13px;
    border: 1px solid #e5e7eb;
    border-radius: 2px;
    outline: none;
    color: #374151;
    background: #fafafa;
    box-sizing: border-box;
    transition: border-color 0.15s;
}
.mup-mb-search:focus { border-color: #0066FF; background: #fff; }
.mup-mb-search::placeholder { color: #9ca3af; }

/* ── 페이지네이션 ── */
.mup-mb-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
    flex-wrap: wrap;
}
.mup-mb-pager:empty { display: none; }
.mup-mb-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 6px;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.mup-mb-page-btn:hover { background: #f3f4f6; }
.mup-mb-page-btn.is-active {
    background: #0066FF;
    color: #fff;
    border-color: #0066FF;
}
.mup-mb-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.mup-mb-no-result {
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
}

/* ── 이름 셀 클릭 스타일 ── */
.mup-mb-name-cell {
    cursor: pointer !important;
    color: #111 !important;
    font-weight: 600 !important;
}
.mup-mb-name-cell:hover { color: #0066FF !important; text-decoration: underline; }

/* ── 회원 상세 모달 ── */
.mup-md-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.mup-md-modal {
    position: relative;
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
    padding: 28px 28px 32px;
    box-sizing: border-box;
    animation: mupMdIn 0.18s ease;
}
@keyframes mupMdIn {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to   { opacity: 1; transform: none; }
}
.mup-md-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: background 0.15s;
}
.mup-md-close:hover { background: #e5e7eb; color: #111; }

/* 헤더 */
.mup-md-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-right: 36px;
}
.mup-md-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #0B0F15;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mup-md-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.mup-md-avatar-initial {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    font-family: 'Pretendard', sans-serif;
}
.mup-md-name {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin-bottom: 4px;
}
.mup-md-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.mup-md-role-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    background: #f0f4ff;
    color: #0066FF;
}
.mup-md-id {
    font-size: 12px;
    color: #9ca3af;
}

/* 상세 필드 목록 */
.mup-md-list {
    margin: 0;
    padding: 0;
    border-top: 1px solid #f3f4f6;
}
.mup-md-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
}
.mup-md-row:last-child { border-bottom: none; }
.mup-md-row dt {
    min-width: 80px;
    color: #9ca3af;
    font-weight: 500;
    flex-shrink: 0;
}
.mup-md-row dd {
    margin: 0;
    color: #111;
    font-weight: 500;
    word-break: break-all;
}
.mup-md-loading {
    padding: 32px 0;
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
}
.mup-md-err {
    padding: 32px 0;
    text-align: center;
    font-size: 13px;
    color: #ef4444;
}

/* ── 콘텐츠 내용관리 폼 ── */
.mup-cm-page-select-wrap {
    margin-bottom: 24px;
}
.mup-cm-page-select-label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #9ca3af;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.mup-cm-page-select {
    width: 100%;
    max-width: 320px;
    padding: 10px 36px 10px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Pretendard', sans-serif;
    color: #111827;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}
.mup-cm-page-select:focus {
    border-color: #0066FF;
    box-shadow: 0 0 0 3px rgba(0,102,255,0.12);
}

/* 페이지별 섹션 */
.mup-cm-page-section { display: none; }
.mup-cm-page-section.is-active { display: block; }

/* 슬라이드 섹션 카드 */
.mup-cm-slide {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 18px;
}
.mup-cm-slide:last-of-type { margin-bottom: 0; }
.mup-cm-slide-hd {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}
.mup-cm-slide-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: #0B0F15;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}
.mup-cm-slide-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

/* 주의사항 박스 */
.mup-cm-caution {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 12.5px;
    color: #92400e;
    line-height: 1.5;
}
.mup-cm-caution-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    color: #d97706;
}

/* 필드 행 */
.mup-cm-field {
    margin-bottom: 16px;
}
.mup-cm-field:last-child { margin-bottom: 0; }
.mup-cm-field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}
.mup-cm-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Pretendard', sans-serif;
    color: #111827;
    outline: none;
    box-sizing: border-box;
    resize: vertical;
    line-height: 1.6;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.mup-cm-textarea:focus {
    border-color: #0066FF;
    box-shadow: 0 0 0 3px rgba(0,102,255,0.10);
}
.mup-cm-field-hint {
    font-size: 11.5px;
    color: #9ca3af;
    margin-top: 4px;
}

/* 영상 업로드 영역 */
.mup-cm-video-wrap {
    border: 1.5px dashed #d1d5db;
    border-radius: 10px;
    padding: 16px;
    background: #fff;
}
.mup-cm-video-preview {
    display: none;
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    position: relative;
}
.mup-cm-video-preview.has-video { display: block; }
.mup-cm-video-preview video {
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    display: block;
}
.mup-cm-video-preview-name {
    font-size: 12px;
    color: #6b7280;
    padding: 6px 10px;
    background: #f3f4f6;
    border-radius: 0 0 8px 8px;
    word-break: break-all;
}
.mup-cm-video-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.mup-cm-video-select-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    background: #fff;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}
.mup-cm-video-select-btn:hover {
    border-color: #0066FF;
    color: #0066FF;
}
.mup-cm-video-remove-btn {
    display: none;
    padding: 9px 14px;
    background: #fff;
    border: 1.5px solid #fca5a5;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #ef4444;
    cursor: pointer;
    transition: background 0.15s;
}
.mup-cm-video-remove-btn.is-visible { display: inline-flex; align-items: center; gap: 6px; }
.mup-cm-video-remove-btn:hover { background: #fef2f2; }
.mup-cm-video-url-input { display: none; } /* hidden, AJAX payload에 포함 */

/* 저장 푸터 */
.mup-cm-form-footer {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}
.mup-cm-save-msg {
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 8px;
    display: none;
}
.mup-cm-save-msg.is-ok { display: block; background: #d1fae5; color: #065f46; }
.mup-cm-save-msg.is-error { display: block; background: #fee2e2; color: #991b1b; }

/* ─── About WYSIWYG 에디터 ─── */
.mup-cm-about-wrap { display: flex; flex-direction: column; gap: 16px; }

.mup-cm-about-section { border-radius: 14px; overflow: hidden; border: 1px solid #e5e7eb; }
.mup-cm-about-section-hd {
    padding: 16px 24px;
    display: flex; align-items: baseline; gap: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    background: #f9fafb;
}
.mup-cm-about-section-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #0066FF; }
.mup-cm-about-section-name { font-size: 18px; font-weight: 800; color: #111827; }
.mup-cm-about-section-body { padding: 24px; background: #fff; }

.mup-cm-about-section--dark { border-color: rgba(255,255,255,0.08); }
.mup-cm-about-section--dark .mup-cm-about-section-hd { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.07); }
.mup-cm-about-section--dark .mup-cm-about-section-tag { color: #60a5fa; }
.mup-cm-about-section--dark .mup-cm-about-section-name { color: #fff; }
.mup-cm-about-section--dark .mup-cm-about-section-body { background: #0B0F15; }
.mup-cm-about-section--dark .mup-cm-about-field-label { color: rgba(255,255,255,0.3); }

.mup-cm-about-field-label {
    display: block; font-size: 11px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase; color: #9ca3af;
    margin-bottom: 6px; margin-top: 22px;
}
.mup-cm-about-field-label:first-child { margin-top: 0; }

.mup-cm-about-textarea {
    width: 100%; border: none; border-bottom: 1.5px dashed #d1d5db;
    border-radius: 0; padding: 8px 2px;
    font-family: 'Pretendard', sans-serif; background: transparent; outline: none;
    resize: none; box-sizing: border-box; transition: border-color 0.15s, background 0.15s;
    color: #374151; line-height: 1.7;
}
.mup-cm-about-textarea:focus {
    border-bottom-color: #0066FF;
    background: rgba(0,102,255,0.025);
    border-radius: 4px 4px 0 0; padding-left: 6px;
}
.mup-cm-about-textarea--lead { font-size: 17px; font-weight: 600; color: #1f2937; }
.mup-cm-about-textarea--body { font-size: 14px; color: #4b5563; }

.mup-cm-about-section--dark .mup-cm-about-textarea { color: rgba(255,255,255,0.75); border-bottom-color: rgba(255,255,255,0.12); }
.mup-cm-about-section--dark .mup-cm-about-textarea:focus { border-bottom-color: #60a5fa; background: rgba(255,255,255,0.03); }

.mup-cm-about-input {
    display: block; width: 100%; padding: 9px 12px;
    border: 1.5px solid #e5e7eb; border-radius: 8px;
    font-family: 'Pretendard', sans-serif; font-size: 14px; color: #1f2937;
    background: #fff; outline: none; box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.mup-cm-about-input:focus { border-color: #0066FF; box-shadow: 0 0 0 3px rgba(0,102,255,0.10); }

.mup-cm-about-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }

.mup-cm-about-img-wrap {
    position: relative; overflow: hidden; border-radius: 10px;
    background: #f3f4f6; cursor: pointer; border: 1.5px solid #e5e7eb;
}
.mup-cm-about-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mup-cm-about-img-placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; min-height: 160px; color: #9ca3af; font-size: 13px; font-weight: 500;
}
.mup-cm-about-img-placeholder svg { width: 28px; height: 28px; opacity: 0.4; }
.mup-cm-about-img-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0);
    display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.mup-cm-about-img-wrap:hover .mup-cm-about-img-overlay { background: rgba(0,0,0,0.45); }
.mup-cm-about-img-overlay-btn {
    opacity: 0; transform: translateY(4px); transition: opacity 0.2s, transform 0.2s;
    display: flex; align-items: center; gap: 6px; padding: 8px 14px;
    background: #fff; border-radius: 8px;
    font-family: 'Pretendard', sans-serif; font-size: 13px; font-weight: 600; color: #111827;
    border: none; cursor: pointer;
}
.mup-cm-about-img-wrap:hover .mup-cm-about-img-overlay-btn { opacity: 1; transform: translateY(0); }

.mup-cm-about-numbered { display: flex; flex-direction: column; }
.mup-cm-about-numbered-item {
    display: grid; grid-template-columns: 28px 1fr auto; gap: 10px;
    align-items: start; padding: 12px 0; border-bottom: 1px solid #f3f4f6;
}
.mup-cm-about-numbered-item:last-child { border-bottom: none; padding-bottom: 0; }
.mup-cm-about-num-badge {
    width: 26px; height: 26px;
    background: rgba(0,102,255,0.07); border: 1px solid rgba(0,102,255,0.15);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 700; color: #0066FF; flex-shrink: 0; margin-top: 8px;
}

.mup-cm-about-list { display: flex; flex-direction: column; gap: 6px; }
.mup-cm-about-list-item { display: flex; align-items: center; gap: 8px; }
.mup-cm-about-list-input {
    flex: 1; padding: 8px 11px;
    border: 1.5px solid rgba(255,255,255,0.1); border-radius: 8px;
    background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.8);
    font-family: 'Pretendard', sans-serif; font-size: 13.5px;
    outline: none; transition: border-color 0.15s;
}
.mup-cm-about-list-input:focus { border-color: #60a5fa; }
.mup-cm-about-list-input--light { border-color: #e5e7eb; background: #fff; color: #1f2937; }
.mup-cm-about-list-input--light:focus { border-color: #0066FF; }
.mup-cm-about-list-del {
    flex-shrink: 0; width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid rgba(255,255,255,0.1); border-radius: 7px;
    background: transparent; color: rgba(255,255,255,0.3); cursor: pointer;
    font-size: 16px; line-height: 1; transition: color 0.15s, border-color 0.15s;
}
.mup-cm-about-list-del:hover { color: #fc8181; border-color: rgba(252,129,129,0.4); }
.mup-cm-about-list-del--light { border-color: #e5e7eb; color: #9ca3af; }
.mup-cm-about-list-del--light:hover { color: #ef4444; border-color: #fca5a5; }
.mup-cm-about-list-add {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%; margin-top: 8px; padding: 8px 14px;
    border: 1.5px dashed rgba(255,255,255,0.18); border-radius: 8px;
    background: transparent; color: rgba(255,255,255,0.4);
    font-family: 'Pretendard', sans-serif; font-size: 13px; font-weight: 600;
    cursor: pointer; transition: color 0.15s, border-color 0.15s;
    box-sizing: border-box;
}
.mup-cm-about-list-add:hover { color: #60a5fa; border-color: rgba(96,165,250,0.4); }
.mup-cm-about-list-add--light { border-color: #d1d5db; color: #6b7280; }
.mup-cm-about-list-add--light:hover { color: #0066FF; border-color: #93c5fd; }

/* ── 반응형 ── */
@media (max-width: 600px) {
    .mup-ap-table th:nth-child(3),
    .mup-ap-table td:nth-child(3) { display: none; }
    .mup-cm-page-select { max-width: 100%; }
    .mup-cm-slide { padding: 16px; }
    .mup-cm-about-grid-2 { grid-template-columns: 1fr; }
    .mup-cm-about-section-body { padding: 16px; }
    .mup-cm-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .mup-cm-feat-grid { grid-template-columns: 1fr; }
}

/* ─── 교육내용 서브탭 ─── */
.mup-cm-edu-subtabs {
    display: flex; gap: 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 20px;
}
.mup-cm-edu-subtab {
    padding: 11px 22px;
    font-size: 14px; font-weight: 700; font-family: 'Pretendard', sans-serif;
    color: #9ca3af; background: none; border: none; cursor: pointer;
    border-bottom: 2px solid transparent; margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}
.mup-cm-edu-subtab.is-active { color: #1C2533; border-bottom-color: #0066FF; }
.mup-cm-edu-subtab-panel { display: none; }
.mup-cm-edu-subtab-panel.is-active { display: block; }

/* ─── 검정 안내 섹션 (page: #2C3A50) ─── */
.mup-cm-about-section--exam { border-color: rgba(255,255,255,0.08); }
.mup-cm-about-section--exam .mup-cm-about-section-hd { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.07); }
.mup-cm-about-section--exam .mup-cm-about-section-tag { color: #93c5fd; }
.mup-cm-about-section--exam .mup-cm-about-section-name { color: #fff; }
.mup-cm-about-section--exam .mup-cm-about-section-body { background: #2C3A50; }
.mup-cm-about-section--exam .mup-cm-about-field-label { color: rgba(255,255,255,0.45); }
.mup-cm-about-section--exam .mup-cm-about-input {
    background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85);
}
.mup-cm-about-section--exam .mup-cm-about-input:focus {
    border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(147,197,253,0.10);
}
.mup-cm-exam-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.mup-cm-exam-card {
    background: rgba(28,37,51,0.7); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px; padding: 16px; position: relative; overflow: hidden;
}
.mup-cm-exam-card--written { border-top: 3px solid rgba(255,255,255,0.3); }
.mup-cm-exam-card--prac    { border-top: 3px solid #0066FF; }
.mup-cm-exam-card-title {
    font-size: 13px; font-weight: 800; color: #fff; margin-bottom: 12px;
    font-family: 'Pretendard', sans-serif; letter-spacing: -0.02em;
}
.mup-cm-exam-card .mup-cm-about-field-label { color: rgba(255,255,255,0.35); margin-top: 10px; }
.mup-cm-exam-card .mup-cm-about-input {
    background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8); font-size: 13px;
}

/* ─── 갤러리 섹션 ─── */
.mup-cm-gallery-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px;
}
.mup-cm-gallery-item {
    position: relative; aspect-ratio: 4/3; background: rgba(255,255,255,0.05);
    border-radius: 8px; overflow: hidden; border: 1.5px solid rgba(255,255,255,0.08);
    cursor: pointer;
}
.mup-cm-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.2s; }
.mup-cm-gallery-item:hover img { opacity: 0.7; }
.mup-cm-gallery-item-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.2s;
}
.mup-cm-gallery-item:hover .mup-cm-gallery-item-overlay { opacity: 1; }
.mup-cm-gallery-item-overlay-btn {
    display: flex; align-items: center; gap: 5px;
    background: rgba(0,0,0,0.7); color: #fff; font-size: 11px; font-weight: 600;
    padding: 6px 10px; border-radius: 6px; border: none; pointer-events: none;
    font-family: 'Pretendard', sans-serif;
}
.mup-cm-gallery-item-del {
    position: absolute; top: 6px; right: 6px;
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(0,0,0,0.6); border: none; cursor: pointer;
    color: rgba(255,255,255,0.8); font-size: 13px;
    display: flex; align-items: center; justify-content: center;
    line-height: 1; transition: background 0.15s;
}
.mup-cm-gallery-item-del:hover { background: rgba(239,68,68,0.8); color: #fff; }
.mup-cm-gallery-item-placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 5px; color: rgba(255,255,255,0.25); font-size: 11px;
    min-height: 80px; pointer-events: none;
}
.mup-cm-gallery-add {
    aspect-ratio: 4/3; background: rgba(255,255,255,0.03);
    border: 1.5px dashed rgba(255,255,255,0.12); border-radius: 8px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px; cursor: pointer; color: rgba(255,255,255,0.3); font-size: 12px;
    font-family: 'Pretendard', sans-serif; font-weight: 600;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    background: none; border-style: dashed;
}
.mup-cm-gallery-add:hover { background: rgba(0,102,255,0.08); border-color: rgba(0,102,255,0.3); color: #60a5fa; }

/* ─── 교육 특징 그리드 ─── */
.mup-cm-feat-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px;
}
.mup-cm-feat-card {
    background: #f9fafb; border: 1.5px solid #e5e7eb; border-radius: 10px;
    padding: 14px 16px;
}
.mup-cm-feat-card-num {
    font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700;
    color: #9ca3af; letter-spacing: 0.15em; margin-bottom: 8px; display: block;
    border-bottom: 1px solid #f3f4f6; padding-bottom: 6px;
}
.mup-cm-feat-card .mup-cm-about-field-label { margin-top: 0; font-size: 11px; }
.mup-cm-feat-card .mup-cm-about-field-label + .mup-cm-about-input { margin-bottom: 8px; }
.mup-cm-feat-card .mup-cm-about-textarea { font-size: 13px; }

/* ─── 과정 소개 프리뷰 ─── */
.mup-cm-intro-preview {
    background: #f8faff; border: 1px solid #e0eaff; border-radius: 10px;
    padding: 16px 20px; margin-bottom: 16px;
}
.mup-cm-intro-preview-label {
    font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
    color: #0066FF; margin-bottom: 4px; display: block;
}
.mup-cm-intro-preview-title {
    font-size: 17px; font-weight: 800; color: #1C2533; font-family: 'Pretendard', sans-serif;
    letter-spacing: -0.04em;
}

/* ─── 드래그 핸들 ─── */
.mup-cm-drag-handle {
    cursor: grab; flex-shrink: 0;
    color: rgba(255,255,255,0.2); font-size: 15px; line-height: 1;
    padding: 0 3px; user-select: none; transition: color 0.15s;
}
.mup-cm-drag-handle:active { cursor: grabbing; }
.mup-cm-drag-handle:hover { color: rgba(255,255,255,0.5); }
.mup-cm-about-section:not(.mup-cm-about-section--dark):not(.mup-cm-about-section--exam) .mup-cm-drag-handle { color: #d1d5db; }
.mup-cm-about-section:not(.mup-cm-about-section--dark):not(.mup-cm-about-section--exam) .mup-cm-drag-handle:hover { color: #9ca3af; }
.mup-cm-about-list-item.is-dragging { opacity: 0.35; }
.mup-cm-about-list-item.drag-over-top { box-shadow: 0 -2px 0 #0066FF; border-radius: 0; }
.mup-cm-about-list-item.drag-over-bottom { box-shadow: 0 2px 0 #0066FF; border-radius: 0; }
.mup-cm-about-list-item { align-items: center; }

/* ─── 라이트 섹션 내 리스트 아이템 색상 ─── */
.mup-cm-about-section:not(.mup-cm-about-section--dark):not(.mup-cm-about-section--exam) .mup-cm-about-list-input {
    border-color: #d1d5db; background: #fff; color: #1f2937;
}
.mup-cm-about-section:not(.mup-cm-about-section--dark):not(.mup-cm-about-section--exam) .mup-cm-about-list-input:focus { border-color: #0066FF; }
.mup-cm-about-section:not(.mup-cm-about-section--dark):not(.mup-cm-about-section--exam) .mup-cm-about-list-del {
    border-color: #e5e7eb; color: #9ca3af; background: #fff;
}
.mup-cm-about-section:not(.mup-cm-about-section--dark):not(.mup-cm-about-section--exam) .mup-cm-about-list-del:hover { color: #ef4444; border-color: #fca5a5; }
.mup-cm-about-section:not(.mup-cm-about-section--dark):not(.mup-cm-about-section--exam) .mup-cm-about-list-add {
    border-color: #d1d5db; color: #6b7280;
}
.mup-cm-about-section:not(.mup-cm-about-section--dark):not(.mup-cm-about-section--exam) .mup-cm-about-list-add:hover { color: #0066FF; border-color: #93c5fd; }
.mup-cm-about-section:not(.mup-cm-about-section--dark):not(.mup-cm-about-section--exam) .mup-cm-list-move { color: #d1d5db; }
.mup-cm-about-section:not(.mup-cm-about-section--dark):not(.mup-cm-about-section--exam) .mup-cm-list-move:hover { color: #0066FF; }

/* ─── 커리큘럼 단계 카드 ─── */
.mup-cm-curr-step {
    margin-bottom: 14px; padding: 16px 18px;
    border-radius: 10px; background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
}
.mup-cm-curr-step:last-child { margin-bottom: 0; }
.mup-cm-curr-step-hd {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 12px; padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mup-cm-curr-step-num {
    font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700;
    color: rgba(0,102,255,0.7); letter-spacing: 0.15em;
}

/* ─── 갤러리 아이템 이동/삭제 버튼 ─── */
.mup-cm-gallery-item-moves {
    position: absolute; bottom: 5px; left: 5px;
    display: flex; flex-direction: row; gap: 3px;
    opacity: 0; transition: opacity 0.15s; z-index: 2;
}
.mup-cm-gallery-item:hover .mup-cm-gallery-item-moves,
.mup-cm-gallery-item:focus-within .mup-cm-gallery-item-moves { opacity: 1; }
.mup-cm-gallery-item-move {
    width: 24px; height: 24px;
    background: rgba(0,0,0,0.65); border: none; cursor: pointer;
    color: #fff; font-size: 12px; border-radius: 5px;
    display: flex; align-items: center; justify-content: center;
    line-height: 1; transition: background 0.15s;
}
.mup-cm-gallery-item-move:hover { background: rgba(0,102,255,0.85); }
.mup-cm-gallery-item-del {
    position: absolute; top: 5px; right: 5px;
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(0,0,0,0.55); border: none; cursor: pointer;
    color: rgba(255,255,255,0.85); font-size: 13px;
    display: flex; align-items: center; justify-content: center;
    line-height: 1; transition: background 0.15s; z-index: 2;
    opacity: 0;
}
.mup-cm-gallery-item:hover .mup-cm-gallery-item-del { opacity: 1; }
.mup-cm-gallery-item-del:hover { background: rgba(239,68,68,0.85); color: #fff; }

/* ── 메인 갤러리 편집기 ── */
.mup-mgal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}
@media (max-width: 640px) {
    .mup-mgal-grid { grid-template-columns: repeat(2, 1fr); }
}
.mup-mgal-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mup-mgal-thumb {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 */
    background: #f0f2f5;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.08);
}
.mup-mgal-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.mup-mgal-video-ph {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #1C2533;
    color: #0066FF;
    font-size: 11px;
    font-weight: 600;
}
.mup-mgal-del {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(239,68,68,0.75);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s, background 0.15s;
}
.mup-mgal-thumb:hover .mup-mgal-del { opacity: 1; }
.mup-mgal-del:hover { background: rgba(239,68,68,1); }
.mup-mgal-moves {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.15s;
}
.mup-mgal-thumb:hover .mup-mgal-moves { opacity: 1; }
.mup-mgal-move {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: rgba(0,102,255,0.75);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.mup-mgal-move:hover { background: rgba(0,102,255,1); }
.mup-mgal-caption {
    width: 100%;
    padding: 5px 8px;
    font-size: 12px;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 6px;
    outline: none;
    color: #374151;
    font-family: inherit;
    background: #fff;
}
.mup-mgal-caption:focus { border-color: #0066FF; }
.mup-mgal-add-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.mup-mgal-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    border: 1.5px dashed rgba(0,102,255,0.35);
    background: rgba(0,102,255,0.04);
    color: #0066FF;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.mup-mgal-add-btn:hover { background: rgba(0,102,255,0.1); border-color: rgba(0,102,255,0.5); }
.mup-mgal-video-input-row {
    background: #f8f9fb;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 16px;
    margin-top: 4px;
}

/* ── 메인 갤러리 슬라이더 닷 (front-page) ── */
.mgal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}
.mgal-dot.is-active {
    background: #0066FF;
    transform: scale(1.25);
}
/* 갤러리 네비게이션 버튼 — 마우스 오버 시 표시 */
.mgal-nav-btn {
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: auto;
}
#main-gallery:hover .mgal-nav-btn { opacity: 1; }
#main-gallery .mgal-nav-btn:hover span {
    border-color: rgba(255,255,255,0.8);
    background: rgba(0,0,0,0.5);
}
@media (max-width: 767px) { .mgal-nav-btn { display: none !important; } }

/* 갤러리 아이템 관리자 삭제 버튼 */
.mgal-admin-del {
    position: absolute;
    top: 10px;
    right: 10px;
    height: 30px;
    padding: 0 10px 0 8px;
    border-radius: 6px;
    background: rgba(220,38,38,0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 500;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.15s, background 0.15s;
    pointer-events: auto;
}
.mgal-item:hover .mgal-admin-del { opacity: 1; }
.mgal-admin-del:hover { background: rgba(185,28,28,1); }
