@import url("https://hangeul.pstatic.net/hangeul_static/css/nanum-square-round.css");
.mobile-bottom-bar button { cursor: pointer !important; }
.mobile-bottom-bar button > * { pointer-events: none; }

* { box-sizing: border-box; font-family: "NanumSquareRound", sans-serif; }
body { margin: 0; background: #f7f3ef; color: #332820; }
button { font: inherit; }
.mypage-shell { width: min(100%, 760px); min-height: 100vh; margin: 0 auto; padding: 0 24px 70px; background: #fff; }
.mypage-header { height: 76px; display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; border-bottom: 1px solid #eee5de; }
.mypage-header h1 { margin: 0; text-align: center; font-size: 22px; }
.back-button, .settings-button { width: 42px; min-width: 42px; height: 42px; display: grid; place-items: center; flex: none; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #66574d; font-size: 22px; line-height: 1; cursor: pointer; }
.profile-card { display: flex; align-items: center; gap: 17px; margin: 26px 0 18px; padding: 24px; border: 1px solid #ecdfd5; border-radius: 20px; background: #fcf8f5; }
.profile-avatar { width: 68px; height: 68px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #9a6741; color: #fff; font-size: 25px; font-weight: 800; }
.profile-main { min-width: 0; }
.profile-name-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.profile-name-row strong { font-size: 20px; }
.profile-main p { overflow: hidden; margin: 7px 0 0; color: #82756c; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.member-badge, .approval-badge, .membership-badge { display: inline-flex; padding: 5px 8px; border-radius: 999px; background: #efe3da; color: #855b3d; font-size: 11px; font-weight: 700; }
.approval-badge { margin-top: 8px; }
.approval-badge.pending { background: #fff0cf; color: #946a14; }
.approval-badge.approved { background: #e5f4e9; color: #397149; }
.page-message { min-height: 18px; margin: 0 0 10px; color: #c54f4f; text-align: center; font-size: 13px; }
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 32px; border: 1px solid #eee3db; border-radius: 18px; overflow: hidden; }
.summary-grid button { min-height: 82px; border: 0; border-right: 1px solid #eee3db; background: #fff; cursor: pointer; }
.summary-grid button:last-child { border-right: 0; }
.summary-grid strong, .summary-grid span { display: block; }
.summary-grid strong { margin-bottom: 7px; color: #8b5e3c; font-size: 20px; }
.summary-grid span { color: #75685f; font-size: 13px; }
.mypage-section { margin-top: 28px; }
.mypage-section h2 { margin: 0 0 12px; font-size: 17px; }
.location-list, .menu-list { border: 1px solid #eee3db; border-radius: 16px; overflow: hidden; }
.location-list button, .menu-list button { width: 100%; min-height: 62px; display: flex; align-items: center; gap: 13px; padding: 14px 17px; border: 0; border-bottom: 1px solid #f0e8e2; background: #fff; color: #45372f; text-align: left; cursor: pointer; }
.location-list button:last-child, .menu-list button:last-child { border-bottom: 0; }
.location-list button > span:nth-child(2) { min-width: 0; flex: 1; }
.location-list strong, .location-list small { display: block; }
.location-list strong { margin-bottom: 5px; font-size: 14px; }
.location-list small { overflow: hidden; color: #8b7e75; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.menu-icon { width: 34px; font-size: 22px; text-align: center; }
.arrow { color: #a89b92; font-size: 22px; }
.menu-list button { justify-content: space-between; font-size: 14px; }
.menu-list button small { display:block; margin-top:5px; color:#927f72; font-size:11px; font-weight:400; }
.menu-list .admin-menu { background: #fbf4ef; color: #8b5e3c; font-weight: 700; }
.menu-list .withdraw-account-menu { color: #b44343; }

/* 메뉴 배지의 z-index가 고정 툴바 위로 벗어나지 않도록 제한합니다. */
.desktop-side-menu, .menu-list { isolation: isolate; }

/* 마이페이지 알림 배지 위치 보정 */
.desktop-side-menu [data-dj-icon="bell"],
.menu-list .dj-menu-label [data-dj-icon="bell"] {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    min-width: 20px;
    margin-right: 8px;
    overflow: visible;
    vertical-align: middle;
}
.desktop-side-menu [data-dj-icon="bell"] .dajeong-unread-badge,
.menu-list .dj-menu-label [data-dj-icon="bell"] .dajeong-unread-badge,
.desktop-side-menu [data-dj-icon="bell"] #notificationBadge,
.menu-list .dj-menu-label [data-dj-icon="bell"] #notificationBadge {
    top: -8px !important;
    right: -8px !important;
}

.logout-button { width: 100%; height: 52px; margin-top: 32px; border: 1px solid #dfd1c7; border-radius: 13px; background: #fff; color: #a34f47; font-weight: 700; cursor: pointer; }
.mobile-bottom-bar { display: none; }
.desktop-side-menu { display: none; }

.withdraw-account-dialog { width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 24px; color: #332820; box-shadow: 0 24px 80px rgba(37, 24, 18, .3); }
.withdraw-account-dialog::backdrop { background: rgba(38, 28, 22, .58); backdrop-filter: blur(2px); }
.withdraw-account-form { position: relative; overflow-y: auto; max-height: calc(100dvh - 32px); padding: 34px 30px 28px; }
.withdraw-dialog-close { position: absolute; top: 17px; right: 19px; width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #f6f1ed; color: #55473e; font-size: 27px; line-height: 1; cursor: pointer; }
.withdraw-dialog-label { color: #a36b43; font-size: 12px; font-weight: 800; }
.withdraw-account-form h2 { margin: 7px 0 8px; font-size: 28px; }
.withdraw-dialog-intro { margin: 0 0 20px; color: #75675e; font-size: 14px; }
.withdraw-warning-list { margin: 0 0 22px; padding: 18px 20px 18px 38px; border: 1px solid #efd9d5; border-radius: 15px; background: #fff8f7; color: #725a54; font-size: 13px; line-height: 1.7; }
.withdraw-field { display: block; margin-top: 17px; }
.withdraw-field > span { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 800; }
.withdraw-field small { color: #9a8c83; font-weight: 500; }
.withdraw-field strong { color: #b44343; }
.withdraw-field textarea, .withdraw-field input { width: 100%; border: 1px solid #dfd1c7; border-radius: 12px; background: #fff; outline: none; font-size: 14px; }
.withdraw-field textarea { min-height: 90px; padding: 13px 14px; resize: vertical; }
.withdraw-field input { height: 50px; padding: 0 14px; }
.withdraw-field textarea:focus, .withdraw-field input:focus { border-color: #a66e49; box-shadow: 0 0 0 3px rgba(154, 103, 65, .1); }
.withdraw-dialog-message { min-height: 19px; margin: 13px 0 0; color: #b44343; font-size: 12px; }
.withdraw-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 17px; }
.withdraw-dialog-actions button { height: 52px; border-radius: 12px; font-weight: 800; cursor: pointer; }
.withdraw-cancel-button { border: 1px solid #dfd1c7; background: #fff; color: #5f5047; }
.withdraw-confirm-button { border: 1px solid #b44343; background: #b44343; color: #fff; }
.withdraw-confirm-button:disabled { opacity: .6; cursor: wait; }

/* 프로필 사진 등록 */
.profile-avatar { position: relative; overflow: visible; cursor: pointer; }
.profile-avatar img { width: 100%; height: 100%; display: block; border-radius: 50%; object-fit: cover; }
.profile-avatar img[hidden] { display: none; }
.profile-image-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.profile-edit-icon { position: absolute; right: -3px; bottom: 1px; width: 34px; height: 34px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 50%; background: #fff; color: #765039; box-shadow: 0 3px 12px rgba(52, 34, 23, .22); pointer-events: none; }
.profile-edit-icon svg { display: block; }
.profile-avatar.uploading { opacity: .6; pointer-events: none; }
[hidden], .approval-badge[hidden], .member-badge[hidden], .membership-badge[hidden] { display: none !important; }

.membership-badge.free { background:#f2efec; color:#766b64; }
.membership-badge.plus { background:linear-gradient(135deg,#fff1c2,#e2a95b); color:#674018; box-shadow:0 3px 10px rgba(195,137,60,.2); }
.membership-badge.business { background:linear-gradient(135deg,#e8f0ff,#58749f); color:#173354; box-shadow:0 3px 10px rgba(55,91,139,.22); }
.membership-badge.premium { background:linear-gradient(135deg,#f5e8ff,#8d58bb 60%,#5d2f8b); color:#fff; box-shadow:0 3px 12px rgba(98,48,145,.28); }
.membership-badge.admin { background:linear-gradient(135deg,#ede5f8,#60407f); color:#fff; box-shadow:0 3px 11px rgba(71,43,97,.24); }
.profile-avatar.tier-plus { box-shadow:0 0 0 4px #fff,0 0 0 7px #d9a653,0 8px 22px rgba(202,145,62,.28); }
.profile-avatar.tier-business { box-shadow:0 0 0 4px #fff,0 0 0 7px #55779f,0 8px 22px rgba(56,87,126,.3); }
.profile-avatar.tier-premium { box-shadow:0 0 0 4px #fff,0 0 0 7px #8b53b7,0 0 18px rgba(158,93,210,.48); }
.tier-crown{position:absolute;z-index:5;top:-24px;left:50%;width:48px;height:30px;display:block;transform:translateX(-50%);pointer-events:none;filter:drop-shadow(0 4px 5px rgba(63,39,22,.25))}
.tier-crown[hidden]{display:none!important}.tier-crown svg{width:100%;height:100%;display:block;overflow:visible;fill:#d9a653;stroke:#fff;stroke-width:2;stroke-linejoin:round}
.tier-crown.business svg{fill:#5279a8}.tier-crown.premium svg{fill:#8b53b7;filter:drop-shadow(0 0 5px rgba(158,93,210,.5))}
.profile-avatar.tier-plus::before,.profile-avatar.tier-business::before,.profile-avatar.tier-premium::before{content:"✦";position:absolute;z-index:6;top:-12px;right:-12px;color:#e6b75f;font-size:17px;text-shadow:0 2px 5px #fff}
.profile-avatar.tier-business::before{color:#6c91bf}.profile-avatar.tier-premium::before{color:#b881e1}
.mypage-layout { display: block; }
.mypage-right-column { min-width: 0; }

@media (hover: hover) and (pointer: fine) {
    .location-list button:hover, .menu-list button:hover, .summary-grid button:hover { background: #fcf8f5; }
}
.back-button.unified-back{display:grid;width:54px;height:54px;place-items:center;padding:0;color:#9a6741;font-family:Arial,sans-serif;font-size:40px;line-height:1}.back-button.unified-back:hover{background:#f2e8e0}

/* 프로필 사진을 원형에 깔끔하게 채움 */
.profile-avatar { padding: 0; border: 0; outline: 0; overflow: visible; box-shadow: none; }
.profile-avatar > img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; outline: 0; border-radius: 50%; object-fit: cover; object-position: center; box-shadow: none; }
.profile-credit{display:inline-flex!important;align-items:center;justify-content:center;width:max-content;margin:8px 0 0!important;padding:5px 10px;border:1px solid #ead9cc;border-radius:999px;background:#faf4ef;color:#8b5e3c!important;font-size:12px!important;font-weight:800;line-height:1;cursor:pointer}
.profile-credit:hover{border-color:#b9845d;background:#f4e8df}
.profile-avatar:has(img:not([hidden])) { background: transparent; }
.profile-avatar:has(img:not([hidden])) #profileInitial { display: none; }

/* 마이페이지 내부 지역 설정 팝업 */
.mypage-location-dialog { width: min(440px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 22px; color: #332820; box-shadow: 0 24px 70px rgba(46,29,18,.25); }
.mypage-location-dialog::backdrop { background: rgba(38,28,22,.55); }
.mypage-location-form { position: relative; padding: 32px 26px 26px; }
.mypage-location-form h2 { margin: 0 0 8px; font-size: 22px; }
.mypage-location-form > p { margin: 0 0 22px; color: #85776e; font-size: 14px; }
.mypage-location-form > input { width: 100%; padding: 15px; border: 1px solid #dfd1c7; border-radius: 12px; outline: none; font-size: 15px; }
.mypage-location-form > input:focus { border-color: #9a6741; box-shadow: 0 0 0 3px rgba(154,103,65,.1); }
.mypage-gps-button { width: 100%; display: flex; align-items: center; gap: 12px; margin: 0 0 8px; padding: 14px 15px; border: 1px solid #d9c4b4; border-radius: 14px; background: #faf6f2; color: #8d5f3e; text-align: left; cursor: pointer; }
.mypage-gps-button svg { width: 25px; height: 25px; flex: 0 0 auto; }
.mypage-gps-button span { display: grid; gap: 3px; }
.mypage-gps-button strong { font-size: 15px; }
.mypage-gps-button small { color: #85776e; font-size: 12px; font-weight: 500; }
.mypage-gps-button:disabled { opacity: .6; cursor: wait; }
.mypage-gps-message { min-height: 18px; margin: 0 0 12px!important; color: #8d5f3e!important; font-size: 12px!important; }
.location-input-label { display: block; margin: 0 0 7px; font-size: 13px; font-weight: 800; }
.location-dialog-close { position: absolute; top: 14px; right: 16px; border: 0; background: transparent; color: #77675c; font-size: 26px; cursor: pointer; }
.location-presets { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 16px 0 22px; }
.location-presets button { padding: 12px 8px; border: 1px solid #eaded5; border-radius: 10px; background: #faf7f4; color: #765039; cursor: pointer; }
.location-save-button { width: 100%; padding: 15px; border: 0; border-radius: 12px; background: #9a6741; color: #fff; font-weight: 800; cursor: pointer; }

@media (max-width: 700px) {
    body { background: #fff; }
    .mypage-shell { padding: 0 18px 110px; }
    .mypage-header { position: sticky; z-index: 80; top: 0; height: 66px; margin-right: -18px; margin-left: -18px; padding-right: 18px; padding-left: 18px; background: #fff; }
    .profile-card { padding: 20px 17px; }
    .profile-avatar { width: 60px; height: 60px; }
    .profile-name-row strong { font-size: 18px; }
    .mypage-layout, .mypage-left-column, .mypage-right-column { display: block; }
    .desktop-side-menu { display: none; }
    .mobile-bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; height: 76px; display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid #e9dfd8; background: rgba(255,255,255,.96); }
    .mobile-bottom-bar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 0; background: transparent; color: #766b64; font-size: 22px; cursor: pointer; touch-action: manipulation; }
    .mobile-bottom-bar span { font-size: 11px; }
    .mobile-bottom-bar .active { color: #9a6741; font-weight: 700; }
    .withdraw-account-form { padding: 30px 22px 22px; }
    .withdraw-account-form h2 { font-size: 25px; }
}

/* PC 전용 2단 마이페이지 */
@media (min-width: 901px) {
    body { background: #f4f1ee; }
    .mypage-shell { width: min(calc(100% - 48px), 1240px); max-width: 1240px; display: block; margin: 0 auto; padding: 0 34px 80px; background: transparent; }
    .mypage-header { height: 88px; margin-bottom: 30px; padding: 0 4px; border-bottom-color: #ddd4cd; }
    .mypage-header h1 { font-size: 25px; }
    .mypage-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); align-items: start; gap: 38px; }
    .mypage-left-column { position: sticky; top: 24px; min-width: 0; }
    .profile-card { min-height: 250px; flex-direction: column; justify-content: center; margin: 0; padding: 30px 24px; border-color: #e7ddd6; background: #fff; text-align: center; box-shadow: 0 8px 25px rgba(67, 47, 34, .06); }
    .profile-avatar { width: 104px; height: 104px; margin-bottom: 10px; font-size: 38px; box-shadow: 0 7px 20px rgba(91, 58, 35, .18); }
    .profile-main { width: 100%; }
    .profile-credit{margin-right:auto!important;margin-left:auto!important}
    .profile-name-row { justify-content: center; }
    .profile-name-row strong { font-size: 23px; }
    .profile-main p { margin-top: 9px; font-size: 14px; }
    .approval-badge { margin-top: 11px; }
    .desktop-side-menu { display: flex; flex-direction: column; overflow: hidden; margin-top: 18px; border: 1px solid #e7ddd6; border-radius: 18px; background: #fff; box-shadow: 0 8px 25px rgba(67, 47, 34, .05); }
    .desktop-side-menu button { width: 100%; min-height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 20px; border: 0; border-bottom: 1px solid #f0e8e2; background: #fff; color: #5f5148; text-align: left; font-size: 15px; cursor: pointer; }
    .desktop-side-menu button:last-child { border-bottom: 0; }
    .desktop-side-menu button.active { border-left: 4px solid #9a6741; background: #f8f1eb; color: #8b5e3c; font-weight: 800; }
    .desktop-side-menu button:hover { background: #faf6f2; }
    .mypage-right-column { min-width: 0; display: flex; flex-direction: column; gap: 24px; }
    .page-message { min-height: 0; margin: 0; }
    .page-message:empty { display: none; }
    .summary-grid { width: 100%; margin: 0; background: #fff; box-shadow: 0 8px 25px rgba(67, 47, 34, .05); }
    .summary-grid button { min-height: 105px; }
    .summary-grid strong { font-size: 25px; }
    .mypage-section { width: 100%; margin: 0; border: 1px solid #e7ddd6; border-radius: 18px; background: #fff; box-shadow: 0 8px 25px rgba(67, 47, 34, .05); }
    .mypage-section h2 { margin: 0; padding: 18px 22px; border-radius: 18px 18px 0 0; background: #9a6741; color: #fff; font-size: 17px; }
    .location-list, .menu-list { border: 0; border-radius: 0 0 18px 18px; }
    .location-list button, .menu-list button { min-height: 68px; padding-right: 22px; padding-left: 22px; }
    .logout-button { width: 180px; margin: 0 0 0 auto; background: #fff; }
    .mobile-bottom-bar { display: none !important; }
}

/* v20260804-103 모바일 마이페이지 알림 문구 가로 고정 */
@media (max-width: 700px) {
    .menu-list button[onclick*="notifications.html"] .dj-menu-label {
        flex: 1 1 auto;
        min-width: 0;
        flex-wrap: nowrap;
        white-space: nowrap;
        word-break: keep-all;
    }
    .menu-list button[onclick*="notifications.html"] > span:last-child {
        flex: 0 0 auto;
    }
}

/* 20260805-0001: 모바일 알림 메뉴 한 줄 고정 */
@media (max-width:700px) {
  .menu-list button[onclick*="notifications.html"] {display:flex!important;align-items:center!important;justify-content:space-between!important}
  .menu-list button[onclick*="notifications.html"] .dj-menu-label {display:flex!important;flex:1 1 auto!important;min-width:0!important;align-items:center!important;flex-wrap:nowrap!important;white-space:nowrap!important;word-break:keep-all!important;writing-mode:horizontal-tb!important}
  .menu-list button[onclick*="notifications.html"] .dj-menu-text {display:inline-block!important;flex:0 0 auto!important;white-space:nowrap!important;word-break:keep-all!important;writing-mode:horizontal-tb!important}
}

/* PC 프로필 아래 활동 요약 */
.desktop-activity-cards { display:none; }
@media (min-width:901px) {
  .mypage-left-column { position:static; }
  .desktop-activity-cards { display:grid; gap:10px; margin-top:16px; }
  .activity-card { min-width:0; padding:15px 16px 12px; border:1px solid #e7ddd6; border-radius:16px; background:#fff; box-shadow:0 4px 14px rgba(67,47,34,.035); }
  .activity-card h2 { display:flex; align-items:center; gap:8px; margin:0; color:#49372b; font-size:14px; font-weight:800; }
  .activity-card h2 [data-dj-icon] { display:inline-flex; width:17px; height:17px; color:#9a6741; }
  .activity-card h2 svg { width:17px; height:17px; }
  .activity-caption { margin:5px 0 7px; color:#928277; font-size:11px; line-height:1.5; }
  .activity-row { display:flex; align-items:center; justify-content:space-between; gap:10px; min-width:0; min-height:32px; padding:6px 0; color:#51463f; text-decoration:none; border-top:1px solid #f3ede7; font-size:12px; line-height:1.5; }
  .activity-row > span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .activity-row small { flex-shrink:0; color:#9a6741; font-size:11px; font-weight:700; }
  .activity-row:hover { color:#9a6741; background:#fcf8f5; }
  .activity-row:focus-visible { outline:2px solid #9a6741; outline-offset:2px; border-radius:4px; }
  .activity-empty { margin:7px 0 2px; color:#8c8077; font-size:12px; line-height:1.6; }
}

/* 이 항목은 오른쪽 건수로 알리므로 자동 빨간 배지는 표시하지 않습니다. */
#pendingActivity .dajeong-unread-badge,
#pendingActivity #notificationBadge,
#pendingActivity .dajeong-unread-dot-badge { display:none !important; }

/* Separate the colored surface from the text paint bounds on Windows browsers. */
@media(min-width:901px) {
  .mypage-section { overflow:hidden; }
  .mypage-section > .mypage-section-heading {
    display:block;
    padding:18px 22px;
    border:0;
    border-radius:17px 17px 0 0;
    background:#9a6741;
    overflow:hidden;
  }
  .mypage-section .mypage-section-heading > h2 {
    display:inline-block;
    width:auto;
    margin:0;
    padding:0;
    border:0;
    border-radius:0;
    outline:0;
    box-shadow:none;
    background:transparent!important;
    color:#fff;
    line-height:1.4;
    vertical-align:middle;
    clip-path:inset(0);
    font-family:system-ui,-apple-system,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;
  }
}
