/* ===== ОБЁРТКА ДЛЯ ССЫЛКИ И ИКОНКИ ===== */
.signature-link-wrapper {
    position: relative;
    display: inline-flex;
    overflow: visible;
}

/* ===== ИКОНКА «МЯГКАЯ ПЕЧАТЬ» (стеклянная) ===== */
.sign-icon {
    display: none;
    position: absolute;
    top: 5px;
    right: 5px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 6px rgba(21, 101, 192, 0.12), 0 1px 3px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(2px);
    cursor: pointer;
    z-index: 10;
    transition: transform 0.25s cubic-bezier(0.4, 0.0, 0.2, 1), 
                box-shadow 0.25s ease,
                background 0.25s ease;

    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #1565C0;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
    user-select: none;
}

.sign-icon.signed {
    display: flex;
}

.sign-icon:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 12px rgba(21, 101, 192, 0.2), 0 3px 6px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.95);
}

/* ===== ТУЛТИП ===== */
#sign-tooltip {
    position: absolute;
    background: rgba(13, 71, 161, 0.92);
    color: #F5F7FA;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.4;
    white-space: pre-line;
    text-align: left;
    z-index: 999999;
    pointer-events: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    display: none;
    max-width: calc(100vw - 20px);
    word-wrap: break-word;
    backdrop-filter: blur(4px);
    box-sizing: border-box;

    /* Плавное появление */
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#sign-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ===== */
@media (max-width: 768px) {
    .sign-icon {
        top: 3px;
        right: 3px;
        width: 22px;
        height: 22px;
        font-size: 10px;
    }
    #sign-tooltip {
        font-size: 12px;
        padding: 6px 12px;
        max-width: calc(100vw - 30px);
    }
}