.aura-bot-wrap {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9998;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.aura-bot-wrap.is-positioned .aura-bot-trigger {
    cursor: grab;
}

.aura-bot-wrap.is-dragging {
    z-index: 10001;
    transition: none;
}

.aura-bot-wrap.is-dragging .aura-bot-trigger {
    transition: none;
    transform: none;
    cursor: grabbing;
}

.aura-bot-beacon {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: #FFD400;
    opacity: 0.6;
    animation: auraBotPulse 2.4s cubic-bezier(0.24, 0, 0.38, 1) infinite;
    pointer-events: none;
}

@keyframes auraBotPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    70% {
        transform: scale(1.35);
        opacity: 0;
    }
    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

.aura-bot-trigger {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #111111;
    color: #FFD400;
    border: 2px solid #FFD400;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    outline: none;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.aura-bot-trigger > * {
    pointer-events: none;
    -webkit-user-drag: none;
}

.aura-bot-trigger:hover {
    transform: scale(1.08);
    box-shadow: 0 14px 34px rgba(255, 212, 0, 0.3);
}

.aura-bot-trigger-avatar {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aura-bot-trigger-status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 13px;
    height: 13px;
    background: #10b981;
    border: 2.5px solid #111111;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
}

.aura-bot-trigger-close {
    display: none;
    font-size: 32px;
    line-height: 1;
    color: #FFD400;
}

.aura-bot-wrap.is-open .aura-bot-trigger {
    display: none !important;
}

.aura-bot-badge {
    position: absolute;
    bottom: 78px;
    right: 0;
    width: 290px;
    background: #111111;
    color: #fff;
    padding: 14px 36px 14px 16px;
    border-radius: 16px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 212, 0, 0.45);
    font-size: 13px;
    line-height: 1.45;
    animation: auraBotSlideUp 0.35s ease-out;
    cursor: pointer;
}

.aura-bot-badge::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 24px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #111111;
}

.aura-bot-wrap.is-left .aura-bot-badge {
    right: auto;
    left: 0;
}

.aura-bot-wrap.is-left .aura-bot-badge::after {
    right: auto;
    left: 24px;
}

.aura-bot-wrap.is-top .aura-bot-badge {
    bottom: auto;
    top: 78px;
    animation: auraBotSlideDown 0.35s ease-out;
}

.aura-bot-wrap.is-top .aura-bot-badge::after {
    bottom: auto;
    top: -8px;
    border-top: none;
    border-bottom: 8px solid #111111;
}

@keyframes auraBotSlideDown {
    from {
        opacity: 0;
        transform: translateY(-14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.aura-bot-badge-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.aura-bot-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
}

.aura-bot-badge-author {
    font-size: 11px;
    font-weight: 700;
    color: #FFD400;
    letter-spacing: 0.2px;
}

.aura-bot-badge-text {
    color: #f1f5f9;
    font-weight: 500;
}

.aura-bot-badge-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aura-bot-badge-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

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

.aura-bot-window {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 420px;
    height: 640px;
    max-height: calc(100vh - 48px);
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: auraBotWindowIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: bottom right;
    z-index: 9999;
}

@keyframes auraBotWindowIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(12px);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

.aura-bot-header {
    background: #111111;
    color: #ffffff;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #FFD400;
}

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

.aura-bot-avatar {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1.5px solid #FFD400;
}

.aura-bot-avatar svg,
.aura-bot-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.aura-bot-status-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 11px;
    height: 11px;
    background: #10b981;
    border: 2px solid #111111;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(16, 185, 129, 0.9);
}

.aura-bot-title-wrap {
    display: flex;
    flex-direction: column;
}

.aura-bot-title {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.aura-bot-role {
    font-size: 11px;
    font-weight: 600;
    color: #FFD400;
    margin-top: 1px;
}

.aura-bot-subtitle {
    font-size: 10.5px;
    color: #a1a1aa;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.aura-bot-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.aura-bot-action-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #e4e4e7;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.aura-bot-action-btn:hover {
    background: rgba(255, 212, 0, 0.2);
    color: #FFD400;
}

.aura-bot-quick-channels {
    background: #ffffff;
    padding: 10px 14px;
    border-bottom: 1px solid #e2e8f0;
    flex: 0 0 auto;
}

.aura-bot-channels-toggle {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #111111;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.aura-bot-channels-toggle:hover {
    border-color: #FFD400;
    background: #fffbeb;
}

.aura-bot-channels-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #111111;
    color: #FFD400;
    flex-shrink: 0;
}

.aura-bot-channels-toggle-text {
    flex: 1 1 auto;
    text-align: left;
}

.aura-bot-channels-toggle-chevron {
    flex-shrink: 0;
    color: #71717a;
    transition: transform 0.25s ease, color 0.2s ease;
}

.aura-bot-quick-channels.is-expanded .aura-bot-channels-toggle-chevron {
    transform: rotate(180deg);
    color: #111111;
}

.aura-bot-channels-panel {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.aura-bot-quick-channels.is-expanded .aura-bot-channels-panel {
    display: flex;
    animation: auraBotChannelsIn 0.22s ease-out;
}

@keyframes auraBotChannelsIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.aura-bot-channel-chip {
    flex: 1 1 0;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 12px;
    text-decoration: none;
    background: #ffffff;
    color: #111111;
    border: 1.5px solid #e2e8f0;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.aura-bot-channel-chip svg {
    flex: 0 0 auto;
    color: #a1a1aa;
    transition: color 0.2s;
}

.aura-bot-channel-chip:hover {
    border-color: #111111;
    background: #111111;
    color: #FFD400;
}

.aura-bot-channel-chip:hover svg {
    color: #FFD400;
}

.aura-bot-chip-phone {
    flex: 1 1 100%;
}

.aura-bot-messages {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f8fafc;
}

.aura-bot-msg {
    max-width: 86%;
    padding: 12px 15px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.45;
    word-break: break-word;
    animation: auraBotMsgIn 0.25s ease-out;
}

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

.aura-bot-msg-bot {
    align-self: flex-start;
    background: #ffffff;
    color: #111111;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #FFD400;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.aura-bot-msg-user {
    align-self: flex-end;
    background: #111111;
    color: #ffffff;
    border: 1px solid #27272a;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.aura-bot-msg-manager {
    align-self: flex-start;
    background: #111111;
    color: #ffffff;
    border-left: 3.5px solid #FFD400;
    border-bottom-left-radius: 4px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.aura-bot-msg-manager-head {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #FFD400;
    margin-bottom: 5px;
}

.aura-bot-msg-time {
    font-size: 10px;
    opacity: 0.6;
    margin-top: 4px;
    text-align: right;
}

.aura-bot-single-car-card {
    margin-top: 6px;
    width: 100%;
}

.aura-bot-single-car-card .aura-bot-car-card {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 212, 0, 0.4);
}

.aura-bot-cars-container {
    width: 100%;
    max-width: 100%;
    margin-top: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.aura-bot-cars-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 6px 4px 10px 4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.aura-bot-cars-scroll::-webkit-scrollbar {
    height: 4px;
}

.aura-bot-cars-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.aura-bot-cars-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.aura-bot-car-card {
    flex: 0 0 210px;
    width: 210px;
    scroll-snap-align: start;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.aura-bot-car-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.aura-bot-car-photo {
    width: 100%;
    height: 130px;
    background-color: #111111;
    background-size: cover;
    background-position: center;
    position: relative;
}

.aura-bot-car-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(17, 17, 17, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 212, 0, 0.3);
}

.aura-bot-car-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 4px;
}

.aura-bot-car-title {
    font-size: 13px;
    font-weight: 700;
    color: #111111;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 34px;
}

.aura-bot-car-price {
    font-size: 16px;
    font-weight: 800;
    color: #111111;
    margin-top: 4px;
}

.aura-bot-car-credit {
    font-size: 11px;
    font-weight: 700;
    color: #111111;
    background: #fef08a;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
    border: 1px solid rgba(255, 212, 0, 0.5);
}

.aura-bot-car-btn {
    margin-top: 8px;
    display: block;
    text-align: center;
    background: #111111;
    color: #FFD400;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.aura-bot-car-btn:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-1px);
}

.aura-bot-typing {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
}

.aura-bot-typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #FFD400;
    animation: auraBotTypingAnim 1.2s infinite ease-in-out;
}

.aura-bot-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.aura-bot-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes auraBotTypingAnim {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

    .aura-bot-controls {
    padding: 10px 14px 12px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    flex: 0 0 auto;
    position: relative;
    z-index: 4;
    pointer-events: auto;
}

.aura-bot-options-panel {
    display: block;
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.aura-bot-options-toggle {
    display: none;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #d4d4d8;
    border-radius: 10px;
    background: #f8fafc;
    color: #111111;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.aura-bot-options-toggle span:first-child {
    display: inline-flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #FFD400;
    font-size: 17px;
    line-height: 1;
}

.aura-bot-controls.is-quick-collapsed .aura-bot-options-panel {
    display: none;
}

.aura-bot-controls.is-quick-collapsed .aura-bot-options-toggle {
    display: flex;
}

.aura-bot-wrap.has-car-cards .aura-bot-options-panel {
    display: none;
}

.aura-bot-wrap.has-car-cards .aura-bot-options-toggle {
    display: flex;
}

.aura-bot-wrap.has-car-cards .aura-bot-controls:not(.is-quick-collapsed) .aura-bot-options-panel {
    display: block;
}

.aura-bot-wrap.has-car-cards .aura-bot-controls:not(.is-quick-collapsed) .aura-bot-options-toggle {
    display: none;
}


.aura-bot-options-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.aura-bot-btn-option {
    background: #f8fafc;
    color: #111111;
    border: 1.5px solid #e2e8f0;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    line-height: 1.35;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.aura-bot-btn-option-text {
    flex: 1;
}

.aura-bot-btn-option-arrow {
    color: #a1a1aa;
    font-size: 15px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.aura-bot-btn-option:hover {
    background: #111111;
    color: #FFD400;
    border-color: #111111;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.aura-bot-btn-option:hover .aura-bot-btn-option-arrow {
    color: #FFD400;
    transform: translateX(3px);
}

.aura-bot-form {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.aura-bot-input {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 13.5px;
    color: #111111;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.aura-bot-input:focus {
    border-color: #FFD400;
    box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.25);
}

.aura-bot-submit-btn {
    background: #FFD400;
    color: #111111;
    border: none;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    text-align: center;
}

.aura-bot-submit-btn:hover {
    background: #e6bf00;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 212, 0, 0.35);
}

.aura-bot-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.aura-bot-consent {
    font-size: 10.5px;
    color: #71717a;
    line-height: 1.3;
}

.aura-bot-honey {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.aura-bot-chat-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    position: relative;
    z-index: 3;
    flex: 0 0 auto;
}

.aura-bot-chat-input {
    flex: 1;
    min-height: 44px;
    padding: 10px 14px;
    border: 1.5px solid #d4d4d8;
    border-radius: 22px;
    font-size: 13px;
    color: #111111;
    outline: none;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    box-sizing: border-box;
}

.aura-bot-chat-input:focus {
    border-color: #FFD400;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.25);
}

.aura-bot-chat-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #FFD400;
    color: #111111;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.aura-bot-chat-send:hover {
    background: #e6bf00;
    transform: scale(1.06);
    box-shadow: 0 4px 12px rgba(255, 212, 0, 0.4);
}

@media (max-width: 1024px) {
    .aura-bot-wrap:not(.is-positioned) {
        bottom: calc(64px + 16px + env(safe-area-inset-bottom, 0px));
        right: 16px;
    }
}

@media (max-width: 480px) {
    .aura-bot-quick-channels {
        padding: 10px 14px 12px;
    }

    .aura-bot-channels-panel {
        flex-direction: column;
    }

    .aura-bot-channel-chip {
        min-height: 48px;
        padding: 0 14px;
        font-size: 13px;
    }

    .aura-bot-window {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: 0;
        width: 100vw;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        border: none;
        z-index: 10000;
    }
    .aura-bot-badge {
        width: calc(100vw - 48px);
        right: 0;
        bottom: 74px;
    }
}
