﻿#ber-assistant-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    font-family: 'Segoe UI', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
}

.ber-launcher {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0A284F 0%, #004d99 50%, #0066cc 100%);
    color: white;
    border: none;
    box-shadow: 0 8px 24px rgba(10, 40, 79, 0.4), 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: visible;
}

    .ber-launcher::before {
        content: '';
        position: absolute;
        inset: -2px;
        border-radius: 50%;
        background: linear-gradient(135deg, #0066cc, #00aaff);
        opacity: 0;
        transition: opacity 0.4s ease;
        z-index: -1;
    }

    .ber-launcher:hover {
        transform: scale(1.1) rotate(5deg);
        box-shadow: 0 12px 32px rgba(10, 40, 79, 0.5), 0 6px 12px rgba(0, 102, 204, 0.3);
    }

        .ber-launcher:hover::before {
            opacity: 1;
        }

    .ber-launcher:active {
        transform: scale(0.95);
    }

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid #0066cc;
    border-radius: 50%;
    animation: pulse 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.ber-teaser {
    position: absolute;
    bottom: 85px;
    right: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    padding: 16px 24px;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(10, 40, 79, 0.2), 0 2px 8px rgba(0, 0, 0, 0.1);
    display: none;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    border: 2px solid rgba(0, 102, 204, 0.1);
    animation: slideInFromRight 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(400px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.ber-teaser::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 28px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #f8fbff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.teaser-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.teaser-icon {
    font-size: 24px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.teaser-text {
    font-weight: 600;
    color: #0A284F;
    font-size: 15px;
    background: linear-gradient(135deg, #0A284F 0%, #004d99 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.close-teaser-btn {
    background: rgba(10, 40, 79, 0.1);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    color: #0A284F;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

    .close-teaser-btn:hover {
        background: rgba(10, 40, 79, 0.2);
        transform: rotate(90deg);
    }

.ber-window {
    position: fixed;
    bottom: 110px;
    right: 24px;
    width: 380px;
    height: 580px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(10, 40, 79, 0.3), 0 0 1px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0, 102, 204, 0.1);
    animation: slideUpFade 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideUpFade {
    0% {
        transform: translateY(30px) scale(0.9);
        opacity: 0;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.ber-header {
    background: linear-gradient(135deg, #0A284F 0%, #004d99 50%, #0066cc 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

    .ber-header::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
        animation: headerShine 3s ease-in-out infinite;
    }

@keyframes headerShine {
    0%, 100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-20px, -20px);
    }
}

.header-content {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1;
}

.header-icon {
    font-size: 28px;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.header-title {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.3px;
}

.header-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1;
    backdrop-filter: blur(10px);
}

    .header-close:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: rotate(90deg) scale(1.1);
    }

.ber-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

    .ber-content::-webkit-scrollbar {
        width: 6px;
    }

    .ber-content::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .ber-content::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, #0A284F, #0066cc);
        border-radius: 10px;
    }

        .ber-content::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(180deg, #004d99, #0088ff);
        }

.menu-title {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #0A284F 0%, #0066cc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    animation: fadeInDown 0.5s ease;
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-text {
    font-size: 15px;
    color: #555;
    margin-bottom: 24px;
    line-height: 1.6;
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.menu-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu-btn {
    padding: 16px 20px;
    border: 2px solid rgba(10, 40, 79, 0.1);
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    color: #0A284F;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(10, 40, 79, 0.05);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.5s ease backwards;
}

    .menu-btn:nth-child(1) {
        animation-delay: 0.1s;
    }

    .menu-btn:nth-child(2) {
        animation-delay: 0.2s;
    }

    .menu-btn:nth-child(3) {
        animation-delay: 0.3s;
    }

    .menu-btn:nth-child(4) {
        animation-delay: 0.4s;
    }

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 204, 0.1), transparent);
    transition: left 0.5s ease;
}

.menu-btn:hover::before {
    left: 100%;
}

.menu-btn:hover {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
    border-color: #0066cc;
    transform: translateX(5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.15);
}

.menu-btn:active {
    transform: translateX(5px) scale(0.98);
}

.menu-btn::after {
    content: '\203A';
    font-size: 24px;
    color: #0066cc;
    font-weight: bold;
    transition: all 0.3s ease;
}

.menu-btn:hover::after {
    transform: translateX(5px);
}

.menu-btn.link-btn::after {
    content: '\2197';
    font-size: 18px;
    color: #00aa66;
}

.menu-btn.link-btn:hover {
    background: linear-gradient(135deg, #eaffef 0%, #d5ffea 100%);
    border-color: #00aa66;
    box-shadow: 0 8px 20px rgba(0, 170, 102, 0.15);
}

.menu-btn.link-btn::after {
    content: '↗';
    font-size: 18px;
    color: #00aa66;
}

.ber-footer {
    padding: 16px;
    border-top: 1px solid rgba(10, 40, 79, 0.1);
    text-align: center;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.footer-btn {
    background: linear-gradient(135deg, #0A284F 0%, #004d99 100%);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(10, 40, 79, 0.2);
}

    .footer-btn:hover {
        background: linear-gradient(135deg, #004d99 0%, #0066cc 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 102, 204, 0.3);
    }

    .footer-btn:active {
        transform: translateY(0);
    }

.footer-icon {
    font-size: 16px;
}

.loading-spinner {
    text-align: center;
    color: #0A284F;
    margin-top: 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.spinner-circle {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(10, 40, 79, 0.1);
    border-top: 4px solid #0066cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-spinner p {
    font-weight: 600;
    color: #0A284F;
}

@media (max-width: 480px) {
    .ber-window {
        width: calc(100vw - 32px);
        right: 16px;
        bottom: 100px;
    }

    .ber-teaser {
        right: 0;
        max-width: calc(100vw - 120px);
    }
}
