.mypage-wrap {
    max-width: 800px;
    padding: 0 15px;
    font-family: 'Noto Sans KR', sans-serif;
}

.mypage-header h2 {
    font-size: 26px;
    margin-bottom: 5px;
    font-weight: 700;
}

.mypage-header p {
    color: #777;
    margin-bottom: 25px;
}

/* 메인 카드 */
.mypage-card {
    background: #fff;
    border-radius: 18px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

/* 프로필 영역 */
.profile-top {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.profile-img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
}

.profile-info .nickname {
    font-size: 22px;
    font-weight: 700;
}

.sub-info {
    color: #888;
    margin-top: 4px;
    display: flex;
    gap: 6px;
}

.sub-info .bar {
    color: #bbb;
}

/* 리스트 */
.profile-list .item {
    display: flex;
    justify-content: space-between;
    padding: 14px 4px;
    border-bottom: 1px solid #eee;
}

.profile-list .item:last-child {
    border-bottom: none;
}

.label {
    color: #555;
    font-weight: 600;
}

.value {
    color: #333;
    font-weight: 500;
}

/* 버튼 */
.mypage-btn-area {
    text-align: center;
}

.mypage-edit-btn {
    background: #4a90e2;
    padding: 10px 22px;
    color: #fff;
    font-size: 15px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.mypage-edit-btn:hover {
    background: #357ac8;
}

/* --------------------------- */
/* 다크모드 */
/* --------------------------- */

body.dark-mode .mypage-card {
    background: #1e1e1e;
    box-shadow: 0 4px 12px rgba(255,255,255,0.05);
}

body.dark-mode .mypage-header p {
    color: #bdbdbd;
}

body.dark-mode .label {
    color: #ccc;
}

body.dark-mode .value {
    color: #efefef;
}

body.dark-mode .profile-info .nickname {
    color: #fff;
}

body.dark-mode .sub-info {
    color: #aaa;
}

body.dark-mode .mypage-edit-btn {
    background: #3b6fb8;
}

/*내가 쓴글 댓글*/
/* 탭 전체 */
.mypage-tab-wrap {
    margin-top: 20px;
}

/* 탭 버튼 */
.mypage-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid #ddd;
    /*margin-bottom: 15px;*/
}

.tab-btn {
    background: none;
    border: none;
    padding: 5px 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    color: #666;
}

.tab-btn:hover {
    background: #f4f4f4;
}

.tab-btn.active {
    background: #4a90e2;
    color: #fff;
}

/* 탭 콘텐츠 */
.tab-panel {
    display: none;
    padding: 10px 4px;
}

.tab-panel.active {
    display: block;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #999;
}

/* 리스트 공통 */
.mypage-list-item {
    padding: 1px 6px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.mypage-list-item:hover {
    background: #f8f8f8;
}

.mypage-list-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 3px;
}

.mypage-list-info {
    font-size: 13px;
    color: #888;
}

/* 다크모드 */
body.dark-mode .tab-btn:hover {
    background: #2a2a2a;
}
body.dark-mode .tab-btn.active {
    background: #3b6fb8;
}

body.dark-mode .mypage-list-item {
    border-color: #333;
}
body.dark-mode .mypage-list-item:hover {
    background: #2a2a2a;
}
body.dark-mode .mypage-list-title {
    color: #fff;
}
body.dark-mode .mypage-list-info {
    color: #aaa;
}

.like-icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    vertical-align: middle;
}

body.dark-mode .like-icon {
    filter: invert(1) brightness(1.3);
}