/* =========================================================
   250bar.ru — isolated UI styles
   Hero/form styles + Neuro Navigator styles
   ========================================================= */

.container.container-generate,
#nm250-nav-root {
    --neon-primary: #00ffea;
    --neon-secondary: #ff00ff;
    --neon-accent: #9d00ff;
    --neon-success: #00ff9d;
    --neon-warning: #ffcc00;
    --neon-danger: #ff3366;
    --bg-dark: #0a0a0a;
    --bg-surface: rgba(21, 21, 21, 0.6);
    --border-glass: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.2);
    --bg-deep-space: #000010;
    --bg-tunnel: linear-gradient(180deg, #000000 0%, #0a0020 30%, #1a0040 70%, #300060 100%);
    --speed-slow: 40s;
    --speed-medium: 20s;
    --speed-fast: 10s;
}

.container.container-generate,
.container.container-generate *,
#nm250-nav-root,
#nm250-nav-root * {
    box-sizing: border-box;
}

/* =========================================================
   Landing / input block
   ========================================================= */

.container.container-generate {
    width: 100%;
    max-width: 900px;
    background: var(--bg-surface);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(0, 255, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: nm250ContainerAppear 0.8s ease-out;
}

.container.container-generate::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 234, 0.4),
        rgba(255, 0, 255, 0.4),
        transparent
    );
}

@keyframes nm250ContainerAppear {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.container.container-generate > header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.container.container-generate .int1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--neon-primary);
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(0, 255, 234, 0.4);
    line-height: 1.2;
    animation: nm250TitleGlow 3s infinite alternate;
}

@keyframes nm250TitleGlow {
    0% { text-shadow: 0 0 20px rgba(0, 255, 234, 0.4); }
    100% { text-shadow: 0 0 30px rgba(0, 255, 234, 0.6), 0 0 40px rgba(0, 255, 234, 0.2); }
}

.container.container-generate .int2 {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.5;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.container.container-generate .neo-scroll {
    max-width: 100%;
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0 14px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    list-style: none;
    margin: 30px 0 0;
    padding-left: 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,255,157,0.5) rgba(0,255,157,0.07);
}

.container.container-generate .neo-scroll li {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 10px 14px 10px 38px;
    font-size: 15px;
    white-space: nowrap;
    background: rgba(0, 255, 157, 0.12);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-radius: 14px;
    border: 1px solid rgba(0, 255, 157, 0.45);
    box-shadow:
        0 0 14px rgba(0,255,157,0.45),
        inset 0 0 24px rgba(0,255,157,0.15);
    transition: 0.25s ease;
}

.container.container-generate .neo-scroll li:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow:
        0 0 22px rgba(0,255,157,0.75),
        inset 0 0 24px rgba(0,255,157,0.2);
}

.container.container-generate .neo-scroll::-webkit-scrollbar {
    height: 6px;
}

.container.container-generate .neo-scroll::-webkit-scrollbar-track {
    background: rgba(0,255,157,0.05);
}

.container.container-generate .neo-scroll::-webkit-scrollbar-thumb {
    background: rgba(0,255,157,0.45);
    border-radius: 999px;
    box-shadow: 0 0 8px rgba(0,255,157,0.5);
}

.container.container-generate .neo-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(0,255,157,0.7);
}

#intentForm {
    position: relative;
    margin: 40px 0;
}

#intentForm .input-container {
    position: relative;
    margin-bottom: 10px;
}

#intentInput {
    width: 100%;
    min-height: 120px;
    padding: 25px;
    padding-bottom: 70px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: #ffffff;
    font-size: 1.1rem;
    resize: vertical;
    transition: all 0.3s ease;
    font-family: inherit;
    line-height: 1.6;
}

#intentInput:focus {
    outline: none;
    border-color: #00ffea;
    box-shadow: 0 0 30px rgba(0, 255, 234, 0.2);
    background: rgba(0, 0, 0, 0.4);
}

#intentInput::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

#inputLabel {
    position: absolute;
    top: 20%;
    left: 25px;
    color: #00ffea;
    font-size: 1.1rem;
    font-weight: 600;
    pointer-events: none;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(0, 255, 234, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
}

#inputLabel::before {
    content: '🧠';
    font-size: 1.3rem;
}

#intentInput:focus + #inputLabel,
#intentInput:not(:placeholder-shown) + #inputLabel {
    top: 10px;
    bottom: 10px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.container.container-generate .input-actions-bar {
    position: absolute;
    bottom: 20px;
    right: 25px;
    display: flex;
    gap: 10px;
    z-index: 20;
}

.container.container-generate .tech-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 255, 234, 0.1);
    border: 2px solid rgba(0, 255, 234, 0.3);
    color: #00ffea;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    position: relative;
    overflow: hidden;
}

.container.container-generate .tech-btn:hover {
    background: rgba(0, 255, 234, 0.2);
    border-color: #00ffea;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 255, 234, 0.4);
}

.container.container-generate .tech-btn.active {
    background: rgba(0, 255, 234, 0.3);
    border-color: #00ffea;
    animation: nm250PulseButton 2s infinite;
}

@keyframes nm250PulseButton {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 255, 234, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(0, 255, 234, 0); }
}

#voiceButtonMain {
    background: rgba(157, 0, 255, 0.15);
    border: 2px solid #9d00ff;
    color: #9d00ff;
    animation: nm250VoicePulse 2s infinite;
}

@keyframes nm250VoicePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(157, 0, 255, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(157, 0, 255, 0);
    }
}

#voiceButtonMain:hover {
    background: rgba(157, 0, 255, 0.25);
    border-color: #9d00ff;
    transform: translateY(-3px) scale(1.15);
    box-shadow: 0 5px 25px rgba(157, 0, 255, 0.5);
}

#voiceButtonMain.active {
    background: rgba(255, 0, 255, 0.3);
    border-color: #ff00ff;
    animation: nm250VoicePulseActive 1.5s infinite;
}

@keyframes nm250VoicePulseActive {
    0%, 100% {
        transform: scale(1.05);
        box-shadow: 0 0 0 0 rgba(255, 0, 255, 0.6);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 0 15px rgba(255, 0, 255, 0);
    }
}

#imageButtonMain {
    position: relative;
}

#imageButtonMain.has-image::after {
    content: '✓';
    position: absolute;
    top: -5px;
    right: -5px;
    background: #00ff9d;
    color: #000;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px #00ff9d;
}

#suggestions.suggestions {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(21, 21, 21, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 100;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    list-style: none;
    margin: 0;
    padding-left: 0;
}

#suggestions.suggestions li {
    padding: 15px 20px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    list-style: none;
}

#suggestions.suggestions li:hover {
    background: rgba(0, 255, 234, 0.1);
    padding-left: 25px;
    color: #00ffea;
}

#suggestions.suggestions li:last-child {
    border-bottom: none;
}

.container.container-generate .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
    justify-content: center;
}

.container.container-generate .tag {
    background: rgba(0, 255, 234, 0.1);
    border: 1px solid rgba(0, 255, 234, 0.3);
    color: #00ffea;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.container.container-generate .tag:hover {
    background: rgba(0, 255, 234, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 234, 0.2);
}

#serviceHeader {
    text-align: center;
    color: #00ffea;
    margin: 30px 0;
    padding: 20px;
    background: rgba(0, 255, 234, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 234, 0.3);
    animation: nm250FadeIn 0.5s ease;
}

#response {
    min-height: 200px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    margin-top: 30px;
    display: none;
    animation: nm250FadeIn 0.5s ease;
    position: relative;
    overflow: hidden;
}

#response::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00ffea, transparent);
}

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

/* =========================================================
   Neuro Navigator menu
   ========================================================= */

#nm250-nav-root {
    position: fixed;
    inset: 0;
    z-index: 49990;
    pointer-events: none;
    isolation: isolate;
}

#nm250-nav-root .nav-tunnel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 49998;
    opacity: 0;
    pointer-events: none;
    transition: opacity .8s ease;
}

body.tunnel-active #nm250-nav-root .nav-tunnel-overlay {
    opacity: 1;
    pointer-events: auto;
}

#nm250-nav-root .brain-menu-trigger {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, #9d00ff, #ff00ff);
    border: none;
    border-radius: 18px;
    color: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 49999;
    pointer-events: auto;
    transition: all .3s ease;
    touch-action: manipulation;
    box-shadow: 0 8px 32px rgba(157,0,255,.4), inset 0 1px 0 rgba(255,255,255,.2);
    animation: nm250BrainPulse 3s infinite;
    overflow: hidden;
}

@keyframes nm250BrainPulse {
    0%,100% { box-shadow: 0 8px 32px rgba(157,0,255,.4), inset 0 1px 0 rgba(255,255,255,.2); }
    50% { box-shadow: 0 8px 32px rgba(157,0,255,.6), 0 0 40px rgba(0,255,234,.3), inset 0 1px 0 rgba(255,255,255,.2); }
}

#nm250-nav-root .brain-menu-trigger:active {
    transform: scale(.92);
    animation: none;
}

#nm250-nav-root .brain-icon {
    font-size: 1.8rem;
    margin-bottom: 4px;
    animation: nm250BrainThink 3s infinite ease-in-out;
}

@keyframes nm250BrainThink {
    0%,100% { transform: scale(1) rotate(0); }
    25% { transform: scale(1.1) rotate(-5deg); }
    50% { transform: scale(1) rotate(0); }
    75% { transform: scale(1.1) rotate(5deg); }
}

#nm250-nav-root .brain-text {
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(45deg, #fff, #00ffea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#nm250-nav-root .welcome-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
    z-index: 50010;
    opacity: 0;
    animation: nm250WelcomeFade 1.5s ease-out forwards;
    pointer-events: none;
}

@keyframes nm250WelcomeFade {
    0% { opacity: 0; transform: translate(-50%,-50%) scale(.8); }
    20% { opacity: 1; transform: translate(-50%,-50%) scale(1); }
    80% { opacity: 1; transform: translate(-50%,-50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%,-50%) scale(1.2); }
}

#nm250-nav-root .welcome-text {
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(45deg, #00ffea, #ff00ff, #9d00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

#nm250-nav-root .welcome-subtext {
    color: rgba(255,255,255,.7);
    font-size: 1.1rem;
}

#nm250-nav-root .touch-hint {
    position: fixed;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,.7);
    color: #00ffea;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: .9rem;
    font-weight: 700;
    z-index: 50005;
    opacity: 0;
    transition: opacity .3s ease;
    display: none;
    animation: nm250HintPulse 2s infinite;
}

@keyframes nm250HintPulse {
    0%,100% { opacity: .7; }
    50% { opacity: 1; }
}

#nm250-nav-root .neuro-navigator {
    position: fixed;
    inset: 0;
    z-index: 50000;
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
    transition: all .8s cubic-bezier(.34,1.56,.64,1);
    background: rgba(10,0,30,.98);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#nm250-nav-root .neuro-navigator.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#nm250-nav-root .nav-header {
    padding: 20px;
    background: linear-gradient(180deg, rgba(20,0,40,.95) 0%, rgba(10,0,20,.7) 100%);
    border-bottom: 1px solid rgba(0,255,234,.2);
    position: relative;
    z-index: 10;
}

#nm250-nav-root .nav-top-bar {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:15px;
}

#nm250-nav-root .nav-title {
    font-size: 1.6rem;
    font-weight: 900;
    background: linear-gradient(45deg, #00ffea, #9d00ff);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;
    display:flex;
    align-items:center;
    gap:10px;
    margin: 0;
}

#nm250-nav-root .nav-title i {
    font-size:1.35rem;
}

#nm250-nav-root .close-nav {
    width:44px;
    height:44px;
    border-radius:50%;
    background:rgba(255,255,255,.1);
    border:1px solid rgba(0,255,234,.3);
    color:#00ffea;
    font-size:1.2rem;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition:all .3s ease;
    touch-action:manipulation;
}

#nm250-nav-root .close-nav:active {
    transform:scale(.9);
    background:rgba(0,255,234,.2);
}

#nm250-nav-root .ai-filters {
    display:flex;
    gap:8px;
    overflow-x:auto;
    padding:10px 0;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
}

#nm250-nav-root .ai-filters::-webkit-scrollbar {
    display:none;
}

#nm250-nav-root .filter-chip {
    flex:0 0 auto;
    padding:10px 18px;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(0,255,234,.1);
    border-radius:20px;
    color:rgba(255,255,255,.7);
    font-size:.9rem;
    font-weight:700;
    white-space:nowrap;
    cursor:pointer;
    transition:all .3s ease;
    touch-action:manipulation;
    display:flex;
    align-items:center;
    gap:8px;
}

#nm250-nav-root .filter-chip.active {
    background:linear-gradient(45deg, #00ffea, #9d00ff);
    color:#fff;
    border-color:transparent;
    box-shadow:0 5px 15px rgba(0,255,234,.3);
}

#nm250-nav-root .smart-search {
    padding:0 20px 20px;
    position:relative;
}

#nm250-nav-root .search-container {
    position:relative;
}

#nm250-nav-root .search-input {
    width:100%;
    padding:16px 50px 16px 20px;
    background:rgba(0,0,0,.4);
    border:2px solid rgba(0,255,234,.2);
    border-radius:18px;
    color:#ffffff;
    font-size:1rem;
    transition:all .3s ease;
    font-family: inherit;
}

#nm250-nav-root .search-input:focus {
    outline:none;
    border-color:#00ffea;
    box-shadow:0 0 30px rgba(0,255,234,.3);
}

#nm250-nav-root .search-icon {
    position:absolute;
    right:20px;
    top:50%;
    transform:translateY(-50%);
    color:#00ffea;
    font-size:1.2rem;
}

#nm250-nav-root .search-results {
    position:absolute;
    top:calc(100% + 10px);
    left:0;
    right:0;
    background:rgba(10,0,25,.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border:1px solid rgba(0,255,234,.2);
    border-radius:16px;
    padding:10px;
    max-height:300px;
    overflow-y:auto;
    display:none;
    z-index:2100;
}

#nm250-nav-root .search-results.active {
    display:block;
}

#nm250-nav-root .search-result-item {
    padding:12px 15px;
    color:#ffffff;
    font-size:.95rem;
    border-radius:12px;
    cursor:pointer;
    transition:all .3s ease;
    display:flex;
    align-items:center;
    gap:10px;
}

#nm250-nav-root .search-result-item:active {
    background:rgba(0,255,234,.1);
}

#nm250-nav-root .nav-content {
    flex:1;
    position:relative;
    overflow:hidden;
}

#nm250-nav-root .level-1,
#nm250-nav-root .level-2,
#nm250-nav-root .level-3,
#nm250-nav-root .level-4 {
    position:absolute;
    inset:0;
    padding:20px;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    transition: transform .5s cubic-bezier(.34,1.56,.64,1);
}

#nm250-nav-root .level-1 { transform:translateX(0); }
#nm250-nav-root .level-1.hidden { transform:translateX(-100%); }
#nm250-nav-root .level-2,
#nm250-nav-root .level-3,
#nm250-nav-root .level-4 {
    transform:translateX(100%);
    background:rgba(10,0,20,.92);
}
#nm250-nav-root .level-3 { background:rgba(5,0,15,.96); }
#nm250-nav-root .level-4 { background:rgba(0,0,10,.96); }

#nm250-nav-root .level-2.active,
#nm250-nav-root .level-3.active,
#nm250-nav-root .level-4.active {
    transform:translateX(0);
}

#nm250-nav-root .level-header {
    display:flex;
    align-items:center;
    gap:15px;
    margin-bottom:25px;
    padding-bottom:15px;
    border-bottom:1px solid rgba(0,255,234,.1);
}

#nm250-nav-root .back-button {
    width:40px;
    height:40px;
    border-radius:50%;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(0,255,234,.2);
    color:#00ffea;
    font-size:1.1rem;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition:all .3s ease;
    touch-action:manipulation;
}

#nm250-nav-root .back-button:active {
    transform:scale(.9);
}

#nm250-nav-root .level-title {
    font-size:1.45rem;
    font-weight:800;
    color:#ffffff;
    flex:1;
    margin:0;
}

#nm250-nav-root .main-categories {
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
    gap:16px;
}

#nm250-nav-root .groups-grid {
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
    gap:15px;
}

#nm250-nav-root .subgroups-grid {
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(140px,1fr));
    gap:12px;
}

#nm250-nav-root .items-list {
    display:flex;
    flex-direction:column;
    gap:10px;
}

#nm250-nav-root .main-category,
#nm250-nav-root .group-card,
#nm250-nav-root .subgroup-card,
#nm250-nav-root .item-card {
    background:rgba(255,255,255,.03);
    border:1px solid rgba(0,255,234,.1);
    text-decoration:none;
    transition:all .3s ease;
    touch-action:manipulation;
}

#nm250-nav-root .main-category {
    border-radius:20px;
    padding:25px 15px;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:15px;
    animation: nm250TileAppear .6s cubic-bezier(.34,1.56,.64,1) forwards;
    opacity:0;
    transform:translateY(20px);
}

@keyframes nm250TileAppear {
    to { opacity:1; transform:translateY(0); }
}

#nm250-nav-root .main-category:active,
#nm250-nav-root .group-card:active,
#nm250-nav-root .subgroup-card:active {
    transform:scale(.95);
    background:rgba(0,255,234,.1);
    border-color:#00ffea;
}

#nm250-nav-root .item-card:active {
    transform:scale(.98);
    background:rgba(0,255,234,.1);
    border-color:#00ffea;
}

#nm250-nav-root .category-icon,
#nm250-nav-root .group-icon,
#nm250-nav-root .subgroup-icon,
#nm250-nav-root .item-icon {
    background:linear-gradient(45deg,rgba(0,255,234,.1),rgba(157,0,255,.1));
    display:flex;
    align-items:center;
    justify-content:center;
}

#nm250-nav-root .category-icon {
    width:60px;
    height:60px;
    border-radius:18px;
    font-size:1.8rem;
}

#nm250-nav-root .category-text,
#nm250-nav-root .group-name,
#nm250-nav-root .subgroup-name {
    text-align:center;
    color:#ffffff;
    font-weight:800;
    line-height:1.3;
}

#nm250-nav-root .category-text { font-size:1rem; }
#nm250-nav-root .group-name { font-size:.95rem; }
#nm250-nav-root .subgroup-name { font-size:.9rem; }

#nm250-nav-root .category-count,
#nm250-nav-root .group-count,
#nm250-nav-root .subgroup-count {
    background:rgba(0,255,234,.1);
    color:#00ffea;
    font-weight:800;
}

#nm250-nav-root .category-count {
    padding:4px 12px;
    border-radius:12px;
    font-size:.8rem;
    margin-top:5px;
}

#nm250-nav-root .group-card {
    border-radius:18px;
    padding:20px 15px;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:12px;
    position:relative;
}

#nm250-nav-root .group-tag {
    position:absolute;
    top:10px;
    right:10px;
    background:rgba(255,0,255,.2);
    color:#ff00ff;
    padding:2px 8px;
    border-radius:10px;
    font-size:.7rem;
    font-weight:800;
}

#nm250-nav-root .group-icon {
    width:50px;
    height:50px;
    border-radius:15px;
    font-size:1.5rem;
}

#nm250-nav-root .group-count {
    padding:3px 10px;
    border-radius:10px;
    font-size:.8rem;
    margin-top:5px;
}

#nm250-nav-root .subgroup-card {
    border-radius:16px;
    padding:18px 12px;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:10px;
}

#nm250-nav-root .subgroup-icon {
    width:45px;
    height:45px;
    border-radius:12px;
    font-size:1.3rem;
    color:#00ffea;
}

#nm250-nav-root .subgroup-count {
    padding:2px 8px;
    border-radius:8px;
    font-size:.75rem;
}

#nm250-nav-root .item-card {
    border-radius:16px;
    padding:18px;
    display:flex;
    align-items:center;
    gap:15px;
}

#nm250-nav-root .item-icon {
    width:40px;
    height:40px;
    border-radius:12px;
    font-size:1.2rem;
    color:#00ffea;
}

#nm250-nav-root .item-content { flex:1; }

#nm250-nav-root .item-title {
    color:#ffffff;
    font-weight:800;
    font-size:1rem;
    margin-bottom:5px;
}

#nm250-nav-root .item-desc {
    color:rgba(255,255,255,.7);
    font-size:.85rem;
    line-height:1.3;
}

#nm250-nav-root .item-tags {
    display:flex;
    flex-wrap:wrap;
    gap:5px;
    margin-top:8px;
}

#nm250-nav-root .item-tag {
    background:rgba(255,0,255,.1);
    color:#ff00ff;
    padding:3px 8px;
    border-radius:8px;
    font-size:.7rem;
    font-weight:800;
}

#nm250-nav-root .item-arrow {
    color:#00ffea;
    font-size:1.1rem;
    opacity:.8;
}

#nm250-nav-root .quick-panel {
    padding:15px 20px;
    background:rgba(20, 0, 40, 0.8);
    border-top:1px solid rgba(0, 255, 234, 0.1);
    display:flex;
    gap:10px;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
}

#nm250-nav-root .quick-panel::-webkit-scrollbar {
    display:none;
}

#nm250-nav-root .quick-action {
    flex:0 0 auto;
    padding:12px 20px;
    background:rgba(0,255,234,.1);
    border:1px solid rgba(0,255,234,.2);
    border-radius:16px;
    color:#00ffea;
    font-size:.9rem;
    font-weight:800;
    text-decoration:none;
    display:flex;
    align-items:center;
    gap:8px;
    transition:all .3s ease;
    touch-action: manipulation;
}

#nm250-nav-root .quick-action:active {
    transform:scale(.95);
    background:rgba(0,255,234,.2);
}

@media (max-width: 768px) {
    .container.container-generate {
        padding: 25px;
        margin: 10px;
    }

    .container.container-generate .int1 {
        font-size: 1.8rem;
    }

    .container.container-generate .neo-scroll {
        gap: 12px;
    }

    #intentInput {
        min-height: 100px;
        padding-bottom: 25px;
    }

    .container.container-generate .input-actions-bar {
        position: static;
        justify-content: center;
        margin-top: 20px;
    }

    .container.container-generate .tech-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    #nm250-nav-root .brain-menu-trigger {
        width:60px;
        height:60px;
        top:15px;
        right:15px;
    }

    #nm250-nav-root .brain-icon { font-size:1.5rem; }
    #nm250-nav-root .brain-text { font-size:.7rem; }
    #nm250-nav-root .nav-title { font-size:1.4rem; }
    #nm250-nav-root .close-nav { width:40px; height:40px; }
    #nm250-nav-root .filter-chip { padding:8px 16px; font-size:.85rem; }
    #nm250-nav-root .main-categories { grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:12px; }
    #nm250-nav-root .main-category { padding:20px 12px; }
    #nm250-nav-root .category-icon { width:50px; height:50px; font-size:1.5rem; }
    #nm250-nav-root .groups-grid { grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); gap:12px; }
    #nm250-nav-root .group-card { padding:16px 12px; }
    #nm250-nav-root .subgroups-grid { grid-template-columns:repeat(2,1fr); gap:10px; }
    #nm250-nav-root .item-card { padding:15px; }
    #nm250-nav-root .quick-action { padding:10px 16px; font-size:.85rem; }
    #nm250-nav-root .touch-hint { display:block; }
}

@media (max-width: 480px) {
    .container.container-generate {
        padding: 20px;
    }

    .container.container-generate .int1 {
        font-size: 1.5rem;
    }

    .container.container-generate .int2 {
        font-size: 1rem;
    }

    .container.container-generate .neo-scroll {
        gap: 12px;
        padding-bottom: 12px;
    }

    .container.container-generate .neo-scroll li {
        font-size: 14px;
        padding: 10px 14px;
        border-radius: 12px;
    }

    .container.container-generate .tech-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    #nm250-nav-root .brain-menu-trigger { width:55px; height:55px; border-radius:15px; }
    #nm250-nav-root .nav-header { padding:15px; }
    #nm250-nav-root .main-categories { grid-template-columns:repeat(2,1fr); gap:10px; }
    #nm250-nav-root .main-category { padding:15px 10px; }
    #nm250-nav-root .category-icon { width:45px; height:45px; font-size:1.3rem; }
    #nm250-nav-root .groups-grid { grid-template-columns:repeat(2,1fr); gap:10px; }
    #nm250-nav-root .smart-search { padding:0 15px 15px; }
    #nm250-nav-root .search-input { padding:14px 45px 14px 15px; font-size:.95rem; }
    #nm250-nav-root .quick-panel { padding:12px 15px; }
}