/* 마이페이지 전용 스타일 */
.mypage-container {
    background-color: #f5f5f5;
    min-height: 100vh;
    padding: 20px;
}

/* 프로필 카드 */
.mypage-profile-card {
    background-color: white;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 16px;
    border: 1px solid #EEEEEE;
    display: flex;
    flex-direction: column;
}

.mypage-profile-name {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    display: block;
    padding: 24px 20px;
}

.mypage-edit-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #6c757d;
    font-size: 13px;
    text-decoration: none;
    padding: 18px 20px;
    border-top: 1px solid #f5f5f5;
}

.mypage-edit-icon {
    width: 16px;
    height: 16px;
}

/* 메인 메뉴 카드 */
.mypage-menu-card {
    background-color: white;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid #EEEEEE;
}

.mypage-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    color: #000;
    transition: background-color 0.2s;
}

.mypage-menu-item button {
    all: unset;            /* 버튼 기본 스타일 제거 */
    cursor: pointer;
    flex: 1;               /* 남은 영역 차지 */
}

.mypage-menu-item:hover {
    background-color: #fafafa;
}

.mypage-menu-item:last-child {
    border-bottom: none;
}

.mypage-menu-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 400;
}

button.mypage-menu-label {
    font-size: 15px;
}

.mypage-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
}

/* D-XX (기본) */
.mypage-badge.badge-active {
    background-color: #e3f2fd;
    color: #1976d2;
}

/* 만료 */
.mypage-badge.badge-expired {
    background-color: #fdecea;
    color: #d32f2f;
}

/* 없음 */
.mypage-badge.badge-none {
    background-color: #f1f3f5;
    color: #868e96;
}


.mypage-arrow {
    color: #d0d0d0;
    font-size: 20px;
    font-weight: 300;
}

/* 계정 관리 카드 */
.mypage-account-card {
    background-color: white;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #EEEEEE;
}

/* 비로그인 상태 */
.mypage-login-prompt {
    background-color: white;
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    border: 1px solid #EEEEEE;
}

.mypage-login-prompt h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #000;
}

.mypage-login-prompt p {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 24px;
}

.mypage-login-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.mypage-login-btn:hover {
    background-color: #0056b3;
    color: white;
}

/* ========== 내 정보 수정 페이지 스타일 ========== */
.mypage-edit-container {
    background-color: white;
    min-height: 100vh;
    padding: 0;
}

.mypage-edit-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.mypage-edit-back-btn {
    background: none;
    border: none;
    padding: 0;
    margin-right: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.mypage-edit-back-btn svg {
    width: 24px;
    height: 24px;
}

.mypage-edit-title {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0;
}

.mypage-edit-form {
    padding: 24px 20px;
}

.mypage-edit-form-group {
    margin-bottom: 24px;
}

.mypage-edit-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    margin-bottom: 8px;
}

.mypage-edit-label.required::after {
    content: " *";
    color: #ff0000;
}

.mypage-edit-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    color: #000;
    background-color: white;
    transition: border-color 0.2s;
}

.mypage-edit-input:focus {
    outline: none;
    border-color: #007bff;
}

.mypage-edit-input:disabled {
    background-color: #f5f5f5;
    color: #999;
}

.mypage-edit-input::placeholder {
    color: #999;
}

/* 휴대전화번호 인증 영역 */
.mypage-phone-verification {
    position: relative;
}

.mypage-phone-input-wrapper {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.mypage-phone-input-wrapper .mypage-edit-input {
    flex: 1;
}

.mypage-verify-btn {
    padding: 12px 20px;
    background-color: white;
    border: 1px solid #007bff;
    border-radius: 8px;
    color: #007bff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.mypage-verify-btn:hover {
    background-color: #f0f7ff;
}

.mypage-verify-btn:disabled {
    background-color: #f5f5f5;
    border-color: #e0e0e0;
    color: #999;
    cursor: not-allowed;
}

/* 인증번호 입력 영역 */
.mypage-verification-code {
    display: flex;
    gap: 8px;
    align-items: center;
}

.mypage-verification-code .mypage-edit-input {
    flex: 1;
}

.mypage-verification-time {
    color: #ff0000;
    font-size: 14px;
    font-weight: 500;
    min-width: 60px;
    text-align: center;
}

.mypage-confirm-btn {
    padding: 12px 20px;
    background-color: #007bff;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.mypage-confirm-btn:hover {
    background-color: #0056b3;
}

.mypage-confirm-btn:disabled {
    background-color: #e0e0e0;
    color: #999;
    cursor: not-allowed;
}

.mypage-resend-btn {
    padding: 12px 20px;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.mypage-resend-btn:hover {
    background-color: #f5f5f5;
}

/* 수정하기 버튼 */
.mypage-submit-wrapper {
    padding: 20px;
    background-color: white;
    position: sticky;
    bottom: 0;
    border-top: 1px solid #f0f0f0;
}

.mypage-submit-btn {
    width: 100%;
    padding: 16px;
    background-color: #007bff;
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.mypage-submit-btn:hover {
    background-color: #0056b3;
}

.mypage-submit-btn:disabled {
    background-color: #e0e0e0;
    color: #999;
    cursor: not-allowed;
}

.question-card {
    background-color: white;
    border: 1px solid #EEEEEE;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.question-card:hover {
    background-color: #fafafa;
}

.question-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.question-status.pending {
    background-color: #FFF3E0;
    color: #F57C00;
}

.question-status.in-progress {
    background-color: #E3F2FD;
    color: #1976D2;
}

.question-status.completed {
    background-color: #E8F5E9;
    color: #388E3C;
}

.question-title {
    font-size: 15px;
    font-weight: 500;
    color: #000;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.question-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #999;
}

.question-arrow {
    color: #d0d0d0;
    font-size: 20px;
    margin-left: auto;
}