/* ══════════════════════════════════════
   Vaikathukaran Floating Widget
   Bottom-right, mirrors .back-to-top (now bottom-left)
   ══════════════════════════════════════ */

.vk-widget-mount {
    position: fixed;
    right: 18px;
    bottom: 22px;
    bottom: calc(22px + env(safe-area-inset-bottom, 0px));
    width: 60px;
    height: 60px;
    z-index: 9990;
}

.vk-widget {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid #111;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    touch-action: manipulation;
    animation: vkBreathe 3.4s ease-in-out infinite;
    transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s ease;
}

.vk-widget:hover,
.vk-widget:focus-visible {
    transform: scale(1.08) rotate(-4deg);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
    animation-play-state: paused;
}

.vk-widget:active {
    transform: scale(.96) rotate(0deg);
}

@keyframes vkBreathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.045); }
}

.vk-widget-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.vk-widget-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: grayscale(1) contrast(1.05);
}

.vk-widget-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #111;
    border: 2px solid #fff;
    display: none;
}

.vk-widget-dot.show {
    display: block;
    animation: vkDotPop .4s ease;
}

@keyframes vkDotPop {
    0% { transform: scale(0); }
    70% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.vk-widget-bubble {
    position: absolute;
    right: 72px;
    bottom: 6px;
    white-space: nowrap;
    background: #fff;
    color: #111;
    border: 2px solid #111;
    border-radius: 14px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Anek Malayalam', 'Noto Serif Malayalam', serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
    opacity: 0;
    transform: translateX(-8px);
    pointer-events: none;
    transition: opacity .35s ease, transform .35s ease;
}

.vk-widget-bubble::before {
    content: '';
    position: absolute;
    right: -14px;
    bottom: 14px;
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 8px solid #111;
}

.vk-widget-bubble::after {
    content: '';
    position: absolute;
    right: -11px;
    bottom: 14px;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 7px solid #fff;
}

.vk-widget-bubble.show {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 600px) {
    .vk-widget-mount {
        right: 12px;
        bottom: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        width: 50px;
        height: 50px;
    }
    .vk-widget { border-width: 2px; }
    .vk-widget-dot { width: 11px; height: 11px; }
    .vk-widget-bubble { right: 60px; font-size: 12px; padding: 6px 10px; }
}
