/* HIDE PANEL INITIALLY */
.hidden {
    display: none !important;
}

/* FLOATING CTA BUBBLE */
/* FLOATING CTA BUBBLE (LIGHT GLASS VERSION) */
/* AI GRADIENT BORDER FOR FLOATING CTA BUBBLE */
.floating-cta {
    position: fixed;
    bottom: 25px;
    right: 25px;
    padding: 14px 20px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(18px);
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    z-index: 9999;

    /* required for border animation */
    overflow: visible;
}

/* BORDER ANIMATION WRAPPER */
.floating-cta::before {
    content: "";
    position: absolute;
    inset: -2px;                  /* thickness of border */
    border-radius: 44px;
    background: linear-gradient(
        90deg,
        #ff3b30,
        #ff9500,
        #ffcc00,
        #34c759,
        #5ac8fa,
        #007aff,
        #5856d6,
        #af52de
    );
    background-size: 400 percent 100 percent;
    animation: aiBorder 6s linear infinite;
    z-index: -1;
}

/* CLEAN INNER MASK */
.floating-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(18px);
    border-radius: 40px;
    z-index: -1;
}

/* ANIMATION */
@keyframes aiBorder {
    0 percent { background-position: 0 percent 50 percent; }
    100 percent { background-position: 400 percent 50 percent; }
}

.floating-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}

.cta-icon {
    color: #222;
    font-size: 20px;
}

.cta-text {
    color: #222;
    font-size: 15px;
    font-weight: 600;
}

/* EXPANDING PANEL */
/* IMPROVED PANEL */
/* EXPANDING PANEL (bottom right, always inside screen) */
.cta-panel {
    position: fixed;
    right: 20px;
    bottom: 80px;
    width: 260px;                 /* smaller */
    max-height: 80vh;             /* never taller than screen */
    background: rgba(245,245,245,0.92);
    backdrop-filter: blur(18px) saturate(140%);
    border-radius: 20px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);

    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 999999;
}

.cta-panel.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* HEADER */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    border-radius: 12px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    font-size: 13px;
    font-weight: 600;
    color: #222;
}

/* CLOSE BUTTON */
.close-btn {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: #000;
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

/* VIDEO FRAME – with blue border */
.panel-video {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    margin: 10px 0 12px;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

/* blue glow border */
.panel-video::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    pointer-events: none;
    border: 2px solid #00c3ff;    /* solid blue edge */
    box-shadow: 0 0 10px rgba(0,195,255,0.6);
}

.panel-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CTA BUTTON */
.panel-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 12px;
    border-radius: 14px;
    background: linear-gradient(135deg,#008cff,#00d4ff);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 5px 16px rgba(0,140,255,0.35);
}
