/* ===== 마이페이지 ===== */

.mypage-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

/* ===== 로그인 카드 ===== */
.mp-login-card {
    width: 100%;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(26, 45, 28, 0.10);
    border-top: 4px solid var(--color-point);
}

.mp-login-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 32px;
    padding-bottom: 6px;
}

.mp-login-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f7f3ec 0%, #efe8d8 100%);
    border: 1.5px solid #e8d5a0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mp-login-body {
    padding: 20px 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ===== 오류 메시지 ===== */
.mp-error-msg {
    display: none;
    font-size: 13px;
    color: #c0392b;
    padding: 10px 14px;
    background: #fff5f5;
    border: 1px solid #fcc;
    border-radius: 8px;
    margin-top: -8px;
}

.mp-error-msg.show {
    display: block;
}

/* ===== 로그인 후 — 공통 섹션 카드 ===== */
.mp-card {
    width: 100%;
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 32px;
    box-shadow: 0 4px 24px rgba(26, 45, 28, 0.07);
}

.mp-card-title {
    font-family: 'MaruBuri', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0ece4;
    text-align: center;
    letter-spacing: 0.01em;
}

/* ===== 사용자 정보 ===== */
.mp-user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mp-user-name {
    font-family: 'MaruBuri', serif;
    font-size: 26px;
    font-weight: 600;
    color: var(--color-text-dark);
}

.mp-logout-btn {
    padding: 8px 18px;
    background: transparent;
    border: 1px solid #e0d8cc;
    border-radius: 20px;
    font-family: 'Pretendard', sans-serif;
    font-size: 13px;
    color: #aaa;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.18s;
    white-space: nowrap;
    -webkit-user-select: none;
    user-select: none;
}

.mp-logout-btn:hover {
    border-color: #c0b49a;
    color: #888;
}

.mp-points-badge {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fdf9f1 0%, #f5edd8 100%);
    border: 1px solid #ead9ae;
    border-radius: 14px;
}

.mp-points-label {
    font-family: 'Pretendard', sans-serif;
    font-size: 13px;
    color: #9a7530;
    font-weight: 500;
}

.mp-points-value {
    margin-left: auto;
    font-family: 'Pretendard', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #7a5200;
    letter-spacing: -0.02em;
}

a.mp-charge-btn,
a.mp-charge-btn:visited,
a.mp-charge-btn:link {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 14px;
    background: #1a2d1c;
    color: #caab7a !important;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    box-sizing: border-box;
    transition: opacity .2s;
}

a.mp-charge-btn:hover { opacity: .85; }

/* ===== 이용 내역 ===== */
.mp-history-list {
    display: flex;
    flex-direction: column;
}

.mp-history-empty {
    text-align: center;
    font-size: 14px;
    color: #ccc;
    padding: 20px 0;
    font-family: 'Pretendard', sans-serif;
}

.mp-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 0;
    border-bottom: 1px solid #f5f2ec;
    gap: 12px;
}

.mp-history-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mp-history-service {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mp-service-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-point);
    flex-shrink: 0;
}

.mp-service-name {
    font-family: 'Pretendard', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-dark);
}

.mp-history-meta {
    text-align: right;
    flex-shrink: 0;
}

.mp-history-amount {
    font-family: 'Pretendard', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-dark-green);
}

.mp-history-date {
    font-family: 'Pretendard', sans-serif;
    font-size: 12px;
    color: #bbb;
    margin-top: 3px;
}

.mp-view-btn {
    display: inline-block;
    padding: 4px 12px;
    background: #f0ece4;
    border: 1px solid #e0d5c0;
    border-radius: 20px;
    font-family: 'Pretendard', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #7a5200;
    text-decoration: none;
    transition: background 0.15s;
    margin-bottom: 4px;
}

.mp-view-btn:hover {
    background: #e8ddc8;
}

/* ===== SNS 공유 ===== */
.mp-share-btns {
    display: flex;
    gap: 12px;
}

.mp-share-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 12px;
    border: none;
    border-radius: 12px;
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.15s;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.mp-share-btn:active {
    opacity: 0.78;
    transform: scale(0.97);
}

.mp-share-kakao {
    background: #FEE500;
    color: #191919;
}

.mp-share-copy {
    background: #f0ece4;
    color: #4a3c28;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .mp-login-body {
        padding: 16px 24px 32px;
        gap: 16px;
    }

    .mp-card {
        padding: 22px 22px;
    }

    .mp-share-btns {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .mp-login-body {
        padding: 16px 18px 28px;
    }

    .mp-card {
        padding: 16px 16px;
        border-radius: 16px;
    }

    .mp-card-title {
        font-size: 16px;
        margin-bottom: 14px;
        padding-bottom: 10px;
    }

    .mp-user-name {
        font-size: 20px;
    }

    .mp-points-value {
        font-size: 28px;
    }

    .mp-points-badge {
        padding: 12px 14px;
    }

    a.mp-charge-btn,
    a.mp-charge-btn:visited,
    a.mp-charge-btn:link {
        width: 100%;
        font-size: 15px;
        min-height: 48px;
        padding: 14px;
    }

    /* 이용 내역 아이템 레이아웃 */
    .mp-history-item {
        flex-wrap: wrap;
        gap: 6px;
        padding: 12px 0;
    }

    .mp-history-service {
        flex: 1 1 auto;
        min-width: 0;
    }

    .mp-service-name {
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mp-history-meta {
        flex-shrink: 0;
    }

    .mp-history-amount {
        font-size: 14px;
    }

    .mp-history-date {
        font-size: 11px;
    }

    .mp-view-btn {
        font-size: 11px;
        padding: 4px 10px;
    }

    .mp-logout-btn {
        padding: 8px 14px;
        font-size: 12px;
        min-height: 36px;
    }

    .mypage-content {
        gap: 16px;
    }

    /* 로딩 스피너 카드 — 인라인 패딩 오버라이드 */
    #mp-loading.mp-card {
        padding: 28px 20px !important;
    }

    /* 카드 하단 여백 축소 */
    .mp-card[style*="margin-bottom"] {
        margin-bottom: 0 !important;
    }
}
