@charset "utf-8";

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #ffffff;
    color: #152033;
    font-family: Pretendard, "Noto Sans KR", Arial, sans-serif;
}

.mvpn-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #e8edf5;
    backdrop-filter: blur(12px);
}

.mvpn-header-inner {
    display: flex;
    align-items: center;
    width: min(1320px, calc(100% - 48px));
    min-height: 84px;
    margin: 0 auto;
}

.mvpn-logo {
    flex: 0 0 auto;
}

.mvpn-logo a {
    display: flex;
    align-items: center;
    background: #010d23;
}

.mvpn-logo img {
    display: block;
    width: auto;
    max-width: 190px;
    height: 44px;
    object-fit: contain;
}

.mvpn-nav {
    display: flex;
    align-items: center;
    gap: 34px;
    margin-left: 62px;
}

.mvpn-nav a {
    position: relative;
    color: #303a4b;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.mvpn-nav a:hover {
    color: #2767f2;
}

.mvpn-nav a::after {
    position: absolute;
    right: 0;
    bottom: -12px;
    left: 0;
    height: 2px;
    background: #2767f2;
    content: "";
    opacity: 0;
    transform: scaleX(0);
    transition: 0.2s ease;
}

.mvpn-nav a:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.mvpn-account {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.mvpn-account a {
    text-decoration: none;
    white-space: nowrap;
}

.mvpn-link {
    padding: 11px 8px;
    color: #536074;
    font-size: 14px;
    font-weight: 600;
}

.mvpn-login-btn {
    min-width: 76px;
    padding: 12px 18px;
    color: #31405a;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    border: 1px solid #d8e0ec;
    border-radius: 9px;
    background: #ffffff;
}

.mvpn-apply-btn {
    min-width: 108px;
    padding: 13px 20px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    border-radius: 9px;
    background: linear-gradient(135deg, #3479f6, #2254d8);
    box-shadow: 0 8px 20px rgba(42, 99, 226, 0.22);
}

.mvpn-apply-btn:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.mvpn-mobile-toggle,
.mvpn-mobile-menu {
    display: none;
}

.mvpn-wrapper {
    width: 100%;
}

#container_wr,
#container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

#container_title {
    width: min(1200px, calc(100% - 40px));
    margin: 40px auto 20px;
}

@media (max-width: 1120px) {
    .mvpn-header-inner {
        width: min(100% - 32px, 1320px);
    }

    .mvpn-nav {
        gap: 20px;
        margin-left: 36px;
    }

    .mvpn-nav a {
        font-size: 14px;
    }
}

@media (max-width: 920px) {
    .mvpn-header-inner {
        min-height: 72px;
    }

    .mvpn-logo img {
        max-width: 160px;
        height: 38px;
    }

    .mvpn-nav,
    .mvpn-account {
        display: none;
    }

    .mvpn-mobile-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 42px;
        height: 42px;
        margin-left: auto;
        padding: 9px;
        border: 0;
        border-radius: 8px;
        background: transparent;
        cursor: pointer;
    }

    .mvpn-mobile-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: #1b2a42;
        transition: 0.2s ease;
    }

    .mvpn-mobile-menu {
        display: none;
        flex-direction: column;
        padding: 12px 24px 24px;
        border-top: 1px solid #edf1f7;
        background: #ffffff;
    }

    .mvpn-mobile-menu.is-open {
        display: flex;
    }

    .mvpn-mobile-menu a {
        padding: 14px 4px;
        color: #26344b;
        font-size: 15px;
        font-weight: 600;
        text-decoration: none;
        border-bottom: 1px solid #eef2f7;
    }

    .mvpn-mobile-menu .mobile-apply {
        margin-top: 12px;
        color: #ffffff;
        text-align: center;
        border: 0;
        border-radius: 8px;
        background: #2867eb;
    }
}

/* 기존 그누보드 메인 임시 표시 보정 */
body:not(.mvpn-home) #container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 40px 0 80px;
}

body:not(.mvpn-home) #container_wr {
    width: 100%;
}

/* ===== MegaVPN 전체 레이아웃 강제 보정 ===== */
html,
body {
    width: 100%;
    min-width: 0 !important;
    margin: 0;
    padding: 0;
}

body {
    overflow-x: hidden;
}

#wrapper,
.mvpn-wrapper,
#container_wr,
#container {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 헤더 */
.mvpn-header {
    position: relative;
    background: #010d23;
    border-bottom: 1px solid rgba(255,255,255,0.09);
    backdrop-filter: none;
}

.mvpn-header-inner {
    width: min(1440px, calc(100% - 64px));
    min-height: 88px;
}

.mvpn-logo img {
    width: 205px;
    max-width: 205px;
    height: 58px;
    object-fit: contain;
}

.mvpn-nav {
    margin-left: 85px;
    gap: 48px;
}

.mvpn-nav a {
    color: #ffffff;
    font-size: 15px;
}

.mvpn-nav a:hover {
    color: #4b91ff;
}

.mvpn-link {
    color: #d3deef;
}

.mvpn-login-btn {
    color: #ffffff;
    border-color: rgba(255,255,255,0.45);
    background: transparent;
}

.mvpn-login-btn:hover {
    color: #ffffff;
    border-color: #4389ff;
    background: rgba(55,127,255,0.10);
}

.mvpn-apply-btn {
    color: #ffffff;
    background: linear-gradient(135deg, #2477ff, #0752ea);
}

@media (max-width: 920px) {
    .mvpn-header-inner {
        width: calc(100% - 32px);
        min-height: 72px;
    }

    .mvpn-logo img {
        width: 165px;
        height: 46px;
    }

    .mvpn-mobile-toggle span {
        background: #ffffff;
    }

    .mvpn-mobile-menu {
        background: #06152e;
        border-top-color: rgba(255,255,255,0.1);
    }

    .mvpn-mobile-menu a {
        color: #ffffff;
        border-bottom-color: rgba(255,255,255,0.08);
    }
}

/* ==================================================
   MegaVPN 반응형 헤더
================================================== */

@media (max-width: 1180px) {
    .mvpn-header-inner {
        width: calc(100% - 40px);
    }

    .mvpn-nav {
        gap: 26px;
        margin-left: 45px;
    }

    .mvpn-nav a {
        font-size: 14px;
    }

    .mvpn-logo img {
        width: 180px;
        max-width: 180px;
    }

    .mvpn-account {
        gap: 6px;
    }

    .mvpn-link {
        padding-right: 5px;
        padding-left: 5px;
        font-size: 13px;
    }

    .mvpn-login-btn {
        min-width: 68px;
        padding-right: 13px;
        padding-left: 13px;
    }

    .mvpn-apply-btn {
        min-width: 96px;
        padding-right: 15px;
        padding-left: 15px;
    }
}

@media (max-width: 980px) {
    .mvpn-header {
        position: sticky;
        top: 0;
        z-index: 9999;
    }

    .mvpn-header-inner {
        width: calc(100% - 30px);
        min-height: 70px;
    }

    .mvpn-logo img {
        width: 158px;
        max-width: 158px;
        height: 46px;
    }

    .mvpn-nav,
    .mvpn-account {
        display: none !important;
    }

    .mvpn-mobile-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        margin-left: auto;
        padding: 10px;
        border: 1px solid rgba(255,255,255,0.18);
        border-radius: 8px;
        background: rgba(255,255,255,0.04);
    }

    .mvpn-mobile-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        border-radius: 2px;
        background: #ffffff;
    }

    .mvpn-mobile-menu {
        display: none;
        position: absolute;
        top: 70px;
        right: 0;
        left: 0;
        z-index: 9998;
        flex-direction: column;
        padding: 12px 20px 24px;
        border-top: 1px solid rgba(255,255,255,0.1);
        background: #010d23;
        box-shadow: 0 20px 35px rgba(0,0,0,0.3);
    }

    .mvpn-mobile-menu.is-open {
        display: flex !important;
    }

    .mvpn-mobile-menu a {
        display: block;
        padding: 15px 6px;
        color: #ffffff;
        font-size: 15px;
        font-weight: 600;
        text-decoration: none;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .mvpn-mobile-menu .mobile-apply {
        margin-top: 14px;
        padding: 15px;
        text-align: center;
        border: 0;
        border-radius: 8px;
        background: linear-gradient(135deg, #247dff, #0754e9);
    }
}

@media (max-width: 480px) {
    .mvpn-header-inner {
        width: calc(100% - 24px);
        min-height: 64px;
    }

    .mvpn-logo img {
        width: 142px;
        max-width: 142px;
        height: 42px;
    }

    .mvpn-mobile-menu {
        top: 64px;
    }
}

/* 모바일 로고 */
@media (max-width: 920px) {
    .mvpn-logo img {
        width: 190px !important;
        max-height: 52px !important;
    }

    .mvpn-header-inner {
        min-height: 72px !important;
    }
}

@media (max-width: 480px) {
    .mvpn-logo img {
        width: 165px !important;
        max-height: 46px !important;
    }
}

/* 상단 MegaVPN 로고 크기 최종 적용 */
.mvpn-logo {
    flex: 0 0 auto !important;
}

.mvpn-logo img {
    width: 340px !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    display: block !important;
}

.mvpn-header-inner {
    min-height: 104px !important;
}

/* 상단 로고 왼쪽 이동 */
@media (min-width: 921px) {
    .mvpn-logo {
        margin-left: -60px !important;
    }
}
