/* =============================================
   Kangaroo Chat - Classic Clean UI
   ============================================= */

/* Chat Open Button */
.kangaroo-chat-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    min-width: 44px;
    min-height: 44px;
}
.kangaroo-chat-button:hover {
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.4);
    transform: translateY(-1px);
}
.kangaroo-chat-button .chat-btn-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
/* Legacy icon class */
.kangaroo-chat-button .icon {
    font-size: 1.1em;
    display: inline-block;
}

/* =============================================
   Overlay
   ============================================= */
.kangaroo-chat-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.kangaroo-chat-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.kangaroo-chat-overlay.animate-in { opacity: 1; }
.kangaroo-chat-overlay.animate-out { opacity: 0; }

/* =============================================
   Modal - Classic Centered Chat Window
   ============================================= */
.kangaroo-chat-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    height: 80vh;
    max-height: 700px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.kangaroo-chat-overlay.animate-in .kangaroo-chat-modal {
    transform: translateY(0);
    opacity: 1;
}
.kangaroo-chat-overlay.animate-out .kangaroo-chat-modal {
    transform: translateY(20px);
    opacity: 0;
}

/* =============================================
   Animated Avatar in Chat Header
   ============================================= */
.kangaroo-avatar-animated {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.kangaroo-avatar-animated img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.4);
    transition: box-shadow 0.3s ease;
}

/* Idle — gentle bob */
.kangaroo-avatar-animated.idle img {
    animation: avatarIdle 3s ease-in-out infinite;
}
@keyframes avatarIdle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

/* Thinking — pulse glow */
.kangaroo-avatar-animated.thinking img {
    animation: avatarThinking 1.5s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(102, 126, 234, 0.6);
}
@keyframes avatarThinking {
    0%, 100% { transform: scale(1); box-shadow: 0 0 8px rgba(102, 126, 234, 0.4); }
    50% { transform: scale(1.08); box-shadow: 0 0 16px rgba(102, 126, 234, 0.7); }
}

/* Talking — subtle bounce */
.kangaroo-avatar-animated.talking img {
    animation: avatarTalking 0.6s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
}
@keyframes avatarTalking {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* =============================================
   Header
   ============================================= */
.kangaroo-chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.kangaroo-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.kangaroo-header-info .header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.4);
}
.kangaroo-header-info h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
}
.kangaroo-header-info p {
    margin: 1px 0 0;
    font-size: 0.72rem;
    opacity: 0.85;
}
.kangaroo-header-controls {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}
.kangaroo-control-btn {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.kangaroo-control-btn:hover { background: rgba(255,255,255,0.3); }

.kangaroo-close-btn {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
}
.kangaroo-close-btn:hover { background: rgba(255,255,255,0.35); }

/* Hide confusing mode badge */
.kangaroo-mode-badge { display: none; }

/* =============================================
   Chat Area
   ============================================= */
.kangaroo-chat-area {
    flex: 1;
    overflow-y: auto;
    background: #f7f7f8;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.kangaroo-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    flex: 1;
}

/* =============================================
   Messages - Classic Bubbles
   ============================================= */
.kangaroo-message {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    animation: msgIn 0.2s ease;
}
@keyframes msgIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.kangaroo-message.user {
    flex-direction: row-reverse;
}
.kangaroo-message-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.kangaroo-message-avatar img {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.kangaroo-message-content {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 18px;
    word-wrap: break-word;
    font-size: 0.88rem;
    line-height: 1.55;
    position: relative;
}
.kangaroo-message.bot .kangaroo-message-content {
    background: #fff;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 4px;
}
.kangaroo-message.user .kangaroo-message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 4px;
}
.kangaroo-message-time {
    font-size: 0.65rem;
    margin-top: 4px;
    opacity: 0.5;
}

/* =============================================
   Typing Indicator
   ============================================= */
.kangaroo-typing {
    display: none;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    width: fit-content;
    margin: 0 16px 8px 16px;
}
.kangaroo-typing.active { display: flex; }
.kangaroo-typing-dots { display: flex; gap: 5px; }
.kangaroo-typing-dots span {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #667eea;
    animation: typingDot 1.4s infinite;
}
.kangaroo-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.kangaroo-typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.3; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* =============================================
   Input Area - Clean & Simple
   ============================================= */
.kangaroo-input-area {
    padding: 10px 12px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
}

/* API Setup - hidden by default via JS, compact when shown */
.kangaroo-api-setup {
    background: #fffbeb;
    border: 1px solid #fbbf24;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 8px;
}
.kangaroo-api-setup p {
    margin: 0 0 8px;
    font-weight: 600;
    color: #92400e;
    font-size: 0.82rem;
}
.kangaroo-api-input-group {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}
.kangaroo-api-input-group input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    font-size: 0.85rem;
}
.kangaroo-api-input-group button {
    padding: 8px 14px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
}
.kangaroo-api-setup small { font-size: 0.75rem; }
.kangaroo-api-setup a { color: #667eea; font-weight: 600; }

/* API Toggle Link */
.kangaroo-api-toggle-link {
    display: block;
    text-align: center;
    font-size: 0.72rem;
    color: #9ca3af;
    text-decoration: none;
    padding: 4px 0;
    margin-bottom: 4px;
    transition: color 0.2s;
}
.kangaroo-api-toggle-link:hover { color: #667eea; }

/* Status */
.kangaroo-status {
    display: none;
    padding: 8px;
    border-radius: 8px;
    font-size: 0.82rem;
    margin-bottom: 8px;
    text-align: center;
}
.kangaroo-status.show { display: block; animation: msgIn 0.2s ease; }
.kangaroo-status.error { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }
.kangaroo-status.success { background: #f0fdf4; color: #166534; border: 1px solid #86efac; }
.kangaroo-status.info { background: #eff6ff; color: #1e40af; border: 1px solid #93c5fd; }

/* Quick Replies */
.kangaroo-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 0;
}
.kangaroo-quick-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    font-size: 0.78rem;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.kangaroo-quick-chip:hover {
    background: #eef2ff;
    border-color: #667eea;
    color: #667eea;
}
.kangaroo-quick-chip:active { transform: scale(0.96); }

/* Chat Input Group */
.kangaroo-chat-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}
.kangaroo-chat-input {
    display: none;
}
.kangaroo-chat-input.kangaroo-chat-input-visible {
    display: block;
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    font-size: 0.88rem;
    background: #f9fafb;
    min-width: 0;
    outline: none;
    transition: border-color 0.2s;
}
.kangaroo-chat-input:focus {
    border-color: #667eea;
    background: #fff;
}

/* Send Button */
.kangaroo-btn {
    min-width: 44px; min-height: 44px;
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.kangaroo-btn-send { display: none; }
.kangaroo-btn-send.kangaroo-btn-send-visible {
    display: flex;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}
.kangaroo-btn-send:hover { transform: scale(1.05); }

/* Voice Button - smaller, secondary */
.kangaroo-btn-voice {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    min-width: 44px; min-height: 44px;
    font-size: 0;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s;
}
.kangaroo-btn-voice::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -55%);
    width: 10px; height: 16px;
    background: #6b7280;
    border-radius: 5px;
}
.kangaroo-btn-voice::after {
    content: '';
    position: absolute;
    bottom: 10px; left: 50%;
    transform: translateX(-50%);
    width: 14px; height: 9px;
    border: 2px solid #6b7280;
    border-top: none;
    border-radius: 0 0 7px 7px;
}
.kangaroo-btn-voice > span {
    position: absolute;
    bottom: 8px; left: 50%;
    transform: translateX(-50%);
    width: 10px; height: 2px;
    background: #6b7280;
    border-radius: 1px;
}
.kangaroo-btn-voice:hover {
    background: #eef2ff;
    border-color: #667eea;
}
.kangaroo-btn-voice:hover::before { background: #667eea; }
.kangaroo-btn-voice:hover::after { border-color: #667eea; }
.kangaroo-btn-voice:hover > span { background: #667eea; }
.kangaroo-btn-voice.recording {
    background: #fef2f2;
    border-color: #ef4444;
    animation: pulse 1.5s infinite;
}
.kangaroo-btn-voice.recording::before {
    width: 12px; height: 12px;
    border-radius: 3px;
    background: #ef4444;
    top: 50%; transform: translate(-50%, -50%);
}
.kangaroo-btn-voice.recording::after { display: none; }
.kangaroo-btn-voice.recording > span { display: none; }
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Voice button states — listening (red pulse) */
.kangaroo-btn-voice.voice-listening {
    background: #fef2f2;
    border-color: #ef4444;
    animation: pulse 1.5s infinite;
}
/* Voice button states — processing (blue, disabled) */
.kangaroo-btn-voice.voice-processing {
    background: #eef2ff;
    border-color: #667eea;
    pointer-events: none;
    opacity: 0.7;
}
.kangaroo-btn-voice.voice-processing::before { background: #667eea; }
.kangaroo-btn-voice.voice-processing::after { border-color: #667eea; }
/* Voice button states — speaking (green) */
.kangaroo-btn-voice.voice-speaking {
    background: #f0fdf4;
    border-color: #22c55e;
}
.kangaroo-btn-voice.voice-speaking::before { background: #22c55e; }
.kangaroo-btn-voice.voice-speaking::after { border-color: #22c55e; }
.kangaroo-btn-voice.voice-speaking > span { background: #22c55e; }

/* Live transcript */
.voice-live-transcript {
    font-size: 0.8rem;
    color: #6b7280;
    font-style: italic;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 6px 12px;
    margin-bottom: 6px;
    display: none;
    min-height: 1.4em;
}

/* Voice settings link */
.kangaroo-voice-settings-link {
    display: block;
    text-align: center;
    font-size: 0.72rem;
    color: #9ca3af;
    text-decoration: none;
    padding: 4px 0;
    margin-top: 4px;
    transition: color 0.2s;
}
.kangaroo-voice-settings-link:hover { color: #667eea; }

/* Voice settings panel */
.kangaroo-voice-settings {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 12px;
    margin-top: 6px;
}
.voice-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 0.78rem;
}
.voice-setting-row:last-child { margin-bottom: 0; }
.voice-setting-row label {
    color: #374151;
    font-weight: 500;
    white-space: nowrap;
}
.voice-setting-row input[type="range"] {
    flex: 1;
    max-width: 120px;
    height: 4px;
    accent-color: #667eea;
}
.voice-lang-group {
    display: flex;
    gap: 4px;
}
.voice-lang-btn {
    padding: 3px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    color: #374151;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.voice-lang-btn:hover { border-color: #667eea; color: #667eea; }
.voice-lang-btn.active { background: #667eea; color: white; border-color: #667eea; }
.voice-toggle-btn {
    padding: 3px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    color: #374151;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.voice-toggle-btn:hover { border-color: #22c55e; }
.voice-toggle-btn.active { background: #22c55e; color: white; border-color: #22c55e; }

/* Language toggle in header */
#kangarooLangToggle {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Hide voice label and container wrapper */
.voice-button-container {
    display: contents;
}
.voice-button-label { display: none; }

/* Hide actions bar */
.kangaroo-actions { display: none; }
.kangaroo-action-btn { display: none; }

/* Voice controls - hidden by default */
.kangaroo-voice-controls { display: none; }

/* =============================================
   Markdown in Bot Messages
   ============================================= */
.kangaroo-message.bot .kangaroo-message-content strong {
    font-weight: 700;
    color: #111827;
}
.kangaroo-message.bot .kangaroo-message-content em {
    font-style: italic;
    color: #4b5563;
}
.kangaroo-message.bot .kangaroo-message-content ul,
.kangaroo-message.bot .kangaroo-message-content ol {
    margin: 4px 0;
    padding-left: 18px;
}
.kangaroo-message.bot .kangaroo-message-content li {
    margin-bottom: 2px;
    line-height: 1.5;
}
.kangaroo-message.bot .kangaroo-message-content a {
    color: #667eea;
    text-decoration: underline;
}
.kangaroo-message.bot .kangaroo-message-content a:hover {
    color: #764ba2;
}

/* =============================================
   Conversational Answer Formatting
   ============================================= */
.kangaroo-message.bot .kangaroo-message-content p {
    margin: 0 0 4px;
}

/* =============================================
   Solution Cards - Clean
   ============================================= */
.kangaroo-solution-cards {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}
.kangaroo-solution-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.kangaroo-solution-card:hover {
    border-color: #667eea;
    box-shadow: 0 1px 6px rgba(102, 126, 234, 0.12);
}
.kangaroo-solution-card .ksc-category {
    font-size: 0.65rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.kangaroo-solution-card .ksc-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 3px;
    line-height: 1.3;
}
.kangaroo-solution-card .ksc-summary {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.kangaroo-solution-card .ksc-footer {
    font-size: 0.72rem;
    color: #667eea;
    font-weight: 600;
    margin-top: 5px;
}

/* Emergency Card */
.kangaroo-solution-card.ksc-emergency {
    border-color: #fca5a5;
    background: #fef2f2;
}
.kangaroo-solution-card.ksc-emergency:hover {
    border-color: #ef4444;
}
.ksc-emergency-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 4px;
    background: #ef4444;
    color: white;
    margin-bottom: 3px;
}

/* Meta Chips */
.ksc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 5px;
}
.ksc-chip {
    display: inline-flex;
    font-size: 0.62rem;
    padding: 1px 7px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #6b7280;
    font-weight: 500;
    white-space: nowrap;
}
.ksc-chip-warn {
    background: #fef3c7;
    color: #92400e;
}
.ksc-chip-cost {
    background: #ecfdf5;
    color: #065f46;
}

/* Particle canvas - hidden in classic mode */
#kangarooParticleCanvas { display: none !important; }

/* =============================================
   Business Mini Card - Compact result card
   ============================================= */
.kangaroo-business-cards {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}
.kangaroo-business-mini-card {
    background: #fff;
    border: 1px solid #d1d5db;
    border-left: 3px solid #f59e0b;
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.kangaroo-business-mini-card:hover {
    border-color: #f59e0b;
    box-shadow: 0 1px 6px rgba(245, 158, 11, 0.15);
}
.kangaroo-business-mini-card .kbmc-category {
    font-size: 0.6rem;
    color: #d97706;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 1px;
}
.kangaroo-business-mini-card .kbmc-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
    margin-bottom: 3px;
}
.kangaroo-business-mini-card .kbmc-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.kangaroo-business-mini-card .kbmc-suburb {
    font-size: 0.68rem;
    color: #6b7280;
}
.kangaroo-business-mini-card .kbmc-rating {
    font-size: 0.68rem;
    color: #d97706;
    font-weight: 600;
}
.kangaroo-business-mini-card .kbmc-footer {
    font-size: 0.68rem;
    color: #d97706;
    font-weight: 600;
    margin-top: 4px;
}

/* =============================================
   Voice Snippet - Compact voice result
   ============================================= */
.kangaroo-voice-snippets {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}
.kangaroo-voice-snippet {
    background: #fff;
    border: 1px solid #d1d5db;
    border-left: 3px solid #8b5cf6;
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.kangaroo-voice-snippet:hover {
    border-color: #8b5cf6;
    box-shadow: 0 1px 6px rgba(139, 92, 246, 0.15);
}
.kangaroo-voice-snippet .kvs-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
    margin-bottom: 3px;
}
.kangaroo-voice-snippet .kvs-takeaway {
    font-size: 0.72rem;
    color: #6b7280;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.kangaroo-voice-snippet .kvs-meta {
    display: flex;
    gap: 8px;
    margin-top: 3px;
}
.kangaroo-voice-snippet .kvs-persona {
    font-size: 0.62rem;
    padding: 1px 7px;
    border-radius: 8px;
    background: #f3e8ff;
    color: #7c3aed;
    font-weight: 500;
}
.kangaroo-voice-snippet .kvs-footer {
    font-size: 0.68rem;
    color: #8b5cf6;
    font-weight: 600;
    margin-top: 4px;
}

/* =============================================
   Mobile Responsive
   ============================================= */
@media (max-width: 768px) {
    .kangaroo-chat-overlay.active {
        padding: 0;
        align-items: flex-end;
    }
    .kangaroo-chat-modal {
        max-width: 100%;
        height: 85vh;
        max-height: 85vh;
        border-radius: 16px 16px 0 0;
    }
    .kangaroo-message-content {
        max-width: 85%;
    }
    .kangaroo-quick-chip {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .kangaroo-chat-modal {
        height: 90vh;
        max-height: 90vh;
    }
    .kangaroo-chat-header { padding: 10px 14px; }
    .kangaroo-message-content {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
    /* Compact chat button on small screens */
    .kangaroo-chat-button {
        padding: 8px 12px;
        font-size: 0;
    }
    .kangaroo-chat-button .chat-btn-avatar {
        width: 26px;
        height: 26px;
    }
    .kangaroo-chat-button::after {
        content: 'Roo';
        font-size: 0.82rem;
    }
}

/* Landscape */
@media (max-height: 500px) and (orientation: landscape) {
    .kangaroo-chat-modal {
        height: 90vh;
        max-height: 90vh;
        max-width: 500px;
    }
}

/* =============================================
   Batch 1: Category Filter Chips
   ============================================= */
.kangaroo-filter-chips {
    display: flex;
    gap: 6px;
    padding: 6px 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    flex-shrink: 0;
    border-bottom: 1px solid #f0f0f0;
}
.kangaroo-filter-chips::-webkit-scrollbar { display: none; }
.kangaroo-filter-chip {
    padding: 4px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    color: #6b7280;
    font-size: 0.72rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
    flex-shrink: 0;
}
.kangaroo-filter-chip:hover {
    border-color: #667eea;
    color: #667eea;
}
.kangaroo-filter-chip.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* =============================================
   Batch 2: Streaming Cursor
   ============================================= */
.streaming-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: #667eea;
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink-cursor 0.7s infinite;
}
@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* =============================================
   Batch 3: Feedback Buttons
   ============================================= */
.kangaroo-feedback {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    padding-top: 4px;
    border-top: 1px solid #f0f0f0;
}
.kangaroo-feedback-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.15s;
    padding: 0;
}
.kangaroo-feedback-btn:hover {
    border-color: #667eea;
    color: #667eea;
}
.kangaroo-feedback-btn.active[data-feedback="up"] {
    background: #ecfdf5;
    border-color: #22c55e;
    color: #22c55e;
}
.kangaroo-feedback-btn.active[data-feedback="down"] {
    background: #fef2f2;
    border-color: #ef4444;
    color: #ef4444;
}

/* =============================================
   Batch 3: Comparison Table
   ============================================= */
.kangaroo-compare-table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0;
    font-size: 0.8rem;
}
.kangaroo-compare-table th,
.kangaroo-compare-table td {
    padding: 6px 8px;
    border: 1px solid #e5e7eb;
    text-align: left;
}
.kangaroo-compare-table th {
    background: #f3f4f6;
    font-weight: 600;
    color: #374151;
}
.kangaroo-compare-table td {
    color: #4b5563;
}
.kangaroo-compare-table tr:nth-child(even) td {
    background: #f9fafb;
}

/* =============================================
   Batch 5: Rich Media Links
   ============================================= */
.kbmc-map-link {
    display: inline-block;
    font-size: 0.72rem;
    color: #667eea;
    text-decoration: none;
    padding: 2px 0;
    margin-top: 2px;
}
.kbmc-map-link:hover {
    text-decoration: underline;
}
.ksc-phone-link {
    display: inline-block;
    font-size: 0.78rem;
    color: #dc2626;
    text-decoration: none;
    font-weight: 600;
    padding: 4px 8px;
    margin-top: 4px;
    background: #fef2f2;
    border-radius: 6px;
}
.ksc-phone-link:hover {
    background: #fee2e2;
    text-decoration: underline;
}
