/* --- Welcome Bot (post-login pitch) --- */
.welcome-bot {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9998;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.welcome-bot.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.welcome-bot-bubble {
    background: linear-gradient(135deg, #1a1828 0%, #15131f 100%);
    border: 1px solid rgba(127, 119, 221, 0.45);
    border-radius: 16px;
    padding: 16px 18px;
    max-width: 280px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    color: #fff;
}
.welcome-bot-bubble::after {
    content: '';
    position: absolute;
    right: -8px;
    bottom: 22px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 10px;
    border-color: transparent transparent transparent rgba(127, 119, 221, 0.45);
}
.welcome-bot-bubble::before {
    content: '';
    position: absolute;
    right: -7px;
    bottom: 22px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 10px;
    border-color: transparent transparent transparent #15131f;
    z-index: 1;
}

.welcome-bot-text {
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.92);
}
.welcome-bot-text strong {
    background: linear-gradient(135deg, #9089f5 0%, #ff90e8 50%, #ffc900 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-bot-actions {
    display: flex;
    gap: 8px;
}
.welcome-bot-btn {
    flex: 1;
    padding: 9px 14px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease;
    font-family: inherit;
}
.welcome-bot-btn:hover { opacity: 0.92; transform: translateY(-1px); }
.welcome-bot-btn-primary {
    background: linear-gradient(135deg, #9089f5 0%, #ff90e8 100%);
    color: #fff;
}
.welcome-bot-btn-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.18);
}

.welcome-bot-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    font-size: 1rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}
.welcome-bot-close:hover { color: #fff; }

/* The pet itself */
.welcome-bot-pet {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9089f5 0%, #ff90e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    box-shadow: 0 12px 30px rgba(144, 137, 245, 0.4);
    animation: bot-bob 2.4s ease-in-out infinite;
    cursor: pointer;
    user-select: none;
}
@keyframes bot-bob {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-6px) rotate(2deg); }
}

/* Walk-in animation when the pet first appears */
.welcome-bot.visible .welcome-bot-pet {
    animation: bot-walkin 0.6s ease-out, bot-bob 2.4s ease-in-out 0.6s infinite;
}
@keyframes bot-walkin {
    0% { transform: translateX(120px) rotate(-30deg); }
    60% { transform: translateX(-10px) rotate(8deg); }
    100% { transform: translateX(0) rotate(-2deg); }
}

@media (max-width: 480px) {
    .welcome-bot {
        right: 12px;
        bottom: 12px;
        left: 12px;
    }
    .welcome-bot-bubble {
        max-width: none;
        flex: 1;
    }
}
