/* ─── Industry Selector ─── */
.industry-selector {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.industry-selector-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.industry-tabs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.industry-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
}

.industry-tab:hover {
    background: rgba(91, 184, 241, 0.06);
    border-color: rgba(91, 184, 241, 0.2);
    color: var(--text-primary);
}

.industry-tab.active {
    background: rgba(91, 184, 241, 0.12);
    border-color: rgba(91, 184, 241, 0.4);
    color: var(--green-light);
    font-weight: 500;
}

.industry-tab-icon {
    font-size: 1.1rem;
    line-height: 1;
}

/* ─── Demo Section ─── */
.demo-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0d1220 100%);
}

.demo-container {
    position: relative;
    max-width: 1000px;
    margin: 3rem auto 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
}

.demo-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(91, 184, 241, 0.15), transparent 40%, transparent 60%, rgba(99, 102, 241, 0.15));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.demo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.demo-header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.demo-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.demo-dot-red { background: #ef4444; }
.demo-dot-yellow { background: #f59e0b; }
.demo-dot-green { background: #22c55e; }

.demo-connection-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.demo-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}

.demo-status-dot.connected { background: #22c55e; }
.demo-status-dot.connecting { background: #f59e0b; animation: pulse 1.5s infinite; }
.demo-status-dot.disconnected { background: #ef4444; }

/* ─── Chat Layout ─── */
.demo-body {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 0;
    min-height: 500px;
}

.demo-chat {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border);
}

.demo-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 420px;
}

.demo-messages::-webkit-scrollbar {
    width: 4px;
}

.demo-messages::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}

/* Message bubbles */
.demo-msg {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    animation: fadeUp 0.3s ease;
}

.demo-msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 600;
}

.avatar-ai {
    background: rgba(91, 184, 241, 0.15);
    color: var(--green-light);
}

.avatar-user {
    background: rgba(99, 102, 241, 0.15);
    color: #818CF8;
}

.demo-msg-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
    padding: 0.6rem 0.9rem;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    border-top-left-radius: 4px;
    max-width: 85%;
}

.demo-msg.user-msg {
    flex-direction: row-reverse;
}

.demo-msg.user-msg .demo-msg-text {
    background: rgba(99, 102, 241, 0.08);
    border-radius: 10px;
    border-top-right-radius: 4px;
    border-top-left-radius: 10px;
}

/* Typing indicator */
.demo-typing {
    display: flex;
    gap: 4px;
    padding: 0.8rem 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    width: fit-content;
}

.demo-typing-dot {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.demo-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.demo-typing-dot:nth-child(3) { animation-delay: 0.4s; }

/* ─── Input Area ─── */
.demo-input-area {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.demo-text-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.demo-text-input:focus {
    border-color: rgba(91, 184, 241, 0.3);
}

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

.demo-input-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.04);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.demo-input-btn:hover {
    background: rgba(91, 184, 241, 0.1);
    border-color: rgba(91, 184, 241, 0.3);
    color: var(--green-light);
}

.demo-input-btn.recording {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
    animation: pulse 1.5s infinite;
}

.demo-send-btn {
    background: var(--green-light);
    border-color: var(--green-light);
    color: var(--bg-dark);
}

.demo-send-btn:hover {
    background: #7EC8F5;
}

/* ─── Right Panel (Info) ─── */
.demo-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.demo-info h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.demo-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Sample prompts */
.demo-prompts {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.demo-prompt-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.9rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: all 0.2s;
}

.demo-prompt-btn:hover {
    background: rgba(91, 184, 241, 0.05);
    border-color: rgba(91, 184, 241, 0.2);
    color: var(--green-light);
}

.demo-prompt-btn svg {
    flex-shrink: 0;
    opacity: 0.5;
}

/* Session info */
.demo-session-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.demo-session-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.demo-session-value {
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

@media (max-width: 1024px) {
    .demo-body {
        grid-template-columns: 1fr;
    }

    .demo-chat {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .demo-messages {
        max-height: 350px;
    }

    .industry-tabs {
        gap: 0.4rem;
    }

    .industry-tab {
        padding: 0.5rem 0.9rem;
        font-size: 0.8rem;
    }
}
