.nb-onboarding-overlay,
.nb-premium-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: auto;
    background: rgba(3, 10, 24, 0.84);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    user-select: none;
    -webkit-user-select: none;
    transition: opacity .22s ease, visibility .22s ease;
}

.nb-onboarding-overlay.is-visible,
.nb-premium-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.nb-welcome-card,
.nb-tour-card,
.nb-premium-panel {
    width: min(960px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    color: #dbeafe;
    background: #081426;
    border: 1px solid rgba(96, 165, 250, .2);
    border-radius: 5px;
    box-shadow: 0 36px 100px rgba(0, 0, 0, .55);
    transform: translateY(14px) scale(.985);
    transition: transform .22s ease;
}

.nb-onboarding-overlay.is-visible .nb-welcome-card,
.nb-onboarding-overlay.is-visible .nb-tour-card,
.nb-premium-overlay.is-visible .nb-premium-panel {
    transform: translateY(0) scale(1);
}

.nb-welcome-card {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    overflow: hidden;
}

.nb-welcome-visual {
    position: relative;
    min-height: 610px;
    padding: 56px;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 18%, rgba(37, 99, 235, .38), transparent 36%),
        radial-gradient(circle at 84% 84%, rgba(14, 165, 233, .25), transparent 35%),
        linear-gradient(145deg, #0b1d38, #071426 72%);
}

.nb-welcome-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(96, 165, 250, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(96, 165, 250, .045) 1px, transparent 1px);
    background-size: 32px 32px;
}

.nb-brand-mark,
.nb-tour-icon,
.nb-premium-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    color: white;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    box-shadow: 0 14px 35px rgba(37, 99, 235, .28);
}

.nb-brand-mark { margin-bottom: 34px; font-size: 1.45rem; }
.nb-welcome-visual > * { position: relative; z-index: 1; }

.nb-kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: #60a5fa;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.nb-welcome-visual h1 {
    max-width: 520px;
    margin: 0 0 20px;
    color: white;
    font-size: clamp(2rem, 4vw, 3.7rem);
    font-weight: 850;
    line-height: 1.04;
    letter-spacing: -.04em;
}

.nb-welcome-visual > p {
    max-width: 500px;
    margin: 0;
    color: #9fb3cd;
    font-size: 1rem;
    line-height: 1.7;
}

.nb-mini-board {
    position: absolute;
    left: 56px;
    right: 56px;
    bottom: 54px;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 18px;
    background: rgba(2, 8, 20, .5);
}

.nb-mini-board > div {
    min-height: 118px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .045);
}

.nb-mini-board span { display: block; margin-bottom: 10px; color: #9fb3cd; font-size: .68rem; font-weight: 700; }
.nb-mini-board b { display: block; height: 26px; margin-bottom: 7px; border-left: 3px solid #38bdf8; border-radius: 7px; background: rgba(96, 165, 250, .12); }
.nb-mini-board > div:nth-child(2) b { border-left-color: #f59e0b; }
.nb-mini-board > div:nth-child(3) b { border-left-color: #34d399; }

.nb-auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 48px 42px;
    background: rgba(7, 18, 34, .96);
}

.nb-auth-panel h2 { margin: 0 0 6px; color: white; font-size: 1.55rem; font-weight: 800; }
.nb-muted { margin: 0 0 14px; color: #8094ae; font-size: .86rem; }

.nb-btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    font: inherit;
    font-size: .9rem;
    font-weight: 750;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, opacity .18s ease;
}

.nb-btn:hover:not(:disabled) { transform: translateY(-1px); }
.nb-btn:disabled { cursor: default; opacity: .48; }
.nb-btn-primary { color: white; background: linear-gradient(135deg, #2563eb, #0ea5e9); box-shadow: 0 10px 24px rgba(37, 99, 235, .2); }
.nb-btn-secondary { color: #c8d7e9; border-color: rgba(148, 163, 184, .17); background: rgba(255, 255, 255, .045); }
.nb-btn-google { color: #1f2937; border-color: #dbe4f0; background: #fff; }
.nb-google-mark { width: 24px; height: 24px; display: grid; place-items: center; color: white; border-radius: 50%; background: #4285f4; font-weight: 900; }

.nb-email-form {
    display: grid;
    gap: 10px;
    margin-top: 4px;
    padding: 16px;
    border: 1px solid rgba(96, 165, 250, .16);
    border-radius: 14px;
    background: rgba(37, 99, 235, .055);
}
.nb-email-form[hidden] { display: none; }
.nb-form-title { color: #dbeafe; font-weight: 750; }
.nb-email-form label { display: grid; gap: 6px; color: #8da3bd; font-size: .76rem; font-weight: 650; }
.nb-email-form input { width: 100%; padding: 11px 12px; color: #e5effb; border: 1px solid rgba(148, 163, 184, .18); border-radius: 10px; outline: none; background: rgba(1, 7, 18, .55); }
.nb-email-form input:focus { border-color: #38bdf8; box-shadow: 0 0 0 3px rgba(56, 189, 248, .1); }
.nb-auth-error { padding: 9px 11px; color: #fecaca; border-radius: 9px; background: rgba(239, 68, 68, .1); font-size: .78rem; }

.nb-skip-link { border: 0; color: #8da3bd; background: transparent; font: inherit; font-size: .83rem; font-weight: 700; cursor: pointer; }
.nb-skip-link:hover { color: #60a5fa; }
.nb-local-note { margin: 2px 0 0; color: #60758f; text-align: center; font-size: .72rem; line-height: 1.5; }

.nb-tour-card {
    position: relative;
    width: min(960px, 100%);
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    background: #081426;
    border: 1px solid rgba(96, 165, 250, .22);
    border-radius: 5px;
    box-shadow: 0 36px 100px rgba(0, 0, 0, .65);
    transition: border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.nb-tour-bg-art {
    position: absolute;
    inset: -30px;
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    filter: blur(52px) saturate(1.3) brightness(0.8);
    pointer-events: none;
    z-index: 0;
    transition: background-image 0.4s ease, opacity 0.4s ease;
}

.nb-tour-ambient-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background:
        radial-gradient(circle at 18% 22%, rgba(37, 99, 235, 0.22), transparent 42%),
        radial-gradient(circle at 82% 78%, rgba(14, 165, 233, 0.16), transparent 40%);
    z-index: 0;
    transition: background 0.4s ease;
    animation: nbAuraPulse 6s ease-in-out infinite;
}

@keyframes nbAuraPulse {
    0%, 100% { opacity: 0.85; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

.nb-tour-layout {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    flex: 1 1 auto;
    min-height: 480px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Left Panel */
.nb-tour-left-panel {
    width: 54%;
    flex: 0 0 54%;
    padding: 38px 36px 32px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(96, 165, 250, 0.12);
    background: rgba(9, 13, 22, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-sizing: border-box;
}

.nb-tour-left-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.nb-tour-left-header .nb-kicker {
    margin-bottom: 0;
}

.nb-tour-skip-mobile {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 5px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 650;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nb-tour-skip-mobile:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(96, 165, 250, 0.3);
}

.nb-tour-left-panel h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    font-weight: 850;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.nb-tour-art-banner {
    position: relative;
    width: 100%;
    height: 164px;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
    background: #050b16;
    display: flex;
    align-items: flex-end;
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.nb-tour-art-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.nb-tour-art-banner:hover .nb-tour-art-img {
    transform: scale(1.03);
}

.nb-tour-art-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(to top, rgba(4, 9, 18, 0.94) 0%, rgba(4, 9, 18, 0.6) 65%, transparent 100%);
    display: flex;
    align-items: center;
    gap: 12px;
}

.nb-tour-art-icon-badge {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 5px;
    color: #ffffff;
    font-size: 1.15rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
    transition: background 0.35s ease, box-shadow 0.35s ease;
}

.nb-tour-art-title {
    font-size: 0.92rem;
    font-weight: 750;
    color: #f1f5f9;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.nb-tour-narrative {
    margin: 0;
    color: #94a3b8;
    font-size: 0.94rem;
    line-height: 1.65;
    flex: 1 1 auto;
}

/* Right Panel */
.nb-tour-right-panel {
    width: 46%;
    flex: 0 0 46%;
    padding: 24px 30px 28px;
    display: flex;
    flex-direction: column;
    background: rgba(9, 13, 22, 0.22);
    box-sizing: border-box;
}

.nb-tour-desktop-skip-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.nb-tour-skip-desktop {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 5px;
    border: 1px solid transparent;
    background: transparent;
    color: #8da3bd;
    font-size: 0.82rem;
    font-weight: 650;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nb-tour-skip-desktop:hover {
    color: #60a5fa;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(96, 165, 250, 0.2);
}

.nb-tour-mini-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    flex: 1 1 auto;
}

.nb-tour-mini-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 13px 15px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.nb-tour-mini-card:hover {
    background: rgba(255, 255, 255, 0.065);
    border-color: rgba(96, 165, 250, 0.24);
    transform: translateX(3px);
}

.nb-mini-card-icon {
    font-size: 1.6rem;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    flex-shrink: 0;
}

.nb-mini-card-text {
    flex: 1 1 auto;
}

.nb-mini-card-title {
    font-size: 0.92rem;
    font-weight: 750;
    color: #ffffff;
    margin-bottom: 3px;
    line-height: 1.3;
}

.nb-mini-card-desc {
    font-size: 0.8rem;
    color: #8da3bd;
    line-height: 1.45;
}

.nb-tour-custom-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Stagger Animations */
@keyframes nbMiniCardPopIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nb-tour-mini-card.stagger-0 { animation: nbMiniCardPopIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) 0ms both; }
.nb-tour-mini-card.stagger-1 { animation: nbMiniCardPopIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) 60ms both; }
.nb-tour-mini-card.stagger-2 { animation: nbMiniCardPopIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) 120ms both; }

/* Icon Accent Colors */
.nb-mini-card-icon .text-blue-400 { color: #60a5fa !important; }
.nb-mini-card-icon .text-cyan-400 { color: #22d3ee !important; }
.nb-mini-card-icon .text-indigo-400 { color: #818cf8 !important; }
.nb-mini-card-icon .text-sky-400 { color: #38bdf8 !important; }
.nb-mini-card-icon .text-teal-400 { color: #2dd4bf !important; }
.nb-mini-card-icon .text-emerald-400 { color: #34d399 !important; }
.nb-mini-card-icon .text-purple-400 { color: #c084fc !important; }
.nb-mini-card-icon .text-violet-400 { color: #a78bfa !important; }
.nb-mini-card-icon .text-fuchsia-400 { color: #e879f9 !important; }
.nb-mini-card-icon .text-amber-400 { color: #fbbf24 !important; }
.nb-mini-card-icon .text-yellow-400 { color: #facc15 !important; }
.nb-mini-card-icon .text-orange-400 { color: #fb923c !important; }
.nb-mini-card-icon .text-rose-400 { color: #fb7185 !important; }
.nb-mini-card-icon .text-red-400 { color: #f87171 !important; }
.nb-mini-card-icon .text-pink-400 { color: #f472b6 !important; }

/* Tour Footer */
.nb-tour-footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 32px;
    border-top: 1px solid rgba(96, 165, 250, 0.12);
    background: rgba(7, 18, 34, 0.96);
    flex-shrink: 0;
}

.nb-tour-dots {
    display: flex;
    align-items: center;
    gap: 7px;
}

.nb-tour-dots span {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: rgba(148, 163, 184, 0.22);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nb-tour-dots span.is-active {
    width: 24px;
    background: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.45);
}

.nb-tour-dots span.is-done {
    background: #2563eb;
}

/* Fallback & Legacy Elements */
.nb-tour-header { display: grid; grid-template-columns: 58px 1fr 40px; align-items: center; gap: 18px; padding: 24px 28px; border-bottom: 1px solid rgba(96, 165, 250, .12); }
.nb-tour-icon { width: 50px; height: 50px; font-size: 1.15rem; }
.nb-tour-progress { display: flex; justify-content: center; gap: 8px; }
.nb-tour-progress span { width: 34px; height: 5px; border-radius: 999px; background: rgba(148, 163, 184, .18); }
.nb-tour-progress span.is-active { background: #38bdf8; }
.nb-tour-progress span.is-done { background: #2563eb; }
.nb-icon-button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(148, 163, 184, .15); border-radius: 11px; color: #94a3b8; background: rgba(255, 255, 255, .035); cursor: pointer; }
.nb-tour-content { min-height: 440px; padding: 46px 50px 38px; text-align: center; }
.nb-tour-content h2, .nb-premium-content h2 { margin: 0 0 13px; color: white; font-size: clamp(1.7rem, 3vw, 2.55rem); font-weight: 850; letter-spacing: -.03em; }
.nb-tour-content > p, .nb-premium-content > p { max-width: 650px; margin: 0 auto 34px; color: #91a5be; line-height: 1.7; }

.nb-structure { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 10px; }
.nb-structure-item { min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 16px; border: 1px solid rgba(96, 165, 250, .15); border-radius: 16px; background: rgba(37, 99, 235, .06); }
.nb-structure-item i { color: #38bdf8; font-size: 1.35rem; }
.nb-structure-item strong { color: #eaf3ff; }
.nb-structure-item span { color: #768ca6; font-size: .72rem; line-height: 1.45; }
.nb-structure-arrow { color: #31577f; }

.nb-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; text-align: left; }
.nb-feature-tile { display: flex; gap: 14px; align-items: flex-start; padding: 19px; border: 1px solid rgba(96, 165, 250, .14); border-radius: 15px; background: rgba(255, 255, 255, .025); }
.nb-feature-tile > i { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; color: #7dd3fc; border-radius: 11px; background: rgba(14, 165, 233, .12); }
.nb-feature-tile strong, .nb-ready-point strong { display: block; margin-bottom: 5px; color: #e7f1ff; font-size: .9rem; }
.nb-feature-tile span, .nb-ready-point span { color: #8095ae; font-size: .77rem; line-height: 1.5; }
.nb-ready-card { max-width: 660px; display: grid; gap: 10px; margin: auto; text-align: left; }
.nb-ready-point { display: flex; align-items: center; gap: 15px; padding: 16px 18px; border: 1px solid rgba(96, 165, 250, .13); border-radius: 14px; background: rgba(37, 99, 235, .045); }
.nb-ready-point > i { width: 36px; color: #60a5fa; text-align: center; font-size: 1.1rem; }

/* Premium journey */
.nb-premium-panel { width: min(820px, 100%); }
.nb-premium-header { display: grid; grid-template-columns: 58px 1fr 42px; align-items: center; gap: 16px; padding: 24px 28px; border-bottom: 1px solid rgba(96, 165, 250, .13); background: linear-gradient(120deg, rgba(37, 99, 235, .12), rgba(14, 165, 233, .04)); }
.nb-premium-icon { font-size: 1.25rem; color: #facc15; }
.nb-premium-price-card .nb-btn-primary .fa-crown { color: #facc15; }
.nb-premium-header-copy strong { display: block; color: #f0f7ff; font-size: 1rem; }
.nb-premium-header-copy span { color: #7690ae; font-size: .75rem; }
.nb-premium-content { min-height: 420px; padding: 42px 46px 34px; text-align: center; }
.nb-premium-progress { display: flex; justify-content: center; gap: 7px; margin-bottom: 25px; }
.nb-premium-progress span { width: 30px; height: 4px; border-radius: 999px; background: rgba(148, 163, 184, .16); }
.nb-premium-progress span.is-active { background: #38bdf8; }
.nb-premium-highlight { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.nb-premium-highlight > div { padding: 20px 15px; border: 1px solid rgba(96, 165, 250, .14); border-radius: 15px; background: rgba(37, 99, 235, .055); }
.nb-premium-highlight i { display: block; margin-bottom: 10px; color: #60a5fa; font-size: 1.2rem; }
.nb-premium-highlight strong { display: block; margin-bottom: 4px; color: #e7f1ff; font-size: .84rem; }
.nb-premium-highlight span { color: #7f94ad; font-size: .72rem; line-height: 1.45; }
.nb-premium-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; text-align: left; }
.nb-premium-feature { display: flex; gap: 13px; padding: 18px; border: 1px solid rgba(96, 165, 250, .14); border-radius: 15px; background: rgba(255, 255, 255, .025); }
.nb-premium-feature i { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; color: #bae6fd; border-radius: 11px; background: linear-gradient(135deg, rgba(37, 99, 235, .32), rgba(14, 165, 233, .22)); }
.nb-premium-feature strong { display: block; margin-bottom: 4px; color: #e7f1ff; font-size: .86rem; }
.nb-premium-feature span { color: #7e93ac; font-size: .74rem; line-height: 1.5; }
.nb-premium-price-card { max-width: 560px; margin: auto; padding: 28px; border: 1px solid rgba(56, 189, 248, .3); border-radius: 20px; background: linear-gradient(145deg, rgba(37, 99, 235, .13), rgba(14, 165, 233, .06)); box-shadow: 0 20px 50px rgba(2, 8, 23, .35); }
.nb-premium-price { margin-bottom: 4px; color: white; font-size: 3.2rem; font-weight: 900; letter-spacing: -.05em; }
.nb-premium-price span { color: #8ca1bb; font-size: .9rem; font-weight: 650; letter-spacing: 0; }
.nb-premium-price-card > p { margin: 0 0 19px; color: #8398b1; font-size: .8rem; }
.nb-premium-list { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 14px; padding: 0; margin: 0 0 22px; list-style: none; text-align: left; }
.nb-premium-list li { color: #b7c8db; font-size: .78rem; }
.nb-premium-list i { margin-right: 7px; color: #34d399; }
.nb-premium-price-card .nb-btn { width: 100%; }
.nb-premium-note { margin: 10px 0 0 !important; color: #617892 !important; font-size: .7rem !important; }
.nb-premium-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 18px 28px 22px; border-top: 1px solid rgba(96, 165, 250, .12); }
.nb-premium-footer .nb-btn:last-child { justify-self: end; }

@media (max-width: 760px) {
    .nb-onboarding-overlay, .nb-premium-overlay { align-items: flex-start; padding: 12px; }
    .nb-welcome-card { grid-template-columns: 1fr; }
    .nb-welcome-visual { min-height: 280px; padding: 32px 26px; }
    .nb-welcome-visual h1 { font-size: 2rem; }
    .nb-mini-board { display: none; }
    .nb-auth-panel { padding: 30px 24px; }

    /* Tour Mobile Layout */
    .nb-tour-card {
        width: 100%;
        max-height: calc(100vh - 24px);
    }
    .nb-tour-layout {
        flex-direction: column;
        min-height: 0;
    }
    .nb-tour-left-panel {
        width: 100%;
        flex: none;
        border-right: none;
        border-bottom: 1px solid rgba(96, 165, 250, 0.12);
        padding: 20px 18px 16px;
    }
    .nb-tour-skip-mobile {
        display: inline-flex;
    }
    .nb-tour-left-panel h2 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    .nb-tour-art-banner {
        padding: 10px 14px;
        gap: 10px;
        margin-bottom: 12px;
    }
    .nb-tour-art-icon-badge {
        width: 36px;
        height: 36px;
        font-size: 1.05rem;
    }
    .nb-tour-art-title {
        font-size: 0.88rem;
    }
    .nb-tour-narrative {
        font-size: 0.86rem;
        line-height: 1.55;
    }
    .nb-tour-right-panel {
        width: 100%;
        flex: none;
        padding: 16px 18px 20px;
    }
    .nb-tour-desktop-skip-row {
        display: none !important;
    }
    .nb-tour-mini-cards {
        gap: 8px;
    }
    .nb-tour-mini-card {
        padding: 10px 12px;
        gap: 10px;
    }
    .nb-mini-card-icon {
        font-size: 1.25rem;
        min-width: 24px;
    }
    .nb-mini-card-title {
        font-size: 0.86rem;
    }
    .nb-mini-card-desc {
        font-size: 0.76rem;
        line-height: 1.35;
    }
    .nb-tour-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 12px 16px;
    }
    .nb-tour-footer .nb-btn {
        width: auto;
        min-height: 38px;
        padding: 8px 14px;
        font-size: 0.82rem;
    }
    .nb-tour-dots {
        gap: 5px;
    }
    .nb-tour-dots span {
        width: 6px;
        height: 6px;
    }
    .nb-tour-dots span.is-active {
        width: 18px;
    }

    .nb-tour-header, .nb-premium-header { padding: 17px 18px; }
    .nb-tour-content, .nb-premium-content { min-height: 0; padding: 30px 20px; }
    .nb-structure { grid-template-columns: 1fr 1fr; }
    .nb-structure-arrow { display: none; }
    .nb-structure-item { min-height: 115px; }
    .nb-feature-grid, .nb-premium-feature-grid, .nb-premium-list { grid-template-columns: 1fr; }
    .nb-premium-highlight { grid-template-columns: 1fr; }
    .nb-premium-footer { grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px 18px; }
    .nb-premium-footer .nb-skip-link { grid-column: 1 / -1; grid-row: 2; }
    .nb-premium-footer .nb-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .nb-onboarding-overlay, .nb-premium-overlay, .nb-welcome-card, .nb-tour-card, .nb-premium-panel, .nb-btn { transition: none; }
}

body.reduce-motion,
body.reduce-motion * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
}

/* The onboarding surface is dark glass too; keep keyboard focus visible even
 * where component-specific hover styles intentionally suppress default rings. */
.nb-onboarding-overlay button:focus-visible,
.nb-onboarding-overlay a:focus-visible,
.nb-onboarding-overlay input:focus-visible,
.nb-onboarding-overlay select:focus-visible,
.nb-onboarding-overlay textarea:focus-visible {
    outline: 2px solid #ffd38a;
    outline-offset: 2px;
}


/* --- 8 Step Thematic Color Palettes (TarotChing Inspired) --- */

/* Step 1: Ocean Blue (The Visual Revolution) */
.nb-tour-card.theme-step-1-blue {
    border-color: rgba(59, 130, 246, 0.38);
    box-shadow: 0 36px 100px rgba(0, 0, 0, 0.65), 0 0 50px rgba(59, 130, 246, 0.22);
}
.nb-tour-card.theme-step-1-blue .nb-tour-ambient-glow {
    background:
        radial-gradient(circle at 18% 22%, rgba(59, 130, 246, 0.26), transparent 46%),
        radial-gradient(circle at 82% 78%, rgba(14, 165, 233, 0.18), transparent 44%);
}
.nb-tour-card.theme-step-1-blue .nb-kicker {
    color: #60a5fa;
}
.nb-tour-card.theme-step-1-blue .nb-tour-art-banner {
    border-color: rgba(59, 130, 246, 0.36);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), 0 0 24px rgba(59, 130, 246, 0.2);
}
.nb-tour-card.theme-step-1-blue .nb-tour-art-icon-badge {
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}
.nb-tour-card.theme-step-1-blue #nbTourNext {
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}
.nb-tour-card.theme-step-1-blue .nb-tour-dots span.is-active {
    background: #60a5fa;
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.7);
}

/* Step 2: Teal / Cyan (Natural Architecture) */
.nb-tour-card.theme-step-2-teal {
    border-color: rgba(6, 182, 212, 0.38);
    box-shadow: 0 36px 100px rgba(0, 0, 0, 0.65), 0 0 50px rgba(6, 182, 212, 0.22);
}
.nb-tour-card.theme-step-2-teal .nb-tour-ambient-glow {
    background:
        radial-gradient(circle at 18% 22%, rgba(6, 182, 212, 0.26), transparent 46%),
        radial-gradient(circle at 82% 78%, rgba(20, 184, 166, 0.18), transparent 44%);
}
.nb-tour-card.theme-step-2-teal .nb-kicker {
    color: #22d3ee;
}
.nb-tour-card.theme-step-2-teal .nb-tour-art-banner {
    border-color: rgba(6, 182, 212, 0.36);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), 0 0 24px rgba(6, 182, 212, 0.2);
}
.nb-tour-card.theme-step-2-teal .nb-tour-art-icon-badge {
    background: linear-gradient(135deg, #0891b2, #14b8a6);
    box-shadow: 0 6px 18px rgba(8, 145, 178, 0.4);
}
.nb-tour-card.theme-step-2-teal #nbTourNext {
    background: linear-gradient(135deg, #0891b2, #14b8a6);
    box-shadow: 0 10px 24px rgba(8, 145, 178, 0.35);
}
.nb-tour-card.theme-step-2-teal .nb-tour-dots span.is-active {
    background: #22d3ee;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.7);
}

/* Step 3: Emerald Green (Reading Sanctuary) */
.nb-tour-card.theme-step-3-emerald {
    border-color: rgba(16, 185, 129, 0.38);
    box-shadow: 0 36px 100px rgba(0, 0, 0, 0.65), 0 0 50px rgba(16, 185, 129, 0.22);
}
.nb-tour-card.theme-step-3-emerald .nb-tour-ambient-glow {
    background:
        radial-gradient(circle at 18% 22%, rgba(16, 185, 129, 0.26), transparent 46%),
        radial-gradient(circle at 82% 78%, rgba(5, 150, 105, 0.18), transparent 44%);
}
.nb-tour-card.theme-step-3-emerald .nb-kicker {
    color: #34d399;
}
.nb-tour-card.theme-step-3-emerald .nb-tour-art-banner {
    border-color: rgba(16, 185, 129, 0.36);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), 0 0 24px rgba(16, 185, 129, 0.2);
}
.nb-tour-card.theme-step-3-emerald .nb-tour-art-icon-badge {
    background: linear-gradient(135deg, #059669, #10b981);
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.4);
}
.nb-tour-card.theme-step-3-emerald #nbTourNext {
    background: linear-gradient(135deg, #059669, #10b981);
    box-shadow: 0 10px 24px rgba(5, 150, 105, 0.35);
}
.nb-tour-card.theme-step-3-emerald .nb-tour-dots span.is-active {
    background: #34d399;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.7);
}

/* Step 4: Violet / Purple (Active Recall & Memory) */
.nb-tour-card.theme-step-4-violet {
    border-color: rgba(139, 92, 246, 0.38);
    box-shadow: 0 36px 100px rgba(0, 0, 0, 0.65), 0 0 50px rgba(139, 92, 246, 0.22);
}
.nb-tour-card.theme-step-4-violet .nb-tour-ambient-glow {
    background:
        radial-gradient(circle at 18% 22%, rgba(139, 92, 246, 0.26), transparent 46%),
        radial-gradient(circle at 82% 78%, rgba(124, 58, 237, 0.18), transparent 44%);
}
.nb-tour-card.theme-step-4-violet .nb-kicker {
    color: #a78bfa;
}
.nb-tour-card.theme-step-4-violet .nb-tour-art-banner {
    border-color: rgba(139, 92, 246, 0.36);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), 0 0 24px rgba(139, 92, 246, 0.2);
}
.nb-tour-card.theme-step-4-violet .nb-tour-art-icon-badge {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.4);
}
.nb-tour-card.theme-step-4-violet #nbTourNext {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    box-shadow: 0 10px 24px rgba(124, 58, 237, 0.35);
}
.nb-tour-card.theme-step-4-violet .nb-tour-dots span.is-active {
    background: #a78bfa;
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.7);
}

/* Step 5: Amber / Gold (Power & Performance) */
.nb-tour-card.theme-step-5-amber {
    border-color: rgba(245, 158, 11, 0.38);
    box-shadow: 0 36px 100px rgba(0, 0, 0, 0.65), 0 0 50px rgba(245, 158, 11, 0.22);
}
.nb-tour-card.theme-step-5-amber .nb-tour-ambient-glow {
    background:
        radial-gradient(circle at 18% 22%, rgba(245, 158, 11, 0.26), transparent 46%),
        radial-gradient(circle at 82% 78%, rgba(217, 119, 6, 0.18), transparent 44%);
}
.nb-tour-card.theme-step-5-amber .nb-kicker {
    color: #fbbf24;
}
.nb-tour-card.theme-step-5-amber .nb-tour-art-banner {
    border-color: rgba(245, 158, 11, 0.36);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), 0 0 24px rgba(245, 158, 11, 0.2);
}
.nb-tour-card.theme-step-5-amber .nb-tour-art-icon-badge {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.4);
}
.nb-tour-card.theme-step-5-amber #nbTourNext {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    box-shadow: 0 10px 24px rgba(217, 119, 6, 0.35);
}
.nb-tour-card.theme-step-5-amber .nb-tour-dots span.is-active {
    background: #fbbf24;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.7);
}

/* Step 6: Rose / Crimson (Universal Capture) */
.nb-tour-card.theme-step-6-rose {
    border-color: rgba(244, 63, 94, 0.38);
    box-shadow: 0 36px 100px rgba(0, 0, 0, 0.65), 0 0 50px rgba(244, 63, 94, 0.22);
}
.nb-tour-card.theme-step-6-rose .nb-tour-ambient-glow {
    background:
        radial-gradient(circle at 18% 22%, rgba(244, 63, 94, 0.26), transparent 46%),
        radial-gradient(circle at 82% 78%, rgba(225, 29, 72, 0.18), transparent 44%);
}
.nb-tour-card.theme-step-6-rose .nb-kicker {
    color: #fb7185;
}
.nb-tour-card.theme-step-6-rose .nb-tour-art-banner {
    border-color: rgba(244, 63, 94, 0.36);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), 0 0 24px rgba(244, 63, 94, 0.2);
}
.nb-tour-card.theme-step-6-rose .nb-tour-art-icon-badge {
    background: linear-gradient(135deg, #e11d48, #f43f5e);
    box-shadow: 0 6px 18px rgba(225, 29, 72, 0.4);
}
.nb-tour-card.theme-step-6-rose #nbTourNext {
    background: linear-gradient(135deg, #e11d48, #f43f5e);
    box-shadow: 0 10px 24px rgba(225, 29, 72, 0.35);
}
.nb-tour-card.theme-step-6-rose .nb-tour-dots span.is-active {
    background: #fb7185;
    box-shadow: 0 0 10px rgba(251, 113, 133, 0.7);
}

/* Step 7: Eva AI (Lavender / Magenta Companion) */
.nb-tour-card.theme-step-7-eva {
    border-color: rgba(217, 70, 239, 0.38);
    box-shadow: 0 36px 100px rgba(0, 0, 0, 0.65), 0 0 55px rgba(217, 70, 239, 0.25);
}
.nb-tour-card.theme-step-7-eva .nb-tour-ambient-glow {
    background:
        radial-gradient(circle at 18% 22%, rgba(217, 70, 239, 0.26), transparent 46%),
        radial-gradient(circle at 82% 78%, rgba(168, 85, 247, 0.2), transparent 44%);
}
.nb-tour-card.theme-step-7-eva .nb-kicker {
    color: #e879f9;
}
.nb-tour-card.theme-step-7-eva .nb-tour-art-banner {
    border-color: rgba(217, 70, 239, 0.36);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), 0 0 25px rgba(217, 70, 239, 0.25);
}
.nb-tour-card.theme-step-7-eva .nb-tour-art-icon-badge {
    background: linear-gradient(135deg, #c026d3, #e879f9);
    box-shadow: 0 6px 18px rgba(192, 38, 211, 0.4);
}
.nb-tour-card.theme-step-7-eva #nbTourNext {
    background: linear-gradient(135deg, #c026d3, #e879f9);
    box-shadow: 0 10px 24px rgba(192, 38, 211, 0.35);
}
.nb-tour-card.theme-step-7-eva .nb-tour-dots span.is-active {
    background: #e879f9;
    box-shadow: 0 0 10px rgba(232, 121, 249, 0.7);
}

/* Step 8: Sky Blue (Device & Cloud Sync) */
.nb-tour-card.theme-step-8-sky {
    border-color: rgba(14, 165, 233, 0.38);
    box-shadow: 0 36px 100px rgba(0, 0, 0, 0.65), 0 0 50px rgba(14, 165, 233, 0.22);
}
.nb-tour-card.theme-step-8-sky .nb-tour-ambient-glow {
    background:
        radial-gradient(circle at 18% 22%, rgba(14, 165, 233, 0.26), transparent 46%),
        radial-gradient(circle at 82% 78%, rgba(2, 132, 199, 0.18), transparent 44%);
}
.nb-tour-card.theme-step-8-sky .nb-kicker {
    color: #38bdf8;
}
.nb-tour-card.theme-step-8-sky .nb-tour-art-banner {
    border-color: rgba(14, 165, 233, 0.36);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), 0 0 24px rgba(14, 165, 233, 0.2);
}
.nb-tour-card.theme-step-8-sky .nb-tour-art-icon-badge {
    background: linear-gradient(135deg, #0284c7, #38bdf8);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.4);
}
.nb-tour-card.theme-step-8-sky #nbTourNext {
    background: linear-gradient(135deg, #0284c7, #38bdf8);
    box-shadow: 0 10px 24px rgba(2, 132, 199, 0.35);
}
.nb-tour-card.theme-step-8-sky .nb-tour-dots span.is-active {
    background: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
}


.nb-tour-card .nb-btn,
.nb-welcome-card .nb-btn {
    border-radius: 5px !important;
}
