/* Kinix AI Growth Assistant 2030 Design System */
:root {
    --kinix-bg-dark: #070b14;
    --kinix-card-bg: rgba(15, 23, 42, 0.94);
    --kinix-card-border: rgba(56, 189, 248, 0.2);
    --kinix-blue: #2563eb;
    --kinix-cyan: #06b6d4;
    --kinix-cyan-glow: rgba(6, 182, 212, 0.35);
    --kinix-text-main: #f8fafc;
    --kinix-text-muted: #94a3b8;
    --kinix-accent: #38bdf8;
    --kinix-radius: 18px;
    --kinix-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7), 0 0 30px rgba(37, 99, 235, 0.15);
}

.kinix-ai-widget {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Plus Jakarta Sans", "Inter", "Segoe UI", Roboto, sans-serif;
    color: var(--kinix-text-main);
    box-sizing: border-box;
}

.kinix-ai-widget * {
    box-sizing: border-box;
}

/* Floating Launcher Button */
.kinix-ai-launcher-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 50px;
    padding: 8px 18px 8px 10px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(37, 99, 235, 0.25);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: #ffffff;
}

.kinix-ai-launcher-btn:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: var(--kinix-cyan);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(6, 182, 212, 0.4);
}

.kinix-launcher-glow {
    position: absolute;
    inset: -2px;
    border-radius: 52px;
    background: linear-gradient(90deg, #2563eb, #06b6d4, #3b82f6);
    z-index: -1;
    opacity: 0.5;
    filter: blur(8px);
    transition: opacity 0.3s ease;
}

.kinix-launcher-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

.kinix-ai-launcher-btn .kinix-icon-close {
    display: none;
}

.kinix-ai-launcher-btn.active .kinix-icon-chat {
    display: none;
}

.kinix-ai-launcher-btn.active .kinix-icon-close {
    display: block;
}

.kinix-launcher-badge {
    display: flex;
    align-items: center;
    gap: 7px;
}

.kinix-status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
}

.kinix-badge-text {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #f1f5f9;
}

/* Modal Window */
.kinix-ai-modal {
    position: fixed;
    bottom: 95px;
    right: 28px;
    width: 410px;
    max-width: calc(100vw - 32px);
    height: 620px;
    max-height: calc(100vh - 120px);
    background: var(--kinix-card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--kinix-card-border);
    border-radius: var(--kinix-radius);
    box-shadow: var(--kinix-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(15px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.kinix-ai-modal.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Modal Header */
.kinix-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(11, 19, 43, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.kinix-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.kinix-avatar-wrap {
    position: relative;
}

.kinix-avatar {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #1d4ed8 0%, #06b6d4 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

.kinix-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.2;
}

.kinix-agent-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--kinix-text-muted);
    margin-top: 3px;
}

.kinix-live-pill {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #34d399;
    font-weight: 600;
}

.kinix-live-pill .kinix-dot {
    width: 6px;
    height: 6px;
    background: #34d399;
    border-radius: 50%;
    animation: kinixPulse 1.8s infinite;
}

.kinix-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.kinix-lang-selector {
    display: flex;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.kinix-lang-btn {
    background: transparent;
    border: none;
    color: var(--kinix-text-muted);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.kinix-lang-btn.active {
    background: var(--kinix-blue);
    color: #fff;
}

.kinix-btn-close {
    background: transparent;
    border: none;
    color: var(--kinix-text-muted);
    cursor: pointer;
    display: flex;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s;
}

.kinix-btn-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Mode Navigation Bar */
.kinix-mode-nav {
    display: flex;
    background: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px;
}

.kinix-mode-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 4px;
    background: transparent;
    border: none;
    color: var(--kinix-text-muted);
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.kinix-mode-tab:hover {
    color: #fff;
}

.kinix-mode-tab.active {
    background: rgba(37, 99, 235, 0.2);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.25);
}

/* Panels */
.kinix-panels {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.kinix-panel {
    display: none;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
}

.kinix-panel.active {
    display: flex;
}

/* Chat Messages */
.kinix-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.kinix-msg {
    max-width: 86%;
    display: flex;
    flex-direction: column;
}

.kinix-msg-assistant {
    align-self: flex-start;
}

.kinix-msg-user {
    align-self: flex-end;
}

.kinix-msg-bubble {
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.5;
}

.kinix-msg-assistant .kinix-msg-bubble {
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
    border-bottom-left-radius: 4px;
}

.kinix-msg-user .kinix-msg-bubble {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.kinix-msg-time {
    font-size: 10px;
    color: var(--kinix-text-muted);
    margin-top: 4px;
    padding: 0 4px;
}

.kinix-msg-user .kinix-msg-time {
    text-align: right;
}

/* Quick Chips */
.kinix-quick-chips {
    display: flex;
    gap: 8px;
    padding: 8px 18px 10px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.kinix-quick-chips::-webkit-scrollbar {
    display: none;
}

.kinix-chip {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(56, 189, 248, 0.2);
    color: #bae6fd;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 11.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.kinix-chip:hover {
    background: rgba(37, 99, 235, 0.3);
    border-color: #38bdf8;
    color: #fff;
}

/* Chat Form */
.kinix-chat-form {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(11, 19, 43, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    gap: 10px;
}

.kinix-chat-input {
    flex: 1;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 10px 14px;
    color: #fff;
    font-size: 13.5px;
    outline: none;
    transition: border-color 0.2s;
}

.kinix-chat-input:focus {
    border-color: #38bdf8;
}

.kinix-btn-send {
    width: 38px;
    height: 38px;
    background: var(--kinix-blue);
    border: none;
    border-radius: 10px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.kinix-btn-send:hover {
    background: #1d4ed8;
    transform: scale(1.05);
}

/* PANEL 2: Voice */
.kinix-voice-container {
    padding: 24px 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kinix-voice-card {
    text-align: center;
    width: 100%;
}

.kinix-voice-waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 60px;
    margin-bottom: 20px;
}

.kinix-wave-bar {
    width: 5px;
    height: 16px;
    background: #38bdf8;
    border-radius: 10px;
    transition: height 0.15s ease;
}

.kinix-voice-card.active .kinix-wave-bar:nth-child(1) { animation: wave 1s infinite 0.1s; }
.kinix-voice-card.active .kinix-wave-bar:nth-child(2) { animation: wave 1s infinite 0.3s; }
.kinix-voice-card.active .kinix-wave-bar:nth-child(3) { animation: wave 1.2s infinite 0.2s; }
.kinix-voice-card.active .kinix-wave-bar:nth-child(4) { animation: wave 1.1s infinite 0.4s; }
.kinix-voice-card.active .kinix-wave-bar:nth-child(5) { animation: wave 0.9s infinite 0.1s; }
.kinix-voice-card.active .kinix-wave-bar:nth-child(6) { animation: wave 1.3s infinite 0.3s; }
.kinix-voice-card.active .kinix-wave-bar:nth-child(7) { animation: wave 1s infinite 0.2s; }

@keyframes wave {
    0%, 100% { height: 12px; }
    50% { height: 50px; background: #06b6d4; }
}

.kinix-voice-heading {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
}

.kinix-voice-text {
    font-size: 13.5px;
    color: var(--kinix-text-muted);
    line-height: 1.5;
    margin: 0 0 24px;
}

.kinix-voice-transcript-box {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 20px;
    text-align: left;
}

.kinix-transcript-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #38bdf8;
    display: block;
    margin-bottom: 4px;
}

.kinix-live-text {
    margin: 0;
    font-size: 13px;
    color: #f1f5f9;
}

.kinix-btn-voice-primary,
.kinix-btn-voice-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.kinix-btn-voice-primary {
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4);
}

.kinix-btn-voice-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.5);
}

.kinix-btn-voice-danger {
    background: #ef4444;
    color: #fff;
}

.kinix-voice-disclosure {
    margin-top: 24px;
    color: var(--kinix-text-muted);
}

/* Callback & Booking Panels */
.kinix-form-container,
.kinix-booking-container {
    padding: 24px 20px;
    overflow-y: auto;
}

.kinix-card-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 16px;
}

.kinix-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.kinix-field-group label {
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
}

.kinix-field-group input,
.kinix-field-group select {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 10px 12px;
    color: #fff;
    font-size: 13.5px;
    outline: none;
}

.kinix-field-group input:focus,
.kinix-field-group select:focus {
    border-color: #38bdf8;
}

.kinix-btn-submit,
.kinix-btn-book-calendar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    border: none;
    border-radius: 10px;
    padding: 13px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    margin-top: 6px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
    transition: all 0.2s;
}

.kinix-btn-submit:hover,
.kinix-btn-book-calendar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.45);
}

.kinix-booking-card {
    text-align: center;
}

.kinix-badge-call {
    display: inline-block;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    margin-bottom: 12px;
}

.kinix-call-perks {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
    background: rgba(30, 41, 59, 0.5);
    padding: 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.kinix-perk-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12.5px;
    color: #e2e8f0;
}

.kinix-check {
    color: #34d399;
    font-weight: 800;
}

.kinix-subnote {
    font-size: 11px;
    color: var(--kinix-text-muted);
    margin-top: 14px;
}

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

/* Mobile responsive */
@media (max-width: 480px) {
    .kinix-ai-widget {
        bottom: 16px;
        right: 16px;
    }
    .kinix-ai-modal {
        right: 12px;
        left: 12px;
        bottom: 80px;
        width: auto;
        height: 80vh;
    }
}
