/* ═══════════════════════════════════════════════════════════
   PREMIUM JEWELLERY — RIGHT SIDE FLOATING CONTACT PANEL
   Theme: Luxury Gold & Black  |  Website: Jewellery Showcase
   ═══════════════════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
    --gold-primary: #d4af37;
    --gold-light: #f0d060;
    --gold-dark: #a07c10;
    --panel-bg: #0d0b07;
    --panel-bg-hover: #1a1404;
    --panel-border: rgba(212, 175, 55, 0.30);
    --panel-divider: rgba(212, 175, 55, 0.14);
    --panel-shadow: rgba(0, 0, 0, 0.70);
    --glow-color: rgba(212, 175, 55, 0.55);
}

/* ── Panel Container ── */
.floating-icons-bar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9990;
    display: flex;
    flex-direction: column;
    width: 72px;
    background: var(--panel-bg);
    border-radius: 18px 0 0 18px;
    border: 1px solid var(--panel-border);
    border-right: none;
    box-shadow:
        -6px 0 40px var(--panel-shadow),
        -2px 0 12px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(212, 175, 55, 0.08),
        inset 0 -1px 0 rgba(212, 175, 55, 0.08);
    overflow: hidden;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s ease,
        opacity 0.5s ease;

    /* Entry animation */
    animation: panel-entry 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;
}

@keyframes panel-entry {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

/* Gold gradient left-edge accent bar */
.floating-icons-bar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg,
            transparent 0%,
            var(--gold-primary) 20%,
            var(--gold-light) 50%,
            var(--gold-primary) 80%,
            transparent 100%);
    border-radius: 0 0 0 0;
    z-index: 1;
}

/* Shimmering top & bottom edge lines */
.floating-icons-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px 0 0 18px;
    background: linear-gradient(180deg,
            rgba(212, 175, 55, 0.05) 0%,
            transparent 30%,
            transparent 70%,
            rgba(212, 175, 55, 0.05) 100%);
    pointer-events: none;
    z-index: 0;
}

/* ── Each button cell ── */
.fi-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 6px 10px;
    cursor: pointer;
    text-decoration: none;
    z-index: 2;
    transition: background 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

.fi-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.fi-btn:hover::after {
    opacity: 1;
}

/* Gold divider between cells */
.fi-btn+.fi-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    opacity: 0.25;
}

/* ── Icon circle wrapper ── */
.fi-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #1f1800, #2a2000);
    border: 1.5px solid rgba(212, 175, 55, 0.35);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(212, 175, 55, 0.15),
        0 0 0 0 rgba(212, 175, 55, 0);
    margin-bottom: 8px;
    transition:
        transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.35s ease,
        border-color 0.35s ease,
        background 0.35s ease;
    position: relative;
    overflow: hidden;
}

/* Shimmer sweep on icon circle */
.fi-icon-circle::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(105deg,
            transparent 40%,
            rgba(255, 255, 255, 0.12) 50%,
            transparent 60%);
    transform: skewX(-15deg);
    animation: icon-shimmer 4s ease-in-out infinite;
}

.fi-btn:nth-child(1) .fi-icon-circle::after {
    animation-delay: 0s;
}

.fi-btn:nth-child(2) .fi-icon-circle::after {
    animation-delay: 1.3s;
}

.fi-btn:nth-child(3) .fi-icon-circle::after {
    animation-delay: 2.6s;
}

@keyframes icon-shimmer {

    0%,
    70%,
    100% {
        left: -75%;
        opacity: 0;
    }

    40% {
        left: 125%;
        opacity: 1;
    }
}

/* SVG icon inside circle */
.fi-icon-circle svg {
    width: 21px;
    height: 21px;
    fill: var(--gold-primary);
    transition: fill 0.25s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.4));
}

/* ── Hover states ── */
.fi-btn:hover .fi-icon-circle {
    transform: scale(1.1) translateY(-2px);
    background: linear-gradient(145deg, #2a2000, #3a2d00);
    border-color: var(--gold-primary);
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(212, 175, 55, 0.3),
        0 0 20px rgba(212, 175, 55, 0.4),
        0 0 40px rgba(212, 175, 55, 0.15);
}

.fi-btn:hover .fi-icon-circle svg {
    fill: var(--gold-light);
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(240, 208, 96, 0.7));
}

/* ── Pulse animations (idle) ── */
.fi-btn--phone .fi-icon-circle {
    animation: gold-pulse 3s ease-in-out 0.8s infinite;
}

.fi-btn--email .fi-icon-circle {
    animation: gold-pulse 3s ease-in-out 1.6s infinite;
}

.fi-btn--chat .fi-icon-circle {
    animation: gold-pulse 3s ease-in-out 2.4s infinite;
}

.fi-btn:hover .fi-icon-circle {
    animation: none;
    /* stop pulsing on hover */
}

@keyframes gold-pulse {

    0%,
    100% {
        box-shadow:
            0 4px 16px rgba(0, 0, 0, 0.5),
            inset 0 1px 0 rgba(212, 175, 55, 0.15),
            0 0 0px rgba(212, 175, 55, 0);
    }

    50% {
        box-shadow:
            0 4px 16px rgba(0, 0, 0, 0.5),
            inset 0 1px 0 rgba(212, 175, 55, 0.15),
            0 0 18px rgba(212, 175, 55, 0.45),
            0 0 6px rgba(212, 175, 55, 0.25);
    }
}

/* ── Text label ── */
.fi-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1.2;
}

.fi-label-top {
    font-family: 'Lato', sans-serif;
    font-size: 9.5px;
    font-weight: 500;
    color: rgba(212, 175, 55, 0.65);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.25s ease;
}

.fi-label-bottom {
    font-family: 'Lato', sans-serif;
    font-size: 10px;
    font-weight: 800;
    color: var(--gold-primary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.25s ease;
}

.fi-btn:hover .fi-label-top {
    color: rgba(240, 208, 96, 0.85);
}

.fi-btn:hover .fi-label-bottom {
    color: var(--gold-light);
    text-shadow: 0 0 10px rgba(240, 208, 96, 0.5);
}

/* ── Notification badge on Chat ── */
.fi-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 9px;
    height: 9px;
    background: #ef4444;
    border: 1.5px solid var(--panel-bg);
    border-radius: 50%;
    z-index: 5;
    animation: badge-pulse 1.6s ease-in-out 4s infinite;
}

@keyframes badge-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.75;
    }
}

/* ── Chat Us: same gold styling as Email Us (no green) ── */

/* ── Responsive: Tablet ── */
@media (max-width: 767px) {
    .floating-icons-bar {
        top: 50%;
        transform: translateY(-50%);
        border-radius: 12px 0 0 12px;
        width: 56px;
        animation: panel-entry-mobile 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;
    }

    @keyframes panel-entry-mobile {
        from {
            opacity: 0;
            transform: translateY(-50%) translateX(100%);
        }

        to {
            opacity: 1;
            transform: translateY(-50%) translateX(0);
        }
    }

    .fi-icon-circle {
        width: 32px;
        height: 32px;
        margin-bottom: 5px;
    }

    .fi-icon-circle svg {
        width: 16px;
        height: 16px;
    }

    .fi-btn {
        padding: 9px 5px 7px;
    }

    .fi-label-top {
        font-size: 7.5px;
        letter-spacing: 0.02em;
    }

    .fi-label-bottom {
        font-size: 8px;
        letter-spacing: 0.03em;
    }

    /* Left accent bar thinner on mobile */
    .floating-icons-bar::before {
        width: 2px;
    }
}

/* ── Responsive: Small phones ── */
@media (max-width: 480px) {
    .floating-icons-bar {
        width: 50px;
    }

    .fi-icon-circle {
        width: 28px;
        height: 28px;
        margin-bottom: 4px;
    }

    .fi-icon-circle svg {
        width: 14px;
        height: 14px;
    }

    .fi-btn {
        padding: 8px 4px 6px;
    }

    .fi-label-top {
        font-size: 7px;
    }

    .fi-label-bottom {
        font-size: 7.5px;
    }
}

/* ── Responsive: Very small phones — hide labels, icon only ── */
@media (max-width: 360px) {
    .floating-icons-bar {
        width: 42px;
    }

    .fi-label {
        display: none;
    }

    .fi-icon-circle {
        margin-bottom: 0;
        width: 26px;
        height: 26px;
    }

    .fi-icon-circle svg {
        width: 13px;
        height: 13px;
    }

    .fi-btn {
        padding: 10px 4px;
    }
}