
.taxi-chat {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 10000;
    font-family: 'Inter', sans-serif;
}


.taxi-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10001;
}

.taxi-overlay.active {
    opacity: 1;
    visibility: visible;
}


.taxi-launcher {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f5b342, #e09e2b);
    border-radius: 100px;
    padding: 12px 24px 12px 20px;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(245, 180, 66, 0.4);
    z-index: 10002;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.taxi-launcher:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 50px rgba(245, 180, 66, 0.6);
}

.launcher-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f5b342;
    border-radius: 100px;
    opacity: 0.5;
    animation: launcherPulse 2s ease-out infinite;
    z-index: -1;
}

@keyframes launcherPulse {
    0% { transform: scale(1); opacity: 0.5; }
    70% { transform: scale(1.2); opacity: 0; }
    100% { transform: scale(1.2); opacity: 0; }
}

.launcher-icon {
    font-size: 1.8rem;
    margin-right: 10px;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.launcher-text {
    font-weight: 600;
    color: #000;
    font-size: 1rem;
}

.launcher-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 22px;
    height: 22px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}


.taxi-window {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 420px;
    height: 700px;
    background: #1a1a2a;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    z-index: 10002;
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    border: 1px solid rgba(245, 180, 66, 0.3);
    display: flex;
    flex-direction: column;
}

.taxi-window.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: all;
}


.taxi-header {
    position: relative;
    flex-shrink: 0;
    background: #0f0f1a;
    border-bottom: 2px solid #f5b342;
}

.header-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(245, 180, 66, 0.1), transparent);
    z-index: 0;
}

.header-content {
    position: relative;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1;
}

.header-avatar {
    position: relative;
}

.avatar-ring {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #f5b342, #e09e2b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ringRotate 10s linear infinite;
}

@keyframes ringRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.avatar-image {
    width: 44px;
    height: 44px;
    background: #1a1a2a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.avatar-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #00ff00;
    border-radius: 50%;
    border: 2px solid #1a1a2a;
    animation: statusGlow 2s ease-in-out infinite;
}

@keyframes statusGlow {
    0%, 100% { box-shadow: 0 0 10px #00ff00; }
    50% { box-shadow: 0 0 20px #00ff00; }
}

.header-info {
    flex: 1;
}

.header-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.header-subtitle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.header-actions {
    display: flex;
    gap: 8px;
}

.header-action {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.header-action:hover {
    background: #f5b342;
    color: #000;
    transform: rotate(180deg);
}


.taxi-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    background: #0f0f1a;
    scrollbar-width: thin;
    scrollbar-color: #f5b342 rgba(255, 255, 255, 0.05);
}

.taxi-body::-webkit-scrollbar {
    width: 4px;
}

.taxi-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.taxi-body::-webkit-scrollbar-thumb {
    background: #f5b342;
    border-radius: 4px;
}


.chat-date {
    text-align: center;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    margin: 10px 0;
    position: relative;
}

.chat-date::before,
.chat-date::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.chat-date::before { left: 0; }
.chat-date::after { right: 0; }


.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 10px;
}

.message-wrapper {
    display: flex;
    gap: 12px;
    animation: messageSlide 0.3s ease-out;
}

@keyframes messageSlide {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message-out {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    background: rgba(245, 180, 66, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.message-bubble {
    max-width: 70%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 12px 16px;
    position: relative;
}

.message-bubble-in {
    border-bottom-left-radius: 5px;
}

.message-out .message-bubble {
    background: #f5b342;
    border-bottom-right-radius: 5px;
}

.message-sender {
    font-size: 0.7rem;
    color: #f5b342;
    margin-bottom: 4px;
    font-weight: 600;
}

.message-out .message-sender {
    color: #000;
}

.message-content {
    color: white;
    font-size: 0.9rem;
    line-height: 1.5;
}

.message-out .message-content {
    color: #000;
}

.message-time {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 4px;
    text-align: right;
}


.popular-section {
    margin: 15px 0;
}

.popular-title {
    font-size: 0.8rem;
    color: #f5b342;
    margin-bottom: 10px;
    font-weight: 600;
}

.popular-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.popular-chip {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(245, 180, 66, 0.2);
    border-radius: 30px;
    color: white;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.popular-chip:hover {
    background: rgba(245, 180, 66, 0.1);
    border-color: #f5b342;
    transform: translateY(-2px);
}

.chip-icon {
    font-size: 0.9rem;
}


.contacts-section {
    margin: 15px 0;
}

.contacts-title {
    font-size: 0.8rem;
    color: #f5b342;
    margin-bottom: 10px;
    font-weight: 600;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(245, 180, 66, 0.2);
    border-radius: 16px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.contact-card:hover {
    background: rgba(245, 180, 66, 0.1);
    border-color: #f5b342;
    transform: translateY(-2px);
}

.contact-icon {
    font-size: 1.2rem;
}

.contact-label {
    font-size: 0.65rem;
    color: #f5b342;
    text-transform: uppercase;
}

.contact-value {
    font-size: 0.8rem;
    color: white;
    font-weight: 600;
    text-align: center;
}


.typing-indicator {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px;
    margin-top: 10px;
}

.typing-indicator.active {
    display: flex;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: #f5b342;
    border-radius: 50%;
    animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

.typing-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}


.taxi-footer {
    flex-shrink: 0;
    padding: 15px 20px;
    border-top: 1px solid rgba(245, 180, 66, 0.2);
    background: #0f0f1a;
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(245, 180, 66, 0.2);
    border-radius: 60px;
    padding: 4px;
}

.input-wrapper:focus-within {
    border-color: #f5b342;
    box-shadow: 0 0 15px rgba(245, 180, 66, 0.2);
}

.input-action {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.input-action:hover {
    color: #f5b342;
    background: rgba(245, 180, 66, 0.1);
}

.send-action {
    background: #f5b342;
    color: #000;
}

.send-action:hover {
    background: #e09e2b;
    color: #000;
    transform: rotate(360deg);
}

.chat-input {
    flex: 1;
    background: none;
    border: none;
    padding: 8px;
    color: white;
    outline: none;
    font-size: 0.9rem;
}

.chat-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.input-hint {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.2);
    text-align: right;
    margin-top: 5px;
}


.taxi-indicator {
    padding: 8px 20px;
    background: #0a0a14;
    border-top: 1px solid rgba(245, 180, 66, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.indicator-light {
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    animation: indicatorPulse 2s ease-in-out infinite;
}

@keyframes indicatorPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.indicator-text {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
}


@media (max-width: 768px) {
    .taxi-launcher {
        bottom: 20px;
        right: 20px;
        padding: 10px 18px;
    }

    .taxi-window {
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .popular-grid {
        flex-wrap: wrap;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .popular-chip {
        flex: 1 1 calc(50% - 4px);
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .taxi-launcher {
        bottom: 15px;
        right: 15px;
        padding: 8px 15px;
    }

    .launcher-icon {
        font-size: 1.5rem;
    }

    .launcher-text {
        font-size: 0.9rem;
    }

    .header-content {
        padding: 15px;
    }

    .avatar-ring {
        width: 44px;
        height: 44px;
    }

    .avatar-image {
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
    }

    .header-title {
        font-size: 1rem;
    }
}