.nab-wx-modal {
    --nab-wx-gold: #e8c96a;
    --nab-wx-gold-bright: #f7e5a3;
    --nab-wx-gold-deep: #c19549;
    --nab-wx-bg: #0e0e10;
    --nab-wx-panel: #161618;
    --nab-wx-left: #121214;
    --nab-wx-text: #f2f2f2;
    --nab-wx-muted: #9a9a9e;
    position: fixed;
    inset: 0;
    z-index: 100050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}
.nab-wx-modal.is-open {
    display: flex;
}
.nab-wx-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(2px);
}
.nab-wx-dialog {
    position: relative;
    width: min(860px, 100%);
    max-height: min(92vh, 560px);
    border-radius: 16px;
    overflow: hidden;
    background: var(--nab-wx-bg);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(232, 201, 106, 0.18);
    animation: nab-wx-in 0.28s ease;
}
@keyframes nab-wx-in {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: none; }
}
.nab-wx-close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 3;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #bbb;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.nab-wx-close:hover {
    color: #fff;
}
.nab-wx-body {
    display: grid;
    grid-template-columns: 0.95fr 1.15fr;
    min-height: 460px;
}
.nab-wx-left {
    position: relative;
    padding: 40px 32px 28px;
    background:
        radial-gradient(120% 80% at 50% 120%, rgba(193, 149, 73, 0.22), transparent 55%),
        linear-gradient(180deg, #1a1a1c 0%, var(--nab-wx-left) 55%, #0a0a0b 100%);
    overflow: hidden;
}
.nab-wx-brand {
    position: relative;
    z-index: 1;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.nab-wx-logo {
    display: flex;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0 0 22px;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}
.nab-wx-logo img {
    width: 88%;
    max-width: 300px;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
    border-radius: 14px;
    background: transparent;
    display: block;
    padding: 0;
    box-sizing: border-box;
}
.nab-wx-logo-fallback {
    width: 88%;
    max-width: 200px;
    height: 64px;
    border-radius: 14px;
    background: #111;
    color: var(--nab-wx-gold);
    font-weight: 700;
    font-size: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.nab-wx-left-title {
    margin: 0 0 22px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.45;
    min-height: 1.45em;
    width: 100%;
    color: var(--nab-wx-gold-bright);
}
.nab-wx-type-text {
    background: linear-gradient(180deg, #fff4c8 0%, #f7e5a3 28%, #e8c96a 58%, #c19549 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(232, 201, 106, 0.35));
}
.nab-wx-type-cursor {
    display: inline-block;
    width: 2px;
    height: 1.05em;
    margin-left: 3px;
    vertical-align: -0.18em;
    border-radius: 1px;
    background: linear-gradient(180deg, #f7e5a3, #c19549);
    box-shadow: 0 0 8px rgba(232, 201, 106, 0.65);
    animation: nab-wx-cursor-blink 0.75s step-end infinite;
}
.nab-wx-left-title.is-done .nab-wx-type-cursor {
    animation: none;
    opacity: 1;
}
.nab-wx-left-title.is-bounce .nab-wx-type-text {
    animation: nab-wx-title-bounce 0.9s ease;
}
@keyframes nab-wx-cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
@keyframes nab-wx-title-bounce {
    0%, 100% { transform: translateY(0) scale(1); opacity: 1; filter: drop-shadow(0 0 10px rgba(232, 201, 106, 0.35)); }
    18% { transform: translateY(-6px) scale(1.06); opacity: 0.35; filter: drop-shadow(0 0 16px rgba(247, 229, 163, 0.75)); }
    32% { transform: translateY(0) scale(1); opacity: 1; }
    52% { transform: translateY(-6px) scale(1.06); opacity: 0.35; filter: drop-shadow(0 0 16px rgba(247, 229, 163, 0.75)); }
    68% { transform: translateY(0) scale(1); opacity: 1; }
}
.nab-wx-features {
    position: relative;
    z-index: 1;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nab-wx-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 14px;
    color: #d6d6d8;
    font-size: 14px;
    line-height: 1.45;
}
.nab-wx-check {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--nab-wx-gold-bright), var(--nab-wx-gold-deep));
    position: relative;
}
.nab-wx-check::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 3px;
    width: 5px;
    height: 9px;
    border: solid #1a1208;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.nab-wx-terrain {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 42%;
    background:
        linear-gradient(180deg, transparent, rgba(8, 8, 10, 0.85) 70%),
        repeating-linear-gradient(105deg, transparent 0 10px, rgba(232, 201, 106, 0.05) 10px 11px),
        radial-gradient(80% 60% at 50% 100%, rgba(232, 201, 106, 0.28), transparent 70%);
    pointer-events: none;
}
.nab-wx-terrain::before {
    content: "";
    position: absolute;
    left: -10%;
    right: -10%;
    bottom: 18%;
    height: 70px;
    background:
        linear-gradient(135deg, transparent 40%, rgba(232, 201, 106, 0.55) 41%, transparent 42%),
        linear-gradient(45deg, transparent 48%, rgba(247, 229, 163, 0.35) 49%, transparent 50%);
    opacity: 0.55;
    filter: drop-shadow(0 0 10px rgba(232, 201, 106, 0.35));
}
.nab-wx-right {
    padding: 36px 40px 28px;
    background: var(--nab-wx-panel);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.nab-wx-panel {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.nab-wx-panel[hidden] {
    display: none !important;
}

.nab-wx-invite-desc {
    margin: 14px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--nab-wx-muted);
    max-width: 360px;
}
.nab-wx-invite-desc a {
    color: #ff8a8a;
    text-decoration: none;
    font-weight: 700;
}
.nab-wx-invite-desc a:hover {
    text-decoration: underline;
}

/* Colorful cycling CTA for invite-code acquisition */
.nab-invite-get-link,
.nab-wx-invite-desc a.nab-invite-get-link {
    display: inline-block;
    margin-left: 4px;
    font-weight: 900;
    font-size: 1.05em;
    letter-spacing: 0.02em;
    text-decoration: none !important;
    background-image: linear-gradient(
        90deg,
        #ff4d4f,
        #ffa940,
        #ffec3d,
        #73d13d,
        #40a9ff,
        #9254de,
        #f759ab,
        #ff4d4f
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    -webkit-text-fill-color: transparent;
    animation: nab-invite-rainbow 2.2s linear infinite;
    filter: drop-shadow(0 0 6px rgba(255, 169, 64, 0.45));
}
.nab-invite-get-link:hover {
    filter: drop-shadow(0 0 10px rgba(64, 169, 255, 0.65));
    text-decoration: none !important;
}
@keyframes nab-invite-rainbow {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.nab-vip-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.5;
    color: #1a1408;
    background: linear-gradient(180deg, #fff4c8 0%, #f7e5a3 35%, #e8c96a 70%, #c19549 100%);
    box-shadow: 0 2px 8px rgba(193, 149, 73, 0.35);
    vertical-align: middle;
    white-space: nowrap;
}
.nab-vip-badge--inactive {
    color: #f5d0a9 !important;
    background: rgba(255, 140, 66, 0.16);
    border: 1px solid rgba(255, 140, 66, 0.55);
    box-shadow: none;
    cursor: pointer;
    text-decoration: none !important;
}
.nab-vip-badge--inactive:hover {
    color: #ffe0c2 !important;
    border-color: rgba(255, 180, 100, 0.85);
    background: rgba(255, 140, 66, 0.28);
}
.tbm-avatar .nab-vip-badge {
    margin-left: 10px;
    margin-top: 4px;
}
.nab-vip-activate-btn {
    cursor: pointer !important;
}
.nab-vip-inactive-notice {
    margin: 10px 0 14px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 140, 66, 0.4);
    background: rgba(255, 140, 66, 0.12);
    color: #f5d0a9;
    font-size: 13px;
    line-height: 1.5;
}
.nab-vip-inactive-notice a {
    margin-left: 6px;
    font-weight: 800;
    color: #ffb347;
    text-decoration: underline;
}
body.nab-vip-inactive .fs-topbar-sign::after {
    content: none;
}

.nab-wx-banner {
    width: 100%;
    max-width: 420px;
    margin: 0 auto 22px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(232, 201, 106, 0.45);
    color: var(--nab-wx-gold);
    font-size: 12px;
    line-height: 1.45;
    background: rgba(232, 201, 106, 0.06);
    box-sizing: border-box;
}
.nab-wx-title {
    margin: 0 0 8px;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}
.nab-wx-title em {
    font-style: normal;
    background: linear-gradient(180deg, var(--nab-wx-gold-bright), var(--nab-wx-gold-deep));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.nab-wx-hint {
    margin: 0 0 20px;
    padding: 8px 14px;
    max-width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(232, 201, 106, 0.28);
    background: rgba(232, 201, 106, 0.08);
    color: #d8d8dc;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: 0.02em;
}
.nab-wx-hint-key {
    margin: 0 1px;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.04em;
    background: linear-gradient(180deg, #fff4c8 0%, #f7e5a3 35%, #e8c96a 70%, #c19549 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(232, 201, 106, 0.45));
    vertical-align: baseline;
}
.nab-wx-qr-wrap {
    width: 200px;
    height: 200px;
    padding: 10px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    margin: 0 auto 18px;
    box-sizing: border-box;
    flex-shrink: 0;
}
.nab-wx-qr {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.nab-wx-qr-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 13px;
    padding: 12px;
}
.nab-wx-form {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}
.nab-wx-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.nab-wx-digits {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.nab-wx-digit {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #0f0f11;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    line-height: 1;
    padding: 0;
    outline: none;
    caret-color: var(--nab-wx-gold);
    -moz-appearance: textfield;
}
.nab-wx-digit::-webkit-outer-spin-button,
.nab-wx-digit::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.nab-wx-digit:focus {
    border-color: rgba(232, 201, 106, 0.75);
    box-shadow: 0 0 0 3px rgba(232, 201, 106, 0.18);
}
.nab-wx-digit.is-filled {
    border-color: rgba(232, 201, 106, 0.45);
}
.nab-wx-digit:disabled {
    opacity: 0.7;
    cursor: wait;
}
.nab-wx-tip {
    margin: 10px 0 0;
    font-size: 13px;
    min-height: 1.2em;
}
.nab-wx-tip.is-err { color: #ff8a8a; }
.nab-wx-tip.is-ok { color: var(--nab-wx-gold); }
.nab-wx-agree {
    margin: 18px 0 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--nab-wx-muted);
    font-size: 12px;
}
.nab-wx-agree a,
.nab-wx-agree-name {
    color: var(--nab-wx-gold);
    text-decoration: none;
}
.nab-wx-agree a:hover {
    text-decoration: underline;
}
.nab-wx-agree .nab-wx-check {
    width: 14px;
    height: 14px;
}
.nab-wx-agree .nab-wx-check::after {
    left: 4px;
    top: 2px;
    width: 4px;
    height: 7px;
}

.nab-wx-switch {
    margin: 16px 0 0;
    font-size: 13px;
}
.nab-wx-switch a {
    color: var(--nab-wx-gold);
    text-decoration: none;
}
.nab-wx-switch a:hover {
    text-decoration: underline;
}

.nab-wx-email-form {
    width: 100%;
    max-width: 360px;
    text-align: left;
}
.nab-wx-field {
    display: block;
    margin: 0 0 14px;
}
.nab-wx-field span {
    display: block;
    margin-bottom: 6px;
    color: var(--nab-wx-muted);
    font-size: 13px;
}
.nab-wx-field input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #0f0f11 !important;
    color: #fff !important;
    font-size: 15px;
    box-sizing: border-box;
    -webkit-text-fill-color: #fff;
    box-shadow: none !important;
}
.nab-wx-field input:focus {
    outline: 0;
    border-color: rgba(232, 201, 106, 0.75);
    box-shadow: 0 0 0 3px rgba(232, 201, 106, 0.18) !important;
}
.nab-wx-field input::placeholder {
    color: #7a8494;
    opacity: 1;
}
.nab-wx-field input:-webkit-autofill,
.nab-wx-field input:-webkit-autofill:hover,
.nab-wx-field input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #0f0f11 inset !important;
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff;
    transition: background-color 99999s ease-out;
}
.nab-wx-panel-email {
    align-items: stretch;
    text-align: center;
}
.nab-wx-panel-email .nab-wx-title,
.nab-wx-panel-email .nab-wx-hint,
.nab-wx-panel-email .nab-wx-switch {
    align-self: center;
}
.nab-wx-panel-email .nab-wx-hint {
    width: 100%;
    box-sizing: border-box;
}
.nab-wx-email-btn {
    width: 100%;
    height: 46px;
    margin-top: 4px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    color: #1a1408;
    background: linear-gradient(180deg, #f7e5a3 0%, #e8c96a 45%, #c19549 100%);
}
.nab-wx-email-btn:hover {
    filter: brightness(1.05);
}
.nab-wx-panel-email .nab-wx-hint {
    margin-bottom: 18px;
}

/* Invite activate: single centered input, no native required bubble */
.nab-wx-activate-form {
    text-align: center;
}
.nab-wx-invite-input-wrap {
    margin: 0 0 8px;
}
.nab-wx-invite-input {
    width: 100%;
    height: 52px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid rgba(232, 201, 106, 0.35);
    background: rgba(15, 15, 17, 0.92) !important;
    color: #f7e5a3 !important;
    -webkit-text-fill-color: #f7e5a3;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-align: center;
    box-sizing: border-box;
    box-shadow: none !important;
    outline: 0;
}
.nab-wx-invite-input::placeholder {
    color: #6b7280;
    font-weight: 500;
    letter-spacing: 0.06em;
    opacity: 1;
}
.nab-wx-invite-input:focus {
    border-color: rgba(232, 201, 106, 0.85);
    box-shadow: 0 0 0 3px rgba(232, 201, 106, 0.18) !important;
}
.nab-wx-invite-input.is-error {
    border-color: rgba(255, 120, 120, 0.75);
    box-shadow: 0 0 0 3px rgba(255, 100, 100, 0.15) !important;
}
.nab-wx-activate-form .nab-wx-tip {
    margin: 0 0 12px;
    text-align: center;
}
.nab-wx-activate-form .nab-wx-email-btn {
    margin-top: 0;
}

@media (max-width: 720px) {
    .nab-wx-dialog {
        max-height: 92vh;
        overflow: auto;
    }
    .nab-wx-body {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .nab-wx-left {
        padding: 28px 22px 20px;
    }
    .nab-wx-logo {
        margin-bottom: 16px;
    }
    .nab-wx-logo img {
        width: 86%;
        max-width: 260px;
        border-radius: 12px;
    }
    .nab-wx-left-title {
        font-size: 18px;
    }
    .nab-wx-terrain {
        display: none;
    }
    .nab-wx-features li:nth-child(n+3) {
        display: none;
    }
    .nab-wx-right {
        padding: 24px 20px 28px;
    }
    .nab-wx-title {
        font-size: 20px;
    }
    .nab-wx-banner {
        font-size: 11px;
        border-radius: 12px;
    }
    .nab-wx-qr-wrap {
        width: 168px;
        height: 168px;
    }
    .nab-wx-digit {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        font-size: 20px;
    }
    .nab-wx-digits {
        gap: 8px;
    }
}
