/* Container */
.xc-contact-bar {
    position: fixed;
    z-index: 9990;
    display: flex;
    flex-direction: column;
    gap: 12px;
    bottom: 22px;
    right: 18px;
    padding: 12px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.22);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

/* Link / Button */
.xc-contact-bar__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    text-decoration: none;
    position: relative;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(59, 130, 246, 0.4);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14), inset 0 0 18px rgba(255, 255, 255, 0.45);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.xc-contact-bar__link:hover {
    transform: translateX(-2px) scale(1.04);
    border-color: rgba(59, 130, 246, 0.62);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.18), inset 0 0 24px rgba(255, 255, 255, 0.62);
}

.xc-contact-bar__link:active {
    transform: translateY(-2px) scale(1.02);
    transition: transform 0.1s;
}

.xc-contact-bar__link:focus {
    outline: 2px solid #1c61e7;
    outline-offset: 2px;
}

/* Radial Hover Effect */
.xc-contact-bar__link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.xc-contact-bar__link:hover::before {
    transform: translate(-50%, -50%) scale(1.5);
}

/* Tooltip (Hover Label) */
@media (hover: hover) and (pointer: fine) {
    .xc-contact-bar__link::after {
        content: attr(aria-label);
        position: absolute;
        top: 50%;
        right: calc(100% + 12px);
        transform: translateY(-50%) translateX(8px);
        opacity: 0;
        visibility: hidden;
        padding: 8px 10px;
        border-radius: 10px;
        background: rgba(15, 23, 42, 0.9);
        color: #fff;
        font-size: 12px;
        font-weight: 700;
        line-height: 1;
        white-space: nowrap;
        pointer-events: none;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
        transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    }
    
    .xc-contact-bar__link:hover::after {
        opacity: 1;
        visibility: visible;
        transform: translateY(-50%) translateX(0);
    }
}

/* Icon / Image */
.xc-contact-bar__icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
    border-radius: 50%;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.xc-contact-bar__link:hover .xc-contact-bar__icon {
    transform: scale(1.08);
}

/* Responsive */
@media (max-width: 768px) {
    .xc-contact-bar {
        bottom: max(10px, env(safe-area-inset-bottom));
        right: max(10px, env(safe-area-inset-right));
        gap: 8px;
        padding: 8px 7px;
    }
    .xc-contact-bar__link { width: 44px; height: 44px; }
    .xc-contact-bar__icon { width: 21px; height: 21px; }
}

@media (max-width: 480px) {
    .xc-contact-bar {
        bottom: max(8px, env(safe-area-inset-bottom));
        right: max(8px, env(safe-area-inset-right));
        gap: 7px;
        padding: 7px 6px;
    }
    .xc-contact-bar__link { width: 40px; height: 40px; }
    .xc-contact-bar__icon { width: 19px; height: 19px; }
}

@media print {
    .xc-contact-bar { display: none !important; }
}
