

.ngc-ai-stage {
    position: relative;
    min-height: 100vh;
    padding: clamp(60px, 8vh, 100px) 0 clamp(60px, 8vh, 100px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(ellipse at top, #122352 0%, #050a1c 60%, #02050e 100%);
    color: #fff;
    overflow: visible;
    isolation: isolate;
}

@media (max-width: 1024px) {
    .ngc-ai-stage { padding-top: 120px; }
}
@media (max-width: 600px) {
    .ngc-ai-stage { padding-top: 110px; }
}

.ngc-ai-bg     { overflow: hidden; clip-path: inset(0); }
.ngc-map-layer { overflow: hidden; }

.ngc-map-layer {
    position: absolute !important;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    opacity: 0;
    transition: opacity 1.6s ease-out;
}
.ngc-map-layer.is-active { opacity: 1; }
.ngc-map-layer .mapboxgl-canvas { outline: none; }

.ngc-map-layer .mapboxgl-control-container { display: none !important; }

.ngc-map-vignette {
    position: absolute; inset: 0; z-index: -2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.6s ease-out;
    background: rgba(0, 0, 0, 0.7);
}
.ngc-map-vignette.is-active { opacity: 1; }

.ngc-hero-img-layer {
    position: absolute; inset: 0; z-index: -1;
    opacity: 1;
    transition: opacity 1.6s ease-out;
    overflow: hidden;
}
.ngc-hero-img-layer .ngc-hero-img-pic { display: contents; }
.ngc-hero-img-layer .ngc-hero-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}
.ngc-hero-img-layer::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.0) 35%, rgba(0,0,0,0.7) 100%);
    pointer-events: none;
}
.ngc-hero-img-layer.is-faded { opacity: 0; }

.ngc-map-marker {
    width: 18px; height: 18px; border-radius: 50%;
    background: #4dffaa;
    border: 2px solid #fff;
    box-shadow:
        0 0 0 0 rgba(77,255,170,0.7),
        0 0 24px rgba(77,255,170,0.7),
        0 4px 12px rgba(0,0,0,0.5);
    animation: pulseMarker 2.2s infinite;
    cursor: default;
}
@keyframes pulseMarker {
    0%   { box-shadow: 0 0 0 0 rgba(77,255,170,0.65), 0 0 24px rgba(77,255,170,0.7), 0 4px 12px rgba(0,0,0,0.5); }
    70%  { box-shadow: 0 0 0 32px rgba(77,255,170,0),  0 0 24px rgba(77,255,170,0.7), 0 4px 12px rgba(0,0,0,0.5); }
    100% { box-shadow: 0 0 0 0 rgba(77,255,170,0),     0 0 24px rgba(77,255,170,0.7), 0 4px 12px rgba(0,0,0,0.5); }
}

.ngc-addr-overlay { display: none !important; }

@media (max-width: 768px) {
    .ngc-ai-stage.is-cinematic-flight .ngc-pilot,
    .ngc-ai-stage.is-cinematic-flight .ngc-chat {
        opacity: 0;
        pointer-events: none;
    }
    .ngc-ai-stage .ngc-pilot,
    .ngc-ai-stage .ngc-chat {
        transition: opacity 0.9s ease-out;
    }
}

.ngc-map-addr-label {
    display: flex; flex-direction: column; align-items: flex-end;
    text-align: right;
    padding-right: 16px;
    pointer-events: none;
}
.ngc-map-addr-label__street {
    color: #fff;
    font-size: 14px; font-weight: 700;
    text-shadow: 0 1px 10px rgba(0,0,0,0.95), 0 0 24px rgba(0,0,0,0.7);
    white-space: nowrap; line-height: 1.2;
}
.ngc-map-addr-label__sub {
    color: #4dffaa;
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.14em;
    text-shadow: 0 1px 8px rgba(0,0,0,0.9);
    margin-top: 3px;
}

.ngc-markers-layer {
    position: absolute; inset: 0; z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

@media (max-width: 880px) {
    .ngc-markers-layer .ngc-map-addr-label { display: none !important; }
}

.ngc-markers-layer .ngc-map-marker {
    position: absolute;
    transform: translate(-50%, -50%);
}

.ngc-markers-layer .ngc-map-addr-label {
    position: absolute;
    transform: translate(calc(-100% - 14px), -50%);
    text-align: right;
}

.ngc-markers-layer .ngc-map-addr-label.is-flipped {
    transform: translate(14px, -50%);
    text-align: left;
}

.ngc-chip-modal {
    display: none;
    position: fixed; inset: 0; z-index: 900;
    flex-direction: column; justify-content: flex-end;
}
.ngc-chip-modal.is-open {
    display: flex;
}
.ngc-chip-modal__backdrop {
    position: absolute; inset: 0;
    background: rgba(4, 12, 36, 0.93);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: ngcModalFadeIn 0.25s ease forwards;
}
.ngc-chip-modal__box {
    position: relative; z-index: 1;
    background: linear-gradient(180deg, rgba(20,32,72,1) 0%, rgba(12,22,52,1) 100%);
    border-top: 1px solid rgba(255,255,255,0.12);
    border-radius: 24px 24px 0 0;
    padding: 28px 24px 44px;
    max-height: 75vh; overflow-y: auto;
    animation: ngcModalSlideUp 0.32s cubic-bezier(0.16,1,0.3,1) forwards;
}
.ngc-chip-modal__handle {
    width: 40px; height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    margin: 0 auto 22px;
}
.ngc-chip-modal__title {
    font-size: 17px; font-weight: 700; color: #fff;
    line-height: 1.35; text-align: center;
    margin-bottom: 22px;
}
.ngc-chip-modal__actions {
    margin-top: 18px;
    display: flex; gap: 10px; justify-content: center;
}
@keyframes ngcModalFadeIn {
    from { opacity: 0; } to { opacity: 1; }
}
@keyframes ngcModalSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

@media (min-width: 880px) {
    .ngc-chip-modal { display: none !important; }
}

.ngc-ai-bg {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    transition: opacity 1.6s ease-out;
}
.ngc-ai-bg.is-faded { opacity: 0.18; }
.ngc-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    mix-blend-mode: screen;
    will-change: transform;
}
.ngc-orb--ocean {
    width: 620px; height: 620px;
    background: radial-gradient(circle, #3d7ec7 0%, transparent 65%);
    top: -12%; left: -8%;
    animation: orbA 22s ease-in-out infinite;
}
.ngc-orb--gold {
    width: 520px; height: 520px;
    background: radial-gradient(circle, #dbb862 0%, transparent 65%);
    bottom: -15%; right: -10%;
    animation: orbB 26s ease-in-out infinite;
}
.ngc-orb--sage {
    width: 480px; height: 480px;
    background: radial-gradient(circle, #5a8a6f 0%, transparent 65%);
    top: 35%; left: 45%;
    animation: orbC 30s ease-in-out infinite;
}
@keyframes orbA {
    0%,100% { transform: translate(0,0) scale(1); }
    50%     { transform: translate(120px,80px) scale(1.15); }
}
@keyframes orbB {
    0%,100% { transform: translate(0,0) scale(1); }
    50%     { transform: translate(-100px,-80px) scale(1.1); }
}
@keyframes orbC {
    0%,100% { transform: translate(-50%,0) scale(1); }
    50%     { transform: translate(-50%,-100px) scale(0.9); }
}

.ngc-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    transform: perspective(900px) rotateX(62deg) translateY(35%);
    transform-origin: 50% 0%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 25%, transparent 90%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 25%, transparent 90%);
    animation: gridDrift 22s linear infinite;
    opacity: 0.7;
}
@keyframes gridDrift {
    from { background-position: 0 0; }
    to   { background-position: 0 64px; }
}

.ngc-spark {
    position: absolute;
    width: 2px; height: 2px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    animation: sparkFade 6s ease-in-out infinite;
}

@keyframes sparkFade {
    0%, 100% { opacity: 0; transform: translateY(0); }
    50%      { opacity: 0.8; transform: translateY(-30px); }
}

.ngc-ai-intro {
    text-align: center;
    margin: 0 auto 48px;
    max-width: 1080px;
    transition: margin-bottom 0.7s ease-out;
}

.ngc-ai-intro:has(p.is-faded) {
    margin-bottom: 32px;
}
.ngc-ai-intro__eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px;
    background: rgba(77, 255, 170, 0.08);
    border: 1px solid rgba(77, 255, 170, 0.25);
    border-radius: 100px;
    font-size: 12px; font-weight: 600;
    color: #4dffaa;
    text-transform: uppercase; letter-spacing: 0.1em;
    margin-bottom: 20px;
}
.ngc-ai-intro__pulse {
    width: 8px; height: 8px; border-radius: 50%;
    background: #4dffaa;
    animation: pulseGreen 2s infinite;
}
@keyframes pulseGreen {
    0%   { box-shadow: 0 0 0 0 rgba(77,255,170,0.7); }
    70%  { box-shadow: 0 0 0 12px rgba(77,255,170,0); }
    100% { box-shadow: 0 0 0 0 rgba(77,255,170,0); }
}
.ngc-ai-intro h1 {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.05;
    margin: 0 0 16px;
    background: linear-gradient(180deg, #fff 0%, #b6c9eb 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}
.ngc-ai-intro p {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.55;
    margin: 0 auto;

    transition: opacity 0.7s ease-out, max-height 0.7s ease-out, margin 0.7s ease-out, transform 0.7s ease-out;
    overflow: hidden;
    max-height: 200px;
}
.ngc-ai-intro p.is-faded {
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    margin-bottom: 0;
    transform: translateY(-8px);
    pointer-events: none;
}

.ngc-ai-shell {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    max-width: 1080px;
    margin: 0 auto;
}
@media (min-width: 881px) {
    .ngc-ai-shell {
        animation: ngcShellFadeIn 1.5s ease-out both;
    }
}
@keyframes ngcShellFadeIn {

    from { opacity: 0; }
    to   { opacity: 1; }
}
@media (max-width: 880px) {
    .ngc-ai-shell { grid-template-columns: 1fr; gap: 20px; }
}

.ngc-pilot {
    background: linear-gradient(180deg, rgba(8,18,48,0.35) 0%, rgba(6,14,36,0.48) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 36px 28px;
    text-align: center;
    align-self: start;
    box-shadow:
        0 24px 60px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.08);
    position: relative;
    z-index: 0;
}
.ngc-pilot::before {
    content: '';
    position: absolute; inset: -1px;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(61,126,199,0.5), transparent 40%, transparent 60%, rgba(219,184,98,0.3));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

.ngc-glass-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: block;
    filter: blur(18px) brightness(0.42) saturate(1.1);
    clip-path: inset(0 round 24px);
    pointer-events: none;
}

.ngc-pilot__avatar {
    position: relative;
    width: 170px; height: 170px;
    margin: 0 auto 22px;
}
.ngc-pilot__bot {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.6s ease-out;
    filter:
        drop-shadow(0 0 35px rgba(61,126,199,0.55))
        drop-shadow(0 0 18px rgba(90,154,224,0.35))
        drop-shadow(0 12px 24px rgba(0,0,0,0.5));
    animation: botFloat 5s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}
.ngc-pilot__bot.is-loaded { opacity: 1; }
.ngc-pilot__bot.is-loaded ~ .ngc-orb-avatar { opacity: 0; transform: scale(0.6); }
@keyframes botFloat {
    0%,100% { transform: translateY(0)    rotate(-1deg); }
    50%     { transform: translateY(-10px) rotate(1deg); }
}

.ngc-orb-avatar {
    position: absolute; inset: 8%;
    transform-style: preserve-3d;
    perspective: 600px;
    transition: opacity 0.6s, transform 0.6s;
    z-index: 1;
}
.ngc-orb-avatar__core {
    position: absolute; inset: 22%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, #b6e0ff, transparent 50%),
        conic-gradient(from 0deg, #3d7ec7, #dbb862, #5a8a6f, #5a9ae0, #3d7ec7);
    filter: blur(2px);
    box-shadow:
        0 0 60px rgba(61,126,199,0.7),
        0 0 30px rgba(219,184,98,0.4),
        inset 0 0 40px rgba(255,255,255,0.3);
    animation: corePulse 3s ease-in-out infinite;
}
.ngc-orb-avatar__ring {
    position: absolute; inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.18);
    transform-style: preserve-3d;
    animation: ringSpin 12s linear infinite;
}
.ngc-orb-avatar__ring--1 { transform: rotateY(0deg)   rotateX(72deg); }
.ngc-orb-avatar__ring--2 { transform: rotateY(60deg)  rotateX(72deg); animation-direction: reverse; animation-duration: 16s; }
.ngc-orb-avatar__ring--3 { transform: rotateY(120deg) rotateX(72deg); animation-duration: 20s; }
@keyframes corePulse {
    0%,100% { transform: scale(1)   rotate(0deg);   filter: blur(2px) hue-rotate(0deg); }
    50%     { transform: scale(1.1) rotate(180deg); filter: blur(3px) hue-rotate(20deg); }
}
@keyframes ringSpin {
    from { transform: rotateY(0deg)   rotateX(72deg); }
    to   { transform: rotateY(360deg) rotateX(72deg); }
}

.ngc-pilot.is-thinking .ngc-orb-avatar__core { animation-duration: 1.2s; }
.ngc-pilot.is-thinking .ngc-orb-avatar__ring { animation-duration: 4s; }

.ngc-pilot__name {
    font-size: 22px; font-weight: 700; color: #fff;
    margin-bottom: 4px; letter-spacing: -0.01em;
}
.ngc-pilot__title {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    margin-bottom: 18px;
}
.ngc-pilot__status {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; color: rgba(255,255,255,0.75);
    padding: 7px 14px;
    background: rgba(0,0,0,0.35);
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.08);
    font-weight: 500;
}
.ngc-pilot__status .pulse { width: 8px; height: 8px; border-radius: 50%; background: #4dffaa; animation: pulseGreen 2s infinite; }

.ngc-eq {
    display: flex; gap: 4px; justify-content: center; align-items: end;
    margin-top: 20px; height: 28px;
}
.ngc-eq span {
    width: 4px; border-radius: 2px;
    background: linear-gradient(to top, #3d7ec7, #4dffaa);
    animation: eqBar 1.2s ease-in-out infinite;
    transform-origin: bottom;
}
.ngc-eq span:nth-child(1){ animation-delay: 0s;   height: 30%; }
.ngc-eq span:nth-child(2){ animation-delay: .12s; height: 70%; }
.ngc-eq span:nth-child(3){ animation-delay: .24s; height: 50%; }
.ngc-eq span:nth-child(4){ animation-delay: .36s; height: 90%; }
.ngc-eq span:nth-child(5){ animation-delay: .48s; height: 60%; }
.ngc-eq span:nth-child(6){ animation-delay: .60s; height: 40%; }
@keyframes eqBar {
    0%,100% { transform: scaleY(.3); }
    50%     { transform: scaleY(1); }
}

.ngc-pilot__meta {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.ngc-pilot__meta-item { text-align: left; }
.ngc-pilot__meta-num {
    font-size: 22px; font-weight: 700;
    background: linear-gradient(135deg, #fff, #b6c9eb);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

@media (max-width: 880px) {
    .ngc-pilot {
        padding: 12px 14px;
        display: grid;
        grid-template-columns: 56px 1fr;
        column-gap: 12px;
        row-gap: 4px;
        align-items: center;
        text-align: left;
    }
    .ngc-pilot__avatar {
        width: 56px;
        height: 56px;
        margin: 0;
        grid-row: span 2;
        align-self: center;
    }
    .ngc-pilot__name {
        font-size: 16px;
        margin-bottom: 0;
        text-align: left;
        align-self: end;
    }
    .ngc-pilot__title { display: none; }
    .ngc-pilot__status {
        font-size: 11px;
        padding: 4px 10px;
        margin-top: 0;
        align-self: start;
        justify-self: start;
    }
    .ngc-eq          { display: none !important; }
    .ngc-pilot__meta { display: none !important; }
    .ngc-pilot::before { display: none; }
}

.ngc-pilot__meta-label {
    font-size: 10.5px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase; letter-spacing: 0.1em;
    margin-top: 6px;
}

.ngc-chat {
    background: linear-gradient(180deg, rgba(8,18,48,0.35) 0%, rgba(6,14,36,0.48) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 32px;
    z-index: 0;
    box-shadow: 0 24px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08);

    min-height: 480px;
    height: min(720px, calc(100vh - 180px));
    display: flex; flex-direction: column;
    position: relative;
    overflow: visible;
}
@media (max-width: 880px) {
    .ngc-chat { height: min(640px, calc(100vh - 80px)); }
}

@media (max-width: 1024px) {
    .ngc-ai-intro__eyebrow { display: none !important; }
    .ngc-ai-intro { margin-bottom: 24px; }
}
@media (max-width: 600px) { .ngc-chat { padding: 24px 20px; } }

.ngc-progress { margin-bottom: 24px; }
.ngc-progress__head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 8px;
    font-size: 11px; font-weight: 600;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase; letter-spacing: 0.12em;
}
.ngc-progress__bar {
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 100px;
    overflow: hidden;
    position: relative;
}
.ngc-progress__fill {
    height: 100%;
    background: linear-gradient(90deg, #3d7ec7, #4dffaa);
    border-radius: 100px;
    width: 0;
    transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 16px rgba(77,255,170,0.5);
    position: relative;
}
.ngc-progress__fill::after {
    content: '';
    position: absolute; top: 0; right: 0; width: 30px; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6));
    animation: shimmer 1.6s ease-in-out infinite;
}
@keyframes shimmer {
    from { transform: translateX(-30px); opacity: 0; }
    50%  { opacity: 1; }
    to   { transform: translateX(0); opacity: 0; }
}

.ngc-stream {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;

    display: flex; flex-direction: column; gap: 16px;
    margin: 0 -4px 16px -4px;
    padding: 8px 10px 8px 22px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.18) transparent;
}
.ngc-stream::-webkit-scrollbar { width: 6px; }
.ngc-stream::-webkit-scrollbar-track { background: transparent; }
.ngc-stream::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.18);
    border-radius: 100px;
}
.ngc-stream::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); }
.ngc-msg {
    animation: msgIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.ngc-msg--ai {
    display: flex; gap: 12px; align-items: flex-end;
    min-width: 0;
    max-width: 100%;
}
.ngc-msg--ai > *:not(.ngc-msg__avatar) { min-width: 0; }
.ngc-msg__avatar {
    flex: 0 0 32px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, #b6e0ff, transparent 50%),
        conic-gradient(from 0deg, #3d7ec7, #dbb862, #5a8a6f, #3d7ec7);
    box-shadow: 0 0 16px rgba(61,126,199,0.55);
    animation: corePulse 4s ease-in-out infinite;
}
.ngc-msg__bubble {
    padding: 7px 15px;
    border-radius: 4px 18px 18px 18px;
    font-size: 16px;
    line-height: 1.5;
    max-width: 88%;
    background: rgba(255,255,255,0.07);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.06);
}
.ngc-msg--user {
    display: flex; justify-content: flex-end;
}
.ngc-msg--user .ngc-msg__bubble {
    background: linear-gradient(135deg, #3d7ec7, #2a5a99);
    border-color: transparent;
    border-radius: 18px 4px 18px 18px;
    box-shadow: 0 8px 22px rgba(61,126,199,0.35);
    max-width: 80%;
}

@keyframes msgIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ngc-live-tag {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 8px;
    margin-left: 15px;
    padding: 6px 12px;
    background: rgba(77,255,170,0.1);
    border: 1px solid rgba(77,255,170,0.25);
    border-radius: 100px;
    font-size: 12px; font-weight: 600;
    color: #4dffaa;
    animation: msgIn 0.5s 0.2s backwards;
}
.ngc-msg__bubble .ngc-live-tag { margin-top: 2px; }

.ngc-typing {
    display: inline-flex; gap: 5px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.07);
    border-radius: 4px 18px 18px 18px;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.06);
}
.ngc-typing span {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,0.6);
    animation: typingDot 1.3s ease-in-out infinite;
}
.ngc-typing span:nth-child(2){ animation-delay: 0.18s; }
.ngc-typing span:nth-child(3){ animation-delay: 0.36s; }
@keyframes typingDot {
    0%,60%,100% { transform: translateY(0)    scale(0.8); opacity: 0.5; }
    30%         { transform: translateY(-4px) scale(1);   opacity: 1; }
}

.ngc-input {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 22px;
    animation: msgIn 0.5s 0.4s backwards;
}
.ngc-input.is-loading { opacity: 0.4; pointer-events: none; }

.ngc-input:empty { border-top: 0; padding-top: 0; }

.ngc-input__field {
    width: 100%;
    background: rgba(0,0,0,0.35);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 16px 20px;
    color: #fff;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
    -webkit-appearance: none;
}

mapbox-search-box,
mapbox-search-box:focus,
mapbox-search-box:focus-within,
mapbox-search-box:focus-visible {
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}
mapbox-search-box {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
    --MapboxSearchBox-Border: 2px solid rgba(255,255,255,0.1);
    --MapboxSearchBox-BorderRadius: 14px;
    --MapboxSearchBox-FontFamily: inherit;
    --MapboxSearchBox-FontSize: 16px;
    --MapboxSearchBox-FontWeight: 500;
    --MapboxSearchBox-LineHeight: 1.4;
    --MapboxSearchBox-PaddingY: 14px;
    --MapboxSearchBox-PaddingX: 18px;
    --MapboxSearchBox-Color: #fff;
    --MapboxSearchBox-ColorActive: #b6e0ff;
    --MapboxSearchBox-Background: rgba(0,0,0,0.35);
    --MapboxSearchBox-BackgroundActive: rgba(0,0,0,0.45);
    --MapboxSearchBox-BackgroundHover: rgba(255,255,255,0.04);
    --MapboxSearchBox-PlaceholderColor: rgba(255,255,255,0.4);
    --MapboxSearchBox-IconColor: rgba(255,255,255,0.55);
    --MapboxSearchBox-Shadow: 0 0 0 0 rgba(0,0,0,0);
    --MapboxSearchBox-ShadowActive: 0 0 0 4px rgba(90,154,224,0.15), 0 0 30px rgba(61,126,199,0.25);
    --MapboxSearchBox-MenuBackground: rgba(15,29,62,0.97);
    --MapboxSearchBox-MenuColor: #fff;
    --MapboxSearchBox-MenuColorSecondary: rgba(255,255,255,0.55);
    --MapboxSearchBox-MenuColorActive: #b6e0ff;
    --MapboxSearchBox-MenuBackgroundActive: rgba(61,126,199,0.18);
    --MapboxSearchBox-MenuBackgroundHover: rgba(255,255,255,0.05);
    --MapboxSearchBox-MenuBorder: 1px solid rgba(255,255,255,0.08);
    --MapboxSearchBox-MenuBorderRadius: 14px;
    --MapboxSearchBox-MenuShadow: 0 12px 40px rgba(0,0,0,0.4);
    --MapboxSearchBox-MenuItemPaddingY: 10px;
    --MapboxSearchBox-MenuItemPaddingX: 16px;
    --MapboxSearchBox-MenuItemFontSize: 14px;
    --MapboxSearchBox-MenuItemFontWeight: 500;
    --MapboxSearchBox-MenuItemLineHeight: 1.4;
}

mapbox-search-box::part(input) {
    background: rgba(0,0,0,0.35) !important;
    border: 2px solid rgba(255,255,255,0.1) !important;
    border-radius: 14px !important;
    color: #fff !important;
    padding: 16px 18px !important;
    font-size: 16px !important;
    font-family: inherit !important;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
mapbox-search-box::part(input):focus,
mapbox-search-box::part(input):focus-visible {
    outline: none !important;
    border-color: #5a9ae0 !important;
    background: rgba(0,0,0,0.45) !important;
    box-shadow: 0 0 0 4px rgba(90,154,224,0.15), 0 0 30px rgba(61,126,199,0.25) !important;
}
mapbox-search-box::part(input)::placeholder { color: rgba(255,255,255,0.4) !important; }
mapbox-search-box::part(suggestions) {
    margin-top: 6px !important;
    overflow: hidden !important;
}
mapbox-search-box::part(suggestion) {
    color: #fff !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    transition: background 0.15s !important;
}
mapbox-search-box::part(suggestion):hover,
mapbox-search-box::part(suggestion-active) {
    background: rgba(61,126,199,0.18) !important;
    color: #b6e0ff !important;
}
mapbox-search-box::part(icon) { color: rgba(255,255,255,0.5) !important; }

@media (max-width: 1024px) {
    mapbox-search-box {
        --MapboxSearchBox-MenuItemPaddingY: 8px;
        --MapboxSearchBox-MenuItemPaddingX: 12px;
        --MapboxSearchBox-MenuItemFontSize: 13px;
        --MapboxSearchBox-MenuBorderRadius: 10px;
        --MapboxSearchBox-FontSize: 15px;
        --MapboxSearchBox-PaddingY: 12px;
        --MapboxSearchBox-PaddingX: 14px;
    }
    mapbox-search-box::part(suggestions) {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        left: 0 !important;
        right: 0 !important;
        margin-top: 4px !important;
        max-height: 280px !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
    }

    mapbox-search-box::part(suggestion) {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 1px !important;
        padding: 10px 12px !important;
        font-size: 13px !important;
        line-height: 1.3 !important;
    }

    mapbox-search-box::part(suggestion-name),
    mapbox-search-box::part(suggestion-feature-name) {
        font-size: 13px !important;
        font-weight: 600 !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        word-break: normal !important;
        overflow-wrap: anywhere !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    mapbox-search-box::part(suggestion-description),
    mapbox-search-box::part(suggestion-feature-description),
    mapbox-search-box::part(suggestion-place-formatted),
    mapbox-search-box::part(suggestion-place-formatted-address) {
        font-size: 11.5px !important;
        color: rgba(255,255,255,0.55) !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        overflow-wrap: anywhere !important;
        max-width: 100% !important;
        margin: 0 !important;
        line-height: 1.3 !important;
    }

    mapbox-search-box::part(suggestion-action),
    mapbox-search-box::part(suggestion-feature-action),
    mapbox-search-box::part(suggestion-feature-type),
    mapbox-search-box::part(suggestion-feature-distance),
    mapbox-search-box::part(suggestion-feature-tag),
    mapbox-search-box::part(suggestion-type),
    mapbox-search-box::part(suggestion-tag),
    mapbox-search-box::part(suggestion-badge),
    mapbox-search-box::part(suggestion-feature-badge),
    mapbox-search-box::part(suggestion-feature-new),
    mapbox-search-box::part(action),
    mapbox-search-box::part(badge) {
        display: none !important;
    }

    mapbox-search-box::part(attribution) {
        padding: 4px 12px !important;
        font-size: 10px !important;
    }
}
@media (max-width: 480px) {
    mapbox-search-box::part(suggestions) {
        max-height: 240px !important;
        border-radius: 10px !important;
    }
    mapbox-search-box::part(suggestion) {
        padding: 9px 11px !important;
        font-size: 12.5px !important;
    }
}

.ngc-input__field::placeholder { color: rgba(255,255,255,0.35); }
.ngc-input__field:focus {
    outline: none;
    border-color: #5a9ae0;
    background: rgba(0,0,0,0.45);
    box-shadow: 0 0 0 4px rgba(90,154,224,0.15), 0 0 30px rgba(61,126,199,0.25);
}

.ngc-input__row {
    display: flex; gap: 12px; align-items: center; margin-top: 14px;
    flex-wrap: wrap;
}

.ngc-input__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .ngc-input__pair { grid-template-columns: 1fr; } }

.ngc-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, #3d7ec7, #2a5a99);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 15px; font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 24px rgba(61,126,199,0.4);
    font-family: inherit;
}
.ngc-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(61,126,199,0.55); }
.ngc-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.ngc-btn--ghost {
    background: transparent;
    color: rgba(255,255,255,0.55);
    box-shadow: none;
    padding: 14px 18px;
    font-weight: 600;
    font-size: 13px;
}
.ngc-btn--ghost:hover {
    background: rgba(255,255,255,0.05);
    color: #fff; transform: none; box-shadow: none;
}
.ngc-btn--gold {
    background: linear-gradient(135deg, #dbb862, #c8a04d);
    box-shadow: 0 10px 24px rgba(200,160,77,0.5);
    color: #1a1306;
}
.ngc-btn--gold:hover { box-shadow: 0 14px 30px rgba(200,160,77,0.65); }

.ngc-chips {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin-bottom: 6px;
}
.ngc-chip {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid rgba(255,255,255,0.13);
    color: #fff;
    padding: 8px 12px;
    border-radius: 100px;
    font-size: 14px; font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    line-height: 1.2;
    transform: translateZ(0);

    -webkit-tap-highlight-color: transparent;
    outline: none;
}
.ngc-chip:focus { outline: none; }
.ngc-chip:focus-visible {
    outline: 2px solid rgba(90,154,224,0.6);
    outline-offset: 2px;
    border-radius: 100px;
}
.ngc-chip::-moz-focus-inner { border: 0; }

.ngc-btn { -webkit-tap-highlight-color: transparent; outline: none; }
.ngc-btn:focus { outline: none; }
.ngc-btn:focus-visible { outline: 2px solid rgba(90,154,224,0.6); outline-offset: 3px; }
.ngc-chip__ico {
    display: inline-flex; align-items: center; justify-content: center;
    width: 16px; height: 16px;
    color: rgba(255,255,255,0.7);
    transition: color 0.25s;
}
.ngc-chip__ico svg { width: 16px; height: 16px; display: block; }
.ngc-chip:hover .ngc-chip__ico,
.ngc-chip.is-selected .ngc-chip__ico { color: #fff; }
.ngc-chip:hover {
    background: rgba(61,126,199,0.18);
    border-color: rgba(61,126,199,0.55);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(61,126,199,0.22);
}
.ngc-chip.is-selected {
    background: linear-gradient(135deg, #3d7ec7, #2a5a99);
    border-color: transparent;
    box-shadow: 0 10px 22px rgba(61,126,199,0.45);
    transform: translateY(-1px);
}

.ngc-chip.is-guess {
    background: rgba(77,255,170,0.10);
    border-color: rgba(77,255,170,0.5);
    box-shadow: 0 6px 18px rgba(77,255,170,0.18);
}
.ngc-chip.is-guess:hover {
    background: rgba(77,255,170,0.18);
    border-color: rgba(77,255,170,0.7);
}
.ngc-chip__hint {
    display: inline-flex; align-items: center;
    margin-left: 10px;
    padding: 3px 9px;
    font-size: 9.5px; font-weight: 700;
    color: #4dffaa;
    background: rgba(77,255,170,0.12);
    border-radius: 100px;
    text-transform: uppercase; letter-spacing: 0.06em;
}

.ngc-msg__debug {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255,255,255,0.1);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 10.5px;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.02em;
    line-height: 1.4;
}

.ngc-savings-card {
    flex: 1 1 auto;

    min-width: 0;
    max-width: 480px;
    background: linear-gradient(160deg, rgba(77,255,170,0.10) 0%, rgba(61,126,199,0.10) 100%);
    border: 1px solid rgba(77,255,170,0.28);
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 8px 28px rgba(77,255,170,0.08);
    overflow: hidden;
}
.ngc-savings-card__eyebrow {
    font-size: 10.5px; font-weight: 800;
    color: #4dffaa;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.ngc-savings-card__rows {
    display: flex; flex-direction: column; gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px dashed rgba(255,255,255,0.12);
}
.ngc-savings-card__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: 13.5px;
    line-height: 1.3;
    min-width: 0;
}
.ngc-savings-card__lbl   { color: rgba(255,255,255,0.72); min-width: 0; flex: 1 1 auto; }
.ngc-savings-card__val   { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; flex: 0 0 auto; }
.ngc-savings-card__totals {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.ngc-savings-card__total {
    text-align: center;
    padding: 12px 8px;
    background: rgba(0,0,0,0.25);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    min-width: 0;
    overflow: hidden;
}
.ngc-savings-card__total-lbl {
    display: block;
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 6px;
    font-weight: 700;
}
.ngc-savings-card__total-val {
    display: block;
    font-size: 22px;
    font-weight: 900;
    background: linear-gradient(135deg, #fff, #4dffaa);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.ngc-savings-card__total--hero .ngc-savings-card__total-val {
    font-size: 28px;
}

@media (max-width: 600px) {
    .ngc-savings-card { padding: 14px 14px; }
    .ngc-savings-card__row { font-size: 12.5px; gap: 8px; }
    .ngc-savings-card__totals { gap: 6px; }
    .ngc-savings-card__total { padding: 10px 4px; }
    .ngc-savings-card__total-val      { font-size: 18px; }
    .ngc-savings-card__total--hero
        .ngc-savings-card__total-val  { font-size: 22px; }
    .ngc-savings-card__total-lbl      { font-size: 8.5px; letter-spacing: 0.1em; }
}

.ngc-rent-curve { padding: 4px 0; }
.ngc-rent-curve__label { text-align: center; margin-bottom: 14px; }
.ngc-rent-curve__sub {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    margin-bottom: 6px;
}
.ngc-rent-curve__big {
    font-size: clamp(30px, 4.5vw, 44px);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #fff 30%, #4dffaa);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.01em;
}
.ngc-rent-curve__per {
    font-size: 0.42em;
    font-weight: 600;
    background: none;
    -webkit-text-fill-color: rgba(255,255,255,0.55);
    margin-left: 2px;
}
.ngc-rent-curve__chart {
    width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    cursor: pointer;
    overflow: visible;
}
.ngc-rent-curve__chart .ngc-rent-handle { cursor: grab; }
.ngc-rent-curve__chart .ngc-rent-handle:active { cursor: grabbing; }

.ngc-rent-curve__custom {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0 6px;
    flex-wrap: wrap;
}
.ngc-rent-curve__custom-label {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    white-space: nowrap;
}
.ngc-rent-curve__custom .input-wrap {
    flex: 0 0 180px;
    position: relative;
}
.ngc-rent-curve__custom .input-prefix {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.6);
    font-weight: 600;
    pointer-events: none;
    z-index: 1;
}
.ngc-rent-curve__custom .ngc-input__field { padding-left: 30px; }

.ngc-msg__sys-debug {
    align-self: flex-start;
    margin-left: 44px;
    padding: 4px 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 10.5px;
    color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.03);
    border-left: 2px solid rgba(255,255,255,0.1);
    border-radius: 2px;
    letter-spacing: 0.02em;
    animation: msgIn 0.5s;
}

.ngc-final {
    text-align: center; padding: 28px 0;
    animation: msgIn 0.8s;
    flex: 1; display: flex; flex-direction: column; justify-content: center;
}
.ngc-final__check {
    width: 84px; height: 84px; margin: 0 auto 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4dffaa, #3d7ec7);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 16px 48px rgba(77,255,170,0.4);
    animation: checkPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ngc-final__check svg { width: 42px; height: 42px; color: #fff; stroke-width: 3; }
@keyframes checkPop {
    from { transform: scale(0) rotate(-90deg); opacity: 0; }
    to   { transform: scale(1) rotate(0deg);   opacity: 1; }
}
.ngc-final h2 {
    font-size: clamp(24px, 3vw, 32px); font-weight: 800;
    margin-bottom: 12px; color: #fff;
    letter-spacing: -0.01em;
}
.ngc-final p {
    color: rgba(255,255,255,0.7);
    font-size: 16px; line-height: 1.6;
    max-width: 480px; margin: 0 auto 24px;
}
.ngc-teaser {
    display: inline-flex; flex-direction: column; align-items: center;
    margin-top: 20px;
    padding: 24px 36px;
    background: linear-gradient(135deg, rgba(61,126,199,0.15), rgba(77,255,170,0.1));
    border: 1px solid rgba(77,255,170,0.3);
    border-radius: 20px;
}
.ngc-teaser__label {
    font-size: 11px; color: rgba(255,255,255,0.6);
    text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700;
    margin-bottom: 6px;
}
.ngc-teaser__num {
    font-size: clamp(28px, 4vw, 42px); font-weight: 900;
    background: linear-gradient(135deg, #fff, #4dffaa);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}
.ngc-teaser__sub {
    font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 8px;
}

.ngc-deflect {
    text-align: center;
    margin-top: 28px;
    color: rgba(255,255,255,0.55);
    font-size: 14px;
}
.ngc-deflect a { color: #5a9ae0; font-weight: 600; text-decoration: none; }
.ngc-deflect a:hover { color: #b6e0ff; }

.ngc-footnote {
    text-align: center;
    margin-top: 12px;
    color: rgba(255,255,255,0.32);
    font-size: 11px;
    letter-spacing: 0.04em;
}
.ngc-footnote a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    transition: color 0.2s, border-color 0.2s;
}
.ngc-footnote a:hover {
    color: #b6e0ff;
    border-bottom-color: rgba(182,224,255,0.5);
}
