/* 헤더 영역 */

header {
    position: sticky;
    top: 0;
    z-index: 900;
    width: 100%;
}

.hd_whole_area {
    max-width: 2560px;
    margin: 0 auto;
    width: 100%;
    height: 210px;
}

.hd_wrap {
    width: 100%;
    height: 210px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(
            180deg,
            #100a14 72.17%,
            rgba(8, 4, 11, 0.35) 100%
    );
    backdrop-filter: blur(15px);
    border-bottom: solid 1px rgba(235, 235, 235, 0.19);
}

.hd_wrap::after {
    content: '';
    display: block;
    width: 100%;
    height: 210px;
    background-image: url(../img/banner_upper.png);
    background-size: cover;
    background-repeat: no-repeat;
    position: absolute;
    opacity: 30%;
}

.main_up_area {
    display: flex;
    height: 49px;
    margin-top: 43px;
    gap: 750px;
    width: 100%;
    justify-content: center;
    z-index: 20;
}

.logo {
    width: 175px;
    height: 39px;
}

.logo img {
    width: 175px;
    height: 39px;
    object-fit: cover;
}

.login_area {
    width: 260px;
    height: 32px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

/* 레벨 영역 - 메인 헤더*/

.user_info {
    display: flex;
    align-items: center;
}

.level_area {
    width: 20px !important;
    height: 20px !important;
    margin-right: 10px;
}

.level_area img {
    width: 20px;
    height: 19px;
}

.level_area2 {
    width: 19px !important;
    height: 19px !important;
    margin-right: 8px;
}

.level_area2 img {
    width: 19px;
    height: 18px;
}

/* 로그인 시 */

.login_area ul {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-right: 5px;
}

.login_area span {
    font-family: 'SUIT';
    font-weight: 600;
    font-size: 14px;
}

.js_user_nickname {
    font-family: 'SUIT';
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.pop_up {
    background-color: transparent;
    border: none;
    width: 8px;
    height: 6px;
    background-image: url(../img/down_arrow.png);
    background-repeat: no-repeat;
    background-size: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.pop_up.active {
    transform: rotate(180deg);
}

.logout {
    font-family: 'SUIT';
    color: #bd8cff;
    font-weight: 400;
    font-size: 13px;
}

.my_list {
    position: absolute;
    width: 300px;
    border-radius: 4px;
    background: #2c3038;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 5px;
    padding-right: 5px;
    top: 30px;
    right: 40px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.my_list.show {
    padding: 5px;
    opacity: 1;
    visibility: visible;
}

.my_list_up {
    width: 100%;
    height: auto;
    padding-top: 7px;
    padding-right: 3px;
    padding-left: 9px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.my_exp {
    display: flex;
    height: 20px;
    align-items: center;
}

.my_point {
    display: flex;
    height: 20px;
    align-items: center;
}

.my_coin {
    display: flex;
    height: 20px;
    align-items: center;
}

.my_txt {
    color: #8c8c8c;
    font-family: 'SUIT';
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    flex-shrink: 0;
    margin-right: 13px;
    width: 20%;
}

.progress {
    width: 100%;
    display: flex;
    align-content: center;
    justify-content: center;
    padding-top: 4px;
    padding-bottom: 4px;
    padding-left: 2px;
    padding-right: 2px;
}

.progress2 {
    flex: 1;
    padding-top: 3px;
    padding-bottom: 3px;
}

#progress {
    appearance: none;
}

#progress::-webkit-progress-bar {
    border-radius: 4px;
    background: #161619;
}

#progress::-webkit-progress-value {
    border-radius: 4px;
    background: #bd8cff;
}

#progress2 {
    appearance: none;
}

#progress2::-webkit-progress-bar {
    border-radius: 4px;
    background: #161619;
}

#progress2::-webkit-progress-value {
    border-radius: 4px;
    background: #bd8cff;
}

#progress_m {
    appearance: none;
}

#progress_m::-webkit-progress-bar {
    border-radius: 4px;
    background: #161619;
}

#progress_m::-webkit-progress-value {
    border-radius: 4px;
    background: #bd8cff;
}

.exp_bar {
    width: 100%;
    height: 18px;
    border-radius: 6px;
    background: #24272d;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding-left: 5px;
    padding-right: 5px;
}

.point_wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 80%;
    color: #fff;
    font-family: SUIT;
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
}

.point_wrap span {
    flex: 1;
}

.js_user_total_point {
    flex: 1;
}

.my_page {
    width: 136px;
    height: 25px;
    border-radius: 3px;
    background: #24272d;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    transition: all 0.2s linear;
}

.my_page:hover {
    background: #1e2025;
}

.my_list_down {
    height: 60px;
    border-radius: 3px;
    background: #24272d;
    width: 100%;
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
}

.my_list1 {
    width: 71px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    margin-bottom: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.my_list2 {
    width: 71px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    margin-bottom: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.my_list3 {
    width: 71px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    margin-bottom: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.my_list4 {
    width: 71px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    margin-bottom: 12px;
}

.mli {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.mli h5 {
    color: #a36eff;
    text-align: center;
    font-family: 'SUIT';
    font-size: 11.5px;
    font-style: normal;
    font-weight: 700;
}

.mli img {
    width: 13px;
    height: 13px;
}

.my_page span {
    color: #fff;
    font-family: 'SUIT';
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
}

.pt_wrap {
    display: flex;
    width: 136px;
    height: 25px;
    gap: 2px;
}

.list_act {
    display: flex;
    position: relative;
}

.act_new {
    width: 14px;
    height: 10px;
    background-image: url('../img/new_icon.png');
    background-size: cover;
    background-repeat: no-repeat;
    position: absolute;
    left: 21px;
    border-radius: 3px;
    top: -2px;
    display: none;
}

.act_new2 {
    width: 14px;
    height: 10px;
    background-image: url('../img/new_icon.png');
    background-size: cover;
    background-repeat: no-repeat;
    position: absolute;
    left: 43px;
    border-radius: 3px;
    top: -2px;
    display: none;
}

.act_new3 {
    width: 14px;
    height: 10px;
    background-image: url('../img/new_icon.png');
    background-size: cover;
    background-repeat: no-repeat;
    position: absolute;
    left: 21px;
    border-radius: 3px;
    top: -2px;
    display: none;
}

.act_new4 {
    width: 14px;
    height: 10px;
    background-image: url('../img/new_icon.png');
    background-size: cover;
    background-repeat: no-repeat;
    position: absolute;
    left: 43px;
    border-radius: 3px;
    top: -2px;
    display: none;
}

.point {
    width: 120px;
    height: 25px;
    border-radius: 3px;
    background: #24272d;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
}

.coin_m {
    width: 166px;
    height: 25px;
    border-radius: 3px;
    background: #24272d;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
}

.exp_m {
    width: 166px;
    height: 25px;
    border-radius: 3px;
    background: #24272d;
    display: flex;
    align-items: center;
    padding-left: 5px;
    padding-right: 5px;
}

.progress_m {
    flex: 1;
    padding-top: 4px;
    padding-bottom: 4px;
}

.js_user_total_coin {
    flex: 1;
}

.coin_m span {
    color: #fff;
    font-family: 'SUIT';
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
}

.coin_m h5 {
    color: #9b9b9b;
    font-family: SUIT;
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
    margin-left: 3px;
}

.point span {
    color: #fff;
    font-family: 'SUIT';
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
}

.point h5 {
    color: #9b9b9b;
    font-family: SUIT;
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
    margin-left: 3px;
}

.charge {
    width: 50px;
    height: 20px;
    border-radius: 3px;
    background: #7140b5;
    border: none;
    color: #fff;
    font-family: 'SUIT';
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    transition: all 0.2s linear;
}

.charge_m {
    width: 42px;
    height: 25px;
    border-radius: 3px;
    background: #7140b5;
    border: none;
    color: #fff;
    font-family: 'SUIT';
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    transition: all 0.2s linear;
}

.charge:hover {
    background: #61379b;
}

/* 로그인 시 종료 */

.sign_up {
    width: 102px;
    height: 32px;
    border-radius: 6px;
    border: 0.5px solid #bd8cff;
    background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.34) 84.59%,
            rgba(136, 80, 214, 0.16) 100%
    );
    transition: all 0.25s ease;
    z-index: 1;
    font-family: 'SUIT';
    font-weight: 500;
    color: rgba(189, 140, 255, 1);
    font-size: 15px;
    will-change: transform;
}

/* 회원가입 호버 */

.sign_up:hover {
    background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.22) -43.75%,
            rgba(136, 80, 214, 0.4) 79.69%
    );
    color: white;
    background-size: 100%;
    border: 0.5px solid rgba(157, 85, 255, 1);
}

.log_in {
    width: 102px;
    height: 32px;
    border-radius: 6px;
    background: #8850d6;
    border: none;
    font-family: 'SUIT';
    font-weight: 500;
    color: #fff;
    font-size: 15px;
    transition: all 0.25s ease;
    will-change: transform;
}

/* 로그인 호버 */

.log_in:hover {
    background: rgba(115, 65, 186, 1);
}

/* 라이트 모드 다크 모드 조정 */

.bright {
    display: flex;
    align-items: center;
    border: none;
    background: transparent;
}

.bright img {
    width: 18px;
    height: 14px;
}

.mode_sel {
    width: 120px;
    height: 80px;
    border-radius: 4px;
    background: #2c3038;
    flex-shrink: 0;
    position: absolute;
    left: 140px;
    top: 40px;
    padding-top: 5px;
    padding-bottom: 5px;
    display: flex;
    flex-direction: column;
    padding-left: 5px;
    gap: 5px;
}

.mode_sel::after {
    content: '';
    display: block;
    width: 12px;
    height: 10px;
    background-image: url(../img/left_poly.png);
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    right: 10px;
    top: -5px;
    transform: rotate(90deg);
}

.light {
    width: 110px;
    height: 35px;
    border-radius: 3px;
    background: #24272d;
    display: flex;
    align-items: center;
    padding-left: 10px;
    border: none;
    transition: all 0.2s linear;
    will-change: transform;
}

.light:hover {
    background: #121316;
}

.light_icon {
    width: 14px;
    height: 14px;
    background-image: url(../img/light_icon.png);
    background-repeat: no-repeat;
    background-size: contain;
    margin-right: 9px;
}

.light h5 {
    color: #b7b7b7;
    font-family: 'SUIT';
    font-size: 14px;
    font-weight: 700;
}

.dark {
    width: 110px;
    height: 35px;
    border-radius: 3px;
    background: #24272d;
    display: flex;
    align-items: center;
    padding-left: 10px;
    border: none;
    transition: all 0.2s linear;
    will-change: transform;
}

.dark:hover {
    background: #121316;
}

.dark_icon {
    width: 14px;
    height: 14px;
    background-image: url(../img/dark_icon2.png);
    background-repeat: no-repeat;
    background-size: contain;
    margin-right: 9px;
}

.dark h5 {
    color: rgba(189, 140, 255, 1);
    font-family: 'SUIT';
    font-size: 14px;
    font-weight: 700;
}

/* 모바일용 라이트 모드 다크 모드 조정 */

.m_mode {
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.m_dk {
    width: 90px;
    height: 28px;
    border-radius: 15px;
    border: none;
    background: #4929ac;
    font-family: 'SUIT';
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.m_lg {
    width: 90px;
    height: 28px;
    border-radius: 15px;
    border: none;
    background: #3e3d40;
    font-family: 'SUIT';
    font-size: 13px;
    font-weight: 600;
    color: #7e7e7e;
}

/* 헤더 부분 선택 내비게이션 바 */

.hd_down_area {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    height: 76px;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.gnb_wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 25px;
    height: 76px;
    align-content: center;
}

.gnb {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    height: 56px;
    justify-content: space-between;
}

.gnb_1 {
    height: 56px;
    padding-left: 20px;
    display: flex;
    align-items: center;
    transition: all 0.25s ease;
    border-radius: 50px;
}

/* 헤더 부분 호버 조절 */

.gnb_1:hover .gnb_text {
    color: #8ee1ff;
}

.gnb_1:hover .icon_area1 {
    animation: floatIcon 1s ease-in-out infinite;
}

.gnb_1:hover .icon_area2 {
    animation: floatIcon 1s ease-in-out infinite;
}

.gnb_1:hover .icon_area3 {
    animation: floatIcon 1s ease-in-out infinite;
}

.gnb_1:hover .icon_area4 {
    animation: floatIcon 1s ease-in-out infinite;
}

.gnb_1:hover .icon_area5 {
    animation: floatIcon 1s ease-in-out infinite;
}

.gnb_1:hover .icon_area6 {
    animation: floatIcon 1s ease-in-out infinite;
}

@keyframes floatIcon {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
    100% {
        transform: translateY(0);
    }
}

.icon_area1 {
    width: 31px;
    height: 31px;
    background-image: url(../img/hd1.png);
    display: block;
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 21px;
    transition: all 0.15s linear;
}

.icon_area2 {
    width: 31px;
    height: 31px;
    background-image: url(../img/hd2.png);
    display: block;
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 20px;
    transition: all 0.15s linear;
}

.icon_area3 {
    width: 31px;
    height: 31px;
    background-image: url(../img/hd3.png);
    display: block;
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 21px;
    transition: all 0.15s linear;
}

.icon_area4 {
    width: 31px;
    height: 31px;
    background-image: url(../img/hd4.png);
    display: block;
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 24px;
    transition: all 0.15s linear;
}

.icon_area5 {
    width: 31px;
    height: 31px;
    background-image: url(../img/hd1-2.png);
    display: block;
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 21px;
    transition: all 0.15s linear;
}

.icon_area6 {
    width: 31px;
    height: 31px;
    background-image: url(../img/hd6.png);
    display: block;
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 18px;
    transition: all 0.15s linear;
}

.gnb_text {
    color: #fff;
    font-family: SUIT;
    font-size: 17px;
    font-style: normal;
    font-weight: 600;
    transition: all 0.25s linear;
}

/* 모바일 헤더 영역 */

.hd_whole_area2 {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    height: 120px;
    display: none;
}

.my_info_m li a {
    color: #fff;
    font-weight: 500;
    font-family: 'SUIT';
}

.nim {
    color: #fff;
    font-weight: 500;
    margin-left: 5px;
    font-size: 13px;
    font-family: 'SUIT';
}

.hd_wrap2 {
    width: 100%;
    height: 120px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(
            180deg,
            #100a14 72.17%,
            rgba(8, 4, 11, 0.35) 100%
    );
    backdrop-filter: blur(15px);
    border-bottom: solid 1px rgba(235, 235, 235, 0.19);
}

.main_up_area2 {
    width: 100%;
    max-width: 640px;
    display: flex;
    margin: 0 auto;
    padding-top: 45px;
    justify-content: space-between;
    align-items: center;
}

.logo_m {
    width: 140px;
    height: 30px;
}

.logo_m img {
    width: 140px;
    height: 30px;
    object-fit: cover;
}

.open_m {
    width: 20px;
    height: 15px;
    border: none;
    background-color: transparent;
    background-image: url(../img/m_menu_btn.png);
    background-size: contain;
    background-repeat: no-repeat;
}

.m_menu_wrap {
    z-index: 9997;
    width: 100%;
    height: 100%;
    background-color: #170f23;
    position: fixed;
    top: 0;
    bottom: 0;
    opacity: 0; /* 초기에는 투명하게 */
    visibility: hidden; /* 초기에는 보이지 않게 */
    transition: opacity 0.3s ease, visibility 0.3s ease; /* 페이드 효과 */
}

/* 메뉴가 활성화되었을 때 */
.m_menu_wrap.active {
    opacity: 1;
    visibility: visible;
}

.menu_overlay.active {
    opacity: 1;
    visibility: visible;
}

.m_menu_upside {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding-right: 25px;
    margin-top: 25px;
    padding-left: 25px;
}

.close_m {
    width: 12px;
    height: 12px;
    border: none;
    background-color: transparent;
    background-image: url(../img/close_btn.png);
    background-size: contain;
    background-repeat: no-repeat;
}

.m_login_area {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.m_logo {
    width: 139px;
    height: 29px;
    margin-bottom: 35px;
}

.m_logo img {
    width: 139px;
    height: 29px;
}

.m_nav_area {
    margin-top: 30px;
    border-top: 0.5px solid #262626;
}

.gnb_m {
    display: flex;
    flex-wrap: wrap;
}

.gnb_1_m {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 23px 0px;
    background-color: rgba(27, 27, 27, 0.52);
    border-bottom: 0.5px solid #262626;
    border-right: 0.5px solid #262626;
}

.gnb_text_m {
    color: #fff;
    text-align: center;
    font-family: 'SUIT';
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
}

.m_logout {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.m_login_wrap .sign_up {
    padding: 0.3rem 0px;
    width: 80px;
    height: auto;
    font-size: 14px;
}

.m_login_wrap .log_in {
    padding: 0.3rem 0px;
    width: 80px;
    height: auto;
    font-size: 14px;
}

.m_login_wrap {
    display: flex;
    gap: 5px;
}

.m_login_status {
    display: flex;
    flex-direction: column;
    width: 250px;
}

.my_info_m {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.user_m {
    color: #fff;
    font-family: 'SUIT';
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
}

.my_page_m {
    color: #bd8cff;
    font-family: 'SUIT';
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
}

.point_m_wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.coin_m_wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.coin_m_wrap h5 {
    color: #8c8c8c;
    font-family: 'SUIT';
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    margin-right: 10px;
}

.m_my_list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    padding-left: 10px;
    padding-right: 10px;
}

.my_mli a {
    color: #fff;
    font-weight: 500;
    font-family: 'SUIT';
    font-size: 13px;
}

.my_mli {
    position: relative;
}

.point_m_wrap h5 {
    color: #8c8c8c;
    font-family: 'SUIT';
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    margin-right: 10px;
}

.point_m {
    height: 25px;
    border-radius: 3px;
    background: #24272d;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 1rem;
    padding-right: 1rem;
}

.point_m span {
    color: #ffffff;
    font-family: 'SUIT';
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    margin-right: 4px;
}

.point_m h5 {
    color: #8c8c8c;
    font-family: 'SUIT';
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    margin: 0;
}

.point_m_wrap .pt_wrap {
    height: 25px;
    gap: 4px;
    width: auto;
}

@media all and (max-width: 1220px) {
    .main_up_area {
        justify-content: space-between;
        padding-left: 80px;
        padding-right: 80px;
        gap: 0;
    }

    .gnb_wrapper {
        padding-left: 60px;
        padding-right: 60px;
    }
}

@media all and (max-width: 1220px) {
    .main_up_area {
        justify-content: space-between;
        padding-left: 80px;
        padding-right: 80px;
        gap: 0;
    }

    .gnb_wrapper {
        padding-left: 60px;
        padding-right: 60px;
    }

    .icon_area1 {
        display: none;
    }
    .icon_area2 {
        display: none;
    }
    .icon_area3 {
        display: none;
    }
    .icon_area4 {
        display: none;
    }
    .icon_area5 {
        display: none;
    }
    .icon_area6 {
        display: none;
    }

    .gnb_wrapper {
        width: 100%;
        margin-top: 25px;
        margin-left: 0;
        margin-right: 0;
        height: 76px;
        align-content: center;
    }

    .gnb {
        justify-content: space-between;
        gap: 0;
    }

    .gnb_1 {
        padding-left: 0;
    }

    .hd_down_area {
        padding-left: 30px;
        padding-right: 30px;
    }
}

/* 반응형 break point 2 - 1200px */

@media all and (max-width: 1200px) {
    .main_up_area {
        width: 100%;
        margin: 0 auto;
        margin-top: 43px;
        max-width: 800px;
        padding: 0;
        padding-right: 0;
        box-sizing: border-box;
    }

    .gnb_text {
        font-size: 16px;
    }

    main {
        overflow: hidden;
    }

    .hd_down_area {
        max-width: 800px;
        padding: 0;
        padding-right: 10px;
        padding-left: 10px;
        box-sizing: border-box;
    }

    .gnb_wrapper {
        padding: 0;
    }

    .gnb {
        justify-content: space-between;
        gap: 0;
    }
}

/* 반응형 태블릿 */

@media screen and (min-width: 801px) {
    .m_menu_wrap {
        display: none !important; /* !important로 다른 스타일보다 우선 적용 */
        opacity: 0 !important;
        visibility: hidden !important;
    }
}

@media all and (max-width: 800px) {
    body {
        font-size: 0.9em;
    }

    .hd_whole_area {
        display: none;
    }

    .hd_whole_area2 {
        display: block;
    }

    .ttl_title {
        font-size: 12px;
    }

    .footer_up {
        flex-direction: column;
        height: auto;
        margin-top: 55px;
    }

    .logo_gray {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .footer_text {
        display: none;
    }

    .footer_down {
        margin-top: 20px;
        font-size: 11px;
    }
}

@media all and (max-width: 640px) {
    .footer_down {
        width: 100%;
    }

    .hd_wrap2 {
        padding-left: 20px;
        padding-right: 20px;
    }

    .wr_list {
        padding-left: 20px;
    }

    .wr_img_area {
        width: 40%;
    }
}

.main_popup {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    display: none;
}
.main_popup .con_footer {
    display: flex; /* justify-content: end; */
    height: 50px;
}
.main_popup .con_footer div.checkbox {
    flex: 1;
    justify-content: center;
    line-height: 40px;
    padding: 5px;
    border-right: 1px solid #ccc;
}
.main_popup .con_footer div.checkbox img {
    width: 35px;
    margin: -3px 10px 0 0;
}
.main_popup .con_footer label {
    color: #000;
    margin-left: 5px;
    font-size: 16px;
}
.main_popup .con_footer .close_btn {
    width: 80px;
    text-align: center;
    color: #000;
    line-height: 40px;
    padding: 5px;
    font-size: 16px;
}

/* 쪽지함 관련 CSS 작성 */

.ms_body {
    background-color: #111111;
}

.main_whole_area9 {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ms_head_area {
    width: 100%;
    height: 50px;
    background: #7140b5;
    display: flex;
    align-items: center;
}

.ms_head_wrap {
    flex: 1;
    padding-left: 18px;
    padding-right: 18px;
}

.ms_head {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

.ms_head h5 {
    color: #fff;
    font-family: 'SUIT';
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
}

.close_btn {
    width: 14px;
    height: 14px;
    background-image: url(../img/close_btn.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-color: transparent;
    border: none;
    background-position: center;
}

.ms_body_area {
    width: 100%;
    height: auto;
    padding-left: 10px;
    padding-right: 10px;
}

.ms_list_wrap {
    width: 100%;
    height: 35px;
    border-radius: 4px;
    background: #1d1d1f;
    margin-top: 18px;
    display: flex;
    align-items: center;
    padding-left: 14px;
    padding-right: 14px;
}

.ms_list {
    display: flex;
    align-items: center;
    gap: 15px;
}

.msl_on a {
    color: #fff;
    text-align: center;
    font-family: 'SUIT';
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
}

.msl_off a {
    color: rgba(255, 255, 255, 0.36);
    text-align: center;
    font-family: 'SUIT';
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    transition: all 0.25s linear;
}

.msl_off a:hover {
    color: #fff;
}

.side_bar {
    color: #6e6e6e;
    text-align: center;
    font-family: 'SUIT';
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
}

.ms_info {
    padding-left: 8px;
    margin-top: 14px;
    display: flex;
}

.ms_info h5 {
    color: #fff;
    font-family: 'SUIT';
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
}

.ms_info span {
    color: #fff;
    font-family: 'SUIT';
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    margin-left: 5px;
    margin-right: 3px;
}

.purple {
    width: 100%;
    height: 3px;
    background: #8850d6;
    margin-top: 14px;
    position: relative;
    z-index: 0;
}

.ms_notice {
    padding-left: 18px;
    display: flex;
    align-items: center;
    margin-top: 8px;
    margin-bottom: 8px;
}

.ms_notice h4 {
    color: rgba(255, 255, 255, 0.67);
    font-family: 'SUIT';
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
}

.ms_notice span {
    color: #b57eff;
    font-family: 'SUIT';
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    line-height: 13px;
    margin-left: 5px;
    margin-right: 3px;
}

.ms_notice2 {
    padding-left: 18px;
    display: flex;
    align-items: center;
    margin-top: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #3d3d3d;
}

.ms_notice2 h4 {
    color: rgba(255, 255, 255, 0.67);
    font-family: 'SUIT';
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
}

.ms_notice2 span {
    color: #b57eff;
    font-family: 'SUIT';
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    line-height: 13px;
    margin-right: 3px;
}

/* 게시글 번호 및 넘기기 - 페이지네이션 교체 후 삭제 가능 */

.pg_num_area {
    width: 100%;
    height: 35px;
    margin-top: 50px;
    margin-left: auto;
    margin-right: auto;
}

.pg_num {
    width: 105px;
    height: 35px;
    margin: 0 auto;
    display: flex;
}

.num_click1 {
    width: 35px;
    height: 35px;
    border-radius: 4px 0px 0px 4px;
    border-top: 1px solid #3d3d3d;
    border-bottom: 1px solid #3d3d3d;
    border-left: 1px solid #3d3d3d;
    background: #1c1c1c;
    position: relative;
    transition: all 0.2s linear;
}

.num_click1:hover {
    background: #141414;
}

.num_click1::after {
    content: '';
    display: block;
    background-image: url(../img/num_left.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 8px;
    height: 8px;
    position: absolute;
    top: 13px;
    left: 14px;
}

.num_click2 {
    width: 35px;
    height: 35px;
    border: 1px solid #3d3d3d;
    background: #1c1c1c;
    justify-content: center;
    align-items: center;
    display: flex;
    transition: all 0.2s linear;
}

.num_click2:hover {
    background: #141414;
}

.num_click2 span {
    color: #fff;
    font-family: 'SUIT';
    font-size: 15px;
    font-weight: 400;
}

.num_click3 {
    width: 35px;
    height: 35px;
    border-radius: 0px 4px 4px 0px;
    border-top: 1px solid #3d3d3d;
    border-right: 1px solid #3d3d3d;
    border-bottom: 1px solid #3d3d3d;
    background: #1c1c1c;
    position: relative;
    transition: all 0.2s linear;
}

.num_click3:hover {
    background: #141414;
}

.num_click3::after {
    content: '';
    display: block;
    background-image: url(../img/num_right.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 8px;
    height: 8px;
    position: absolute;
    top: 13px;
    left: 14px;
}

.ms_table_wrap {
    width: 100%;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    position: relative;
    z-index: 10;
    background: transparent;
    /* 스크롤바 스타일링 (웹킷 브라우저) */
    scrollbar-width: thin;
    scrollbar-color: #7140b5 #1d1d1f;
}

.ms_table_wrap::-webkit-scrollbar {
    width: 8px;
}

.ms_table_wrap::-webkit-scrollbar-track {
    background: #1d1d1f;
}

.ms_table_wrap::-webkit-scrollbar-thumb {
    background: #7140b5;
    border-radius: 4px;
}

.ms_table_wrap::-webkit-scrollbar-thumb:hover {
    background: #8850d6;
}

.ms_table {
    width: 100%;
    table-layout: fixed;
    background: transparent;
    position: relative;
    z-index: 10;
}

/* 읽음/안읽음 표시 스타일 */
.read-status-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 24px;
    border-radius: 12px;
    margin-right: 0;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    padding: 0 8px;
    white-space: nowrap;
    line-height: 1;
}

.read-status-indicator.unread {
    background-color: #ff4444 !important;
    box-shadow: 0 0 6px rgba(255, 68, 68, 0.8);
    animation: pulse 2s infinite;
}

.read-status-indicator.read {
    background-color: #888888 !important;
    box-shadow: 0 0 3px rgba(136, 136, 136, 0.5);
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* 5개 컬럼 구조: 순번, 처리, 제목, 받은시간, 확인시간 */
/* 순번 (1번째 컬럼) */
.ms_th1,
.ms_td1 {
    height: 30px;
    background: #1d1d1f;
    border-top: 1px solid #4a494b;
    border-bottom: 1px solid #4a494b;
    color: #fff;
    text-align: center;
    font-family: 'SUIT';
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    width: 8%;
}

.ms_td1 {
    background: transparent;
    border-top: none;
    border-bottom: 1px solid #4a494b;
}

/* 처리 컬럼 (2번째 컬럼) */
.ms_table th:nth-child(2) {
    height: 30px;
    background: #1d1d1f;
    border-top: 1px solid #4a494b;
    border-bottom: 1px solid #4a494b;
    color: #fff;
    text-align: center;
    font-family: 'SUIT';
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    width: 12%;
    padding: 8px 4px;
    vertical-align: middle;
}

.ms_table td:nth-child(2) {
    background: transparent !important;
    border-top: none;
    border-bottom: 1px solid #4a494b;
    line-height: 30px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.ms_table td:nth-child(2) .read-status-indicator {
    margin: 0;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* 제목 컬럼 (3번째 컬럼) */
.ms_table th:nth-child(3),
.ms_table td:nth-child(3) {
    height: 30px;
    background: #1d1d1f;
    border-top: 1px solid #4a494b;
    border-bottom: 1px solid #4a494b;
    color: #fff;
    text-align: left;
    font-family: 'SUIT';
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    width: 40%;
    padding: 8px 12px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.ms_table td:nth-child(3) {
    background: transparent;
    border-top: none;
    border-bottom: 1px solid #4a494b;
}

.ms_table td:nth-child(3) a {
    color: #fff;
    text-align: left;
    font-family: 'SUIT';
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    transition: all 0.25s linear;
    text-decoration: none;
}

.ms_table td:nth-child(3) a:hover {
    color: #b3b0b0;
}

/* 받은시간, 확인시간 (4번째, 5번째 컬럼) */
.ms_th3,
.ms_td3 {
    height: 30px;
    background: #1d1d1f;
    border-top: 1px solid #4a494b;
    border-bottom: 1px solid #4a494b;
    color: #fff;
    text-align: center;
    font-family: 'SUIT';
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    width: 20%;
}

.ms_td3 {
    background: transparent;
    border-top: none;
    border-bottom: 1px solid #4a494b;
}

@media all and (max-width: 800px) {
    .ms_table_wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .ms_table {
        min-width: 600px;
    }

    .ms_th1,
    .ms_td1 {
        width: 8%;
    }

    .ms_table th:nth-child(2),
    .ms_table td:nth-child(2) {
        width: 12%;
        padding: 6px 2px;
    }

    .ms_table th:nth-child(3),
    .ms_table td:nth-child(3) {
        width: 33%;
        padding: 6px 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .ms_th3,
    .ms_td3 {
        width: 23.5%;
        padding: 6px 4px;
    }

    .ms_td3 {
        font-size: 11px;
    }

    .read-status-indicator {
        min-width: 45px;
        height: 22px;
        font-size: 10px;
        padding: 0 6px;
    }
}

@media all and (max-width: 640px) {
    .ms_table {
        min-width: 550px;
    }

    .ms_th1,
    .ms_td1 {
        width: 7%;
        font-size: 12px;
    }

    .ms_table th:nth-child(2),
    .ms_table td:nth-child(2) {
        width: 12%;
        padding: 5px 2px;
    }

    .ms_table th:nth-child(3),
    .ms_table td:nth-child(3) {
        width: 32%;
        padding: 5px 6px;
        font-size: 12px;
    }

    .ms_th3,
    .ms_td3 {
        width: 24.5%;
        padding: 5px 3px;
        font-size: 10px;
    }

    .read-status-indicator {
        min-width: 42px;
        height: 20px;
        font-size: 9px;
        padding: 0 5px;
    }
}

@media all and (max-width: 430px) {
    .ms_table {
        min-width: 500px;
    }

    .ms_th1,
    .ms_td1 {
        width: 7%;
        font-size: 11px;
    }

    .ms_table th:nth-child(2),
    .ms_table td:nth-child(2) {
        width: 13%;
        padding: 4px 2px;
    }

    .ms_table th:nth-child(3),
    .ms_table td:nth-child(3) {
        width: 30%;
        max-width: 120px;
        padding: 4px 5px;
        font-size: 11px;
    }

    .ms_th3,
    .ms_td3 {
        width: 25%;
        padding: 4px 2px;
        font-size: 9px;
    }

    .read-status-indicator {
        min-width: 40px;
        height: 18px;
        font-size: 8px;
        padding: 0 4px;
    }
}

.ms_send_ttl {
    color: #fff;
    font-family: 'SUIT';
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    margin-bottom: 6px;
}

.ms_input_wrap {
    width: 100%;
    height: 30px;
    border-radius: 5px;
    border: 1px solid #4a494b;
    padding-left: 4px;
    padding-right: 4px;
    display: flex;
    align-items: center;
}

.ms_input_wrap2 {
    width: 100%;
    height: 220px;
    border-radius: 5px;
    border: 1px solid #4a494b;
    padding-left: 4px;
    padding-right: 4px;
    padding-top: 3px;
    padding-bottom: 3px;
    display: flex;
    /*    align-items: center;*/
}

.ms_input {
    width: 100%;
    color: #fff;
    font-size: 14px;
    font-family: 'SUIT';
    font-weight: 500;
    background: transparent;
    border: none;
}

.ms_input::placeholder {
    font-size: 14px;
    font-weight: 600;
    font-family: 'SUIT';
}

.ms_write {
    margin-top: 20px;
}

.ms_write_wrap {
    padding-left: 18px;
    padding-right: 18px;
    margin-top: 10px;
}

.ms_name {
    margin-top: 20px;
}

.ms_input2 {
    width: 100%;
    color: #fff;
    font-size: 14px;
    font-family: 'SUIT';
    font-weight: 500;
    background: transparent;
    border: none;
    height: 100%;
}

.send_btn_wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
}

.send_btn {
    width: 90px;
    height: 32px;
    border-radius: 4px;
    background: #7140b5;
    border: none;
    color: #fff;
    font-family: 'SUIT';
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    transition: all 0.25s linear;
}

.send_btn:hover {
    background: #5e309e;
}

.ms_date {
    display: flex;
    height: 30px;
    border-top: 1px solid #4a494b;
    border-bottom: 1px solid #4a494b;
    align-items: center;
    padding-left: 18px;
    padding-right: 18px;
}

.ms_date h5 {
    color: #bd8cff;
    font-family: 'SUIT';
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    width: 40px;
    margin-right: 10px;
}

.ms_date span {
    color: #fff;
    font-family: 'SUIT';
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    width: 100%;
}

.ms_sender {
    display: flex;
    height: 30px;
    border-bottom: 1px solid #4a494b;
    align-items: center;
    padding-left: 18px;
    padding-right: 18px;
}

.ms_sender h5 {
    color: #bd8cff;
    font-family: 'SUIT';
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    width: 40px;
    margin-right: 10px;
}

.ms_sender span {
    color: #fff;
    font-family: 'SUIT';
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    width: 100%;
}

.ms_title {
    display: flex;
    height: 30px;
    border-bottom: 1px solid #4a494b;
    align-items: center;
    padding-left: 18px;
    padding-right: 18px;
}

.ms_title h5 {
    color: #bd8cff;
    font-family: 'SUIT';
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    width: 40px;
    margin-right: 10px;
}

.ms_title span {
    color: #fff;
    font-family: 'SUIT';
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    width: 100%;
}

.ms_body_wrap {
    width: 100%;
    padding-top: 16px;
    padding-bottom: 16px;
    padding-left: 18px;
    padding-right: 18px;
    min-height: 200px;
    border-bottom: 1px solid #4a494b;
}

.ms_body_txt {
    color: #fff;
    font-family: 'SUIT';
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    line-height: 18px;
}

.ms_btn_wrap {
    margin-top: 30px;
    padding-left: 15px;
    padding-right: 15px;
}

.ms_btn_all {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
}

.ms_bf {
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
    border-radius: 4px;
    border: 1px solid #4a494b;
    background: #1d1d1f;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-family: 'SUIT';
    transition: all 0.25s linear;
}

.ms_bf:hover {
    background: #242323;
}

.ms_af {
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
    border-radius: 4px;
    border: 1px solid #4a494b;
    background: #1d1d1f;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-family: 'SUIT';
    transition: all 0.25s linear;
}

.ms_af:hover {
    background: #242323;
}

.ms_whole {
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
    border-radius: 4px;
    border: 1px solid #4a494b;
    background: #1d1d1f;
    color: rgba(255, 255, 255, 0.719);
    font-size: 13px;
    font-family: 'SUIT';
    transition: all 0.25s linear;
}

.ms_whole:hover {
    background: #242323;
}
