.nt-header,
.nt-header * {
    box-sizing: border-box;
}

.nt-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    height: 64px;
    border-bottom: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #0f172a;
    font-family: "Plus Jakarta Sans", "Noto Sans TC", sans-serif;
}

.nt-header__inner {
    width: 100%;
    max-width: 1720px;
    height: 64px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nt-header__left,
.nt-header__right,
.nt-header__nav,
.nt-header__link,
.nt-header__action,
.nt-header__update {
    display: flex;
    align-items: center;
}

.nt-header__left {
    min-width: 0;
    gap: 24px;
}

.nt-header__right {
    flex: 0 0 auto;
    gap: 12px;
}

.nt-header__logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    height: 62px;
    color: inherit;
    text-decoration: none;
}

.nt-header__logo img {
    display: block;
    width: auto;
    height: auto;
    max-height: 62px;
    object-fit: contain;
}

.nt-header__nav {
    gap: 6px;
}

.nt-header__link,
.nt-header__action {
    min-height: 32px;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #475569 !important;
    background: transparent;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}

.nt-header__link:hover {
    color: #0f172a !important;
    background: #f1f5f9;
}

.nt-header__link i {
    color: #64748b;
}

.nt-header__link.is-active {
    color: #0369a1 !important;
    background: #e0f2fe;
    border-color: #bae6fd;
}

.nt-header__link.is-active i {
    color: #0ea5e9;
}

.nt-header__update {
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
    white-space: nowrap;
}

.nt-header__pulse {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #34d399;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, .12);
}

.nt-header__plan {
    color: #fff !important;
    background: #0f172a !important;
    border-color: #0f172a !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .12);
    font-weight: 700;
}

.nt-header__plan:hover {
    color: #fff !important;
    background: #0284c7 !important;
    border-color: #0284c7 !important;
}

.nt-header__account,
.nt-header__login {
    color: #334155 !important;
    background: #fff !important;
    border-color: #e2e8f0 !important;
}

.nt-header__account:hover,
.nt-header__login:hover {
    color: #0f172a !important;
    background: #f1f5f9 !important;
}

.nt-header__account.is-active {
    color: #0369a1 !important;
    background: #e0f2fe !important;
    border-color: #bae6fd !important;
}

.nt-header__form {
    margin: 0;
}

.nt-header__logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #64748b;
    font: inherit;
    cursor: pointer;
    transition: color .15s ease, background-color .15s ease;
}

.nt-header__logout:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.nt-header__mobile-menu {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #fff;
    color: #334155;
    font-size: 18px;
    cursor: pointer;
}

.nt-header__mobile-menu:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.nt-mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    overflow-y: auto;
    background: rgba(15, 23, 42, .42);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nt-mobile-nav.is-open {
    display: flex;
}

.nt-mobile-nav__panel {
    width: 100%;
    min-height: 100%;
    padding: 20px 18px 28px;
    background: #fff;
    color: #0f172a;
    display: flex;
    flex-direction: column;
}

.nt-mobile-nav__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    margin-bottom: 22px;
}

.nt-mobile-nav__logo {
    display: inline-flex;
    align-items: center;
    height: 44px;
}

.nt-mobile-nav__logo img {
    display: block;
    max-height: 44px;
    width: auto;
}

.nt-mobile-nav__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #fff;
    color: #475569;
    font-size: 18px;
    cursor: pointer;
}

.nt-mobile-nav__close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.nt-mobile-nav__links {
    display: grid;
    gap: 8px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.nt-mobile-nav__link {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: #334155 !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
}

.nt-mobile-nav__link i {
    width: 20px;
    color: #64748b;
    text-align: center;
}

.nt-mobile-nav__link:hover {
    background: #f8fafc;
    color: #0f172a !important;
}

.nt-mobile-nav__link.is-active {
    color: #0369a1 !important;
    background: #e0f2fe;
    border-color: #bae6fd;
}

.nt-mobile-nav__link.is-active i {
    color: #0ea5e9;
}

.nt-mobile-nav__meta {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.nt-mobile-nav__update {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
}

.nt-mobile-nav__action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #334155 !important;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
}

.nt-mobile-nav__action:hover {
    background: #f1f5f9;
    color: #0f172a !important;
}

.nt-mobile-nav__action--plan {
    color: #fff !important;
    background: #0f172a;
    border-color: #0f172a;
}

.nt-mobile-nav__action--plan:hover {
    color: #fff !important;
    background: #0284c7;
    border-color: #0284c7;
}

.nt-mobile-nav__logout {
    margin: 0;
}

.nt-mobile-nav__logout button {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #334155;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.nt-mobile-nav__logout button:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.nt-mobile-nav__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 20px;
    color: #94a3b8;
    font-size: 10px;
    line-height: 16px;
}

.nt-mobile-nav__footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.nt-mobile-nav__footer a {
    color: #64748b !important;
    text-decoration: none !important;
}

.nt-mobile-nav__footer a:hover {
    color: #0369a1 !important;
}

@media (max-width: 1279px) {
    .nt-header__update {
        display: none;
    }
}

@media (max-width: 1023px) {
    .nt-header__nav {
        display: none;
    }
}

@media (max-width: 1199px) {
    .nt-header__nav { display: none; }
    .nt-header__mobile-menu { display: inline-flex; }
}

@media (max-width: 639px) {
    .nt-header__inner {
        padding: 0 16px;
    }

    .nt-header__right {
        gap: 8px;
    }

    .nt-header__right> :not(.nt-header__mobile-menu) {
        display: none;
    }

    .nt-header__mobile-menu {
        display: inline-flex;
    }
}

@media (max-width: 419px) {
    .nt-header__label-xs {
        display: none;
    }
}
