#peekobot-toggle {
    position: fixed;
    bottom: 120px;
    right: 24px;
    z-index: 9998;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

#peekobot-toggle:hover {
    transform: scale(1.08);
}

#peekobot-toggle.active {
    background: #0099db;
    box-shadow: 0 4px 16px rgba(0, 153, 219, 0.4);
    color: #fff;
}

#peekobot-toggle img {
    max-width: none;
    width: 70px;
    height: 70px;
    pointer-events: none;
}

#peekobot-toggle .peekobot-close-icon {
    display: none;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

#peekobot-toggle.active img { display: none; }
#peekobot-toggle.active .peekobot-close-icon { display: block; }

#peekobot-container {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 24px;
    z-index: 9997;
    width: 370px;
    max-width: calc(100vw - 48px);
    height: 500px;
    max-height: calc(100svh - 140px);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    overflow: hidden;
    animation: peekobot-slide-up 0.25s ease-out;
}

#peekobot-container.open {
    display: flex;
}

@keyframes peekobot-slide-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

#peekobot-header {
    background: #0099db;
    color: #fff;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

#peekobot-header img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
}

#peekobot-header .peekobot-header-text {
    display: flex;
    flex-direction: column;
}

#peekobot-header .peekobot-header-title {
    font-weight: 700;
    font-size: 1.3rem;
}

#peekobot-header .peekobot-header-sub {
    font-size: 1.0rem;
    opacity: 0.8;
}

#peekobot-inner {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

#peekobot-inner::-webkit-scrollbar { width: 4px; }
#peekobot-inner::-webkit-scrollbar-track { background: transparent; }
#peekobot-inner::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 2px; }

#peekobot {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-response,
.chat-ask {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    border-radius: 12px;
    padding: 10px 14px;
    line-height: 1.5;
    font-size: 1.5rem;
    max-width: 85%;
    word-wrap: break-word;
}

.chat-response.activated,
.chat-ask.activated {
    opacity: 1;
    transform: translateY(0);
}

.chat-response {
    background: #f1f5f9;
    color: #1e293b;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-ask {
    background: #0099db;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

/* Options */
.choices {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease 0.2s, transform 0.3s ease 0.2s;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-self: flex-start;
    max-width: 85%;
}

.choices.activated {
    opacity: 1;
    transform: translateY(0);
}

#peekobot .choice {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 20px;
    border: 1.5px solid #0099db;
    background: #fff;
    color: #0099db;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    text-align: left;
    line-height: 1.3;
}

#peekobot .choice:hover {
    background: #0099db;
    color: #fff;
    opacity: 1;
}

#peekobot .choice.disabled {
    pointer-events: none;
    opacity: 0.4;
}

.restart {
    display: block;
    margin: 16px auto 0;
    padding: 6px 20px;
    border-radius: 20px;
    border: 1.5px solid #94a3b8;
    background: transparent;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.restart:hover {
    background: #f1f5f9;
    color: #334155;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 10px 14px;
    background: #f1f5f9;
    border-radius: 12px;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    width: fit-content;
}

.typing-indicator span {
    width: 7px;
    height: 7px;
    background: #94a3b8;
    border-radius: 50%;
    animation: typing-bounce 1.2s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.15s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing-bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-5px); }
}

@media (max-width: 480px) {
    #peekobot-container {
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100svh;
        max-width: 100vw;
        max-height: 100svh;
        border-radius: 0;
    }

    #peekobot-toggle {
        bottom: 80px;
        right: 16px;
    }
}

@media (max-width: 768px) {
    #peekobot-toggle {
        bottom: 80px;
    }
}