#habbix-friend-notify-root {
    position: fixed;
    top: 166px;
    right: 15px;
    z-index: 2147483000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(342px, calc(100vw - 30px));
    pointer-events: none;
    font-family: Inter, Arial, sans-serif;
}

.habbix-friend-toast {
    position: relative;
    display: grid;
    grid-template-columns: 58px 1fr 18px;
    align-items: center;
    min-height: 74px;
    padding: 10px 12px 10px 10px;
    overflow: hidden;
    color: #ecfbff;
    border: 1px solid rgba(102, 226, 255, 0.48);
    border-radius: 18px;
    background:
        radial-gradient(circle at 20% 18%, rgba(101, 242, 255, 0.22), transparent 34%),
        linear-gradient(135deg, rgba(7, 16, 38, 0.96), rgba(9, 34, 67, 0.92) 54%, rgba(29, 24, 76, 0.94));
    box-shadow:
        0 20px 46px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 0 28px rgba(62, 213, 255, 0.16);
    backdrop-filter: blur(10px);
    transform: translateX(26px) scale(0.96);
    opacity: 0;
    animation: habbixFriendToastIn 360ms cubic-bezier(.2,.9,.25,1.15) forwards;
}

.habbix-friend-toast::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 219, 76, 0.9), rgba(94, 235, 255, 0.95), rgba(139, 111, 255, 0.75)) top / 100% 3px no-repeat,
        linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.11), transparent);
}

.habbix-friend-toast::after {
    content: "";
    position: absolute;
    right: -26px;
    top: -34px;
    width: 112px;
    height: 112px;
    border-radius: 999px;
    background: rgba(80, 221, 255, 0.12);
    filter: blur(3px);
}

.habbix-friend-toast.is-leaving {
    animation: habbixFriendToastOut 300ms ease forwards;
}

.habbix-friend-avatar-shell {
    position: relative;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 219, 77, 0.22), rgba(0, 204, 255, 0.13));
    border: 1px solid rgba(132, 237, 255, 0.42);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07), 0 0 18px rgba(85, 226, 255, 0.22);
}

.habbix-friend-avatar-shell img {
    width: 54px;
    height: 58px;
    object-fit: contain;
    image-rendering: auto;
    transform: translateY(4px);
    filter: drop-shadow(0 5px 4px rgba(0,0,0,.42));
}

.habbix-friend-online-dot {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #35ff8f;
    border: 2px solid #071326;
    box-shadow: 0 0 14px rgba(53, 255, 143, .9);
}

.habbix-friend-copy {
    min-width: 0;
    padding: 0 8px;
}

.habbix-friend-kicker {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
    color: #79f2ff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(77, 229, 255, .42);
}

.habbix-friend-kicker span {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #ffcf3f;
    box-shadow: 0 0 10px rgba(255, 207, 63, .8);
}

.habbix-friend-name {
    max-width: 205px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 15px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,.45);
}

.habbix-friend-message {
    margin-top: 2px;
    font-size: 12px;
    font-weight: 700;
    color: #b9d8e7;
}

.habbix-friend-pulse {
    position: relative;
    width: 14px;
    height: 44px;
    border-radius: 99px;
    background: linear-gradient(180deg, rgba(255, 211, 72, .95), rgba(75, 227, 255, .95));
    box-shadow: 0 0 16px rgba(75, 227, 255, .55);
}

.habbix-friend-pulse::before,
.habbix-friend-pulse::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(101, 237, 255, .65);
    border-radius: 999px;
    transform: translate(-50%, -50%);
    animation: habbixFriendPulse 1.7s ease-out infinite;
}

.habbix-friend-pulse::after {
    animation-delay: .55s;
}

@keyframes habbixFriendToastIn {
    to { transform: translateX(0) scale(1); opacity: 1; }
}

@keyframes habbixFriendToastOut {
    to { transform: translateX(26px) scale(.96); opacity: 0; }
}

@keyframes habbixFriendPulse {
    from { opacity: .9; width: 12px; height: 12px; }
    to { opacity: 0; width: 48px; height: 48px; }
}

@media (max-width: 700px) {
    #habbix-friend-notify-root {
        top: 118px;
        right: 10px;
        width: min(318px, calc(100vw - 20px));
    }

    .habbix-friend-toast {
        grid-template-columns: 52px 1fr 14px;
        min-height: 68px;
        border-radius: 16px;
    }
}
