/* 훼이맵 회원 페이지(로그인 · 마이페이지 · 약관) 전용 — style.css 다음에 불러옵니다 */

.m-page{ min-height:100vh; background:
  radial-gradient(1200px 600px at 10% -10%, rgba(231,212,164,.45), transparent 60%),
  radial-gradient(900px 500px at 110% 10%, rgba(169,132,63,.12), transparent 60%), var(--bg); }
.m-top{ display:flex; align-items:center; justify-content:space-between; gap:12px; max-width:1080px; margin:0 auto; padding:18px 20px; }
.m-top .brand{ display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--text); font-family:var(--serif); font-weight:700; font-size:19px; }
.m-top .brand em{ font-family:var(--latin); font-style:italic; color:var(--gold); font-weight:600; margin-left:4px; }
.m-top .back{ font-size:14px; color:var(--muted); text-decoration:none; }
.m-top .back:hover{ color:var(--gold); }

/* ── 로그인 카드 ── */
.login-wrap{ display:flex; justify-content:center; padding:24px 16px 64px; }
.login-card{ width:100%; max-width:420px; background:var(--surface); border:1px solid var(--border); border-radius:28px; padding:40px 32px 30px; box-shadow:var(--shadow-lg); text-align:center; }
.login-logo{ width:76px; height:76px; border-radius:50%; background:#fff; box-shadow:0 0 0 3px rgba(169,132,63,.35); object-fit:cover; }
.login-name{ margin:14px 0 0; font-family:var(--serif); font-size:26px; font-weight:700; letter-spacing:.04em; }
.login-name em{ display:block; font-family:var(--latin); font-style:italic; font-weight:600; font-size:19px; color:var(--gold); letter-spacing:.03em; }
.login-lead{ margin:22px 0 6px; font-family:var(--serif); font-size:20px; line-height:1.5; }
.login-sub{ margin:0 0 26px; color:var(--muted); font-size:14px; line-height:1.7; }
.login-btns{ display:grid; gap:12px; }

/* 카카오 로그인 버튼 — 카카오 디자인 가이드: 배경 #FEE500, 심볼 검정, 글자 검정 85% */
.btn-kakao-login{ display:flex; align-items:center; justify-content:center; gap:10px; width:100%; height:52px; border:none; border-radius:12px; background:#FEE500; color:rgba(0,0,0,.85); font:600 16px/1 var(--sans); cursor:pointer; }
.btn-kakao-login svg{ width:20px; height:20px; }
.btn-kakao-login:hover{ filter:brightness(.97); }
/* 구글 로그인 버튼 — Google 브랜드 가이드(라이트): 흰 배경, #747775 테두리, #1F1F1F 글자, 4색 G 로고 */
.btn-google-login{ display:flex; align-items:center; justify-content:center; gap:10px; width:100%; height:52px; border:1px solid #747775; border-radius:12px; background:#fff; color:#1F1F1F; font:500 16px/1 'Roboto', var(--sans); cursor:pointer; }
.btn-google-login svg{ width:20px; height:20px; }
.btn-google-login:hover{ background:#F8F9FA; }
.btn-kakao-login:focus-visible, .btn-google-login:focus-visible{ outline:3px solid var(--gold); outline-offset:2px; }
.btn-kakao-login[disabled], .btn-google-login[disabled]{ opacity:.6; cursor:wait; }

.login-or{ display:flex; align-items:center; gap:12px; margin:22px 0 14px; color:var(--muted); font-size:13px; }
.login-or::before, .login-or::after{ content:""; flex:1; height:1px; background:var(--border); }
.login-free{ display:block; padding:14px; border-radius:12px; border:1px dashed var(--gold); color:var(--text); text-decoration:none; font-weight:600; font-size:15px; }
.login-free small{ display:block; margin-top:4px; color:var(--muted); font-weight:400; font-size:12.5px; }
.login-free:hover{ background:var(--surface-2); }
.login-legal{ margin:22px 0 0; font-size:12.5px; color:var(--muted); line-height:1.7; }
.login-legal a{ color:var(--text); }
.login-msg{ margin:0 0 16px; padding:12px 14px; border-radius:12px; font-size:14px; line-height:1.6; text-align:left; }
.login-msg.err{ background:#FBEAE4; color:#8A2E14; }
.login-msg.info{ background:var(--surface-2); color:var(--text); }

/* 동의 단계 */
.consent{ text-align:left; }
.consent h2{ font-family:var(--serif); font-size:21px; margin:0 0 6px; text-align:center; }
.consent > p{ color:var(--muted); font-size:14px; line-height:1.7; text-align:center; margin:0 0 18px; }
.consent-box{ border:1px solid var(--border); border-radius:14px; padding:6px 16px; background:var(--bg); }
.consent-row{ display:flex; align-items:flex-start; gap:10px; padding:12px 0; font-size:14.5px; line-height:1.5; }
.consent-row + .consent-row{ border-top:1px solid var(--border); }
.consent-row input{ width:20px; height:20px; margin:1px 0 0; accent-color:var(--gold); flex-shrink:0; }
.consent-row a{ margin-left:auto; font-size:13px; color:var(--muted); white-space:nowrap; }
.consent-all{ font-weight:700; }
.consent-acts{ display:grid; gap:10px; margin-top:18px; }
.consent-acts .btn{ width:100%; }
.linkbtn{ background:none; border:none; padding:6px; color:var(--muted); font-size:13px; text-decoration:underline; cursor:pointer; }

/* ── 마이페이지 ── */
.my-wrap{ max-width:1080px; margin:0 auto; padding:8px 20px 80px; display:grid; grid-template-columns:240px 1fr; gap:28px; align-items:start; }
.my-side{ position:sticky; top:16px; background:var(--surface); border:1px solid var(--border); border-radius:20px; padding:20px 12px; }
.my-who{ display:flex; align-items:center; gap:12px; padding:0 8px 16px; border-bottom:1px solid var(--border); margin-bottom:10px; }
.my-who img, .my-who .ph{ width:46px; height:46px; border-radius:50%; object-fit:cover; background:var(--surface-2); flex-shrink:0; display:grid; place-items:center; font-size:20px; }
.my-who b{ display:block; font-size:15.5px; }
.my-who small{ color:var(--muted); font-size:12.5px; }
.my-menu{ display:grid; gap:2px; }
.my-menu a, .my-menu button{ display:flex; align-items:center; gap:10px; width:100%; padding:11px 12px; border-radius:12px; border:none; background:none; color:var(--text); text-decoration:none; font:500 14.5px var(--sans); text-align:left; cursor:pointer; }
.my-menu a:hover, .my-menu button:hover{ background:var(--surface-2); }
.my-menu a[aria-current="true"]{ background:var(--navy); color:#fff; }
.my-menu .num{ width:20px; font-family:var(--latin); font-style:italic; color:var(--gold); }
.my-menu a[aria-current="true"] .num{ color:var(--gold-soft); }
.my-main{ min-width:0; }
.my-sec{ background:var(--surface); border:1px solid var(--border); border-radius:22px; padding:28px; margin-bottom:20px; scroll-margin-top:16px; }
.my-sec h2{ display:flex; align-items:baseline; gap:10px; margin:0 0 16px; font-family:var(--serif); font-size:21px; }
.my-sec h2 small{ font-family:var(--latin); font-style:italic; color:var(--gold); font-size:15px; font-weight:600; }
.my-sec p{ line-height:1.7; }
.my-empty{ padding:20px; border-radius:14px; background:var(--bg); color:var(--muted); font-size:14.5px; line-height:1.7; text-align:center; }
.my-empty a{ color:var(--gold); font-weight:700; }
.my-soon{ display:inline-block; padding:4px 10px; border-radius:999px; background:var(--surface-2); color:var(--muted); font-size:12.5px; font-weight:700; margin-left:auto; }
.my-cards{ display:grid; grid-template-columns:repeat(auto-fill, minmax(120px, 1fr)); gap:14px; }
.my-card{ position:relative; text-align:center; font-size:13px; }
.my-card img{ width:100%; aspect-ratio:2/3; object-fit:cover; border-radius:10px; box-shadow:var(--shadow); }
.my-card b{ display:block; margin-top:8px; font-size:13.5px; }
.my-card small{ color:var(--muted); }
.my-del{ position:absolute; top:6px; right:6px; width:28px; height:28px; border-radius:50%; border:none; background:rgba(29,33,71,.75); color:#fff; font-size:15px; cursor:pointer; }
.my-list{ display:grid; gap:12px; }
.my-item{ display:flex; gap:14px; align-items:flex-start; padding:16px; border:1px solid var(--border); border-radius:14px; background:var(--bg); }
.my-item img{ width:54px; border-radius:6px; flex-shrink:0; }
.my-item .body{ flex:1; min-width:0; font-size:14.5px; line-height:1.6; }
.my-item .body b{ font-size:15.5px; }
.my-item .meta{ color:var(--muted); font-size:12.5px; }
.my-item .my-del{ position:static; background:var(--surface-2); color:var(--muted); flex-shrink:0; }
.badge{ display:inline-block; padding:3px 10px; border-radius:999px; color:#fff; font-size:12px; font-weight:700; margin-right:6px; }
.my-form{ display:grid; gap:14px; max-width:460px; }
.my-form label{ display:grid; gap:6px; font-size:14px; font-weight:600; }
.my-form input{ padding:12px 14px; border:1px solid var(--border); border-radius:12px; font:400 15px var(--sans); background:var(--bg); color:var(--text); }
.my-form input[readonly]{ color:var(--muted); }
.my-row{ display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.my-dl{ display:grid; grid-template-columns:140px 1fr; gap:8px 16px; margin:0; font-size:14.5px; }
.my-dl dt{ color:var(--muted); }
.my-dl dd{ margin:0; }
.my-danger{ margin-top:22px; padding:18px; border:1px solid #E8C1B4; border-radius:14px; background:#FDF5F2; }
.my-danger h3{ margin:0 0 6px; font-size:16px; color:#8A2E14; }
.my-danger p{ margin:0 0 12px; font-size:14px; color:var(--muted); }
.btn-danger{ background:#A63A1C; color:#fff; }
.btn-danger[disabled]{ opacity:.45; cursor:not-allowed; }
.btn-sm{ padding:9px 16px; font-size:14px; }
.my-loading{ padding:80px 20px; text-align:center; color:var(--muted); }

@media (max-width:860px){
  .my-wrap{ grid-template-columns:minmax(0, 1fr); gap:16px; padding:4px 16px 60px; }
  .my-side{ position:static; padding:14px 10px; min-width:0; }
  .my-menu{ display:flex; overflow-x:auto; gap:6px; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
  .my-menu::-webkit-scrollbar{ display:none; }
  .my-menu a, .my-menu button{ width:auto; white-space:nowrap; padding:9px 12px; background:var(--surface-2); font-size:13.5px; }
  .my-sec{ padding:22px 18px; }
  .my-dl{ grid-template-columns:1fr; gap:2px; }
  .my-dl dd{ margin-bottom:10px; }
}
@media (max-width:420px){
  .login-card{ padding:32px 20px 24px; border-radius:22px; }
  .m-top{ padding:14px 16px; }
}

/* ── 약관 · 개인정보 처리방침 ── */
.legal{ max-width:760px; margin:0 auto; padding:8px 20px 80px; }
.legal article{ background:var(--surface); border:1px solid var(--border); border-radius:22px; padding:36px; }
.legal h1{ font-family:var(--serif); font-size:26px; margin:0 0 6px; }
.legal .date{ color:var(--muted); font-size:13.5px; margin:0 0 26px; }
.legal h2{ font-size:17px; margin:28px 0 8px; }
.legal p, .legal li{ font-size:14.5px; line-height:1.8; color:var(--text); }
.legal table{ width:100%; border-collapse:collapse; font-size:14px; margin:8px 0; }
.legal th, .legal td{ border:1px solid var(--border); padding:10px; text-align:left; vertical-align:top; line-height:1.6; }
.legal th{ background:var(--surface-2); }
.legal .tbl{ overflow-x:auto; }
@media (max-width:560px){ .legal article{ padding:24px 18px; } }

/* ── 홈페이지: 저장 안내 창 ── */
.modal-save{ width:min(420px, calc(100% - 32px)); text-align:center; }
.modal-save h3{ font-family:var(--serif); font-size:21px; margin:6px 0 8px; }
.modal-save p{ color:var(--muted); font-size:14.5px; line-height:1.7; margin:0 0 20px; }
.modal-save .acts{ display:grid; gap:10px; }
.modal-save .acts .btn{ width:100%; }

/* ── 홈페이지 상단 메뉴 · 푸터 링크 ── */
.nav-member{ font-weight:700; }
.site-footer .footer-info a{ color:inherit; }
/* 메뉴가 하나 늘어서 PC 중간 폭(861~1240px)에서 글자가 두 줄로 꺾이지 않게 간격을 조금 줄임 */
@media (min-width:861px){ .nav a{ white-space:nowrap; } }
@media (min-width:861px) and (max-width:1240px){ .nav{ gap:14px; font-size:13.5px; } .nav-cta{ padding:8px 14px; } }
@media (min-width:861px) and (max-width:1000px){ .nav{ gap:10px; font-size:13px; } }
@media (min-width:861px) and (max-width:1000px){ .site-header .brand em{ display:none; } }
