.pcb {
    position: fixed;
    bottom: 24px;
    z-index: 9999;
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
}

.pcb-right { right: 24px; }
.pcb-left  { left: 24px; }

/* Main toggle button */
.pcb-toggle {
    position: relative;
    width: 60px;
    height: 60px;
    border: 0;
    border-radius: 50%;
    background: var(--pcb-main, #BDAD7B);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .25s ease, box-shadow .25s ease;
    z-index: 2;
}

.pcb-toggle:hover {
    transform: scale(1.06);
}

.pcb-toggle svg {
    width: 28px;
    height: 28px;
}

.pcb-toggle-open,
.pcb-toggle-close {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .2s ease, transform .25s ease;
}

/* Close (X) icon, drawn with pseudo-elements */
.pcb-toggle-close {
    width: 24px;
    height: 24px;
    opacity: 0;
    transform: rotate(-90deg);
}
.pcb-toggle-close::before,
.pcb-toggle-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}
.pcb-toggle-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.pcb-toggle-close::after  { transform: translate(-50%, -50%) rotate(-45deg); }

.pcb.is-open .pcb-toggle-open  { opacity: 0; transform: rotate(90deg); }
.pcb.is-open .pcb-toggle-close { opacity: 1; transform: rotate(0deg); }

/* Channel list */
.pcb-list {
    position: absolute;
    bottom: 76px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 1;
}
.pcb-right .pcb-list { right: 6px; align-items: flex-end; }
.pcb-left  .pcb-list { left: 6px;  align-items: flex-start; }

.pcb-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.pcb-left .pcb-item { flex-direction: row-reverse; }

/* Fully hide the list until opened so nothing peeks behind the button */
.pcb:not(.is-open) .pcb-list {
    visibility: hidden;
    pointer-events: none;
}

.pcb.is-open .pcb-item {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.pcb.is-open .pcb-item:nth-child(1) { transition-delay: .05s; }
.pcb.is-open .pcb-item:nth-child(2) { transition-delay: .10s; }
.pcb.is-open .pcb-item:nth-child(3) { transition-delay: .15s; }
.pcb.is-open .pcb-item:nth-child(4) { transition-delay: .20s; }
.pcb.is-open .pcb-item:nth-child(5) { transition-delay: .25s; }

.pcb-label {
    background: #fff;
    color: #0d2438;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
}

.pcb-icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
    transition: transform .2s ease;
}
.pcb-item:hover .pcb-icon {
    transform: scale(1.08);
}
.pcb-icon svg {
    width: 24px;
    height: 24px;
}

/* Greeting tooltip */
.pcb-greeting {
    position: absolute;
    bottom: 14px;
    background: #fff;
    color: #0d2438;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 32px 10px 14px;
    border-radius: 10px;
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
    animation: pcbFadeIn .4s ease both;
}
.pcb-right .pcb-greeting { right: 74px; }
.pcb-left  .pcb-greeting { left: 74px; }
.pcb.is-open .pcb-greeting { display: none; }

.pcb-greeting-close {
    position: absolute;
    top: 4px;
    right: 8px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    color: #999;
}

@keyframes pcbFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .pcb { bottom: 16px; }
    .pcb-right { right: 16px; }
    .pcb-left  { left: 16px; }
    .pcb-greeting { display: none; }
}
