/* ==========================================================================
   NAMAN IT SERVICES (NITS) — AI VOICE CHAT BOARD STYLES
   Inspired by futuristic AI Interfaces (SageX, Siri & Gemini Live)
   ========================================================================== */

:root {
    --nits-bg-dark: #080d1a;
    --nits-surface: #0f172a;
    --nits-surface-2: #1e293b;
    --nits-surface-glass: rgba(15, 23, 42, 0.88);
    --nits-primary: #00d4ff;
    --nits-primary-glow: rgba(0, 212, 255, 0.45);
    --nits-secondary: #00e599;
    --nits-secondary-glow: rgba(0, 229, 153, 0.45);
    --nits-accent: #8b5cf6;
    --nits-accent-glow: rgba(139, 92, 246, 0.45);
    --nits-text: #f8fafc;
    --nits-text-muted: #94a3b8;
    --nits-border: rgba(255, 255, 255, 0.1);
    --nits-border-focus: rgba(0, 212, 255, 0.6);
    --nits-radius: 20px;
    --nits-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.65), 0 0 35px rgba(0, 212, 255, 0.15);
    --nits-font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* ==========================================================================
   1. FLOATING LAUNCHER BUTTON (Bottom Left to avoid WhatsApp on Bottom Right)
   ========================================================================== */
.nits-voice-launcher {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 9990;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    outline: none;
    font-family: var(--nits-font);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nits-voice-launcher:hover {
    transform: translateY(-4px) scale(1.03);
}

.nits-launcher-orb {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff, #0077ff 50%, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 119, 255, 0.45), 0 0 20px rgba(0, 212, 255, 0.35);
    border: 2.5px solid rgba(0, 212, 255, 0.6);
    overflow: hidden;
}

.nits-launcher-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
    z-index: 2;
    display: block;
}

.nits-voice-launcher:hover .nits-launcher-avatar-img {
    transform: scale(1.08);
}

.nits-launcher-mic-badge {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #00d4ff;
    color: #080d1a;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 800;
    border: 2px solid #080d1a;
    z-index: 4;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
}

.nits-launcher-orb i {
    font-size: 24px;
    z-index: 2;
    transition: transform 0.3s ease;
}

.nits-voice-launcher:hover .nits-launcher-orb i {
    transform: scale(1.15);
}


.nits-launcher-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid #00d4ff;
    opacity: 0.6;
    animation: nitsPulseRing 2.4s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

.nits-launcher-ring.r2 {
    animation-delay: 1.2s;
}

@keyframes nitsPulseRing {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.nits-launcher-pill {
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(0, 212, 255, 0.35);
    backdrop-filter: blur(12px);
    color: #ffffff;
    padding: 9px 15px;
    border-radius: 999px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    line-height: 1.2;
    text-align: left;
}

.nits-launcher-pill strong {
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;
}

.nits-launcher-pill strong span.nits-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00e599;
    box-shadow: 0 0 8px #00e599;
    display: inline-block;
    animation: nitsDotPulse 1.8s infinite;
}

@keyframes nitsDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.nits-launcher-pill small {
    font-size: 11px;
    color: #94a3b8;
}

@media (max-width: 600px) {
    .nits-launcher-pill {
        display: none;
    }
    .nits-voice-launcher {
        bottom: 20px;
        left: 15px;
    }
    .nits-launcher-orb {
        width: 52px;
        height: 52px;
    }
    .nits-launcher-orb i {
        font-size: 20px;
    }
}

/* ==========================================================================
   2. MAIN VOICE BOARD CONTAINER & MODAL
   ========================================================================== */
.nits-voice-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.65);
    backdrop-filter: blur(8px);
    z-index: 99990;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 16px;
    font-family: var(--nits-font);
}

.nits-voice-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nits-voice-board {
    position: relative;
    width: 100%;
    max-width: 759px;
    height: min(720px, calc(100dvh - 32px));
    background: var(--nits-surface-glass);
    border: 1px solid var(--nits-border);
    border-radius: var(--nits-radius);
    box-shadow: var(--nits-shadow);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--nits-text);
}

.nits-voice-overlay.active .nits-voice-board {
    transform: translateY(0) scale(1);
}

/* ==========================================================================
   3. BOARD HEADER
   ========================================================================== */
.nits-board-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--nits-border);
    background: rgba(15, 23, 42, 0.65);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
}

.nits-board-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nits-brand-avatar {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff, #8b5cf6);
    padding: 2px;
    box-shadow: 0 0 16px var(--nits-primary-glow);
    flex-shrink: 0;
}

.nits-brand-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.nits-brand-online-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00e599;
    border: 2px solid #0f172a;
    box-shadow: 0 0 8px #00e599;
}


.nits-brand-meta h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.nits-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--nits-secondary);
    font-weight: 600;
}

.nits-status-badge .nits-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--nits-secondary);
    box-shadow: 0 0 8px var(--nits-secondary);
}

.nits-status-badge.listening {
    color: #00d4ff;
}
.nits-status-badge.listening .nits-status-dot {
    background: #00d4ff;
    box-shadow: 0 0 8px #00d4ff;
    animation: nitsDotPulse 1.2s infinite;
}

.nits-status-badge.speaking {
    color: #e2b04e;
}
.nits-status-badge.speaking .nits-status-dot {
    background: #e2b04e;
    box-shadow: 0 0 8px #e2b04e;
    animation: nitsDotPulse 0.8s infinite;
}

.nits-board-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nits-lang-toggle-btn {
    background: rgba(0, 212, 255, 0.12);
    border: 1px solid rgba(0, 212, 255, 0.4);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 11px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    font-family: var(--nits-font);
}

.nits-lang-toggle-btn:hover {
    background: rgba(0, 212, 255, 0.25);
    border-color: var(--nits-primary);
    box-shadow: 0 0 12px var(--nits-primary-glow);
    transform: translateY(-1px);
}

.nits-lang-toggle-btn .nits-lang-flag {
    font-size: 13px;
}

.nits-btn-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--nits-border);
    color: var(--nits-text-muted);
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s ease;
}

.nits-btn-icon:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
}

.nits-btn-icon.active {
    background: rgba(0, 212, 255, 0.15);
    color: var(--nits-primary);
    border-color: var(--nits-primary);
}

/* Tab Switcher: Voice Board vs Chat History vs Services vs Products */
.nits-view-toggle {
    display: flex;
    background: rgba(0, 0, 0, 0.45);
    padding: 3px;
    border-radius: 10px;
    border: 1px solid var(--nits-border);
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    max-width: 320px;
}

.nits-view-toggle::-webkit-scrollbar {
    display: none;
}

.nits-view-toggle button {
    border: none;
    background: none;
    color: var(--nits-text-muted);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--nits-font);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nits-view-toggle button.active {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.25), rgba(139, 92, 246, 0.25));
    color: #ffffff;
    border: 1px solid rgba(0, 212, 255, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}


/* ==========================================================================
   4. VOICE BOARD VIEW (Central Interactive Voice Hub)
   ========================================================================== */
.nits-view-voice {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 24px 20px 16px;
    position: relative;
    overflow-y: auto;
}

/* Central AI Hologram Orb & Soundwave Visualizer */
/* Central AI Hologram Female Avatar Stage & Soundwave Visualizer */
.nits-orb-wrapper {
    position: relative;
    width: 175px;
    height: 175px;
    margin: 8px 0 2px;
    display: grid;
    place-items: center;
}

.nits-orb-glow {
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--nits-primary-glow) 0%, rgba(139, 92, 246, 0.25) 50%, transparent 70%);
    filter: blur(25px);
    opacity: 0.7;
    animation: nitsOrbGlow 4s ease-in-out infinite alternate;
}

@keyframes nitsOrbGlow {
    0% { transform: scale(0.9); opacity: 0.5; }
    100% { transform: scale(1.15); opacity: 0.85; }
}

.nits-voice-sphere {
    position: relative;
    width: 136px;
    height: 136px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #00d4ff, #8b5cf6 50%, #0077ff);
    box-shadow: 0 10px 35px rgba(0, 119, 255, 0.4), 0 0 25px var(--nits-primary-glow);
    display: grid;
    place-items: center;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 3;
}

.nits-voice-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform 0.3s ease;
}

.nits-voice-sphere:hover {
    transform: scale(1.05);
}

.nits-voice-sphere:hover .nits-voice-avatar-img {
    transform: scale(1.04);
}

.nits-avatar-mic-badge {
    position: absolute;
    bottom: 4px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #00d4ff;
    color: #080d1a;
    display: grid;
    place-items: center;
    font-size: 15px;
    border: 2.5px solid #0f172a;
    box-shadow: 0 0 14px rgba(0, 212, 255, 0.9);
    transition: all 0.3s ease;
    z-index: 5;
}

.nits-voice-sphere.listening {
    background: linear-gradient(135deg, #00e599, #00d4ff);
    box-shadow: 0 0 45px rgba(0, 229, 153, 0.7);
    animation: nitsListenPulse 1.4s infinite ease-in-out;
}

.nits-voice-sphere.listening .nits-avatar-mic-badge {
    background: #00e599;
    box-shadow: 0 0 18px #00e599;
}

.nits-voice-sphere.speaking {
    background: linear-gradient(135deg, #f59e0b, #ec4899);
    box-shadow: 0 0 50px rgba(245, 158, 11, 0.75);
    animation: nitsSpeakPulse 1.1s infinite ease-in-out;
}

.nits-voice-sphere.speaking .nits-avatar-mic-badge {
    background: #f59e0b;
    color: #fff;
    box-shadow: 0 0 18px #f59e0b;
}

.nits-assistant-badge {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: #00d4ff;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

@keyframes nitsListenPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); box-shadow: 0 0 55px rgba(0, 229, 153, 0.85); }
}

@keyframes nitsSpeakPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); box-shadow: 0 0 60px rgba(245, 158, 11, 0.9); }
}


/* Audio Visualizer Waves inside or below orb */
.nits-wave-canvas-container {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 10px;
}

.nits-wave-bar {
    width: 4px;
    height: 8px;
    border-radius: 99px;
    background: rgba(0, 212, 255, 0.4);
    transition: height 0.15s ease, background 0.2s ease;
}

.nits-wave-canvas-container.active .nits-wave-bar {
    background: var(--nits-primary);
    animation: nitsWaveDance 1s infinite ease-in-out;
}

.nits-wave-canvas-container.speaking .nits-wave-bar {
    background: #e2b04e;
    animation: nitsWaveDance 0.7s infinite ease-in-out;
}

.nits-wave-canvas-container.listening .nits-wave-bar {
    background: var(--nits-secondary);
    animation: nitsWaveDance 0.8s infinite ease-in-out;
}

.nits-wave-bar:nth-child(1) { animation-delay: 0.1s; }
.nits-wave-bar:nth-child(2) { animation-delay: 0.2s; }
.nits-wave-bar:nth-child(3) { animation-delay: 0.3s; }
.nits-wave-bar:nth-child(4) { animation-delay: 0.4s; }
.nits-wave-bar:nth-child(5) { animation-delay: 0.5s; }
.nits-wave-bar:nth-child(6) { animation-delay: 0.6s; }
.nits-wave-bar:nth-child(7) { animation-delay: 0.5s; }
.nits-wave-bar:nth-child(8) { animation-delay: 0.4s; }
.nits-wave-bar:nth-child(9) { animation-delay: 0.3s; }
.nits-wave-bar:nth-child(10) { animation-delay: 0.2s; }
.nits-wave-bar:nth-child(11) { animation-delay: 0.1s; }
.nits-wave-bar:nth-child(12) { animation-delay: 0.25s; }
.nits-wave-bar:nth-child(13) { animation-delay: 0.35s; }
.nits-wave-bar:nth-child(14) { animation-delay: 0.45s; }
.nits-wave-bar:nth-child(15) { animation-delay: 0.15s; }

@keyframes nitsWaveDance {
    0%, 100% { height: 8px; }
    50% { height: 38px; }
}

/* Live Spoken Text Transcript Board */
.nits-live-transcript-box {
    width: 100%;
    min-height: 110px;
    max-height: 150px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--nits-border);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow-y: auto;
    margin: 12px 0;
}

.nits-transcript-speaker {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--nits-primary);
    margin-bottom: 6px;
}

.nits-transcript-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--nits-text);
    font-weight: 500;
}

.nits-transcript-hint {
    font-size: 12px;
    color: var(--nits-text-muted);
    font-style: italic;
}

/* Interruption notification badge when user interrupts bot */
.nits-interrupt-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #e2b04e;
    color: #000;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 10px;
    border-radius: 999px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nits-interrupt-badge.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

/* Topic Category Filter Bar */
.nits-category-bar {
    width: 100%;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 2px 2px 8px;
    scrollbar-width: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 6px;
}

.nits-category-bar::-webkit-scrollbar {
    display: none;
}

.nits-cat-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--nits-border);
    color: var(--nits-text-muted);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 999px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--nits-font);
}

.nits-cat-btn:hover {
    background: rgba(0, 212, 255, 0.15);
    color: #fff;
    border-color: var(--nits-primary);
}

.nits-cat-btn.active {
    background: linear-gradient(135deg, #00d4ff, #0077ff);
    color: #fff;
    border-color: #00d4ff;
    box-shadow: 0 0 12px var(--nits-primary-glow);
}

/* Quick Topic Pills / Shortcuts */
.nits-quick-topics {
    width: 100%;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 6px 2px 10px;
    scrollbar-width: none;
}

.nits-quick-topics::-webkit-scrollbar {
    display: none;
}

.nits-topic-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--nits-border);
    color: var(--nits-text-muted);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--nits-font);
}

.nits-topic-pill:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--nits-primary);
    color: #fff;
    transform: translateY(-2px);
}


/* ==========================================================================
   5. CHAT HISTORY VIEW (Classic Message Stream with Voice Playbacks)
   ========================================================================== */
.nits-view-chat {
    flex: 1;
    display: none;
    flex-direction: column;
    padding: 16px 20px;
    overflow-y: auto;
    gap: 12px;
}

.nits-msg {
    display: flex;
    gap: 10px;
    max-width: 86%;
    animation: nitsMsgFade 0.25s ease-out;
}

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

.nits-msg.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.nits-msg.bot {
    align-self: flex-start;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.nits-msg-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--nits-primary);
    flex-shrink: 0;
    margin-top: 2px;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.35);
}


.nits-msg-bubble {
    padding: 11px 15px;
    border-radius: 16px;
    font-size: 13.5px;
    line-height: 1.5;
    position: relative;
    word-break: break-word;
}

.nits-msg.user .nits-msg-bubble {
    background: linear-gradient(135deg, #0077ff, #00d4ff);
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.nits-msg.bot .nits-msg-bubble {
    background: var(--nits-surface-2);
    border: 1px solid var(--nits-border);
    color: var(--nits-text);
    border-bottom-left-radius: 4px;
}

.nits-msg-bubble table {
    width: 100%;
    margin: 8px 0;
    border-collapse: collapse;
    font-size: 12px;
}

.nits-msg-bubble th, .nits-msg-bubble td {
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-align: left;
}

.nits-msg-bubble th {
    background: rgba(0, 0, 0, 0.25);
    color: var(--nits-primary);
}

.nits-msg-bubble ul, .nits-msg-bubble ol {
    margin: 6px 0 6px 18px;
    padding: 0;
}

.nits-msg-bubble li {
    margin-bottom: 4px;
}

.nits-msg-bubble a {
    color: var(--nits-primary);
    text-decoration: underline !important;
}

.nits-msg-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 4px;
    font-size: 11px;
}

.nits-msg-play-btn {
    background: none;
    border: none;
    color: var(--nits-primary);
    cursor: pointer;
    padding: 2px 5px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    opacity: 0.8;
}

/* ==========================================================================
   5B. SERVICES DIRECTORY & RATE CARDS VIEW (All 9 Services Pages)
   ========================================================================== */
.nits-view-services {
    flex: 1;
    display: none;
    flex-direction: column;
    padding: 14px 16px;
    overflow-y: auto;
    gap: 12px;
}

.nits-services-nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 2px 2px 8px;
    scrollbar-width: none;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nits-services-nav::-webkit-scrollbar {
    display: none;
}

.nits-service-subtab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--nits-border);
    color: var(--nits-text-muted);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--nits-font);
}

.nits-service-subtab:hover {
    background: rgba(0, 212, 255, 0.15);
    color: #fff;
    border-color: var(--nits-primary);
}

.nits-service-subtab.active {
    background: linear-gradient(135deg, #00d4ff, #0077ff);
    color: #fff;
    border-color: #00d4ff;
    box-shadow: 0 0 12px var(--nits-primary-glow);
}

.nits-service-detail-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nits-service-card {
    background: var(--nits-surface-2);
    border: 1px solid var(--nits-border);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.2s, border-color 0.2s;
}

.nits-service-card:hover {
    border-color: rgba(0, 212, 255, 0.5);
    transform: translateY(-2px);
}

.nits-service-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.nits-service-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nits-service-card-price {
    font-size: 14px;
    font-weight: 800;
    color: #00e599;
    background: rgba(0, 229, 153, 0.12);
    border: 1px solid rgba(0, 229, 153, 0.35);
    padding: 4px 10px;
    border-radius: 8px;
    white-space: nowrap;
}

.nits-service-card-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: var(--nits-text-muted);
}

.nits-service-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nits-service-card-desc {
    font-size: 12.5px;
    color: #cbd5e1;
    line-height: 1.45;
}

.nits-service-features-list {
    margin: 4px 0 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    font-size: 11.5px;
    color: #94a3b8;
}

@media (max-width: 500px) {
    .nits-service-features-list {
        grid-template-columns: 1fr;
    }
}

.nits-service-features-list li {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nits-service-features-list li i {
    color: #00e599;
    font-size: 13px;
    flex-shrink: 0;
}

.nits-service-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.nits-btn-book-demo-mini {
    background: linear-gradient(135deg, #00d4ff, #0077ff);
    color: #fff !important;
    font-size: 11.5px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(0, 119, 255, 0.4);
    transition: transform 0.15s;
}

.nits-btn-book-demo-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 212, 255, 0.5);
}

.nits-btn-ask-service {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--nits-border);
    color: var(--nits-text);
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--nits-font);
    transition: all 0.2s;
}

.nits-btn-ask-service:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--nits-primary);
    color: #fff;
}

/* ==========================================================================
   5C. PROPRIETARY PRODUCTS & LIVE DEMO VIEW
   ========================================================================== */
.nits-view-products {
    flex: 1;
    display: none;
    flex-direction: column;
    padding: 14px 16px;
    overflow-y: auto;
    gap: 12px;
}

.nits-products-head {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(139, 92, 246, 0.12));
    border: 1px solid rgba(0, 212, 255, 0.35);
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-shrink: 0;
}

.nits-products-head-info strong {
    display: block;
    font-size: 13.5px;
    color: #fff;
}

.nits-products-head-info small {
    font-size: 11px;
    color: #94a3b8;
}

.nits-product-card {
    background: var(--nits-surface-2);
    border: 1px solid var(--nits-border);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.nits-product-card:hover {
    border-color: #00d4ff;
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.15);
    transform: translateY(-2px);
}

.nits-product-card.selected-product {
    border-color: #00e599 !important;
    background: linear-gradient(145deg, rgba(0, 229, 153, 0.12), rgba(0, 212, 255, 0.08)) !important;
    box-shadow: 0 0 0 2px rgba(0, 229, 153, 0.45), 0 12px 30px rgba(0, 229, 153, 0.22) !important;
    transform: translateY(-2px);
    position: relative;
    animation: nitsProductPulse 2s infinite alternate;
}

@keyframes nitsProductPulse {
    0% { box-shadow: 0 0 0 2px rgba(0, 229, 153, 0.4), 0 12px 30px rgba(0, 229, 153, 0.2); }
    100% { box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.6), 0 16px 36px rgba(0, 212, 255, 0.3); }
}

.nits-product-selected-badge {
    position: absolute;
    top: -10px;
    right: 14px;
    background: linear-gradient(135deg, #00e599, #00d4ff);
    color: #090d16;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 229, 153, 0.4);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nits-product-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.nits-product-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nits-product-badge {
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.35);
    color: #00d4ff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.nits-product-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.nits-product-price {
    font-size: 14.5px;
    font-weight: 800;
    color: #00e599;
}

.nits-product-amc {
    color: var(--nits-text-muted);
    font-size: 11px;
}

.nits-product-modules {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 4px 0;
}

.nits-module-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
}

.nits-product-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

/* Callout in Chat/Voice for Demos */
.nits-demo-callout {
    margin-top: 10px;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(0, 212, 255, 0.4);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nits-demo-callout strong {
    font-size: 13px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nits-demo-callout p {
    margin: 0;
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.4;
}

.nits-btn-book-demo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #00d4ff, #0077ff);
    color: #ffffff !important;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.nits-btn-book-demo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.55);
}

/* ==========================================================================
   6. BOTTOM CONTROLS & VOICE INPUT BAR
   ========================================================================== */
.nits-board-footer {
    padding: 14px 20px 18px;
    border-top: 1px solid var(--nits-border);
    background: rgba(15, 23, 42, 0.75);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Primary Big Voice Action Button (with Interruption & Barge-in support) */
.nits-voice-action-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
}

.nits-btn-speak {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff, #0077ff);
    color: #ffffff;
    border: 3px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 25px var(--nits-primary-glow);
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 26px;
    outline: none;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, background 0.3s ease;
}

.nits-btn-speak:hover {
    transform: scale(1.08);
}

.nits-btn-speak.listening {
    background: linear-gradient(135deg, #00e599, #059669);
    border-color: #00e599;
    box-shadow: 0 0 35px var(--nits-secondary-glow);
    animation: nitsBtnPulse 1.2s infinite;
}

.nits-btn-speak.speaking {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-color: #f59e0b;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.5);
}

@keyframes nitsBtnPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

/* Stop / Interrupt Button (Allows User to stop bot immediately) */
.nits-btn-interrupt {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    outline: none;
}

.nits-btn-interrupt:hover {
    background: #ef4444;
    color: #fff;
    transform: scale(1.08);
}

/* Text Input Bar (Toggleable / Fallback) */
.nits-text-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--nits-border);
    border-radius: 12px;
    padding: 6px 8px 6px 14px;
    transition: border-color 0.2s ease;
}

.nits-text-input-wrap:focus-within {
    border-color: var(--nits-border-focus);
}

.nits-text-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 13.5px;
    font-family: var(--nits-font);
}

.nits-text-input::placeholder {
    color: var(--nits-text-muted);
}

.nits-btn-send {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--nits-primary);
    border: none;
    color: #080d1a;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 14px;
    transition: transform 0.15s;
    font-weight: 700;
}

.nits-btn-send:hover {
    transform: scale(1.06);
}

/* Footer Status / Branding */
.nits-footer-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--nits-text-muted);
    padding: 0 4px;
}

.nits-footer-info a {
    color: var(--nits-primary);
    text-decoration: none !important;
}

/* ==========================================================================
   7. SETTINGS MODAL (Gemini API Key, Voice Settings, Language)
   ========================================================================== */
.nits-settings-pane {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(25px);
    z-index: 10;
    padding: 24px;
    display: none;
    flex-direction: column;
    overflow-y: auto;
    font-family: var(--nits-font);
}

.nits-settings-pane.open {
    display: flex;
    animation: nitsSlideIn 0.25s ease-out;
}

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

.nits-settings-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--nits-border);
    padding-bottom: 12px;
}

.nits-settings-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nits-setting-group {
    margin-bottom: 18px;
}

.nits-setting-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--nits-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.nits-setting-group .nits-in {
    width: 100%;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--nits-border);
    border-radius: 8px;
    color: #ffffff;
    font-size: 13px;
    outline: none;
    font-family: var(--nits-font);
}

.nits-setting-group .nits-in:focus {
    border-color: var(--nits-primary);
}

.nits-setting-group small {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    color: #64748b;
    line-height: 1.4;
}

.nits-setting-group small a {
    color: var(--nits-primary);
    text-decoration: underline !important;
}

.nits-btn-test-voice {
    background: rgba(0, 212, 255, 0.12);
    border: 1px solid var(--nits-primary);
    color: var(--nits-primary);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--nits-font);
    transition: all 0.2s;
}

.nits-btn-test-voice:hover {
    background: var(--nits-primary);
    color: #080d1a;
}

.nits-btn-save-settings {
    margin-top: auto;
    padding: 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, #00d4ff, #0077ff);
    color: #ffffff;
    border: none;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    font-family: var(--nits-font);
    transition: opacity 0.2s;
}

.nits-btn-save-settings:hover {
    opacity: 0.9;
}

