/* ===== 서포터 페이지 설정 ===== */
.sptpage-body { background: #f4f5f7; }
.sptpage-container { padding: 0 0 96px 0; }
.sptpage-container * { box-sizing: border-box; }

/* 커버 + 프로필 히어로 */
.sptpage-hero { background: #fff; padding: 0 16px 22px 16px; display: flex; flex-direction: column; align-items: center; border-bottom: 1px solid #eef0f2; }
.sptpage-cover { position: relative; width: calc(100% + 32px); margin: 0 -16px; height: 130px; background: linear-gradient(120deg, #ff9a9e, #f9457c 60%, #ff6b9d); background-size: cover; background-position: center; }
.sptpage-cover-btn { position: absolute; right: 12px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px; border: 0; border-radius: 15px; background: rgba(0,0,0,0.45); color: #fff; font-size: 12px; }
.sptpage-avatar-wrap { position: relative; width: 96px; height: 96px; margin-top: -48px; }
.sptpage-avatar-wrap img { box-shadow: 0 0 0 3px #fff; }
.sptpage-avatar-wrap img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 1px solid #ececec; background: #f7f7f7; display: block; }
.sptpage-avatar-badge { position: absolute; right: -2px; bottom: -2px; width: 32px; height: 32px; border-radius: 50%; background: #ff006b; border: 2px solid #fff; display: flex; align-items: center; justify-content: center; padding: 0; }
.sptpage-avatar-badge svg { display: block; }
.sptpage-code-chip { margin-top: 12px; font-size: 12px; color: #828282; }
.sptpage-code-chip strong { color: #333; }
.sptpage-preview-link { margin-top: 10px; display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 16px; border-radius: 17px; background: #fff0f5; color: #ff006b; font-size: 13px; font-weight: bold; text-decoration: none; }
.sptpage-img-hint { margin-top: 10px; font-size: 11px; color: #b0b0b0; }

/* 섹션 카드 */
.sptpage-card { background: #fff; border-radius: 14px; margin: 12px 16px 0 16px; padding: 18px 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.sptpage-card-title { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.sptpage-card-title strong { font-size: 15px; color: #222; }
.sptpage-card-title span { font-size: 11px; color: #9aa2ab; }
.sptpage-card-body { margin-top: 12px; }

/* 소개글 */
.sptpage-container textarea { width: 100%; border: 1px solid #e3e6ea; border-radius: 10px; padding: 12px; font-size: 13px; line-height: 1.6; resize: none; background: #fafbfc; }
.sptpage-container textarea:focus { outline: none; border-color: #ff006b; background: #fff; }
.sptpage-counter { text-align: right; font-size: 11px; color: #b0b0b0; margin-top: 6px; }

/* SNS */
.sptpage-sns-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.sptpage-sns-ico { width: 34px; height: 34px; border-radius: 9px; background: #f4f5f7; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sptpage-sns-row label { width: 62px; font-size: 13px; color: #555; flex-shrink: 0; }
.sptpage-sns-row input { flex-grow: 1; height: 40px; border: 1px solid #e3e6ea; border-radius: 10px; padding: 0 12px; font-size: 13px; min-width: 0; background: #fafbfc; }
.sptpage-sns-row input:focus { outline: none; border-color: #ff006b; background: #fff; }

/* 커스텀 링크 */
.sptpage-link-list { margin: 0; padding: 0; list-style: none; }
.sptpage-link-list li { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid #eef0f2; border-radius: 10px; margin-bottom: 8px; background: #fafbfc; }
.sptpage-link-list .link-ico { width: 30px; height: 30px; border-radius: 8px; background: #fff0f5; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sptpage-link-list .link-text { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sptpage-link-list .link-text strong { font-size: 13px; color: #333; }
.sptpage-link-list .link-text span { font-size: 11px; color: #9aa2ab; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sptpage-link-list .btn-link-del { flex-shrink: 0; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; display: flex; align-items: center; justify-content: center; padding: 0; }
.sptpage-link-empty { padding: 18px 0; text-align: center; font-size: 12px; color: #b0b0b0; }
.sptpage-link-add { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; padding-top: 14px; border-top: 1px dashed #e3e6ea; }
.sptpage-link-add input { height: 40px; border: 1px solid #e3e6ea; border-radius: 10px; padding: 0 12px; font-size: 13px; background: #fafbfc; }
.sptpage-link-add input:focus { outline: none; border-color: #ff006b; background: #fff; }
.sptpage-link-add button { height: 42px; border: 1px solid #ff006b; border-radius: 10px; background: #fff; color: #ff006b; font-size: 13px; font-weight: bold; }

/* 하단 고정 저장 */
.sptpage-save-bar { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #eef0f2; z-index: 100; }
.sptpage-save-bar button { display: block; width: 100%; height: 50px; border: 0; border-radius: 12px; background: #ff006b; color: #fff; font-size: 15px; font-weight: bold; }
.sptpage-save-bar button:disabled { background: #d6d9dd; }

/* ===== 대시보드: 내 서포터 페이지 카드 ===== */
.spt-mypage-card { display: flex; align-items: center; gap: 12px; margin: 0 16px; padding: 14px; background: #fff; border: 1px solid #ffd6e5; border-radius: 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.spt-mypage-text { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.spt-mypage-text strong { font-size: 14px; color: #222; }
.spt-mypage-text span { font-size: 11px; color: #9aa2ab; }
.spt-mypage-btns { display: flex; gap: 6px; flex-shrink: 0; }
.spt-mypage-btns a { display: flex; align-items: center; justify-content: center; height: 38px; padding: 0 14px; border-radius: 10px; font-size: 13px; font-weight: bold; text-decoration: none; }
.spt-mypage-btns .btn-fill { background: #ff006b; color: #fff; }
.spt-mypage-btns .btn-ghost { border: 1px solid #e3e6ea; color: #555; background: #fff; }

/* ===== 대시보드: 공유 링크 카드 ===== */
.spt-share-card { margin: 10px 16px 0; padding: 16px 14px; background: #fff; border: 1px solid #eef0f2; border-radius: 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.spt-share-head { display: flex; flex-direction: column; gap: 3px; margin-bottom: 12px; }
.spt-share-head strong { font-size: 14px; color: #222; }
.spt-share-head span { font-size: 11px; color: #9aa2ab; }
.spt-share-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #eef0f2; border-radius: 10px; background: #fafbfc; margin-bottom: 8px; }
.spt-share-text { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.spt-share-text strong { font-size: 13px; color: #333; }
.spt-share-text span { font-size: 11px; color: #9aa2ab; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-share-copy { flex-shrink: 0; height: 34px; padding: 0 14px; border: 1px solid #ff006b; border-radius: 9px; background: #fff; color: #ff006b; font-size: 12px; font-weight: bold; }
.spt-share-note { margin-top: 4px; font-size: 11px; line-height: 1.5; color: #b0b0b0; }

/* ===== 공개 서포터 페이지 (/spt/{code}) ===== */
.sptpub-body { background: #f4f5f7; }
.sptpub-hero { background: #fff; padding: 0 16px 18px; display: flex; flex-direction: column; align-items: center; border-bottom: 1px solid #eef0f2; }
.sptpub-cover { width: calc(100% + 32px); margin: 0 -16px; height: 150px; background: linear-gradient(120deg, #ff9a9e, #f9457c 60%, #ff6b9d); background-size: cover; background-position: center; }
.sptpub-avatar { margin-top: -46px; }
.sptpub-avatar img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; background: #f7f7f7; box-shadow: 0 0 0 3px #fff; display: block; }
.sptpub-name { margin-top: 10px; font-size: 18px; font-weight: bold; color: #222; }
.sptpub-copy { margin-top: 8px; display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 14px; border-radius: 16px; background: #fff0f5; color: #ff006b; font-size: 12px; font-weight: bold; text-decoration: none; }
.sptpub-sns { margin-top: 12px; display: flex; gap: 14px; }
.sptpub-sns a { display: block; }
.sptpub-sns img.sns-icon { width: 30px; height: 30px; display: block; }
.sptpub-benefit { margin: 12px 16px 0; padding: 11px 14px; border-radius: 10px; background: #fff0f5; font-size: 12px; color: #555; text-align: center; }
.sptpub-benefit strong { color: #ff006b; }
.sptpub-desc-card { margin: 12px 16px 0; padding: 14px 16px; background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); font-size: 13px; line-height: 1.7; color: #444; }
.sptpub-links { margin: 12px 16px 0; display: flex; flex-direction: column; gap: 8px; }
.sptpub-link-btn { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 16px; background: #fff; border: 1px solid #ffd6e5; border-radius: 12px; font-size: 14px; font-weight: bold; color: #333; text-decoration: none; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.sptpub-deal-title { margin-top: 18px; }
.sptpub-deals .pro-list-item.sptpub-deal-card { border: 1px solid #eef0f2; border-radius: 12px; overflow: hidden; background: #fff; margin: 0 0 14px 0; }
.sptpub-deal-price { display: flex; align-items: baseline; gap: 6px; padding: 2px 10px 12px; }
.sptpub-deal-price .rate { color: #ff006b; font-weight: bold; font-size: 15px; }
.sptpub-deal-price .sale { font-size: 16px; font-weight: bold; color: #222; }
.sptpub-deal-price .origin { font-size: 12px; color: #b0b0b0; text-decoration: line-through; }
