@charset "utf-8";
/* ===== NC Hub 모달 (ncModal) 스타일 — 2026-09-22 ===== */

.ncm-backdrop {
	position: fixed;
	inset: 0;
	z-index: 20000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	background: rgba(12, 8, 30, .55);
	opacity: 1;
	/* 기본 보임 상태 */
	animation: ncm-fadein .28s ease-out;
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}
.ncm-backdrop.ncm-out { opacity: 0; transition: opacity .13s ease; }
body.ncm-lock { overflow: hidden; }

.ncm-popup {
	position: relative;
	box-sizing: border-box;
	width: 46rem;
	max-width: 100%;
	max-height: calc(100vh - 4rem);
	overflow-y: auto;
	padding: 3.4rem 3rem 2.6rem;
	border-radius: 2.4rem;
	background: #fff;
	box-shadow: 0 2rem 6rem rgba(16, 10, 40, .28);
	font-family: Pretendard, sans-serif;
	color: #333;
	text-align: center;
	/* 배경이 먼저 어두워진 뒤 떠오름 */
	animation: ncm-popin .5s cubic-bezier(.22, .61, .36, 1) .18s backwards;
}
.ncm-backdrop.ncm-out .ncm-popup { transform: translateY(.6rem) scale(.99); }
@keyframes ncm-fadein { from { opacity: 0; } }
@keyframes ncm-popin { from { opacity: 0; transform: translateY(2.4rem) scale(.96); } }

/* ---------------- 아이콘 ---------------- */
.ncm-icon { width: 6.4rem; height: 6.4rem; margin: 0 auto 1.8rem; }
.ncm-icon svg { width: 100%; height: 100%; display: block; }
.ncm-icon svg circle { fill: none; stroke-width: 2.6; opacity: .28; }
.ncm-icon svg path { fill: none; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.ncm-icon svg .dot { fill: currentColor; stroke: none; opacity: 1; }
.ncm-icon svg { stroke: currentColor; }
.ncm-icon-success { color: var(--green, #019e27); }
.ncm-icon-error { color: var(--red, #ff3e3e); }
.ncm-icon-warning { color: var(--orange, #ff5200); }
.ncm-icon-info { color: var(--primary, #125de6); }
.ncm-icon-question { color: var(--active, #9151ff); }

.ncm-image { display: block; max-width: 100%; margin: 0 auto 1.8rem; border-radius: 1.2rem; }

/* ---------------- 글 ---------------- */
.ncm-title { margin: 0; font-size: 2.2rem; font-weight: 700; line-height: 1.45; color: #141414; }
.ncm-body { margin: 1.2rem 0 0; font-size: 1.6rem; line-height: 1.75; color: #555; word-break: keep-all; }
.ncm-body b { color: #222; }
.ncm-body > div + div { margin-top: .8rem; }
.ncm-body .content_box { margin-top: 1.4rem; line-height: 1.7; }
/* 대화상자 안 탭 */
.ncm-body .tab_wrap .tabs li { flex: 1 1 0; min-width: 0; }
.ncm-body .tab_wrap .tabs li button { width: 100%; }
/* 줄바꿈 유지 메시지 */
.ncm-body.swal-pre-line, .ncm-pre-line { white-space: pre-line; }

/* ---------------- 입력칸 ---------------- */
.ncm-input-wrap { margin: 1.8rem 0 0; text-align: left; }
.ncm-input-label { display: block; margin: 0 0 .6rem; font-size: 1.5rem; color: #555; }
.ncm-input {
	box-sizing: border-box;
	width: 100%;
	height: 5.2rem;
	padding: 0 1.6rem;
	border: 1px solid var(--border, #e5e5e5);
	border-radius: 1rem;
	background: #fff;
	font-family: inherit;
	font-size: 1.6rem;
	color: #111;
	transition: border-color .15s, box-shadow .15s;
}
.ncm-textarea { height: auto; min-height: 11rem; padding: 1.2rem 1.6rem; line-height: 1.6; resize: vertical; }
.ncm-input::placeholder { color: var(--muted-2, #666); }
.ncm-input:focus { border-color: var(--main, #6900f3); box-shadow: 0 0 0 .3rem rgba(105, 0, 243, .15); outline: none; }
.ncm-input-wrap + .ncm-input-wrap { margin-top: 1rem; }

/* 라디오 */
.ncm-radio { display: flex; flex-wrap: wrap; gap: 1rem; }
.ncm-choice { flex: 1 1 12rem; margin: 0; cursor: pointer; }
.ncm-choice input {
	position: absolute; width: 1px; height: 1px; margin: 0; padding: 0;
	opacity: 0; pointer-events: none;
}
.ncm-choice-box {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 6.6rem;
	padding: 2rem 1.2rem;
	border: 1px solid var(--border, #e5e5e5);
	border-radius: 1.4rem;
	background: #fff;
	font-size: 1.7rem;
	font-weight: 600;
	color: #444;
	text-align: center;
	transition: border-color .15s, background-color .15s, color .15s, box-shadow .15s;
}
.ncm-choice:hover .ncm-choice-box { border-color: var(--active, #9151ff); }
.ncm-choice input:checked ~ .ncm-choice-box {
	border-color: var(--main, #6900f3);
	box-shadow: inset 0 0 0 1px var(--main, #6900f3);
}
/* 키보드 초점 */
.ncm-choice input:focus-visible ~ .ncm-choice-box { outline: 2px solid var(--main, #6900f3); outline-offset: 2px; }

.ncm-checkbox { display: flex; align-items: center; gap: .8rem; font-size: 1.6rem; cursor: pointer; }
.ncm-checkbox input { width: 1.8rem; height: 1.8rem; margin: 0; accent-color: var(--main, #6900f3); }

/* 라디오·체크 공통 마크업 보정 */
.checkbox.ncm-radio { gap: 1rem; }
.ncm-radio .ncm-choice label.ncm-choice-box { flex: 1 1 auto; font-size: 1.7rem; line-height: inherit; }
.ncm-choice input[type='radio'] + .ncm-choice-box::before,
.ncm-choice input[type='radio'] + .ncm-choice-box::after { content: none; display: none; }
.ncm-checkbox .check { gap: .8rem; }
.ncm-checkbox.checkbox .check label { font-size: inherit; cursor: pointer; }

/* ---------------- 오류 메시지 ---------------- */
.ncm-vmsg {
	margin: 1.2rem 0 0;
	padding: 1rem 1.4rem;
	border-radius: .8rem;
	background: var(--lr, #ffedea);
	color: #cd1500;
	font-size: 1.45rem;
	line-height: 1.6;
	text-align: left;
}

/* ---------------- 버튼 ---------------- */
.ncm-actions { display: flex; gap: .8rem; justify-content: center; margin: 2.8rem 0 0; }
.ncm-btn {
	min-width: 10rem;
	height: 5rem;
	flex:1;
	padding: 14px 2.4rem;
	border: 0;
	border-radius: .9rem;
	font-family: inherit;
	font-size: 1.6rem;
	font-weight: 600;
	cursor: pointer;
	transition: filter .15s, background-color .15s, border-color .15s;
}
.ncm-btn:disabled { opacity: .55; cursor: default; }
.ncm-confirm { background-image: linear-gradient(135deg, #0014a3 0%, #a900ff 100%); color: #fff; }
.ncm-confirm:hover:not(:disabled) { filter: brightness(1.1); }
.ncm-cancel { background: #fff; border: 1px solid var(--border, #e5e5e5); color: #444; }
.ncm-cancel:hover:not(:disabled) { background: var(--lg, #f9f9f9); border-color: #c9c9c9; }
.ncm-deny { background: var(--red, #ff3e3e); color: #fff; }
.ncm-btn:focus-visible { outline: 2px solid var(--main, #6900f3); outline-offset: 2px; }

/* 닫기(X) : 폰에서만 (아래 좁은 화면) */
.ncm-close { display: none; }

.ncm-footer { margin: 2rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--borderlight, #ededed); font-size: 1.4rem; color: #777; }

/* ---------------- 로딩 · 타이머 ---------------- */
.ncm-loader { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: inherit; background: rgba(255, 255, 255, .72); }
/* hidden 속성 처리 */
.ncm-loader[hidden], .ncm-vmsg[hidden] { display: none; }
.ncm-spin { width: 4rem; height: 4rem; border: .35rem solid var(--lpth, #ededed); border-top-color: var(--main, #6900f3); border-radius: 50%; animation: ncm-spin .7s linear infinite; }
@keyframes ncm-spin { to { transform: rotate(360deg); } }
.ncm-timerbar { position: absolute; left: 0; bottom: 0; width: 100%; height: .4rem; background: var(--main, #6900f3); border-radius: 0 0 2.4rem 2.4rem; }
/* 화면 로딩 */
.ncm-backdrop:has(> .swal-no-box) { align-items: center; padding: 0; background: rgba(0, 0, 0, .8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ncm-popup.swal-no-box { width: auto; max-height: none; overflow: visible; padding: 0; border-radius: 0; background: none; box-shadow: none; animation: none; }
.ncm-popup.swal-no-box::before { content: none; }
.ncm-popup.swal-no-box .ncm-body { margin: 0; }
.ncm-backdrop.ncm-out .ncm-popup.swal-no-box { transform: none; }
.ncm-popup.is-loading-modal:focus, .ncm-popup.is-loading-modal:focus-visible { outline: none !important; box-shadow: none !important; }
.swal_loading { display: flex; align-items: center; justify-content: center; min-width: 8rem; min-height: 8rem; }
.swal_loading_img { position: relative; width: 5rem; height: 5rem; border-radius: 50%; animation: ncm-spin 1.5s infinite; }
.swal_loading_img::before, .swal_loading_img::after { content: ''; position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; margin: -2.5rem 0 0 -2.5rem; border-radius: 50%; animation: ncm-orb 1s ease-in-out infinite; }
.swal_loading_img::before { background: linear-gradient(149deg, #8f0fff 0%, #360082 100%); }
.swal_loading_img::after { background: linear-gradient(149deg, #0051ff 0%, #000e69 100%); animation-direction: reverse; }
@keyframes ncm-orb { 0% { transform: scale(.2); left: 0%; } 50% { transform: scale(1); left: 50%; } 100% { transform: scale(.2); left: 100%; } }

/* ---------------- 토스트 ---------------- */
.ncm-toastwrap { position: fixed; left: 50%; top: 2.4rem; z-index: 20010; display: flex; flex-direction: column; gap: .8rem; transform: translateX(-50%); pointer-events: none; }
.ncm-toast {
	display: flex; align-items: center; gap: .9rem;
	max-width: 42rem;
	padding: 1.2rem 1.8rem;
	border-radius: 1.2rem;
	background: rgba(24, 18, 44, .94);
	color: #fff;
	font-family: Pretendard, sans-serif;
	font-size: 1.5rem;
	line-height: 1.5;
	box-shadow: 0 .8rem 2.4rem rgba(16, 10, 40, .3);
	animation: ncm-toastin .18s ease;
	pointer-events: auto;
}
.ncm-toast.ncm-gone { opacity: 0; transform: translateY(-.8rem); transition: opacity .18s, transform .18s; }
@keyframes ncm-toastin { from { opacity: 0; transform: translateY(-.8rem); } }
.ncm-toast-ico { width: 2rem; height: 2rem; flex: 0 0 auto; }
.ncm-toast-ico svg { width: 100%; height: 100%; stroke: currentColor; }
.ncm-toast-ico svg circle { fill: none; stroke-width: 3; opacity: .35; }
.ncm-toast-ico svg path { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.ncm-toast-ico svg .dot { fill: currentColor; stroke: none; opacity: 1; }
.ncm-toast-success .ncm-toast-ico { color: #4ade80; }
.ncm-toast-error .ncm-toast-ico { color: #ff8b8b; }
.ncm-toast-warning .ncm-toast-ico { color: #ffb86b; }
.ncm-toast-info .ncm-toast-ico { color: #8ab4ff; }

/* ---------------- 좁은 화면 ---------------- */
/* 폰 : 검색 창(layout.css .nc-sheet)처럼 아래에서 올라오는 창 — 화면 너비, 위 모서리만 둥글게, 손잡이 막대 */
@media all and (max-width: 760px) {
	.ncm-backdrop { align-items: flex-end; padding: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
	.ncm-popup { width: 100%; max-height: 88dvh; padding: 0 2rem calc(2rem + env(safe-area-inset-bottom)); border-radius: 2rem 2rem 0 0; box-shadow: 0 -.8rem 3rem rgba(12, 10, 32, .12); animation: ncm-sheetin .3s cubic-bezier(.2, .8, .2, 1) backwards; }
	.ncm-popup::before { content: ''; display: block; width: 4rem; height: .4rem; margin: .8rem auto 1.6rem; border-radius: .4rem; background: #d9d9de; }
	.ncm-backdrop.ncm-out .ncm-popup { transform: translateY(100%); transition: transform .13s ease; }
	.ncm-icon { width: 5.2rem; height: 5.2rem; margin-bottom: 1.4rem; }
	.ncm-title { padding: 0 3.6rem; font-size: 1.8rem; }
	.ncm-close { position: absolute; top: 1.4rem; right: 1.2rem; z-index: 1; display: grid; place-items: center; width: 3.2rem; height: 3.2rem; padding: 0; border: 0; border-radius: 50%; background: none; font-size: 1.4rem; color: #141414; cursor: pointer; }
	.ncm-close:focus-visible { outline: 2px solid var(--main, #6900f3); outline-offset: 2px; }
	.ncm-body { font-size: 1.5rem; line-height: 1.65; }
	/* 창 안 탭 · 안내 상자 (아이디·비밀번호 찾기 등) */
	.ncm-body .tab_wrap .tabs li button { padding: 1.1rem 1.2rem; font-size: 1.4rem; }
	.ncm-body .content_box.fit { margin: 1.2rem 0 1.6rem; padding: 1.2rem 1.6rem; font-size: 1.4rem; }
	.ncm-actions { margin-top: 2rem; }
	.ncm-btn { width: 100%; height: 4.6rem; padding: 0 1.6rem; font-size: 1.5rem; }
	.ncm-toastwrap { left: 1.5rem; right: 1.5rem; transform: none; }
	.ncm-toast { max-width: none; }
}
@keyframes ncm-sheetin { from { transform: translateY(100%); } }

/* 움직임 줄이기 설정 */
@media (prefers-reduced-motion: reduce) {
	.ncm-backdrop, .ncm-popup, .ncm-toast { transition: none; animation: none; }
	.ncm-spin { animation-duration: 1.6s; }
}

/* 아이콘이 붙은 선택 카드 */
.ncm-choice-box.has-ico { flex-direction: column; gap: .9rem; min-height: 9.8rem; }
.ncm-choice-ico { display:flex; align-items:center; justify-content:center; width:5rem; height:5rem; background:#f4f4f4; border-radius:5rem; color: #a3a3a3; transition: color .15s; }
.ncm-choice-ico svg { display: block; width:50%; height:60%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ncm-choice input:checked ~ .ncm-choice-box .ncm-choice-ico { background:#f5edff; color:#6312c7; }
.ncm-choice:hover .ncm-choice-box .ncm-choice-ico { color: var(--active, #9151ff); }
.ncm-choice-txt { display: block; }
