:root {
    --im-accent: #2563eb;
    --im-accent-hover: #1746a2;
    --im-bg: #fff;
    --im-bg-alt: #f7fafd;
    --im-border: #e5e7eb;
    --im-radius: 18px;
    --im-shadow: 0 4px 24px rgba(37,99,235,0.08);
    --im-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", Arial, sans-serif;
    --im-text-main: #222;
    --im-text-secondary: #888;
    --im-success: #22c55e;
    --im-danger: #ef4444;
}
.im-float-menu {
    font-family: var(--im-font) !important;
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9999;
    direction: rtl;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.im-float-btn {
    width: 60px;
    height: 60px;
    background: var(--im-accent);
    color: #fff;
    border-radius: 50%;
    box-shadow: var(--im-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    cursor: pointer;
    border: none;
    outline: none;
    transition: background 0.2s, box-shadow 0.2s;
}
.im-float-btn:hover {
    background: var(--im-accent-hover);
    box-shadow: 0 8px 32px rgba(37,99,235,0.13);
}
.im-float-hamburger {
    width: 28px;
    height: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.im-float-hamburger span {
    display: block;
    width: 100%;
    height: 4px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.2s;
}
.im-float-panel {
    display: none;
    position: absolute;
    bottom: 70px;
    right: 0;
    min-width: 260px;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--im-bg);
    border-radius: var(--im-radius);
    box-shadow: var(--im-shadow);
    border: none;
    padding: 16px 10px 12px 10px;
    text-align: right;
    animation: im-float-slide-in 0.22s cubic-bezier(.4,0,.2,1);
    transition: transform 0.2s, opacity 0.2s;
}
.im-float-menu.open .im-float-panel {
    display: block;
}
.im-float-header {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--im-text-main);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}
.im-float-balances {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.im-balance {
    background: var(--im-bg-alt);
    border-radius: 10px;
    padding: 10px 10px 8px 10px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--im-text-main);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 70px;
    box-shadow: 0 1px 6px rgba(37,99,235,0.04);
    border: none;
}
.im-label {
    font-size: 0.92em;
    color: var(--im-text-secondary);
    font-weight: 400;
    margin-top: 2px;
}
.im-float-links {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 12px;
}
.im-float-links a {
    color: var(--im-accent);
    text-decoration: none;
    font-size: 0.98em;
    font-weight: 500;
    padding: 8px 0;
    border-radius: 16px;
    background: var(--im-bg-alt);
    transition: background 0.15s, color 0.15s;
    display: block;
    text-align: right;
    box-shadow: 0 1px 4px rgba(37,99,235,0.03);
    border: none;
}
.im-float-links a:hover {
    background: #eaf1ff;
    color: var(--im-accent-hover);
}
.im-float-notifications {
    margin-bottom: 16px;
}
.im-float-notification-btn {
    background: var(--im-bg-alt);
    color: var(--im-accent);
    border: none;
    border-radius: 16px;
    padding: 8px 0;
    font-size: 0.98em;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 6px;
    width: 100%;
    transition: background 0.18s, color 0.18s;
    box-shadow: 0 1px 4px rgba(37,99,235,0.04);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    text-align: right;
}
.im-float-notification-btn:hover {
    background: #eaf1ff;
    color: var(--im-accent-hover);
}
.im-float-bell-icon {
    width: 22px;
    height: 22px;
    display: inline-block;
    position: relative;
    margin-left: 6px;
}
.im-float-bell-icon::before {
    content: '';
    display: block;
    width: 14px;
    height: 14px;
    background: var(--im-accent);
    border-radius: 50%;
    position: absolute;
    left: 4px;
    top: 4px;
    box-shadow: 0 2px 6px rgba(37,99,235,0.10);
}
.im-float-bell-icon::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    left: 8px;
    top: 8px;
    opacity: 0.7;
}
.im-float-notif-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--im-danger);
    color: #fff;
    border-radius: 50%;
    font-size: 0.98em;
    font-weight: 700;
    text-align: center;
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 2px 6px rgba(239,68,68,0.10);
    z-index: 2;
    border: 2px solid #fff;
}
.im-float-notification-list {
    max-height: 120px;
    overflow-y: auto;
    margin-bottom: 6px;
}
.im-float-notification-item {
    background: #f7fafd;
    color: #2563eb;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.95em;
    margin-bottom: 5px;
    border: none;
    box-shadow: 0 1px 4px rgba(37,99,235,0.04);
    position: relative;
}
.im-float-support-label {
    text-align: center;
    margin-bottom: 2px;
    font-size: 0.88em;
    color: var(--im-accent);
    font-weight: 600;
    letter-spacing: 0.01em;
}
.im-float-support-links {
    margin-top: 4px;
    display: flex;
    gap: 7px;
    justify-content: center;
}
.im-float-support-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--im-bg-alt);
    box-shadow: 0 1px 4px rgba(37,99,235,0.04);
    border: none;
    transition: box-shadow 0.18s, background 0.18s;
    font-size: 1.3em;
    text-decoration: none;
    padding: 0;
}
.im-float-support-btn:hover {
    box-shadow: 0 2px 8px rgba(37,99,235,0.10);
    background: #eaf1ff;
}
.im-float-support-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.1em;
    font-family: inherit;
}
.im-float-support-img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
@media (max-width: 600px) {
    .im-float-menu {
        right: 0;
        bottom: 0;
        width: 100vw;
        align-items: flex-end;
    }
    .im-float-btn {
        position: fixed;
        right: 18px;
        bottom: 18px;
        z-index: 10001;
    }
    .im-float-panel {
        position: fixed;
        right: 0;
        bottom: 0;
        top: 0;
        min-width: 0;
        width: 99vw;
        max-width: 99vw;
        max-height: 98vh;
        border-radius: 0 0 0 18px;
        padding: 12px 2vw 10px 2vw;
        box-shadow: 0 0 0 100vw rgba(0,0,0,0.12);
        border: none;
        transform: translateX(100%);
        opacity: 0;
        transition: transform 0.22s, opacity 0.22s;
        display: block;
    }
    .im-float-menu.open .im-float-panel {
        transform: translateX(0);
        opacity: 1;
        display: block;
    }
    .im-float-balances {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 16px;
    }
    .im-balance {
        min-width: 0;
        width: 100%;
        align-items: flex-start;
        font-size: 0.98rem;
        padding: 8px 8px 6px 8px;
        border-radius: 8px;
    }
    .im-float-links a, .im-float-notification-btn {
        font-size: 0.93em;
        padding: 9px 0;
        border-radius: 12px;
    }
    .im-float-support-btn {
        width: 28px;
        height: 28px;
    }
    .im-float-support-icon, .im-float-support-img {
        width: 16px;
        height: 16px;
    }
} 