/* ── 회원·마이페이지·자체 어드민 (넥스트클래스 디자인 이식, 색은 태나 토큰) ── */
:root{
  --nc-blue: var(--accent);
  --nc-blue-h: var(--butter-ink);
  --nc-ink: var(--ink);
  --nc-body: var(--ink-2);
  --nc-line: var(--line);
  --nc-soft: var(--surface);
  --nc-bg-alt: var(--surface);
  --nc-radius-lg: var(--radius);
  --nc-sticky-top: 64px;
}

.tf-eyebrow { font-size: 12px; font-weight: 700; color: var(--nc-blue); margin: 0 0 8px; letter-spacing: 0; }

.tf-page-head .tf-eyebrow { margin-bottom: 6px; }


/* ===== 인증 ===== */
.tf-auth-wrap { max-width: 400px; margin: 60px auto; padding: 32px 24px; background: var(--surface-2); border: 1px solid var(--nc-line); border-radius: var(--nc-radius-lg); }

.tf-auth-notice { background: #EEF4FF; border: 1px solid #C7D8FF; border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; }

.tf-auth-notice-title { font-size: 14px; font-weight: 700; color: var(--nc-blue); margin-bottom: 4px; }

.tf-auth-notice-body { font-size: 13px; line-height: 1.55; color: #1F2937; margin: 0; }

.tf-auth-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--nc-line); margin-bottom: 20px; }

.tf-auth-tabs a { flex: 1; text-align: center; padding: 10px; font-size: 14px; font-weight: 600; color: var(--nc-body); border-bottom: 2px solid transparent; }

.tf-auth-tabs a.is-active { color: var(--nc-blue); border-bottom-color: var(--nc-blue); }

.tf-auth-form { display: flex; flex-direction: column; gap: 12px; }

.tf-auth-form input { width: 100%; padding: 14px 14px; border: 1px solid var(--nc-line); border-radius: 10px; font-size: 14px; background: var(--surface-2); }

.tf-auth-form input:focus { outline: none; border-color: var(--nc-blue); }

.tf-auth-form label { font-size: 12px; color: var(--nc-body); }

.tf-auth-lede { font-size: 12px; color: var(--nc-body); margin-top: 6px; }


/* ===== Auth forms (cosmosfarm + wpmem) — full design override ===== */
.tf-auth-wrap { max-width: 380px; margin: 32px auto; padding: 28px 24px 24px; background: var(--surface-2); border: 1px solid var(--nc-line); border-radius: 14px; box-shadow: 0 10px 30px -20px rgba(15,23,42,0.15); overflow: hidden; box-sizing: border-box; }
@media (max-width: 480px){
 .tf-auth-wrap { margin: 20px 14px; padding: 22px 18px; border-radius: 12px; }
}

.tf-auth-wrap form, .tf-auth-shortcode, .tf-auth-shortcode > div { width: 100%; }


/* cosmosfarm + wpmem 공통: 컨테이너 reset — 모든 wrapper flex/gray bg 제거 */
.tf-auth-wrap .cosmosfarm-members-form,
.tf-auth-wrap .cosmosfarm-members-form * { box-sizing: border-box; }

.tf-auth-wrap .cosmosfarm-members-form { width: 100%; }

.tf-auth-wrap fieldset,
.tf-auth-wrap #wpmem_register_form fieldset,
.tf-auth-wrap #wpmem_pwdreset_form fieldset { border: 0 !important; padding: 0 !important; margin: 0 !important; }

.tf-auth-wrap form.form, .tf-auth-wrap #wpmem_register_form, .tf-auth-wrap #wpmem_pwdreset_form { margin: 0 !important; padding: 0 !important; }

.tf-auth-wrap legend { display: none !important; height: 0 !important; margin: 0 !important; padding: 0 !important; }

.tf-auth-wrap .form-wrap,
.tf-auth-wrap .form-top,
.tf-auth-wrap .form-top-wrap,
.tf-auth-wrap .form-top-fields,
.tf-auth-wrap .form-top-button,
.tf-auth-wrap .form-bottom { display: block !important; padding: 0 !important; margin: 0 !important; background: transparent !important; border: 0 !important; width: 100% !important; max-width: 100% !important; flex: none !important; box-shadow: none !important; }

.tf-auth-wrap .form-top-button { margin-top: 12px !important; }

.tf-auth-wrap .form-bottom { margin-top: 14px !important; padding-top: 12px !important; border-top: 0 !important; }

.tf-auth-wrap p { font-size: 12px; color: var(--nc-body); line-height: 1.6; margin: 8px 0; }

.tf-auth-wrap .form-link { display: flex !important; justify-content: center !important; align-items: center !important; gap: 0 !important; }

.tf-auth-wrap .form-link-item { background: transparent !important; margin: 0 !important; text-align: center; padding: 0 16px !important; line-height: 1.4; }

.tf-auth-wrap .form-link-item + .form-link-item { border-left: 1px solid var(--nc-line); }

.tf-auth-wrap .form-link-item a.form-button { display: inline-block !important; width: auto !important; padding: 0 !important; background: transparent !important; color: var(--nc-body) !important; border-radius: 0 !important; font-size: 12.5px !important; font-weight: 500 !important; text-align: center; }

.tf-auth-wrap .form-link-item a.form-button:hover { background: transparent !important; color: var(--nc-blue) !important; text-decoration: underline; }


/* 라벨 + input pair (둘 다 form에서 공통) */
/* 로그인(cosmosfarm) + 회원가입/비번찾기(wpmem) 폼 통일 */
html body .tf-auth-wrap label.text { display: block !important; padding: 0 !important; height: auto !important; min-height: 0 !important; line-height: 1.4 !important; font-size: 12.5px !important; margin: 0 0 6px !important; font-weight: 600 !important; color: var(--nc-ink) !important; }

html body .tf-auth-wrap .form-input-row { display: flex !important; flex-direction: column !important; gap: 6px !important; margin-bottom: 8px !important; padding: 0 !important; }

html body .tf-auth-wrap .form-input-row label { font-size: 12.5px !important; color: var(--nc-ink) !important; font-weight: 600 !important; line-height: 1.4 !important; margin: 0 !important; padding: 0 !important; height: auto !important; min-height: 0 !important; }

html body .tf-auth-wrap .div_text { margin: 0 0 8px !important; padding: 0 !important; }

html body .tf-auth-wrap fieldset > label.text:first-of-type { margin-top: 0 !important; }

html body .tf-auth-wrap fieldset > label.text { margin-top: 0 !important; }

html body .tf-auth-wrap #wpmem_register_form, html body .tf-auth-wrap #wpmem_pwdreset_form, html body .tf-auth-wrap form.form { margin-top: 0 !important; }

html body .tf-auth-wrap .tf-auth-shortcode { margin-top: 0 !important; padding-top: 0 !important; }

/* 회원가입/비번찾기 폼 안 익명 앵커 (#register, #pwdreset)가 inline-block 으로 떠서 phantom line 25px 생김 → 숨김 */
html body .tf-auth-wrap .cosmosfarm-members-form > a[id] { display: none !important; }

html body .tf-auth-wrap .form-input-row input,
html body .tf-auth-wrap .div_text input { margin: 0 !important; padding: 0 12px !important; height: 42px !important; min-height: 42px !important; max-height: 42px !important; line-height: 42px !important; font-size: 13.5px !important; }

html body .tf-auth-wrap .req { color: #d94747 !important; margin-left: 2px; font-weight: 700; }

html body .tf-auth-wrap .req-text { font-size: 11.5px; color: var(--nc-body); margin: 10px 0 0; }

html body .tf-auth-wrap .req { color: #d94747 !important; margin-left: 2px; font-weight: 700; }

html body .tf-auth-wrap .req-text { font-size: 11.5px; color: var(--nc-body); margin: 10px 0 0; }

/* cosmosfarm 로그인 폼 — 자동로그인 우측 정렬 + 폰트/패딩 축소 */
.tf-auth-wrap .form-top-fields { display: flex !important; flex-direction: column !important; gap: 0 !important; }

.tf-auth-wrap .form-top-button { margin-top: 14px !important; padding: 0 !important; }

.tf-auth-wrap .form-checkbox-row { margin: 8px 0 4px !important; padding: 0 !important; display: flex !important; justify-content: flex-end !important; }

.tf-auth-wrap .form-checkbox-row label { font-size: 12px !important; color: var(--nc-body) !important; padding: 0 !important; font-weight: 500 !important; }

.tf-auth-wrap .form-checkbox-row input[type="checkbox"] { width: 14px !important; height: 14px !important; margin-right: 4px !important; }


/* 비번 찾기 도움 푸터 */
.tf-auth-foot-help { text-align: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--nc-line); }

.tf-auth-foot-help p { font-size: 12.5px; color: var(--nc-body); margin: 0 0 6px; }

.tf-auth-foot-help a { font-size: 12.5px; color: var(--nc-blue); font-weight: 600; }

.tf-auth-foot-help a:hover { text-decoration: underline; }

.tf-auth-foot-help .sep { color: var(--line); margin: 0 8px; }

.tf-auth-wrap label,
.tf-auth-wrap label.text,
.tf-auth-wrap .form-input-row label { display: block !important; font-size: 11px !important; color: var(--nc-body) !important; font-weight: 600 !important; margin: 0 0 3px !important; padding: 0 !important; line-height: 1.3 !important; }

.tf-auth-wrap .div_text { padding: 0 !important; margin: 0 0 6px !important; }

.tf-auth-wrap .req { color: #d94747; font-size: 11px; margin-left: 2px; }

.tf-auth-wrap .req-text { font-size: 11px; color: var(--nc-body); margin-top: 12px; }


/* input 전체 통일 */
.tf-auth-wrap input[type="text"],
.tf-auth-wrap input[type="email"],
.tf-auth-wrap input[type="password"],
.tf-auth-wrap input[type="tel"],
.tf-auth-wrap input[type="url"],
.tf-auth-wrap .div_text input,
.tf-auth-wrap .textbox,
.tf-auth-wrap input.username,
.tf-auth-wrap input.textbox,
.tf-auth-wrap form input { width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; padding: 0 12px !important; border: 1px solid var(--nc-line) !important; border-radius: 9px !important; font-size: 13px !important; background: var(--surface-2) !important; color: var(--nc-ink) !important; transition: border-color 0.15s, box-shadow 0.15s; font-family: inherit !important; line-height: 38px !important; height: 40px !important; min-height: 40px !important; max-height: 40px !important; margin: 0 !important; display: block !important; }

.tf-auth-wrap input[type="checkbox"] { width: 16px !important; height: 16px !important; min-height: 0 !important; max-height: none !important; line-height: 1 !important; padding: 0 !important; display: inline-block !important; }

.tf-auth-wrap input:focus { outline: none !important; border-color: var(--nc-blue) !important; box-shadow: 0 0 0 3px rgba(200,16,63,0.05); }

.tf-auth-wrap input::placeholder { color: #aab1bd; }


/* submit 버튼 — cosmosfarm `.login-button` / wpmem `.buttons` / generic submit */
html body .tf-auth-wrap input[type="submit"],
html body .tf-auth-wrap button[type="submit"],
html body .tf-auth-wrap .login-button,
html body .tf-auth-wrap input.buttons,
html body .tf-auth-wrap .buttons,
html body .tf-auth-wrap .button_div input,
html body .tf-auth-wrap .form-top-button button { display: block !important; width: 100% !important; height: auto !important; min-height: 0 !important; max-height: none !important; box-sizing: border-box !important; background: var(--nc-blue) !important; background-color: var(--nc-blue) !important; color: var(--surface-2) !important; border: 0 !important; padding: 12px 18px !important; border-radius: 9px !important; font-size: 13px !important; font-weight: 700 !important; cursor: pointer !important; transition: background 0.15s, transform 0.1s !important; margin-top: 10px !important; letter-spacing: -0.01em; line-height: 1.4 !important; }

.tf-auth-wrap input[type="submit"]:hover,
.tf-auth-wrap button[type="submit"]:hover,
.tf-auth-wrap .login-button:hover,
.tf-auth-wrap .buttons:hover { background: var(--nc-blue-h) !important; }

.tf-auth-wrap input[type="submit"]:active,
.tf-auth-wrap .login-button:active,
.tf-auth-wrap .buttons:active { transform: scale(0.985); }

.tf-auth-wrap .button_div, .tf-auth-wrap .div_button, .tf-auth-wrap .submit_div, .tf-auth-wrap .form-top-button { margin-top: 0; padding: 0; }


/* 자동로그인 체크박스 — cosmosfarm `.form-checkbox-row > label > input + text` */
.tf-auth-wrap .form-checkbox-row { margin: 10px 0 0; display: block !important; text-align: left !important; }

.tf-auth-wrap .form-checkbox-row label { display: inline-flex !important; align-items: center; gap: 8px; font-size: 12.5px; color: var(--nc-body); font-weight: 500; cursor: pointer; margin: 0; }

.tf-auth-wrap input[type="checkbox"] { width: 16px; height: 16px; margin: 0 !important; accent-color: var(--nc-blue); cursor: pointer; flex-shrink: 0; }


/* 하단 링크 (비밀번호 찾기 | 회원가입) — wpmem/cosmosfarm 공통 */
.tf-auth-wrap .form-bottom { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--nc-line); }

.tf-auth-wrap .link-text-forgot a,
.tf-auth-wrap .link-text-register a { display: inline-block; padding: 0 !important; background: transparent !important; color: var(--nc-body) !important; font-size: 12.5px !important; font-weight: 500 !important; text-decoration: none; }

.tf-auth-wrap .link-text-forgot a:hover,
.tf-auth-wrap .link-text-register a:hover { color: var(--nc-blue) !important; text-decoration: underline; }


/* WP-Members 메시지 (성공/오류) */
.tf-auth-wrap .wpmem_msg,
.tf-auth-wrap .wpmembers-msg,
.tf-auth-wrap .pwdreset-form > p,
.tf-auth-wrap .reg-form > p { background: var(--surface); border: 1px solid #EEF1F5; color: var(--nc-ink); border-radius: 10px; padding: 12px 14px; font-size: 13px; margin: 0 0 14px; }


/* div_text reset (wpmem이 input을 div로 감싸는 거) */
.tf-auth-wrap .div_text { margin: 0 0 4px; padding: 0; background: transparent; border: 0; }


/* 비밀번호 찾기 폼 추가 정리 */
.tf-auth-wrap .pwdreset-form .link-text-username { display: block; text-align: center; margin-top: 12px; }

.tf-auth-wrap .pwdreset-form .link-text-username a { font-size: 12px; color: var(--nc-body); font-weight: 500; }


/* 소셜 로그인 영역 (카카오 placeholder + cosmosfarm 실제 버튼) */
.tf-auth-social { margin: 0; padding: 0; border: 0; }

.tf-auth-social-top { margin-top: 4px !important; padding-top: 0 !important; border-top: 0 !important; }

.tf-auth-social:not(.tf-auth-social-top):has(button),
.tf-auth-social:not(.tf-auth-social-top):has(a) { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--nc-line); }

.tf-auth-divider { text-align: center; font-size: 11px; color: var(--nc-body); margin: 12px 0 8px; position: relative; }

.tf-auth-divider::before, .tf-auth-divider::after { content: ''; position: absolute; top: 50%; width: 38%; height: 1px; background: var(--nc-line); }

.tf-auth-divider::before { left: 0; }

.tf-auth-divider::after { right: 0; }

.tf-auth-orline { display: flex; align-items: center; gap: 10px; margin: 18px 0 14px; color: var(--nc-body); font-size: 11.5px; font-weight: 500; }

.tf-auth-orline::before, .tf-auth-orline::after { content: ''; flex: 1; height: 1px; background: var(--nc-line); }

.tf-auth-orline span { white-space: nowrap; }

.tf-auth-orline-plain { margin: 16px 0 12px; justify-content: center; color: var(--nc-body); font-size: 11.5px; }

.tf-auth-orline-plain::before, .tf-auth-orline-plain::after { display: none; }

.tf-auth-social-btn { display: flex !important; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px 18px; border-radius: 10px; font-size: 14px; font-weight: 800; cursor: pointer; border: 0; transition: opacity 0.15s, transform 0.1s; box-sizing: border-box; text-decoration: none !important; letter-spacing: -0.015em; line-height: 1.4 !important; min-height: 0 !important; height: auto !important; font-family: inherit !important; margin: 0 !important; }

a.tf-auth-social-btn, button.tf-auth-social-btn { line-height: 1.4 !important; }

.tf-auth-social-top .tf-auth-social-btn { box-shadow: 0 8px 20px -10px rgba(254,229,0,0.5); }

.tf-auth-social-btn:hover { opacity: 0.92; }

.tf-auth-social-btn:active { transform: scale(0.985); }

.tf-auth-social-kakao { background: #FEE500; color: #191919 !important; }

.tf-auth-social-naver { background: #03C75A; color: var(--surface-2) !important; }

.tf-auth-social-google { background: var(--surface-2); color: #444 !important; border: 1px solid var(--nc-line); }

.tf-auth-social-apple { background: #000; color: var(--surface-2) !important; }

/* cosmosfarm 자체 버튼도 동일 스타일 적용 */
.tf-auth-social .cosmosfarm_members_social_buttons { display: flex; flex-direction: column; gap: 8px; }

.tf-auth-social .cosmosfarm_members_social_buttons a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; border-radius: 9px; font-size: 13px; font-weight: 700; text-decoration: none; }

.tf-auth-social .cosmosfarm_members_kakao_login { background: #FEE500; color: #191919 !important; }

.tf-auth-social .cosmosfarm_members_naver_login { background: #03C75A; color: var(--surface-2) !important; }

.tf-auth-social .cosmosfarm_members_google_login { background: var(--surface-2); color: #444 !important; border: 1px solid var(--nc-line); }

.tf-auth-social .cosmosfarm_members_facebook_login { background: #1877F2; color: var(--surface-2) !important; }

.tf-auth-social .cosmosfarm_members_apple_login { background: #000; color: var(--surface-2) !important; }


/* ===== 마이페이지 ===== */
.tf-mypage-hero { background: linear-gradient(180deg, var(--nc-soft) 0%, var(--surface-2) 100%); padding: 28px 0 20px; }


.tf-mypage-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 900px){
 .tf-mypage-grid { grid-template-columns: 220px 1fr; gap: 36px; }
}

.tf-mypage-side { display: flex; flex-direction: column; gap: 2px; padding: 8px; background: var(--surface-2); border: 1px solid var(--nc-line); border-radius: 12px; height: fit-content; }

.tf-mypage-side .tf-mypage-side-item { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--nc-ink) !important; background: transparent !important; border: 0 !important; text-decoration: none; transition: background 0.12s, color 0.12s; }

.tf-mypage-side .tf-mypage-side-item:hover { background: var(--nc-soft) !important; color: var(--nc-ink) !important; }

.tf-mypage-side .tf-mypage-side-item.is-active { background: rgba(200,16,63,0.06) !important; color: var(--nc-blue) !important; font-weight: 700; }

.tf-mypage-side .tf-mypage-side-item .ico { font-size: 14px; line-height: 1; flex-shrink: 0; }

.tf-mypage-side .tf-mypage-side-logout { margin-top: 6px; padding-top: 12px !important; border-top: 1px solid var(--nc-line) !important; border-radius: 0 0 8px 8px; color: var(--nc-body) !important; }


/* 그룹 (토글) */
.tf-mypage-side-group { background: transparent; border: 0; }

.tf-mypage-side-group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 700; color: var(--nc-ink); transition: background 0.12s; }

.tf-mypage-side-group > summary::-webkit-details-marker { display: none; }

.tf-mypage-side-group > summary:hover { background: var(--nc-soft); }

.tf-mypage-side-group > summary .ico { font-size: 14px; line-height: 1; flex-shrink: 0; }

.tf-mypage-side-group > summary .lbl { flex: 1 1 auto; }

.tf-mypage-side-group > summary .caret { color: var(--nc-body); transition: transform 0.18s ease; flex-shrink: 0; }

.tf-mypage-side-group[open] > summary .caret { transform: rotate(180deg); }

.tf-mypage-side-group-body { display: flex; flex-direction: column; gap: 1px; padding: 2px 0 6px; }

.tf-mypage-side-sub { display: flex; align-items: center; padding: 8px 12px 8px 34px; border-radius: 8px; font-size: 13px; color: var(--nc-body) !important; font-weight: 500; text-decoration: none; transition: background 0.12s, color 0.12s; position: relative; }

.tf-mypage-side-sub::before { content: ""; position: absolute; left: 22px; top: 50%; width: 6px; height: 1px; background: var(--nc-line); transform: translateY(-50%); }

.tf-mypage-side-sub:hover { background: var(--nc-soft); color: var(--nc-ink) !important; }

.tf-mypage-side-sub.is-active { background: rgba(200,16,63,0.06); color: var(--nc-blue) !important; font-weight: 700; }

.tf-mypage-side-sub.is-active::before { background: var(--nc-blue); width: 8px; }


.tf-mypage-side-foot { margin-top: 12px; padding: 12px; background: var(--nc-soft); border-radius: 8px; font-size: 11.5px; color: var(--nc-body); line-height: 1.6; text-align: center; }

.tf-mypage-side-foot a { color: var(--nc-blue); font-weight: 600; font-size: 12px; }

.tf-mypage-side-foot a:hover { text-decoration: underline; }


/* ──── 사이드바 wrap (모바일에서 collapsed dropdown) ──── */
.tf-side-wrap { background: transparent; border: 0; }

.tf-side-wrap > summary { list-style: none; cursor: pointer; display: none; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 10px; background: var(--nc-soft); font-size: 13.5px; font-weight: 700; color: var(--nc-ink); }

.tf-side-wrap > summary::-webkit-details-marker { display: none; }

.tf-side-wrap > summary .tf-side-wrap-eyebrow { font-size: 11px; font-weight: 700; color: var(--nc-body); letter-spacing: 0.04em; padding: 2px 7px; background: var(--surface-2); border: 1px solid var(--nc-line); border-radius: 999px; }

.tf-side-wrap > summary .tf-side-wrap-cur { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tf-side-wrap > summary .caret { color: var(--nc-body); transition: transform 0.18s ease; flex-shrink: 0; }

.tf-side-wrap[open] > summary .caret { transform: rotate(180deg); }

.tf-side-wrap > .tf-side-wrap-inner { display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 899px){

	.tf-mypage-side { padding: 6px; }

	.tf-mypage-side .tf-mypage-side-item { padding: 12px; }

	.tf-mypage-side-group > summary { padding: 12px; }

	.tf-side-wrap > summary { display: flex; }

	.tf-side-wrap > .tf-side-wrap-inner { padding-top: 6px; }
}
@media (min-width: 900px){

	.tf-mypage-side { position: sticky; top: var(--nc-sticky-top); }

	/* 데스크탑에서는 wrap summary 숨기고 inner는 항상 보이도록 강제 */
	.tf-side-wrap > .tf-side-wrap-inner { display: flex !important; }
}


.tf-mypage-block { margin-bottom: 24px; }

.tf-mypage-block-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }

.tf-mypage-block-head h3 { font-size: 14px; font-weight: 800; color: var(--nc-ink); letter-spacing: -0.02em; }

.tf-mypage-block-head a { font-size: 12px; color: var(--nc-blue); font-weight: 600; }


/* ============ ADMIN ============ */
body.tf-admin-active { background: #f3f5f9; }

body.tf-admin-active .tf-header, body.tf-admin-active .tf-footer { display: none !important; }

.tf-admin { display: flex; min-height: 100vh; background: #f3f5f9; }

.tf-admin * { box-sizing: border-box; }


/* SIDE */
.tf-admin-side { width: 240px; flex-shrink: 0; background: var(--ink); color: var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }

.tf-admin-brand { padding: 20px 18px 14px; display: flex; align-items: center; gap: 8px; color: var(--surface-2); font-weight: 800; font-size: 15px; letter-spacing: -0.02em; border-bottom: 1px solid rgba(255,255,255,0.08); }

.tf-admin-brand .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--nc-blue); }

.tf-admin-brand .badge { margin-left: auto; font-size: 10px; font-weight: 700; background: var(--nc-blue); color: var(--surface-2); padding: 2px 7px; border-radius: 999px; letter-spacing: 0; }

.tf-admin-nav { flex: 1; padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }

.tf-admin-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--line); transition: background 0.12s, color 0.12s; }

.tf-admin-nav a:hover { background: rgba(255,255,255,0.05); color: var(--surface-2); }

.tf-admin-nav a.is-active { background: var(--nc-blue); color: var(--surface-2); }

.tf-admin-nav a svg { flex-shrink: 0; opacity: 0.8; }

.tf-admin-nav a.is-active svg { opacity: 1; }

.tf-admin-nav-top { padding: 11px 12px; }


/* Admin sidebar 그룹 토글 */
.tf-admin-side-group { background: transparent; border: 0; }

.tf-admin-side-group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; font-size: 11px; font-weight: 700; color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; transition: background 0.12s, color 0.12s; }

.tf-admin-side-group > summary::-webkit-details-marker { display: none; }

.tf-admin-side-group > summary:hover { color: var(--surface-2); background: rgba(255,255,255,0.04); }

.tf-admin-side-group > summary .lbl { flex: 1 1 auto; }

.tf-admin-side-group > summary .caret { color: var(--ink-3); transition: transform 0.18s ease; flex-shrink: 0; }

.tf-admin-side-group[open] > summary .caret { transform: rotate(180deg); }

.tf-admin-side-group-body { display: flex; flex-direction: column; gap: 1px; padding: 2px 0 6px; }

.tf-admin-side-sub { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--line); transition: background 0.12s, color 0.12s; }

.tf-admin-side-sub:hover { background: rgba(255,255,255,0.05); color: var(--surface-2); }

.tf-admin-side-sub.is-active { background: var(--nc-blue); color: var(--surface-2); }

.tf-admin-side-sub svg { flex-shrink: 0; opacity: 0.7; }

.tf-admin-side-sub.is-active svg { opacity: 1; }


.tf-admin-side-foot { padding: 14px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; gap: 6px; flex-wrap: wrap; }

.tf-admin-side-foot a { font-size: 11px; color: var(--ink-3); padding: 6px 8px; border-radius: 6px; background: rgba(255,255,255,0.05); }

.tf-admin-side-foot a:hover { background: rgba(255,255,255,0.1); color: var(--surface-2); }


/* Admin sidebar — mobile collapsed dropdown (.tf-side-wrap dark variant) */
.tf-admin-side .tf-side-wrap > summary { background: rgba(255,255,255,0.05); color: var(--surface-2); }

.tf-admin-side .tf-side-wrap > summary .tf-side-wrap-eyebrow { background: rgba(255,255,255,0.08); color: var(--line); border: 0; }

.tf-admin-side .tf-side-wrap > summary .caret { color: var(--ink-3); }

.tf-admin-side .tf-side-wrap { flex: 1; display: flex; flex-direction: column; }

.tf-admin-side .tf-side-wrap > .tf-side-wrap-inner { flex: 1; display: flex; flex-direction: column; }


/* BODY */
.tf-admin-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.tf-admin-topbar { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 24px; background: var(--surface-2); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }

.tf-admin-breadcrumb { font-size: 13px; color: var(--ink-2); }

.tf-admin-breadcrumb strong { color: var(--nc-ink); font-weight: 700; }

.tf-admin-user { display: flex; align-items: center; gap: 10px; }

.tf-admin-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--nc-blue); color: var(--surface-2); font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }

.tf-admin-username { font-size: 13px; font-weight: 600; color: var(--nc-ink); }

.tf-admin-logout { font-size: 12px; color: var(--ink-2); padding: 6px 10px; border-radius: 6px; }

.tf-admin-logout:hover { background: var(--surface); color: var(--nc-ink); }

.tf-admin-main { padding: 24px; flex: 1; min-width: 0; }
@media (min-width: 1280px){
 .tf-admin-main { padding: 32px; }
}

.tf-admin-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; gap: 16px; flex-wrap: wrap; }

.tf-admin-section-head h1 { font-size: 22px; font-weight: 800; color: var(--nc-ink); margin: 0; letter-spacing: -0.02em; }

.tf-admin-section-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.tf-admin-section-actions > * { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 600px){

	.tf-admin-section-head { flex-direction: column; align-items: stretch; }

	.tf-admin-section-actions { width: 100%; }

	.tf-admin-section-actions > * { flex: 1 1 auto; text-align: center; }
}


/* 어드민 테이블·리스트 우측 여백 (모바일에서 텍스트가 우측 끝에 붙는 현상 방지) */
.tf-adm-table th:last-child,
.tf-adm-table td:last-child { padding-right: 18px; }

.tf-adm-userlist .date { padding-right: 4px; flex-shrink: 0; }

.tf-adm-userlist .email { word-break: break-all; }
@media (max-width: 600px){

	.tf-adm-userlist li { gap: 8px; }

	.tf-adm-userlist .date { font-size: 10.5px; }

	.tf-adm-userlist .email { font-size: 10.5px; }
}

.tf-admin-btn-primary { padding: 9px 16px; background: var(--nc-blue); color: var(--surface-2) !important; border: 0; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; }

.tf-admin-btn-primary:hover { background: var(--nc-blue-h); }

.tf-admin-btn-line { padding: 9px 16px; background: var(--surface-2); color: var(--nc-ink) !important; border: 1px solid var(--nc-line); border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; }

.tf-admin-btn-line:hover { border-color: var(--nc-ink); }

.tf-admin-flash { padding: 12px 16px; border-radius: 9px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }

.tf-admin-flash.success { background: #d1fae5; color: #065f46; }

.tf-admin-flash.error { background: #fee2e2; color: #991b1b; }

.tf-admin-table { width: 100%; background: var(--surface-2); border: 1px solid var(--nc-line); border-radius: 12px; border-collapse: separate; border-spacing: 0; overflow: hidden; }

.tf-admin-table th { padding: 12px 14px; text-align: left; font-size: 12px; font-weight: 700; color: var(--nc-body); background: var(--surface); border-bottom: 1px solid var(--nc-line); }

.tf-admin-table td { padding: 14px 14px; font-size: 13.5px; color: var(--nc-ink); border-bottom: 1px solid var(--nc-line); }

.tf-admin-table tr:last-child td { border-bottom: 0; }

.tf-admin-table .acts { text-align: right; }

.tf-admin-tlink { display: inline-block; padding: 5px 10px; font-size: 12px; color: var(--nc-blue) !important; background: transparent; border: 0; cursor: pointer; font-weight: 600; }

.tf-admin-tlink:hover { text-decoration: underline; }

.tf-admin-tlink.danger { color: #ef4444 !important; }

.tf-admin-empty { padding: 40px 0; text-align: center; color: var(--nc-body); font-size: 13.5px; }


.tf-adm-section { display: flex; flex-direction: column; gap: 22px; max-width: 1240px; }

.tf-adm-pageheader h1 { font-size: 24px; font-weight: 800; color: var(--nc-ink); letter-spacing: -0.025em; margin-bottom: 4px; }

.tf-adm-pageheader p { font-size: 13px; color: var(--ink-2); }

.tf-adm-back { display: inline-block; font-size: 12px; color: var(--ink-2); font-weight: 600; margin-bottom: 8px; }

.tf-adm-back:hover { color: var(--nc-blue); }


/* KPI */
.tf-adm-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px){
 .tf-adm-kpis { grid-template-columns: repeat(4, 1fr); }
}

.tf-adm-kpi { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }

.tf-adm-kpi .lbl { font-size: 12px; color: var(--ink-2); font-weight: 600; margin-bottom: 4px; }

.tf-adm-kpi .val { font-size: 24px; font-weight: 800; color: var(--nc-ink); letter-spacing: -0.025em; line-height: 1.2; }

.tf-adm-kpi .sub { font-size: 11px; color: var(--ink-3); margin-top: 4px; }


/* Grid */
.tf-adm-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 1024px){
 .tf-adm-grid { grid-template-columns: 1.4fr 1fr; }
 .tf-adm-grid > :first-child { grid-row: span 2; }
}


/* Card */
.tf-adm-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }

.tf-adm-card.no-pad { padding: 0; }

.tf-adm-card:not(.no-pad) { padding: 4px 0; }

.tf-adm-card-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 8px; }

.tf-adm-card-head h3 { font-size: 14px; font-weight: 800; color: var(--nc-ink); letter-spacing: -0.02em; }

.tf-adm-card-head a { font-size: 12px; color: var(--nc-blue); font-weight: 600; }


/* Table */
.tf-adm-table { width: 100%; border-collapse: collapse; font-size: 13px; }

.tf-adm-table th { text-align: left; padding: 11px 14px; font-size: 11px; color: var(--ink-2); font-weight: 600; background: var(--surface); border-bottom: 1px solid var(--line); }

.tf-adm-table th.r, .tf-adm-table td.r { text-align: right; }

.tf-adm-table td { padding: 12px 14px; border-bottom: 1px solid var(--surface); color: var(--nc-ink); vertical-align: middle; }

.tf-adm-table tbody tr:hover { background: #fafbff; }

.tf-adm-table tbody tr:last-child td { border-bottom: 0; }

.tf-adm-table a { color: var(--nc-ink); }

.tf-adm-table a:hover { color: var(--nc-blue); }

.tf-adm-mute { font-size: 11px; color: var(--ink-3); margin-top: 2px; }

.tf-adm-empty { padding: 30px 18px; text-align: center; color: var(--ink-3); font-size: 13px; }

.tf-adm-sub { font-size: 11.5px; color: var(--ink-3); }

.tf-adm-chip { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; line-height: 1; background: var(--surface); color: var(--ink-2); }

.tf-adm-chip.is-hold { background: #fef3c7; color: #92400e; }

.tf-adm-chip.is-approve { background: #dcfce7; color: #15803d; }

.tf-adm-chip.is-spam { background: #fee2e2; color: #b91c1c; }

.tf-adm-chip.is-done { background: #dbeafe; color: #1e40af; }

.tf-adm-chip.is-ing { background: var(--surface); color: #475569; }

.tf-adm-chip.is-not { background: var(--surface); color: var(--ink-3); }

.tf-adm-link-danger { font-size: 11.5px; color: #dc2626 !important; font-weight: 600; }

.tf-adm-link-danger:hover { text-decoration: underline; }

.tf-adm-action-stack { display: inline-flex; flex-direction: column; gap: 4px; align-items: stretch; }

.tf-adm-action-stack > * { text-align: center; }

.tf-adm-progress { position: relative; background: var(--surface); border-radius: 999px; overflow: hidden; height: 18px; min-width: 80px; }

.tf-adm-progress .bar { background: linear-gradient(90deg, var(--accent), #4f8bff); height: 100%; border-radius: 999px; transition: width 0.3s; }

.tf-adm-progress .pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #1d2327; }

.tf-adm-progress .pct.on { color: var(--surface-2); }

.tf-adm-link { color: var(--nc-blue) !important; font-size: 12px; font-weight: 600; margin-left: 8px; }

.tf-adm-link:hover { text-decoration: underline; }

.tf-adm-thumb { width: 50px; padding: 8px !important; }

.tf-adm-thumb img { width: 38px; height: 38px; object-fit: cover; border-radius: 6px; display: block; }

.tf-adm-thumb .ph { width: 38px; height: 38px; border-radius: 6px; background: var(--surface); }

/* 어드민 테이블 — 모바일에서 가로 스크롤 */
.tf-adm-card.no-pad { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 767px){

	.tf-adm-table { min-width: 720px; }

	.tf-adm-thumb img, .tf-adm-thumb .ph { width: 44px; height: 44px; }
}

.tf-adm-userrow { display: flex; align-items: center; gap: 10px; }

.tf-adm-userrow .ava { width: 32px; height: 32px; border-radius: 50%; background: var(--nc-blue); color: var(--surface-2); font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }

.tf-adm-userrow .ava.ava-img { background: var(--nc-bg-alt); }

.tf-adm-userrow .ava-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.tf-adm-userrow-name { display: flex; align-items: center; gap: 6px; }

.tf-adm-provider { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px 1px 5px; border-radius: 10px; font-size: 10px; font-weight: 700; line-height: 1.5; flex-shrink: 0; }

.tf-adm-provider.prov-kakao  { background: #FEE500; color: #3C1E1E; }

.tf-adm-provider.prov-naver  { background: #03C75A; color: var(--surface-2); }

.tf-adm-provider.prov-google { background: #F1F3F4; color: #3C4043; }

.tf-adm-bar { width: 80px; height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 6px; }

.tf-adm-bar span { display: block; height: 100%; background: var(--nc-blue); }


/* Status pills */
.tf-adm-status { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--line); color: var(--nc-ink); }

.tf-adm-status.s-completed, .tf-adm-status.s-wc-completed, .tf-adm-status.s-publish { background: #dcfce7; color: #166534; }

.tf-adm-status.s-processing, .tf-adm-status.s-wc-processing { background: #dbeafe; color: #1e40af; }

.tf-adm-status.s-pending, .tf-adm-status.s-wc-pending, .tf-adm-status.s-draft { background: #fef9c3; color: #854d0e; }

.tf-adm-status.s-cancelled, .tf-adm-status.s-wc-cancelled, .tf-adm-status.s-refunded, .tf-adm-status.s-wc-refunded { background: #fee2e2; color: #991b1b; }

.tf-adm-status.s-administrator { background: #ede9fe; color: #5b21b6; }


/* Toolbar */
.tf-adm-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.tf-adm-search { position: relative; display: flex; align-items: center; flex: 1; min-width: 220px; max-width: 360px; }

.tf-adm-search svg { position: absolute; left: 12px; color: var(--ink-3); pointer-events: none; }

.tf-adm-search input { width: 100%; padding: 9px 12px 9px 36px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; background: var(--surface-2); }

.tf-adm-search input:focus { outline: none; border-color: var(--nc-blue); }

.tf-adm-tabs { display: flex; gap: 4px; align-items: center; }

.tf-adm-tabs a { padding: 7px 12px; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); }

.tf-adm-tabs a:hover { color: var(--nc-ink); border-color: var(--nc-ink); }

.tf-adm-tabs a.is-active { background: var(--nc-ink); color: var(--surface-2); border-color: var(--nc-ink); }

.tf-adm-tabs span { font-size: 12px; color: var(--ink-2); }

.tf-adm-btn-primary { padding: 9px 16px; background: var(--nc-blue); color: var(--surface-2) !important; font-size: 12px; font-weight: 700; border-radius: 8px; }

.tf-adm-btn-primary:hover { background: var(--nc-blue-h); }

.tf-adm-btn-outline { padding: 9px 14px; background: var(--surface-2); color: var(--nc-ink) !important; font-size: 12px; font-weight: 600; border-radius: 8px; border: 1px solid var(--line); }

.tf-adm-btn-outline:hover { border-color: var(--nc-ink); }


/* Reader/Post lists */
.tf-adm-userlist { list-style: none; padding: 0 18px 14px; margin: 0; }

.tf-adm-userlist li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--surface); }

.tf-adm-userlist li:last-child { border-bottom: 0; }

.tf-adm-userlist .ava { width: 32px; height: 32px; border-radius: 50%; background: var(--nc-blue); color: var(--surface-2); font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

.tf-adm-userlist .name { font-size: 13px; font-weight: 700; color: var(--nc-ink); }

.tf-adm-userlist .email { font-size: 11px; color: var(--ink-3); }

.tf-adm-userlist .meta { flex: 1; min-width: 0; }

.tf-adm-userlist .date { font-size: 11px; color: var(--ink-3); }


.tf-adm-toplist { list-style: none; padding: 0 18px 14px; margin: 0; }

.tf-adm-toplist li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--surface); }

.tf-adm-toplist li:last-child { border-bottom: 0; }

.tf-adm-toplist .rank { width: 22px; height: 22px; border-radius: 50%; background: var(--surface); color: var(--nc-ink); font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }

.tf-adm-toplist li:nth-child(-n+3) .rank { background: var(--nc-blue); color: var(--surface-2); }

.tf-adm-toplist .title { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; color: var(--nc-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tf-adm-toplist .sales { font-size: 11px; color: var(--ink-2); }


/* Pager */
.tf-adm-pager { display: flex; gap: 4px; justify-content: center; padding: 16px 0; }

.tf-adm-pager a { padding: 6px 11px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; color: var(--nc-ink); background: var(--surface-2); }

.tf-adm-pager a:hover { border-color: var(--nc-ink); }

.tf-adm-pager a.is-active { background: var(--nc-ink); color: var(--surface-2); border-color: var(--nc-ink); }


/* ============ 로그인 필요 게이트 ============ */
.tf-auth-gate { background: var(--surface-2); border: 1px solid var(--nc-line); border-radius: 18px; padding: 44px 36px 36px; text-align: center; box-shadow: 0 10px 36px -24px rgba(15,23,42,0.18); }

.tf-auth-gate-icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(200,16,63,0.04); color: var(--nc-blue); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; }

.tf-auth-gate-eyebrow { font-size: 12px; color: var(--nc-body); font-weight: 600; letter-spacing: 0.04em; margin: 0 0 6px; }

.tf-auth-gate-title { font-size: 24px; font-weight: 800; color: var(--nc-ink); letter-spacing: -0.025em; margin: 0 0 12px; line-height: 1.3; }

.tf-auth-gate-desc { font-size: 13.5px; color: var(--nc-body); line-height: 1.7; margin: 0 0 26px; }

.tf-auth-gate-cta { margin-bottom: 18px; }

.tf-auth-gate-foot { font-size: 13px; color: var(--nc-body); margin: 0; }

.tf-auth-gate-foot a { color: var(--nc-blue); font-weight: 700; }

.tf-auth-gate-foot a:hover { text-decoration: underline; }


/* ============ form-link 비번찾기·회원가입 (cosmosfarm·wpmem 통합) ============ */
html body .tf-auth-wrap .form-link { display: flex !important; justify-content: center !important; align-items: center !important; gap: 0 !important; padding: 0 !important; background: transparent !important; border: 0 !important; min-height: 0 !important; height: auto !important; }

html body .tf-auth-wrap .form-link-item { background: transparent !important; margin: 0 !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; flex: 0 0 auto !important; width: auto !important; padding: 0 18px !important; line-height: 1.4 !important; position: relative !important; display: block !important; height: auto !important; min-height: 0 !important; max-height: none !important; align-self: center !important; }

html body .tf-auth-wrap .form-link-item + .form-link-item::before { content: '' !important; display: block !important; position: absolute !important; left: 0 !important; top: 50% !important; transform: translateY(-50%) !important; width: 1px !important; height: 11px !important; background: var(--nc-line) !important; bottom: auto !important; margin: 0 !important; }

html body .tf-auth-wrap .form-link-item + .form-link-item { border-left: 0 !important; }

html body .tf-auth-wrap .form-link a,
html body .tf-auth-wrap .form-link-item a,
html body .tf-auth-wrap .form-link-item a.form-button,
html body .tf-auth-wrap .link-text-forgot a,
html body .tf-auth-wrap .link-text-register a,
html body .cosmosfarm-members-form .form-bottom .form-button { display: inline-block !important; padding: 0 !important; background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; color: var(--nc-body) !important; font-size: 12.5px !important; font-weight: 500 !important; text-decoration: none !important; line-height: 1.4 !important; height: auto !important; min-height: 0 !important; max-height: none !important; }

html body .tf-auth-wrap .form-link a:hover,
html body .tf-auth-wrap .form-link-item a:hover { background: transparent !important; color: var(--nc-blue) !important; text-decoration: underline !important; }

/* cosmosfarm 로그인/회원가입 폼 내부 작은 소셜 버튼 숨김 — 상단 노란 풀폭 버튼이 이미 있음 */
.tf-auth-wrap .cosmosfarm-social-login,
.tf-auth-wrap .form-bottom .cosmosfarm-social-login { display: none !important; }


/* 로그인 게이트 버튼 — 흰 글씨 강제 (a 상속 우회) */
html body .tf-auth-gate .tf-btn-primary,
html body .tf-auth-gate a.tf-btn-primary { color: var(--surface-2) !important; background: var(--nc-blue) !important; }

html body .tf-auth-gate a.tf-btn-primary:hover { background: var(--nc-blue-h) !important; color: var(--surface-2) !important; }


/* ===== 후기 CTA (대시보드) ===== */
.tf-vp-review-cta { display: flex; align-items: center; gap: 18px; padding: 20px 24px; background: linear-gradient(135deg, rgba(200,16,63,0.06) 0%, rgba(200,16,63,0.02) 100%); border: 1px solid rgba(200,16,63,0.2); border-radius: 14px; margin-bottom: 14px; transition: border-color 0.15s, transform 0.15s; }

.tf-vp-review-cta:hover { border-color: var(--nc-blue); transform: translateY(-1px); }

.tf-vp-review-cta-body { flex: 1; }

.tf-vp-review-cta-tag { font-size: 11.5px; color: var(--nc-blue); font-weight: 800; letter-spacing: 0.04em; margin-bottom: 6px; text-transform: uppercase; }

.tf-vp-review-cta-title { font-size: 16px; font-weight: 800; color: var(--nc-ink); letter-spacing: -0.02em; margin-bottom: 4px; }

.tf-vp-review-cta-desc { font-size: 12.5px; color: var(--nc-body); }

.tf-vp-review-cta-btn { padding: 10px 18px; background: var(--nc-blue); color: var(--surface-2) !important; border-radius: 8px; font-size: 13px; font-weight: 700; white-space: nowrap; flex-shrink: 0; }

.tf-vp-review-cta:hover .tf-vp-review-cta-btn { background: var(--nc-blue-h); }

.tf-vp-shortcut-badge { display: inline-block; min-width: 18px; padding: 1px 6px; margin-left: 6px; background: var(--nc-blue); color: var(--surface-2); border-radius: 999px; font-size: 11px; font-weight: 800; vertical-align: middle; }


/* ===== 어드민 쿠폰 ===== */
.tf-admin-coupon-form { background: var(--surface-2); border: 1px solid var(--nc-line); border-radius: 12px; padding: 24px 26px; }

.tf-admin-coupon-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-bottom: 14px; }

.tf-admin-coupon-row label, .tf-admin-coupon-full { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }

.tf-admin-coupon-row label span, .tf-admin-coupon-full span { font-size: 12.5px; color: var(--nc-body); font-weight: 600; }

.tf-admin-coupon-row input, .tf-admin-coupon-row select, .tf-admin-coupon-full input, .tf-admin-coupon-full textarea { padding: 10px 12px; border: 1px solid var(--nc-line); border-radius: 8px; font-size: 13.5px; background: var(--surface-2); font-family: inherit; }

.tf-admin-coupon-row input:focus, .tf-admin-coupon-row select:focus, .tf-admin-coupon-full input:focus, .tf-admin-coupon-full textarea:focus { outline: 0; border-color: var(--nc-blue); }

.tf-admin-coupon-h { font-size: 14px; font-weight: 800; color: var(--nc-ink); margin: 20px 0 12px; padding-top: 18px; border-top: 1px solid var(--nc-line); }

.tf-admin-coupon-checks { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; }

.tf-admin-coupon-checks label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--nc-ink); cursor: pointer; }

.tf-admin-coupon-checks input { width: 16px; height: 16px; accent-color: var(--nc-blue); }

.tf-admin-coupon-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; padding-top: 18px; border-top: 1px solid var(--nc-line); }
@media (max-width: 720px){
 .tf-admin-coupon-row { grid-template-columns: 1fr; }
}
@media print{

	.tf-header, .tf-footer, .tf-mypage-head, .tf-receipt-actions, .tf-mypage-side { display: none !important; }

	.tf-mypage-section { background: var(--surface-2) !important; padding: 0 !important; }

	.tf-mypage-grid { grid-template-columns: 1fr !important; }
}


/* ============ 마이페이지 Vercel 스타일 ============ */
.tf-mypage-section { background: var(--nc-soft); min-height: 60vh; padding: 40px 0 80px; }

.tf-mypage-head { margin-bottom: 28px; padding: 0 4px; }

.tf-mypage-head h1 { font-size: 28px; font-weight: 800; color: var(--nc-ink); letter-spacing: -0.025em; margin: 0 0 6px; }

.tf-mypage-head p { font-size: 13px; color: var(--nc-body); margin: 0; }


/* 카드 공통 */
.tf-vp-card { background: var(--surface-2); border: 1px solid var(--nc-line); border-radius: 14px; padding: 24px; margin-bottom: 14px; }

.tf-vp-card-h { font-size: 17px; font-weight: 800; color: var(--nc-ink); letter-spacing: -0.02em; margin: 0 0 6px; }

.tf-vp-card-sub { font-size: 13px; color: var(--nc-body); margin: 0 0 18px; line-height: 1.6; }


/* 대시보드: 프로필 카드 */
.tf-vp-profile { display: flex; align-items: center; gap: 18px; }

.tf-vp-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--nc-blue); color: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; flex-shrink: 0; }

.tf-vp-profile-body { flex: 1; min-width: 0; }

.tf-vp-name { font-size: 17px; font-weight: 800; color: var(--nc-ink); letter-spacing: -0.02em; margin-bottom: 4px; }

.tf-vp-email { font-size: 13px; color: var(--nc-body); margin-bottom: 6px; word-break: break-all; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px){
 .tf-vp-email { font-size: 12px; }
}

.tf-vp-status { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: #10B981; font-weight: 600; }

.tf-vp-status .dot { width: 6px; height: 6px; border-radius: 50%; background: #10B981; }

.tf-vp-role { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; background: var(--nc-soft, #f6f7fa); color: var(--nc-ink, #181a20); font-size: 11px; font-weight: 700; letter-spacing: -0.01em; margin-left: 4px; }

.tf-vp-edit { padding: 9px 16px; border: 1px solid var(--nc-line); border-radius: 8px; font-size: 12.5px; font-weight: 700; color: var(--nc-ink) !important; background: var(--surface-2); flex-shrink: 0; }

.tf-vp-edit:hover { border-color: var(--nc-blue); color: var(--nc-blue) !important; }


/* KPI 4-grid + 3-grid */
.tf-vp-kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
@media (min-width: 720px){
 .tf-vp-kpi-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
}

.tf-vp-kpi-grid-3 { grid-template-columns: 1fr; gap: 8px; max-width: 100%; }
@media (min-width: 720px){
 .tf-vp-kpi-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}

.tf-vp-kpi { background: var(--surface-2); border: 1px solid var(--nc-line); border-radius: 12px; padding: 12px 14px; min-width: 0; max-width: 100%; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.tf-vp-kpi-link { color: inherit !important; text-decoration: none !important; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; cursor: pointer; }

.tf-vp-kpi-link:hover { border-color: var(--nc-blue); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(200,16,63,0.08); }

.tf-vp-kpi .lbl { font-size: 13px; color: var(--nc-body); font-weight: 500; margin-bottom: 0; word-break: keep-all; line-height: 1.35; flex: 1; min-width: 0; }

.tf-vp-kpi .val { font-size: 17px; font-weight: 800; color: var(--nc-ink); letter-spacing: -0.025em; line-height: 1.15; word-break: keep-all; text-align: right; flex-shrink: 1; min-width: 0; }

.tf-vp-kpi-grid, .tf-mypage-main, .tf-mypage-grid { max-width: 100%; min-width: 0; }
@media (min-width: 720px){

	.tf-vp-kpi { display: block; padding: 18px 20px; }

	.tf-vp-kpi .lbl { font-size: 13px; margin-bottom: 6px; }

	.tf-vp-kpi .val { font-size: 26px; text-align: left; }
}

.tf-vp-kpi .val span { font-size: 15px; color: var(--nc-body); margin-left: 4px; font-weight: 700; }

.tf-vp-kpi-accent { color: var(--nc-blue) !important; }

.tf-vp-kpi-accent + span { color: var(--nc-blue); }


/* 바로가기 카드 (대시보드) */
/* 마이페이지 바로가기 — 한 눈에 보이는 컴팩트 grid (모바일 2x2 · 데스크톱 4x1) */
.tf-vp-shortcut-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
@media (min-width: 720px){
 .tf-vp-shortcut-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
}

.tf-vp-shortcut { background: var(--surface-2); border: 1px solid var(--nc-line); border-radius: 12px; padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; min-height: 116px; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }

.tf-vp-shortcut:hover { border-color: var(--nc-blue); transform: translateY(-1px); box-shadow: 0 6px 14px rgba(200,16,63,0.08); }

.tf-vp-shortcut-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }

.tf-vp-shortcut-head .emoji { font-size: 22px; line-height: 1; }

.tf-vp-shortcut-go { color: var(--nc-blue); font-size: 10.5px; font-weight: 700; opacity: 0.6; }

.tf-vp-shortcut-body h3 { font-size: 14px; font-weight: 800; color: var(--nc-ink); margin: 0 0 4px; letter-spacing: -0.02em; }

.tf-vp-shortcut-body p { font-size: 11.5px; color: var(--nc-body); margin: 0; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }


/* 쿠폰 카드 */
.tf-vp-coupon { background: var(--surface-2); border: 1.5px dashed rgba(200,16,63,0.45); border-radius: 14px; padding: 22px 26px; display: flex; align-items: center; gap: 18px; }

.tf-vp-coupon-body { flex: 1; }

.tf-vp-coupon-tag { font-size: 11.5px; color: var(--nc-blue); font-weight: 800; letter-spacing: 0.02em; margin-bottom: 6px; }

.tf-vp-coupon-title { font-size: 17px; font-weight: 800; color: var(--nc-ink); letter-spacing: -0.02em; margin-bottom: 4px; }

.tf-vp-coupon-period { font-size: 12px; color: var(--nc-body); }

.tf-vp-coupon-use { padding: 10px 22px; background: var(--nc-blue); color: var(--surface-2) !important; border-radius: 8px; font-size: 13px; font-weight: 800; flex-shrink: 0; }

.tf-vp-coupon-use:hover { background: var(--nc-blue-h); }


/* 내 서재 ===== */
.tf-vp-admin-banner { padding: 12px 16px; background: #fff8e6; border: 1px solid #fde68a; border-radius: 10px; font-size: 12px; color: #92400e; margin-bottom: 14px; }

.tf-vp-sub { font-size: 13.5px; color: var(--nc-body); margin: 0 0 18px; }

.tf-vp-sub strong { color: var(--nc-ink); font-weight: 700; }

.tf-vp-h2 { font-size: 22px; font-weight: 800; color: var(--nc-ink); letter-spacing: -0.025em; margin: 28px 0 14px; }

.tf-vp-resume-list { display: flex; flex-direction: column; gap: 12px; }

.tf-vp-resume { display: grid; grid-template-columns: 160px 1fr; gap: 20px; background: var(--surface-2); border: 1px solid var(--nc-line); border-radius: 14px; padding: 20px; transition: border-color 0.15s, transform 0.15s; }

.tf-vp-resume:hover { border-color: var(--nc-blue); transform: translateY(-1px); }

.tf-vp-resume-thumb { background: linear-gradient(135deg, #2563EB 0%, #4F46E5 100%); border-radius: 10px; aspect-ratio: 4/3; }

.tf-vp-resume-body { display: flex; flex-direction: column; gap: 8px; }

.tf-vp-resume-chips { display: flex; gap: 6px; }

.tf-vp-resume-chips .chip { padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }

.tf-vp-resume-chips .chip-free { background: #ecfdf5; color: #047857; }

.tf-vp-resume-chips .chip-paid { background: var(--ink); color: var(--surface-2); }

.tf-vp-resume-chips .chip-cat { background: var(--nc-soft); color: var(--nc-blue); }

.tf-vp-resume-body h3 { font-size: 17px; font-weight: 800; color: var(--nc-ink); letter-spacing: -0.02em; margin: 2px 0 0; line-height: 1.3; }

.tf-vp-resume-body p { font-size: 13px; color: var(--nc-body); margin: 0; line-height: 1.5; }

.tf-vp-resume-bar { margin-top: auto; }

.tf-vp-resume-bar-label { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--nc-body); margin-bottom: 6px; }

.tf-vp-resume-bar-label .pct { color: var(--nc-blue); font-weight: 800; }

.tf-vp-resume-bar-track { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }

.tf-vp-resume-bar-track span { display: block; height: 100%; background: var(--nc-blue); transition: width 0.3s; }
@media (max-width: 640px){

	.tf-vp-resume { grid-template-columns: 1fr; gap: 14px; }

	.tf-vp-resume-thumb { aspect-ratio: 16/9; }
}


/* 주문 내역 */
.tf-vp-card-list { padding: 0; overflow: hidden; }

.tf-vp-order { display: flex; align-items: center; gap: 18px; padding: 22px 26px; border-bottom: 1px solid var(--nc-line); }

.tf-vp-order:last-child { border-bottom: 0; }

.tf-vp-order-body { flex: 1; min-width: 0; }

.tf-vp-order-meta { display: flex; gap: 8px; font-size: 11.5px; color: var(--nc-body); margin-bottom: 6px; }

.tf-vp-order-meta .ord { font-family: ui-monospace, monospace; color: var(--nc-body); }

.tf-vp-order-title { font-size: 15px; font-weight: 700; color: var(--nc-ink); letter-spacing: -0.02em; }

.tf-vp-order-title .more { font-size: 11.5px; color: var(--nc-body); font-weight: 500; margin-left: 6px; }

.tf-vp-order-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.tf-vp-order-price { font-size: 16px; font-weight: 800; color: var(--nc-ink); }

.tf-vp-order-price .free { color: var(--nc-body); font-weight: 600; font-size: 14px; }

.tf-vp-order-status { padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 800; }

.tf-vp-order-status.s-completed, .tf-vp-order-status.s-processing { background: #d1fae5; color: #065f46; }

.tf-vp-order-status.s-cancelled, .tf-vp-order-status.s-failed, .tf-vp-order-status.s-refunded { background: #fee2e2; color: #991b1b; }

.tf-vp-order-status.s-pending, .tf-vp-order-status.s-on-hold { background: #fef3c7; color: #92400e; }

.tf-vp-order-receipt { padding: 7px 14px; background: var(--surface-2); border: 1px solid var(--nc-line); border-radius: 8px; font-size: 12px; font-weight: 700; color: var(--nc-body) !important; transition: border-color 0.15s; }

.tf-vp-order-receipt:hover { border-color: var(--nc-blue); color: var(--nc-blue) !important; }

.tf-vp-card-note { background: var(--nc-soft); border: 0; padding: 18px 22px; }

.tf-vp-card-note p { font-size: 12.5px; color: var(--nc-body); margin: 0; line-height: 1.7; }
@media (max-width: 640px){

	.tf-vp-order { flex-direction: column; align-items: flex-start; gap: 12px; }

	.tf-vp-order-right { width: 100%; justify-content: space-between; }
}


/* 후기 */
.tf-vp-pending { background: linear-gradient(135deg, var(--surface), var(--surface)); border: 1.5px solid rgba(200,16,63,0.2); }

.tf-vp-pending-head { color: var(--nc-blue); font-weight: 800; font-size: 14px; margin-bottom: 14px; }

.tf-vp-pending-row { display: flex; align-items: center; gap: 14px; background: var(--surface-2); padding: 14px 18px; border-radius: 10px; margin-top: 8px; }

.tf-vp-pending-title { flex: 1; font-size: 14px; font-weight: 700; color: var(--nc-ink); }

.tf-vp-pending-cta { padding: 9px 18px; background: var(--nc-blue); color: var(--surface-2) !important; border-radius: 8px; font-size: 12.5px; font-weight: 800; flex-shrink: 0; }

.tf-vp-review-list { display: flex; flex-direction: column; gap: 12px; }

.tf-vp-review-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }

.tf-vp-review-stars { color: var(--nc-blue); font-size: 16px; letter-spacing: 1px; }

.tf-vp-review-date { font-size: 12px; color: var(--nc-body); }

.tf-vp-review-actions { margin-left: auto; display: flex; gap: 6px; border-top: 0 !important; padding-top: 0 !important; margin-top: 0 !important; }

.tf-vp-review-actions a,
.tf-vp-review-actions button { font-size: 12px; color: var(--nc-blue); font-weight: 600; background: transparent; border: 0; cursor: pointer; padding: 4px 8px; border-radius: 6px; }

.tf-vp-review-actions a:hover,
.tf-vp-review-actions button:hover { background: var(--nc-soft); }

.tf-vp-review-actions a.danger,
.tf-vp-review-actions button.danger { color: var(--ink-3); }

.tf-vp-review-actions button.danger:hover { color: #dc2626; background: transparent; }

.tf-vp-review .tf-rev-photos { margin-top: 12px; }

.tf-vp-review .tf-rev-photo { cursor: default; }

.tf-vp-review-title { display: block; font-size: 16px; font-weight: 800; color: var(--nc-ink); letter-spacing: -0.02em; margin-bottom: 8px; }

.tf-vp-review-title:hover { color: var(--nc-blue); }

.tf-vp-review-body { font-size: 13.5px; color: var(--nc-body); line-height: 1.7; margin: 0; }


/* 설정 폼 */
.tf-vp-form .tf-vp-actions { margin-top: 14px; padding-left: 0 !important; }

.tf-vp-form .tf-vp-actions button { margin-left: 0 !important; }

/* WP-Members/Cosmosfarm fieldset 들여쓰기 방지 */
.tf-vp-form fieldset, .tf-vp-form legend { margin: 0; padding: 0; border: 0; }


/* 아바타 업로드 row */
.tf-vp-avatar-row { display: flex; align-items: center; gap: 20px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--nc-line); }

.tf-vp-avatar-preview { position: relative; width: 84px; height: 84px; border-radius: 50%; background: var(--nc-blue); color: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; flex-shrink: 0; overflow: hidden; cursor: pointer; transition: transform 0.15s; }

.tf-vp-avatar-preview:hover { transform: scale(1.03); }

.tf-vp-avatar-preview:hover .tf-vp-avatar-overlay { opacity: 1; }

.tf-vp-avatar-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.45); color: var(--surface-2); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.15s; border-radius: 50%; }

.tf-vp-avatar-controls { display: flex; flex-direction: column; gap: 6px; }

.tf-vp-avatar-btn { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 7px 14px; background: var(--nc-blue); border: 0; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--surface-2) !important; cursor: pointer; transition: background 0.15s, transform 0.1s; }

.tf-vp-avatar-btn:hover { background: var(--nc-blue-h); }

.tf-vp-avatar-btn:active { transform: scale(0.985); }

.tf-vp-avatar-btn svg { color: var(--surface-2); flex-shrink: 0; width: 14px; height: 14px; }

.tf-vp-avatar-controls .tf-vp-hint { margin: 0; font-size: 12px; color: var(--nc-body); }

.tf-vp-avatar-file { position: absolute !important; left: -9999px !important; opacity: 0; width: 1px; height: 1px; pointer-events: none; }

.tf-vp-avatar-remove { font-size: 12px; color: var(--nc-body); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }

.tf-vp-avatar-remove input { width: 14px; height: 14px; }


.tf-vp-form .tf-vp-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }

.tf-vp-form .tf-vp-field > span { font-size: 13px; color: var(--nc-ink); font-weight: 600; }

.tf-vp-form .tf-vp-field input { padding: 11px 14px; border: 1px solid var(--nc-line); border-radius: 9px; font-size: 14px; background: var(--surface-2); color: var(--nc-ink); font-family: inherit; transition: border-color 0.15s; }

.tf-vp-form .tf-vp-field input:focus { outline: 0; border-color: var(--nc-blue); box-shadow: 0 0 0 3px rgba(200,16,63,0.05); }

.tf-vp-form .tf-vp-field input:disabled { background: var(--nc-soft); color: var(--nc-body); cursor: not-allowed; }

.tf-vp-hint { font-size: 11.5px; color: var(--nc-body); margin: -8px 0 12px; }

.tf-vp-actions { margin-top: 6px; }

.tf-vp-toggle-row { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--nc-line); }

.tf-vp-toggle-row:first-of-type { border-top: 0; padding-top: 6px; }

.tf-vp-toggle-row > div:first-child { flex: 1; }

.tf-vp-toggle-name { font-size: 14px; font-weight: 700; color: var(--nc-ink); margin-bottom: 3px; }

.tf-vp-toggle-desc { font-size: 12px; color: var(--nc-body); }

.tf-vp-toggle { position: relative; width: 44px; height: 24px; display: inline-block; flex-shrink: 0; cursor: pointer; }

.tf-vp-toggle input { opacity: 0; position: absolute; pointer-events: none; }

.tf-vp-toggle > span { position: absolute; inset: 0; background: var(--line); border-radius: 999px; transition: background 0.2s; }

.tf-vp-toggle > span::before { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: var(--surface-2); border-radius: 50%; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.15); }

.tf-vp-toggle input:checked + span { background: var(--nc-blue); }

.tf-vp-toggle input:checked + span::before { transform: translateX(20px); }

.tf-vp-danger { display: inline-block; padding: 9px 18px; background: #fef2f2; color: #dc2626 !important; border: 1px solid #fecaca; border-radius: 8px; font-size: 13px; font-weight: 700; }

.tf-vp-danger:hover { background: #fee2e2; }

.tf-vp-flash { padding: 12px 18px; border-radius: 10px; margin-bottom: 14px; font-size: 13px; font-weight: 600; }

.tf-vp-flash.success { background: #d1fae5; color: #065f46; }

.tf-vp-flash.error { background: #fee2e2; color: #991b1b; }


.tf-vp-empty { background: var(--surface-2); border: 1px dashed var(--nc-line); border-radius: 14px; padding: 56px 32px; text-align: center; }

.tf-vp-empty h3 { font-size: 17px; font-weight: 800; color: var(--nc-ink); margin: 0 0 6px; letter-spacing: -0.02em; }

.tf-vp-empty p { font-size: 13px; color: var(--nc-body); margin: 0 0 18px; }


/* ============ 어드민 챕터 편집기 ============ */
.tf-adm-pageheader-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.tf-adm-pageheader-actions { display: flex; gap: 8px; align-items: center; }

.tf-adm-flash { padding: 12px 18px; border-radius: 10px; margin-bottom: 16px; font-size: 13px; font-weight: 600; }

.tf-adm-flash.success { background: #d1fae5; color: #065f46; }

.tf-adm-flash.error { background: #fee2e2; color: #991b1b; }


.tf-adm-btn-primary { display: inline-block; padding: 9px 18px; background: var(--accent); color: var(--surface-2) !important; border: 0; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; transition: background 0.15s; text-decoration: none; }

.tf-adm-btn-primary:hover { background: #0056d6; }

.tf-adm-btn-outline { display: inline-block; padding: 9px 18px; background: var(--surface-2); color: var(--ink) !important; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; transition: border-color 0.15s, color 0.15s; text-decoration: none; }

.tf-adm-btn-outline:hover { border-color: var(--accent); color: var(--accent) !important; }

.tf-page-head h1, .tf-page-head p, .tf-page-head .tf-eyebrow { padding: 0; margin-left: 0; margin-right: 0; }

.tf-mypage-head { padding: 0 !important; }

.tf-mypage-head h1, .tf-mypage-head p { padding: 0; margin-left: 0; }


/* ---- /admin/readers/ 확장 ---- */
.tf-adm-filterchips { display: flex; flex-wrap: wrap; gap: 6px; margin: -8px 0 16px; }

.tf-adm-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--nc-line, var(--line)); color: var(--nc-body, #50535b); font-size: 12.5px; font-weight: 600; text-decoration: none; transition: background 0.15s, border-color 0.15s, color 0.15s; }

.tf-adm-chip:hover { border-color: var(--nc-blue, var(--accent)); color: var(--nc-blue, var(--accent)); }

.tf-adm-chip.is-active { background: #181a20; border-color: #181a20; color: var(--surface-2); }

.tf-adm-chip .cnt { background: rgba(0,0,0,0.06); padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; }

.tf-adm-chip.is-active .cnt { background: rgba(255,255,255,0.18); }


.tf-adm-badge { display: inline-flex; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; margin-left: 6px; vertical-align: middle; }

.tf-adm-badge.danger { background: #fee2e2; color: #b91c1c; }


.tf-adm-action-panel { background: var(--surface-2); border: 1px solid var(--nc-line, var(--line)); border-radius: 12px; padding: 18px 20px; margin-bottom: 20px; box-shadow: 0 1px 0 rgba(0,0,0,0.02); }

.tf-adm-action-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; padding: 12px 0; border-top: 1px dashed var(--nc-line, var(--line)); }

.tf-adm-action-row:first-child { border-top: 0; padding-top: 0; }

.tf-adm-action-cell { display: flex; flex-direction: column; gap: 6px; flex: 1 1 240px; min-width: 0; }

.tf-adm-action-cell > .lbl { font-size: 12px; font-weight: 700; color: var(--nc-ink, #181a20); }

.tf-adm-action-cell > small { font-size: 11.5px; color: var(--nc-body, #50535b); }

.tf-adm-action-cell select, .tf-adm-action-cell input { padding: 8px 10px; border: 1px solid var(--nc-line, var(--line)); border-radius: 8px; font-size: 13px; background: var(--surface-2); }

.tf-adm-action-cell .row { display: flex; gap: 6px; align-items: center; }

.tf-adm-action-cell .row select, .tf-adm-action-cell .row input { flex: 1 1 auto; min-width: 0; }

.tf-adm-action-cell .coupon-row select { flex: 0 0 auto; min-width: 96px; }

.tf-adm-action-cell .coupon-row input[type="number"] { flex: 1 1 auto; min-width: 100px; }

.tf-adm-action-cell .coupon-row input[type="date"] { flex: 1 1 auto; min-width: 140px; }
@media (max-width: 600px){

	.tf-adm-action-cell .row { flex-wrap: wrap; }

	.tf-adm-action-cell .coupon-row select,
	.tf-adm-action-cell .coupon-row input[type="number"] { flex: 1 1 calc(50% - 3px); min-width: 0; }

	.tf-adm-action-cell .coupon-row input[type="date"] { flex: 1 1 100%; min-width: 0; }

	.tf-adm-action-cell .coupon-row button { flex: 1 1 100%; }

	.tf-adm-action-cell .points-row input[type="number"],
	.tf-adm-action-cell .points-row input[type="text"] { flex: 1 1 100%; min-width: 0; }

	.tf-adm-action-cell .points-row button { flex: 1 1 100%; }
}

.tf-adm-btn-primary.sm, .tf-adm-btn-outline.sm, .tf-adm-btn-warn, .tf-adm-btn-danger { padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; border: 1px solid transparent; line-height: 1; }

.tf-adm-btn-warn { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }

.tf-adm-btn-warn:hover { background: #ffedd5; }

.tf-adm-btn-danger { background: var(--surface-2); color: #b91c1c; border-color: #fecaca; }

.tf-adm-btn-danger:hover { background: #fee2e2; border-color: #fca5a5; }


.tf-adm-action-cell .points-row input[type="number"] { flex: 1 1 140px; min-width: 0; }

.tf-adm-action-cell .points-row input[type="text"] { flex: 2 1 200px; min-width: 0; }


/* ---- 관리자 임시 로그인 (impersonate) ---- */
.tf-adm-impersonate-row { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 12px; padding: 14px 18px; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.tf-adm-impersonate-row small { color: #1e3a8a; font-size: 11.5px; flex: 1 1 280px; min-width: 0; }


/* 마이페이지 챌린지 카드 */
.tf-vp-ch-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

.tf-vp-ch-card { display: block; background: var(--surface-2); border: 1px solid var(--nc-line); border-radius: 12px; overflow: hidden; transition: transform 0.15s, box-shadow 0.15s; }

.tf-vp-ch-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px -12px rgba(15,23,42,0.18); border-color: var(--nc-blue); }

.tf-vp-ch-card.is-done { opacity: 0.88; }

.tf-vp-ch-thumb { position: relative; aspect-ratio: 16/9; background: var(--nc-bg-alt); overflow: hidden; }

.tf-vp-ch-thumb img { width: 100%; height: 100%; object-fit: cover; }

.tf-vp-ch-dday { position: absolute; top: 10px; right: 10px; padding: 4px 10px; background: rgba(15,23,42,0.85); color: var(--surface-2); font-size: 11px; font-weight: 800; border-radius: 999px; }

.tf-vp-ch-dday.is-urgent { background: #dc2626; }

.tf-vp-ch-dday.is-done { background: #15803d; }

.tf-vp-ch-body { padding: 14px 16px 16px; }

.tf-vp-ch-body h3 { font-size: 15px; font-weight: 800; color: var(--nc-ink); letter-spacing: -0.02em; margin: 0 0 6px; }

.tf-vp-ch-meta { font-size: 12px; color: var(--nc-body); margin-bottom: 10px; }


/* 관리자 챌린지 편집 */
.tf-adm-grid-2col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }

.tf-ch-edit-topbar-left .tf-adm-back { margin-bottom: 0; }
@media (max-width: 560px){

	.tf-vp-ch-list { grid-template-columns: 1fr; }
}


/* ===== Admin 대시보드 — 확장 KPI / delta / catbars / sparkline / chip ===== */
.tf-adm-kpi.tf-adm-kpi-link { display: block; text-decoration: none !important; color: inherit !important; transition: border-color 0.15s, transform 0.15s; }

.tf-adm-kpi.tf-adm-kpi-link:hover { border-color: var(--nc-blue, var(--accent)); transform: translateY(-1px); }

.tf-adm-kpi.tf-adm-kpi-link.is-alert { border-color: #DC2626; background: #FEF2F2; }

.tf-adm-kpi.tf-adm-kpi-link.is-alert .val { color: #DC2626; }

.tf-adm-delta { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; letter-spacing: 0.02em; }

.tf-adm-delta.up { background: #DCFCE7; color: #16A34A; }

.tf-adm-delta.down { background: #FEE2E2; color: #DC2626; }

.tf-adm-delta.same { background: var(--surface); color: var(--ink-2); }

.tf-adm-delta.neutral { background: #EFF6FF; color: var(--accent); }


.tf-adm-catbars { display: flex; flex-direction: column; gap: 12px; padding: 4px 0; }

.tf-adm-catbar-row { display: grid; grid-template-columns: 1fr 60px; gap: 10px; align-items: center; }

.tf-adm-catbar-label { display: flex; justify-content: space-between; font-size: 13px; }

.tf-adm-catbar-label span { color: var(--nc-body, #475569); }

.tf-adm-catbar-label strong { color: var(--nc-ink, var(--ink)); font-weight: 700; font-variant-numeric: tabular-nums; }

.tf-adm-catbar-track { grid-column: 1; height: 8px; background: var(--surface); border-radius: 999px; overflow: hidden; margin-top: 4px; }

.tf-adm-catbar-fill { height: 100%; border-radius: 999px; transition: width 0.4s; }

.tf-adm-catbar-fill.cat-book { background: linear-gradient(90deg, var(--accent), #4F8BFF); }

.tf-adm-catbar-fill.cat-lecture { background: linear-gradient(90deg, #7C3AED, #A78BFA); }

.tf-adm-catbar-fill.cat-challenge { background: linear-gradient(90deg, #F59E0B, #FCD34D); }

.tf-adm-catbar-fill.cat-template { background: linear-gradient(90deg, #10B981, #6EE7B7); }

.tf-adm-catbar-pct { font-size: 12px; font-weight: 700; color: var(--nc-ink, var(--ink)); text-align: right; grid-row: 1 / 3; }


.tf-adm-spark { padding: 6px 0 0; }

.tf-adm-spark-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); margin-top: 6px; padding: 0 2px; }


.tf-adm-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--nc-line, var(--line)); border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--nc-body, #475569); background: var(--surface-2); text-decoration: none !important; }

.tf-adm-chip:hover { border-color: var(--nc-blue, var(--accent)); color: var(--nc-blue, var(--accent)); }

.tf-adm-chip.is-active { background: var(--nc-blue, var(--accent)); border-color: var(--nc-blue, var(--accent)); color: var(--surface-2) !important; }

.tf-adm-chip span { background: rgba(0,0,0,0.08); padding: 1px 7px; border-radius: 999px; font-size: 11px; }

.tf-adm-chip.is-active span { background: rgba(255,255,255,0.25); color: var(--surface-2); }
@media (max-width: 980px){

	.tf-adm-grid { grid-template-columns: 1fr !important; }
}

.tf-radm-actions .tf-adm-btn-primary, .tf-radm-actions .tf-adm-btn-outline, .tf-radm-actions .tf-adm-btn-danger { padding: 6px 12px; font-size: 12px; line-height: 1.2; display: inline-flex; align-items: center; }
/* ── 태나 보강 ── */
.tf-auth-foot-agree{margin-top:16px;text-align:center;font-size:12.5px;color:var(--ink-3)}
.tf-auth-foot-agree a{text-decoration:underline;color:var(--ink-2)}
.tf-admin-side-foot{display:flex;gap:10px;justify-content:space-between;align-items:center;margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.tf-admin-side-back,.tf-admin-side-wp{font-size:12.5px;color:var(--ink-2);text-decoration:none}
.tf-admin-side-back:hover,.tf-admin-side-wp:hover{color:var(--ink)}
.tf-adm-cust{white-space:nowrap;max-width:160px;overflow:hidden;text-overflow:ellipsis}
.tf-pwdreset-wrap form p{margin:0 0 12px}
.tf-pwdreset-wrap label{display:block;font-size:13px;font-weight:700;margin-bottom:6px;color:var(--ink)}
.tf-pwdreset-wrap input[type="email"],.tf-pwdreset-wrap input[type="text"]{width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);color:var(--ink);font-size:15px}
.tf-pwdreset-wrap input:focus{outline:none;border-color:var(--accent)}
@media(max-width:759px){.tf-hide-mobile{display:none}}

/* ── 로그인 폼 잔손질 ── */
/* 자동로그인: 체크박스+글자 한 줄, 왼쪽 정렬 (위의 강제 규칙보다 세게) */
.tf-auth-wrap .button_div{display:flex !important;flex-direction:column;gap:12px;margin-top:6px}
.tf-auth-wrap .button_div label{display:inline-flex !important;align-items:center;gap:7px;margin:0 !important;font-size:13px;color:var(--ink-2);font-weight:500;cursor:pointer}
html body .tf-auth-wrap .button_div input[type="checkbox"]{display:inline-block !important;width:16px !important;height:16px !important;min-height:0 !important;margin:0 !important;padding:0 !important;flex:none;background:transparent !important;accent-color:var(--accent);border:1px solid var(--line) !important;border-radius:4px !important;appearance:auto !important}
/* 폼 아래 중복 "회원가입" 링크 숨김(위에 탭이 있음) */
.tf-auth-wrap .link-text.register{display:none}
/* 브라우저 자동완성 파란 배경 제거 */
.tf-auth-wrap input:-webkit-autofill,
.tf-auth-wrap input:-webkit-autofill:hover,
.tf-auth-wrap input:-webkit-autofill:focus{-webkit-box-shadow:0 0 0 100px var(--surface-2) inset;-webkit-text-fill-color:var(--ink);caret-color:var(--ink);transition:background-color 9999s ease-out}
/* 글꼴 통일 */
.tf-auth-wrap input,.tf-auth-wrap button,.tf-auth-wrap select,.tf-auth-wrap label,.tf-auth-wrap legend{font-family:var(--font)}
/* 폼 밑 비밀번호 찾기 줄 */
.tf-auth-under{margin-top:14px;text-align:center;font-size:12.5px}
.tf-auth-under a{color:var(--ink-2);text-decoration:none}
.tf-auth-under a:hover{color:var(--accent);text-decoration:underline}
