.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 32px;
    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: 12px;
    margin: 0 0 26px;
    color: #d6d6d8;
    font-size: 15px;
    line-height: 1.55;
}
.nab-wx-features li:last-child {
    margin-bottom: 0;
}
.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 36px;
    background: var(--nab-wx-panel);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: visible;
}
.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: 18px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--nab-wx-muted);
    max-width: 360px;
    text-align: center;
}
.nab-wx-invite-desc__text {
    display: block;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.55;
    color: #d7dde6;
    letter-spacing: 0.02em;
}
.nab-wx-invite-desc a {
    color: #ff8a8a;
    text-decoration: none;
    font-weight: 700;
}
.nab-wx-invite-desc a:hover {
    text-decoration: underline;
}

/* Invite purchase CTA — standalone button under desc */
.nab-invite-get-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 6px 0 10px;
    padding-right: 8px;
    padding-bottom: 8px;
    overflow: visible;
}
.nab-invite-get-link,
.nab-wx-invite-desc a.nab-invite-get-link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 12px 32px;
    min-width: 176px;
    border-radius: 999px;
    border: 1px solid rgba(255, 214, 120, 0.55);
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-decoration: none !important;
    color: #1a1208 !important;
    -webkit-text-fill-color: #1a1208;
    background-image: linear-gradient(
        105deg,
        #ffe7a3 0%,
        #ffd166 22%,
        #f5b942 48%,
        #ff8a4c 72%,
        #ff6b6b 100%,
        #ffe7a3 100%
    );
    background-size: 220% 100%;
    background-clip: padding-box;
    -webkit-background-clip: padding-box;
    box-shadow:
        0 0 0 1px rgba(255, 209, 102, 0.25),
        0 8px 22px rgba(255, 169, 64, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
    animation: nab-invite-btn-shine 2.8s linear infinite, nab-invite-btn-pulse 1.4s ease-in-out infinite !important;
    filter: none;
    transition: filter 0.18s ease, box-shadow 0.18s ease;
}
.nab-invite-get-link:hover {
    text-decoration: none !important;
    filter: brightness(1.05);
    box-shadow:
        0 0 0 1px rgba(255, 209, 102, 0.4),
        0 12px 28px rgba(255, 140, 66, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.nab-invite-hand {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 42px;
    height: 42px;
    pointer-events: none;
    z-index: 3;
    transform-origin: 30% 10%;
    animation: nab-invite-hand-tap 0.9s ease-in-out infinite !important;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45));
    will-change: transform;
}
.nab-invite-hand svg {
    display: block;
    width: 100%;
    height: 100%;
}
.nab-invite-hand::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 209, 102, 0.85);
    opacity: 0;
    animation: nab-invite-hand-ring 0.9s ease-out infinite !important;
}
@keyframes nab-invite-btn-shine {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}
@keyframes nab-invite-btn-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.045); }
}
@keyframes nab-invite-hand-tap {
    0%, 100% {
        transform: translate(10px, 10px) rotate(-28deg) scale(1);
    }
    35% {
        transform: translate(10px, 10px) rotate(-28deg) scale(1);
    }
    50% {
        transform: translate(-2px, -6px) rotate(-18deg) scale(0.92);
    }
    65% {
        transform: translate(4px, 2px) rotate(-24deg) scale(1.05);
    }
}
@keyframes nab-invite-hand-ring {
    0%, 45% {
        opacity: 0;
        transform: scale(0.4);
    }
    55% {
        opacity: 0.95;
        transform: scale(0.7);
    }
    100% {
        opacity: 0;
        transform: scale(1.8);
    }
}
@keyframes nab-invite-rainbow {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.nab-vip-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.5;
    vertical-align: middle;
    white-space: nowrap;
    isolation: isolate;
    z-index: 0;
    border: none;
    box-shadow: none;
    background: #121216;
    color: #fff;
    -webkit-text-fill-color: initial;
    animation: none;
}
/* Rainbow scrolling text on inner span (outer keeps dark fill) */
.nab-vip-badge .nab-vip-badge-text {
    display: inline-block;
    background-image: linear-gradient(
        90deg,
        #ff4d4f 0%,
        #ffa940 16%,
        #ffec3d 33%,
        #73d13d 50%,
        #40a9ff 66%,
        #9254de 83%,
        #f759ab 100%,
        #ff4d4f 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    animation: nab-vip-text-rainbow 2s linear infinite;
}
.fs-topbar-sign .nab-vip-badge,
.fs-topbar-sign .nab-vip-badge .nab-vip-badge-text {
    background-color: transparent;
}
.fs-topbar-sign .nab-vip-badge {
    background: #121216 !important;
    border: none !important;
    border-radius: 999px !important;
    height: auto !important;
    padding: 3px 12px !important;
    filter: none !important;
}
/* Combined topbar trigger: avatar sits inside the rainbow capsule */
.fs-topbar-sign .fs-user-menu-trigger.nab-vip-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    height: 34px !important;
    min-height: 34px !important;
    margin-left: 0 !important;
    padding: 2px 14px 2px 2px !important;
}
/* Thin rainbow border — animate angle only */
@property --nab-vip-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}
.nab-vip-badge::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    z-index: -1;
    padding: 2px;
    box-sizing: border-box;
    pointer-events: none;
    background: conic-gradient(
        from var(--nab-vip-angle),
        #ff4d4f,
        #ffa940,
        #ffec3d,
        #73d13d,
        #40a9ff,
        #9254de,
        #f759ab,
        #ff4d4f
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: nab-vip-border-spin 2s linear infinite;
}
.nab-vip-badge::after {
    display: none;
}
@keyframes nab-vip-text-rainbow {
    0% { background-position: 0% 50%; }
    100% { background-position: -200% 50%; }
}
@keyframes nab-vip-border-spin {
    to { --nab-vip-angle: 360deg; }
}
.nab-vip-badge--inactive {
    color: #f7e5a3 !important;
    -webkit-text-fill-color: #f7e5a3 !important;
    background: rgba(232, 201, 106, 0.14) !important;
    border: 1px solid rgba(232, 201, 106, 0.75) !important;
    box-shadow: 0 0 0 1px rgba(232, 201, 106, 0.2), inset 0 0 12px rgba(232, 201, 106, 0.08);
    cursor: pointer;
    text-decoration: none !important;
    animation: none;
}
.nab-vip-badge--inactive .nab-vip-badge-text {
    background: none !important;
    background-image: none !important;
    color: #f7e5a3 !important;
    -webkit-text-fill-color: #f7e5a3 !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    animation: none !important;
}
.nab-vip-badge--inactive::before,
.nab-vip-badge--inactive::after {
    display: none !important;
}
.nab-vip-badge--inactive:hover {
    color: #fff6d6 !important;
    -webkit-text-fill-color: #fff6d6 !important;
    border-color: #e8c96a !important;
    background: rgba(232, 201, 106, 0.28) !important;
}
.nab-vip-badge--inactive:hover .nab-vip-badge-text {
    color: #fff6d6 !important;
    -webkit-text-fill-color: #fff6d6 !important;
    background: transparent !important;
    background-image: none !important;
}
/* Topbar overrides VIP badge fill — keep inactive readable */
.fs-topbar-sign .nab-vip-badge--inactive,
.fs-topbar-sign a.nab-vip-badge--inactive {
    background: rgba(232, 201, 106, 0.14) !important;
    border: 1px solid rgba(232, 201, 106, 0.85) !important;
    color: #f7e5a3 !important;
    -webkit-text-fill-color: #f7e5a3 !important;
    filter: none !important;
    padding: 3px 12px !important;
    border-radius: 999px !important;
    height: auto !important;
}
.fs-topbar-sign .nab-vip-badge--inactive .nab-vip-badge-text {
    background: none !important;
    background-image: none !important;
    color: #f7e5a3 !important;
    -webkit-text-fill-color: #f7e5a3 !important;
}
.fs-topbar-sign .nab-vip-badge--inactive:hover,
.fs-topbar-sign a.nab-vip-badge--inactive:hover {
    color: #fff6d6 !important;
    -webkit-text-fill-color: #fff6d6 !important;
    border-color: #e8c96a !important;
    background: rgba(232, 201, 106, 0.28) !important;
}
.fs-topbar-sign .nab-vip-badge--inactive:hover .nab-vip-badge-text,
.fs-topbar-sign a.nab-vip-badge--inactive:hover .nab-vip-badge-text {
    color: #fff6d6 !important;
    -webkit-text-fill-color: #fff6d6 !important;
    background: transparent !important;
    background-image: none !important;
    background-color: transparent !important;
}
.tbm-avatar .nab-vip-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 10px auto 0;
    margin-left: auto;
    margin-right: auto;
    vertical-align: middle;
    flex-shrink: 0;
    max-width: 100%;
    height: auto !important;
    min-height: 28px !important;
    min-width: 0 !important;
    padding: 4px 12px !important;
    border-radius: 999px !important;
    box-sizing: border-box !important;
}
/* Personal center inactive: same capsule as topbar — never a gold circle */
.tbm-avatar .nab-vip-badge--inactive,
body.tbm-at-fsgameo .tbm-avatar .nab-vip-badge--inactive {
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 28px !important;
    aspect-ratio: auto !important;
    padding: 4px 12px !important;
    border-radius: 999px !important;
    background: rgba(232, 201, 106, 0.14) !important;
    border: 1px solid rgba(232, 201, 106, 0.85) !important;
    box-shadow: inset 0 0 0 1px rgba(232, 201, 106, 0.15) !important;
    color: #f7e5a3 !important;
    -webkit-text-fill-color: #f7e5a3 !important;
    filter: none !important;
    transform: none !important;
}
.tbm-avatar .nab-vip-badge--inactive .nab-vip-badge-text,
body.tbm-at-fsgameo .tbm-avatar .nab-vip-badge--inactive .nab-vip-badge-text {
    background: none !important;
    background-image: none !important;
    color: #f7e5a3 !important;
    -webkit-text-fill-color: #f7e5a3 !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    animation: none !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em !important;
    white-space: nowrap !important;
}
.tbm-avatar .nab-vip-badge--inactive:hover,
body.tbm-at-fsgameo .tbm-avatar .nab-vip-badge--inactive:hover {
    background: rgba(232, 201, 106, 0.28) !important;
    border-color: #e8c96a !important;
    color: #fff6d6 !important;
    -webkit-text-fill-color: #fff6d6 !important;
}
.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-digits .nab-wx-digit,
#nab-wx-digits .nab-wx-digit,
input.nab-wx-digit {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 10px !important;
    border: 1.5px solid #c9a85a !important;
    background: rgba(232, 201, 106, 0.1) !important;
    color: #fff !important;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    line-height: 1;
    padding: 0;
    outline: none;
    caret-color: var(--nab-wx-gold);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    -webkit-appearance: none !important;
    appearance: none !important;
    -moz-appearance: textfield;
}
.nab-wx-digit::-webkit-outer-spin-button,
.nab-wx-digit::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.nab-wx-digits .nab-wx-digit:focus,
#nab-wx-digits .nab-wx-digit:focus,
input.nab-wx-digit:focus {
    border-color: #f7e5a3 !important;
    background: rgba(232, 201, 106, 0.16) !important;
    box-shadow: 0 0 0 3px rgba(232, 201, 106, 0.22) !important;
}
.nab-wx-digits .nab-wx-digit.is-filled,
#nab-wx-digits .nab-wx-digit.is-filled,
input.nab-wx-digit.is-filled {
    border-color: #e8c96a !important;
    background: rgba(232, 201, 106, 0.14) !important;
}
.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;
}

/* Alipay invite purchase modal */
.nab-wx-alipay-modal {
    position: fixed;
    inset: 0;
    z-index: 1000600;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nab-wx-alipay-modal[hidden] { display: none !important; }
.nab-wx-alipay-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}
.nab-wx-alipay-panel {
    position: relative;
    z-index: 1;
    width: min(360px, 92vw);
    padding: 28px 24px 22px;
    border-radius: 16px;
    background: #16161a;
    border: 1px solid rgba(232, 201, 106, 0.35);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    text-align: center;
    color: #eef0f4;
}
.nab-wx-alipay-x {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    color: #9aa3af;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}
.nab-wx-alipay-title {
    font-size: 18px;
    font-weight: 800;
    color: #f7e5a3;
    margin: 0 0 8px;
}
.nab-wx-alipay-desc {
    margin: 0 0 16px;
    color: #9aa3af;
    font-size: 14px;
}
.nab-wx-pay-choose {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 4px 0 12px;
}
.nab-wx-pay-choose[hidden],
.nab-wx-pay-qr[hidden] {
    display: none !important;
}
.nab-wx-pay-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    border-radius: 12px;
    border: 1px solid transparent;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.nab-wx-pay-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}
.nab-wx-pay-btn:active {
    transform: translateY(0);
}
.nab-wx-pay-ico {
    display: block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: #fff;
    overflow: visible;
}
.nab-wx-pay-ico--alipay text {
    dominant-baseline: auto;
}
.nab-wx-pay-btn--wechat {
    color: #fff;
    background: linear-gradient(180deg, #2aae67 0%, #07c160 55%, #06ad56 100%);
    border-color: rgba(7, 193, 96, 0.85);
    box-shadow: 0 8px 20px rgba(7, 193, 96, 0.28);
}
.nab-wx-pay-btn--alipay {
    color: #fff;
    background: linear-gradient(180deg, #3aa0ff 0%, #1677ff 55%, #0f66e0 100%);
    border-color: rgba(22, 119, 255, 0.85);
    box-shadow: 0 8px 20px rgba(22, 119, 255, 0.28);
}
.nab-wx-pay-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.nab-wx-alipay-qr-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 220px;
    padding: 10px;
    border-radius: 12px;
    background: #fff;
    box-sizing: border-box;
}
.nab-wx-alipay-qr-wrap.is-loading {
    background: #1c1c22;
    border: 1px solid rgba(232, 201, 106, 0.28);
}
.nab-wx-alipay-qr {
    width: 200px;
    height: 200px;
    display: block;
}
.nab-wx-alipay-qr[hidden] {
    display: none !important;
}
.nab-wx-qr-spinner {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid rgba(232, 201, 106, 0.22);
    border-top-color: #e8c96a;
    animation: nab-wx-qr-spin 0.75s linear infinite;
}
.nab-wx-alipay-qr-wrap.is-loading .nab-wx-qr-spinner {
    display: block;
}
@keyframes nab-wx-qr-spin {
    to { transform: rotate(360deg); }
}
.nab-wx-pay-back {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 14px 0 2px;
    min-height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(232, 201, 106, 0.45);
    background: rgba(232, 201, 106, 0.08);
    color: #f7e5a3;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.nab-wx-pay-back::before {
    content: "‹";
    font-size: 18px;
    line-height: 1;
    font-weight: 400;
    opacity: 0.9;
}
.nab-wx-pay-back:hover {
    color: #fff6d6;
    border-color: rgba(232, 201, 106, 0.85);
    background: rgba(232, 201, 106, 0.18);
}
.nab-wx-alipay-tip {
    margin: 14px 0 0;
    font-size: 13px;
    color: #9aa3af;
    line-height: 1.5;
}
.nab-wx-alipay-msg {
    min-height: 1.4em;
    font-size: 13px;
    color: #c8cdd5;
}
.nab-wx-alipay-msg.is-ok { color: #7dcea0; font-weight: 700; }
.nab-wx-alipay-msg.is-err { color: #e57373; }
.nab-wx-alipay-code {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(232, 201, 106, 0.12);
    border: 1px dashed rgba(232, 201, 106, 0.45);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #f7e5a3;
    word-break: break-all;
}

@media (max-width: 720px) {
    .nab-wx-modal {
        align-items: flex-start;
        padding: 8px 10px;
        padding-top: max(8px, env(safe-area-inset-top, 0px));
        padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
    }
    .nab-wx-dialog {
        width: 100%;
        max-height: min(100dvh, 100vh);
        border-radius: 12px;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }
    .nab-wx-body {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    /* Left brand block is tall on phones — keep only a compact logo row */
    .nab-wx-left {
        padding: 12px 14px 8px;
        background: linear-gradient(180deg, #1a1a1c 0%, var(--nab-wx-left) 100%);
    }
    .nab-wx-brand {
        margin-bottom: 0;
    }
    .nab-wx-logo {
        margin: 0 auto;
        max-width: 140px;
    }
    .nab-wx-logo img {
        width: 100%;
        max-width: 140px;
        max-height: 36px;
        object-fit: contain;
        border-radius: 8px;
    }
    .nab-wx-logo-fallback {
        width: auto;
        max-width: none;
        height: 36px;
        padding: 0 14px;
        font-size: 16px;
        border-radius: 8px;
    }
    .nab-wx-left-title,
    .nab-wx-features,
    .nab-wx-terrain {
        display: none !important;
    }
    .nab-wx-right {
        padding: 10px 14px 16px;
    }
    .nab-wx-close {
        top: 6px;
        right: 8px;
        width: 32px;
        height: 32px;
        font-size: 24px;
    }
    .nab-wx-banner {
        margin: 0 auto 8px;
        padding: 6px 10px;
        font-size: 11px;
        line-height: 1.35;
        border-radius: 8px;
    }
    .nab-wx-title {
        margin: 0 0 4px;
        font-size: 17px;
    }
    .nab-wx-hint {
        margin: 0 0 8px;
        padding: 6px 10px;
        font-size: 12px;
        line-height: 1.4;
        border-radius: 8px;
    }
    .nab-wx-hint-key {
        font-size: 13px;
    }
    .nab-wx-qr-wrap {
        width: 112px;
        height: 112px;
        padding: 6px;
        margin: 0 auto 10px;
        border-radius: 8px;
    }
    .nab-wx-row {
        gap: 8px;
    }
    .nab-wx-digits .nab-wx-digit,
    #nab-wx-digits .nab-wx-digit,
    input.nab-wx-digit {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        font-size: 20px;
        border-radius: 8px !important;
        border: 1.5px solid #c9a85a !important;
        background: rgba(232, 201, 106, 0.12) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
        -webkit-appearance: none !important;
        appearance: none !important;
    }
    .nab-wx-digits .nab-wx-digit:focus,
    #nab-wx-digits .nab-wx-digit:focus,
    input.nab-wx-digit:focus {
        border-color: #f7e5a3 !important;
        background: rgba(232, 201, 106, 0.16) !important;
        box-shadow: 0 0 0 3px rgba(232, 201, 106, 0.22) !important;
    }
    .nab-wx-digits .nab-wx-digit.is-filled,
    #nab-wx-digits .nab-wx-digit.is-filled,
    input.nab-wx-digit.is-filled {
        border-color: #e8c96a !important;
        background: rgba(232, 201, 106, 0.14) !important;
    }
    .nab-wx-digits {
        gap: 8px;
    }
    .nab-wx-hint {
        border: 1px solid rgba(232, 201, 106, 0.45);
        background: rgba(232, 201, 106, 0.1);
    }
    .nab-wx-tip {
        margin: 6px 0 0;
        font-size: 12px;
        min-height: 1em;
    }
    .nab-wx-agree {
        margin: 10px 0 0;
        font-size: 11px;
    }
    .nab-wx-switch {
        margin: 10px 0 0;
        font-size: 12px;
    }
    .nab-wx-invite-desc {
        margin: 12px 0 0;
        gap: 10px;
        font-size: 14px;
        line-height: 1.45;
    }
    .nab-wx-invite-desc__text {
        font-size: 14px;
    }
    .nab-wx-invite-desc a.nab-invite-get-link {
        padding: 11px 26px;
        font-size: 15px;
        min-width: 160px;
    }
    .nab-wx-panel-email .nab-wx-hint {
        margin-bottom: 10px;
    }
    .nab-wx-field {
        margin: 0 0 10px;
    }
    .nab-wx-field input {
        height: 42px;
    }
    .nab-wx-email-btn {
        height: 42px;
    }
    .nab-wx-invite-input {
        height: 44px;
        font-size: 16px; /* avoid iOS zoom */
    }
}

/* Short phones / keyboard open: keep code inputs reachable */
@media (max-width: 720px) and (max-height: 700px) {
    .nab-wx-banner {
        display: none;
    }
    .nab-wx-qr-wrap {
        width: 96px;
        height: 96px;
        margin-bottom: 8px;
    }
    .nab-wx-hint {
        margin-bottom: 6px;
        padding: 5px 8px;
    }
    .nab-wx-digits .nab-wx-digit,
    #nab-wx-digits .nab-wx-digit,
    input.nab-wx-digit {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        font-size: 18px;
        border: 1.5px solid #c9a85a !important;
        background: rgba(232, 201, 106, 0.12) !important;
        -webkit-appearance: none !important;
        appearance: none !important;
    }
}

@media (max-width: 720px) and (max-height: 560px) {
    .nab-wx-left {
        display: none;
    }
    .nab-wx-qr-wrap {
        width: 84px;
        height: 84px;
        margin-bottom: 6px;
    }
    .nab-wx-title {
        font-size: 15px;
        margin-bottom: 2px;
    }
}
