/* Nectra floating contact — single visible FAB; menu items only when .active */
.nectra-floating-wrap {
    position: fixed;
    bottom: max(24px, env(safe-area-inset-bottom, 0px));
    right: max(20px, env(safe-area-inset-right, 0px));
    z-index: 9990;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
    pointer-events: none;
}

.nectra-floating-wrap > * {
    pointer-events: auto;
}

.nectra-main-btn {
    position: relative;
    z-index: 3;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #00f2ff;
    color: #050505;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    border: none;
    padding: 0;
    margin: 0;
    box-shadow: 0 4px 16px rgba(0, 242, 255, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    isolation: isolate;
}

.nectra-main-btn:hover,
.nectra-main-btn:focus-visible {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 242, 255, 0.5);
    outline: none;
}

.nectra-main-btn i {
    transition: transform 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    line-height: 1;
}

/* Hidden until opened — no peeking circles */
.nectra-contact-menu {
    position: absolute;
    bottom: calc(56px + 14px);
    right: 0;
    display: none;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin: 0;
    padding: 0;
    z-index: 2;
}

.nectra-contact-menu.active {
    display: flex;
}

.nectra-contact-menu:empty {
    display: none !important;
}

.nectra-contact-item {
    position: relative;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
    opacity: 0;
    transform: translateY(10px) scale(0.85);
    animation: nectra-item-in 0.28s ease forwards;
}

.nectra-contact-menu.active .nectra-contact-item:nth-child(1) { animation-delay: 0.03s; }
.nectra-contact-menu.active .nectra-contact-item:nth-child(2) { animation-delay: 0.07s; }
.nectra-contact-menu.active .nectra-contact-item:nth-child(3) { animation-delay: 0.11s; }
.nectra-contact-menu.active .nectra-contact-item:nth-child(4) { animation-delay: 0.15s; }
.nectra-contact-menu.active .nectra-contact-item:nth-child(5) { animation-delay: 0.19s; }

@keyframes nectra-item-in {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.nectra-contact-item::before {
    content: attr(data-tooltip);
    position: absolute;
    right: calc(100% + 10px);
    background: rgba(10, 10, 10, 0.92);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    border: 1px solid rgba(0, 242, 255, 0.25);
}

.nectra-contact-item:hover::before,
.nectra-contact-item:focus-visible::before {
    opacity: 1;
    transform: translateX(0);
}

.nectra-contact-item:hover {
    color: #fff;
    transform: scale(1.06);
}

.item-whatsapp { background: #25D366; }
.item-call     { background: #2563eb; color: #fff; }
.item-mail     { background: #ea4335; }
.item-ai       {
    background: #7c3aed;
    color: #fff;
    border: none;
    cursor: pointer;
}
.item-ai:hover { color: #fff; }

@media (max-width: 576px) {
    .nectra-floating-wrap {
        bottom: max(18px, env(safe-area-inset-bottom, 0px));
        right: max(14px, env(safe-area-inset-right, 0px));
    }
    .nectra-main-btn {
        width: 52px;
        height: 52px;
        font-size: 22px;
    }
    .nectra-contact-menu {
        bottom: calc(52px + 12px);
    }
    .nectra-contact-item {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        font-size: 17px;
    }
    .nectra-contact-item::before {
        display: none;
    }
}
