/* 공통 */
label {cursor:auto;}
input {max-width:300px;}

/* 구독 모델 */
.subscribed-models { display: flex; gap: 14px; overflow-x: auto; padding: 2px 0 4px; -webkit-overflow-scrolling: touch; }
.subscribed-models::-webkit-scrollbar { display: none; }
.subscribed-model-item { display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; flex-shrink: 0; }
.subscribed-model-avatar { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; border: 1.5px solid #ff6b9d; }
.subscribed-model-avatar img { width: 100%; height: 100%; object-fit: cover; }
.subscribed-model-name { font-size: 9px; color: #333; font-weight: 600; max-width: 36px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.subscribed-model-days { font-size: 9px; color: #ff6b9d; font-weight: 500; }

/* 섹션 */
.mypage-section { padding-top: 20px; border-top: 1px solid #f0f0f0; }

/* 모델 그리드 */
.all-model-grid { display: none; grid-template-columns: repeat(5, 1fr); gap: 18px 8px; padding: 8px 0 4px; }
.all-model-grid.open { display: grid; }
.all-model-item { display: flex; flex-direction: column; align-items: center; gap: 5px; text-decoration: none; }
.all-model-item.hidden { display: none !important; }
.all-model-avatar { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; border: 2px solid #eee; transition: border-color 0.2s; }
.all-model-avatar img { width: 100%; height: 100%; object-fit: cover; }
.all-model-item:active .all-model-avatar { border-color: #ff6b9d; }
.all-model-name { font-size: 10px; color: #555; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 100%; max-width: 56px; }

/* 탭 네비게이션 */
.mypage-tabs { display: flex; margin-bottom: 0; gap: 0; }
.mypage-tabs a { display: inline-flex; align-items: center; padding: 14px 20px; font-size: 12px; font-weight: 700; color: #999; text-decoration: none; letter-spacing: 0.3px; transition: color 0.15s; }
.mypage-tabs a:hover, .mypage-tabs a.active { color: #f4447c; }

/* 카드 */
.mypage-container, .profile-container { position: relative; padding: 0 13px; }
.mypage-container::before, .profile-container::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #f4447c, #ff8cb8); }
.mypage-header { display: flex; align-items: baseline; gap: 12px; padding: 22px 0 18px; border-bottom: 1px solid #eee; letter-spacing: 1px; }
.mypage-header .section-title { font-size: 14px; font-weight: 700; color: #222; }
.mypage-header span { font-size: 11px; color: #bbb; }

/* 마이페이지 필드 */
.form-body { padding: 4px 0 0; }
.form-row {padding-left:0;padding-right:0;}
.form-row.mypage {font-size:13px;}
.form-row.upload {align-items: flex-start;}
.form-row.upload label {padding-top:3px;}

/* 업로드 필드 */
.upload-content { display: flex; flex-direction: column; gap: 7px; flex: 1; }
.upload-content img, .upload-content video { width: 140px; height: auto; border: 1px solid #eee; display: block; }

/* 포인트 */
.mypage-badge { display: inline-block; background: #fff0f5; color: #f4447c; border: 1px solid #ffb3c6; border-radius: 20px; padding: 2px 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.01em; }
.mypage-point { font-weight: 700; color: #f4447c; padding-right: 3px; }
.mypage-point-unit { font-size: 12px; color: #aaa; }
.mypage-form-control { flex: 1; }
.mypage-form-text { font-size: 13px; color: #1a1a1a; }
.price-wrap { display: flex; align-items: center; gap: 8px; }
.price-input { width: 120px; }
.price-unit { font-size: 13px; color: #ff6b9d; font-weight: 600; }

/* 환전 현황 */
.exch-overview { display: flex; gap: 12px; padding: 12px 0 16px; }
.exch-overview dl { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; margin: 0; }
.exch-overview dt { font-size: 10px; color: #aaa; font-weight: 600; }
.exch-overview dd { font-size: 14px; font-weight: 700; color: #f4447c; margin: 0; }

/* 서류 등록 행 */
.doc-row { display: flex; align-items: center; gap: 8px; padding: 10px 0 6px; }
.doc-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 20px; font-size: 11px; font-weight: 600; background: #f0f0f0; color: #888; }
.doc-chip.ok { background: #e8f5e9; color: #2e7d32; }

/* 회원탈퇴 안내 박스 */
.mypage-help-box { margin: 0 28px 18px; padding: 14px 16px; background: #fffafa; border: 1px solid #f8d9e3; border-radius: 10px; }
.mypage-help-box strong { display: block; margin-bottom: 6px; font-size: 12px; color: #222; }
.mypage-help-box p { margin: 0; font-size: 12px; color: #777; line-height: 1.7; }
.mypage-warning-box { margin: 8px 0 16px; padding: 16px 18px; background: #fff7f7; border: 1px solid #ffd7d7; border-radius: 10px; }
.mypage-warning-box ul { padding:4px 8px; }
.mypage-warning-box li { font-size: 12px; color: #7a4b4b; line-height: 1.8; }
.mypage-leave-label {cursor:pointer;}
.mypage-leave-label {width:100%;justify-content:flex-start;}
	
/* 성별  */
.model-gender-wrap { display: flex; justify-content: center; gap: 8px; margin-bottom: 14px; }
.model-gender-btn { padding: 6px 12px; border: 1.5px solid #ddd; border-radius: 20px; font-size: 10px; font-weight: 600; background: #fff; color: #bbb; cursor: pointer; transition: all 0.2s; -webkit-tap-highlight-color: transparent; }
.model-gender-btn.active-male   { border-color: #5e9fff; background: #5e9fff; color: #fff; }
.model-gender-btn.active-female { border-color: #ff6b9d; background: #ff6b9d; color: #fff; }

/* 버튼 */
.btn-row {justify-content:flex-start;padding: 20px 0 28px;}
.btn-row > button { display: inline-flex; align-items: center; justify-content: center; min-width: 128px; height: 42px; border-radius: 8px; font-size: 12px; font-weight: 600; text-decoration: none; cursor: pointer; transition: all 0.15s; }
.btn-row.mypage .m {display:none;}

/* 서류 업로드 폼 */
.doc-form-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 10px 0 16px; font-size: 12px; color: #666; }
.doc-form-row label { display: flex; align-items: center; gap: 6px; }
.doc-form-row input[type=file] { max-width: 180px; }

/* 환전 신청 */
.exch-input { width: 170px; }

/* 환전 상태 뱃지 */
.badge.exch-pending { display: inline-block; padding: 2px 8px; font-size: 12px; border-radius: 3px; background: #fff8e1; color: #a07000; }
.badge.exch-done    { display: inline-block; padding: 2px 8px; font-size: 12px; border-radius: 3px; background: #e8f5e9; color: #2e7d32; }

/* 구매내역 테이블 */
.sales-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 8px; }
.sales-table th { text-align:center; padding: 8px 10px; background: #fdf0f5; color: #f4447c; font-weight: 700; border-bottom: 2px solid #f8d9e3; }
.sales-table td { text-align:center; padding: 8px 10px; border-bottom: 1px solid #f0f0f0; color: #444; }
.sales-empty { font-size: 12px; color: #aaa; padding: 20px 0; text-align: center; }
.sales-actions { white-space: nowrap; }

/* 뱃지 */
.badge.expired { display: inline-block; padding: 2px 8px; font-size: 12px; color: #999; background: #f0f0f0; border-radius: 3px; }
.badge.refunded { display: inline-block; padding: 2px 8px; font-size: 12px; color: #e74c3c; background: #fdecea; border-radius: 3px; }

/* 판매내역 액션 버튼 */
.sales-actions { white-space: nowrap; display: flex; align-items: center; gap: 5px; }
.btn-action { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.3px; border: 1px solid; cursor: pointer; background: transparent; }
.btn-action.refund  { color: #e74c3c; border-color: #e74c3c; }
.btn-action.refund:hover  { background: #e74c3c; color: #fff; }
.btn-action.extend  { color: #f4447c; border-color: #f4447c; }
.btn-action.extend:hover  { background: #f4447c; color: #fff; }

/* 반응형 */
@media (max-width:799px) {
	/* 공통 */
	.mypage-tabs {display: flex;width: 100%;}
	.mypage-tabs a {flex: 1;justify-content: center;padding: 12.5px 8px;}	
	.mypage-tabs a:hover {color:#999;}
	.mypage-header {padding-top:18px;padding-bottom:13px;}
	.mypage-header .section-title {font-size:13px;}
	
	/* 모델 */
	.form-row.upload {border:0;}
	.form-row.upload {flex-direction:column;gap:8px;padding-top:8px;padding-bottom:8px;}
	.upload-content img, .upload-content video { width: 120px; }

	/* 회원탈퇴 */
	.mypage-warning-box { margin: 15px 0; }
	.mypage-warning-box ul {padding:0 4px;}
	
	/* 환전 */
	.exch-overview { padding: 16px 0 4px; }

	/* 버튼 */
	.btn-row {justify-content:center;}
	.btn-row.mypage .m {display:flex;}
	
	/* 플로팅배너 */
	.floating-wrap {display:flex;}
	
	/* 기타 */
	.sales-table th:nth-child(3), .sales-table td:nth-child(3) { display: none; }
}
/* 서류 버튼형 파일선택 */
a.doc-chip.ok { text-decoration: none; cursor: pointer; }
a.doc-chip.ok:hover { background: #c8e6c9; }
.doc-form-row { gap: 8px; padding: 6px 0; }
.doc-form-row > label:first-child { min-width: 56px; font-weight: 600; }
label.doc-upload-btn { min-width: auto; cursor: pointer; }
.doc-filename { font-size: 11px; color: #999; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* AI 프롬프트 입력 (편집 편하게 넓은 textarea) */
.prompt-input { width: 100%; max-width: 100%; box-sizing: border-box; min-height: 92px; padding: 10px 12px; border: 1px solid #e5e5e5; border-radius: 8px; font-size: 13px; line-height: 1.6; color: #333; resize: vertical; }
.prompt-input:focus { outline: none; border-color: #f4447c; box-shadow: 0 0 0 3px rgba(244,68,124,.08); }

/* 마이페이지 메인 리디자인 */
.mp-hero { display: flex; align-items: center; gap: 16px; margin: 18px 0 18px; padding: 20px; background: linear-gradient(135deg, #fff5f9 0%, #ffffff 62%); border: 1px solid #f5dce6; border-radius: 14px; }
.mp-hero-avatar { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: linear-gradient(135deg, #f4447c, #ff8cb8); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 26px; font-weight: 700; }
.mp-hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mp-hero-meta { flex: 1; min-width: 0; }
.mp-hero-name { font-size: 17px; font-weight: 700; color: #222; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-hero-id { font-size: 12px; color: #aaa; margin-top: 2px; }
.mp-hero-point { text-align: right; flex-shrink: 0; }
.mp-hp-label { font-size: 11px; color: #aaa; }
.mp-hp-val { font-size: 13px; font-weight: 800; color: #f4447c; margin-top:3px; }
.mp-hp-val span { font-size: 12px; font-weight: 600; }
.mp-hp-btn { margin-top: 7px; height: 30px; padding: 0 14px; border: none; border-radius: 16px; background: #f4447c; color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
.mp-hp-btn:hover { background: #e02f66; }
.mp-card { margin-bottom: 16px; padding: 4px; background: #fff; border-radius: 12px; }
.mp-card-title { padding: 14px 0 12px; font-size: 13px; font-weight: 700; color: #333; border-bottom: 1px solid #f5f5f5; }
.mp-field { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid #f7f7f7; font-size: 13px; }
.mp-field:last-child { border-bottom: 0; }
.mp-field.col { flex-direction: column; align-items: flex-start; gap: 9px; }
.mp-label { width: 86px; flex-shrink: 0; color: #999; font-weight: 600; }
.mp-value { color: #222; flex: 1; min-width: 0; word-break: break-all; }
.mp-field input[type=text] { flex: 1; max-width: none; height: 38px; }

.mp-hero-avatar { position: relative; overflow: visible; cursor: pointer; }
.mp-hero-avatar img { border-radius: 50%; }
.mp-hero-avatar.uploading { opacity: .5; pointer-events: none; }
.mp-avatar-cam { position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%; background: #f4447c; border: 2px solid #fff; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 10px; }
.mp-edit-btn { flex-shrink: 0; height: 28px; padding: 0 13px; border: 1px solid #f4447c; border-radius: 14px; background: #fff; color: #f4447c; font-size: 12px; font-weight: 700; cursor: pointer; transition: background .15s, color .15s; }
.mp-edit-btn:hover { background: #f4447c; color: #fff; }

.mp-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 99990; align-items: center; justify-content: center; padding: 24px; }
.mp-modal-overlay.open { display: flex; }
.mp-modal { width: 100%; max-width: 320px; background: #fff; border-radius: 14px; padding: 22px 22px 18px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.mp-modal-title { font-size: 15px; font-weight: 700; color: #222; margin-bottom: 14px; }
.mp-modal input { width: 100%; max-width: none; height: 44px; padding: 0 13px; border: 1px solid #e2e2e2; border-radius: 9px; font-size: 14px; color: #222; }
.mp-modal input:focus { outline: none; border-color: #f4447c; box-shadow: 0 0 0 3px rgba(244,68,124,.1); }
.mp-modal-msg { min-height: 17px; margin-top: 8px; font-size: 12px; color: #e74c3c; }
.mp-modal-actions { display: flex; gap: 8px; margin-top: 16px; }
.mp-modal-btn { flex: 1; height: 44px; border: none; border-radius: 9px; font-size: 14px; font-weight: 700; cursor: pointer; }
.mp-modal-btn.cancel { background: #f1f1f1; color: #666; }
.mp-modal-btn.ok { background: #f4447c; color: #fff; }
.mp-modal-btn.ok:disabled { opacity: .6; cursor: default; }

/* 카드형 폼 입력 (탭 리뉴얼 공통) */
.mp-field.col > .mp-label { width: auto; }
.mp-input { width: 100%; max-width:300px; font-size: 14px; color: #222; outline: none; box-sizing: border-box; }
.mp-input:focus { border-color: #f4447c; background: #fff; box-shadow: 0 0 0 3px rgba(244,68,124,.1); }
.mp-textarea { width: 100%; max-width: 100%; box-sizing: border-box; min-height: 100px; padding: 11px 14px; background: #f8f8fa; border: 1px solid #e6e6ea; border-radius: 11px; font-size: 14px; line-height: 1.6; color: #222; outline: none; resize: vertical; }
.mp-textarea:focus { border-color: #f4447c; background: #fff; box-shadow: 0 0 0 3px rgba(244,68,124,.1); }
.mp-card .exch-overview { padding: 14px 0 6px; }
.mp-card .doc-form-row { padding: 8px 0; }
.mp-card .sales-table { margin-top: 6px; }
.mp-card .sales-empty { padding: 18px 0; }
.mp-card-note { padding: 12px 0 4px; font-size: 12px; color: #aaa; }

@media (max-width:799px) {
	.mp-hero { gap: 12px; padding: 16px; }
	.mp-hero-avatar { width: 54px; height: 54px; font-size: 22px; }
	.mp-hero-name { font-size: 15px; }
	.mp-card { padding: 2px 14px; }
	.mp-label { width: 74px; }
	.mp-hp-val { margin-top:5px; }
	.mp-hp-btn { font-size: 11px; }
}
