/* =========================================================
   BUZZERBAIK - MODERN GLASS FOOTER
   ========================================================= */

.bb-footer {
    position: relative;

    overflow: hidden;

    color: #dbeafe;

    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(37, 99, 235, .25),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 10%,
            rgba(124, 58, 237, .25),
            transparent 30%
        ),
        radial-gradient(
            circle at 70% 90%,
            rgba(14, 165, 233, .15),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #020617 0%,
            #0f172a 45%,
            #111827 100%
        );
}


/* =========================================================
   DECORATIVE GLOW
   ========================================================= */

.bb-footer::before,
.bb-footer::after {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    border-radius: 50%;

    filter: blur(90px);

    pointer-events: none;

    opacity: .35;
}

.bb-footer::before {
    top: -180px;
    left: -100px;

    background: #2563eb;
}

.bb-footer::after {
    right: -120px;
    bottom: -180px;

    background: #7c3aed;
}


/* =========================================================
   FOOTER MAIN
   ========================================================= */

.bb-footer-main {
    position: relative;

    z-index: 2;

    padding: 85px 0 60px;
}

.bb-footer-main .bb-container {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    padding: 0 25px;
}


/* =========================================================
   FOOTER GRID
   ========================================================= */

.bb-footer-grid {
    display: grid;

    grid-template-columns:
        1.5fr
        1fr
        1fr
        1fr;

    gap: 25px;
}


/* =========================================================
   GLASS CARD
   ========================================================= */

.bb-footer-brand,
.bb-footer-column {
    position: relative;

    padding: 28px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, .08),
            rgba(255, 255, 255, .025)
        );

    border: 1px solid rgba(255, 255, 255, .10);

    border-radius: 20px;

    backdrop-filter: blur(18px);

    -webkit-backdrop-filter: blur(18px);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .08),
        0 20px 50px rgba(0, 0, 0, .18);

    transition:
        transform .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;
}

.bb-footer-brand:hover,
.bb-footer-column:hover {
    transform: translateY(-5px);

    border-color:
        rgba(96, 165, 250, .35);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .12),
        0 25px 60px rgba(0, 0, 0, .25);
}


/* =========================================================
   BRAND
   ========================================================= */

.bb-footer-brand {
    max-width: 100%;
}

.bb-footer-logo {
    display: inline-flex;

    align-items: center;

    margin-bottom: 20px;

    padding: 10px 15px;

    background:
        rgba(255, 255, 255, .95);

    border-radius: 12px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, .15);
}

.bb-footer-logo img {
    display: block;

    width: auto;
    max-width: 180px;
    height: 42px;

    object-fit: contain;
}

.bb-footer-brand p {
    margin: 0;

    color: #94a3b8;

    font-size: 14px;

    line-height: 1.8;
}


/* =========================================================
   COLUMN TITLE
   ========================================================= */

.bb-footer-column h3 {
    position: relative;

    margin: 0 0 22px;

    padding-bottom: 12px;

    color: #ffffff;

    font-size: 16px;
    font-weight: 700;
}

.bb-footer-column h3::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 35px;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            #3b82f6,
            #8b5cf6
        );

    border-radius: 10px;
}


/* =========================================================
   FOOTER LIST
   ========================================================= */

.bb-footer-column ul {
    margin: 0;

    padding: 0;

    list-style: none;
}

.bb-footer-column li {
    margin-bottom: 10px;
}

.bb-footer-column a {
    display: inline-flex;

    align-items: center;

    color: #94a3b8;

    font-size: 13px;

    text-decoration: none;

    transition:
        color .25s ease,
        transform .25s ease;
}

.bb-footer-column a::before {
    content: "→";

    margin-right: 7px;

    color: #3b82f6;

    opacity: 0;

    transform: translateX(-5px);

    transition:
        opacity .25s ease,
        transform .25s ease;
}

.bb-footer-column a:hover {
    color: #ffffff;

    transform: translateX(3px);
}

.bb-footer-column a:hover::before {
    opacity: 1;

    transform: translateX(0);
}


/* =========================================================
   SOCIAL BUTTON
   ========================================================= */

.bb-footer-social {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 25px;
}

.bb-footer-social a {
    position: relative;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 36px;

    padding: 0 13px;

    overflow: hidden;

    color: #cbd5e1;

    background:
        rgba(255, 255, 255, .05);

    border: 1px solid rgba(255, 255, 255, .10);

    border-radius: 9px;

    font-size: 12px;
    font-weight: 600;

    text-decoration: none;

    backdrop-filter: blur(10px);

    transition:
        color .25s ease,
        background .25s ease,
        border-color .25s ease,
        transform .25s ease;
}

.bb-footer-social a::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(59, 130, 246, .5),
            rgba(139, 92, 246, .5)
        );

    opacity: 0;

    transition: opacity .25s ease;
}

.bb-footer-social a:hover {
    color: #ffffff;

    border-color:
        rgba(96, 165, 250, .5);

    transform: translateY(-3px);

    box-shadow:
        0 8px 20px rgba(37, 99, 235, .20);
}

.bb-footer-social a:hover::before {
    opacity: 1;
}


/* =========================================================
   FOOTER BOTTOM
   ========================================================= */

.bb-footer-bottom {
    position: relative;

    z-index: 2;

    border-top:
        1px solid rgba(255, 255, 255, .08);

    background:
        rgba(2, 6, 23, .45);

    backdrop-filter: blur(15px);

    -webkit-backdrop-filter: blur(15px);
}

.bb-footer-bottom-inner {
    width: 100%;
    max-width: 1200px;

    min-height: 75px;

    margin: 0 auto;

    padding: 0 25px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}

.bb-footer-bottom p {
    margin: 0;

    color: #64748b;

    font-size: 12px;
}

.bb-footer-bottom p:last-child {
    color: #94a3b8;
}


/* =========================================================
   GRADIENT TEXT
   ========================================================= */

.bb-footer-column h3,
.bb-footer-brand p {
    position: relative;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .bb-footer-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .bb-footer-main {
        padding: 60px 0 40px;
    }

    .bb-footer-main .bb-container {
        padding: 0 18px;
    }

    .bb-footer-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .bb-footer-brand,
    .bb-footer-column {
        padding: 24px;

        border-radius: 16px;
    }

    .bb-footer-bottom-inner {
        min-height: auto;

        padding: 20px 18px;

        flex-direction: column;

        align-items: flex-start;

        gap: 7px;
    }

}


/* =========================================================
   REDUCE MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .bb-footer-brand,
    .bb-footer-column,
    .bb-footer-social a,
    .bb-footer-column a {
        transition: none;
    }

}


/* =========================================================
   FLOATING CHAT POPUP WIDGET (FIXED)
   ========================================================= */

.bb-chat-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 99999;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Floating Trigger Button */
.bb-chat-trigger {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: #ffffff;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.45);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.bb-chat-trigger:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.55);
}

.bb-chat-trigger:active {
    transform: scale(0.96);
}

/* Icons toggle */
.bb-trigger-icon-chat,
.bb-trigger-icon-close {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.bb-trigger-icon-close {
    position: absolute;
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.bb-chat-trigger.active .bb-trigger-icon-chat {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

.bb-chat-trigger.active .bb-trigger-icon-close {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Pulse Ring Animation */
.bb-trigger-ping {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid #2563eb;
    pointer-events: none;
    animation: bbChatPulse 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.bb-chat-trigger.active .bb-trigger-ping {
    display: none;
}

@keyframes bbChatPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    70%, 100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Notification Badge */
.bb-trigger-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.bb-chat-trigger.active .bb-trigger-badge {
    transform: scale(0);
    opacity: 0;
}

/* Teaser Notification Bubble */
.bb-chat-teaser {
    position: absolute;
    right: 74px;
    bottom: 6px;
    width: max-content;
    max-width: 270px;
    background: #ffffff;
    border-radius: 16px;
    padding: 10px 14px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
    border: 1px solid rgba(226, 232, 240, 0.9);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: bbTeaserIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    user-select: none;
}

.bb-chat-teaser:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.2);
}

@keyframes bbTeaserIn {
    from {
        opacity: 0;
        transform: translateX(15px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.bb-teaser-close {
    position: absolute;
    top: -6px;
    left: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, color 0.2s;
}

.bb-teaser-close:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

.bb-teaser-avatar {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bb-status-dot-ping {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 9px;
    height: 9px;
    background: #22c55e;
    border: 1.5px solid #ffffff;
    border-radius: 50%;
}

.bb-teaser-body strong {
    display: block;
    font-size: 13px;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 2px;
}

.bb-teaser-body p {
    margin: 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.3;
}

/* Chat Popup Window */
.bb-chat-popup {
    position: absolute;
    bottom: 76px;
    right: 0;
    width: 360px;
    max-width: calc(100vw - 32px);
    height: 480px;
    max-height: calc(100vh - 110px);
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 60px -10px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(226, 232, 240, 0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.92);
    pointer-events: none;
    transform-origin: bottom right;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bb-chat-popup.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Header */
.bb-chat-header {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    padding: 16px 18px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.bb-chat-header-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bb-chat-avatar-wrap {
    position: relative;
}

.bb-chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.bb-avatar-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border: 2px solid #2563eb;
    border-radius: 50%;
}

.bb-chat-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.bb-chat-status {
    font-size: 12px;
    color: #e0e7ff;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
}

.bb-pulse-dot {
    width: 7px;
    height: 7px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 8px #4ade80;
    animation: bbBlink 1.5s infinite;
}

@keyframes bbBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.bb-chat-close-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.bb-chat-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Chat Body */
.bb-chat-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bb-chat-time-badge {
    align-self: center;
    background: #e2e8f0;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 2px;
}

.bb-chat-msg {
    display: flex;
    flex-direction: column;
    max-width: 88%;
}

.bb-msg-incoming {
    align-self: flex-start;
}

.bb-msg-content {
    background: #ffffff;
    color: #1e293b;
    padding: 11px 13px;
    border-radius: 16px 16px 16px 4px;
    font-size: 13px;
    line-height: 1.45;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.bb-msg-time {
    display: block;
    font-size: 10.5px;
    color: #94a3b8;
    margin-top: 5px;
    text-align: right;
}

/* Quick Action Chips */
.bb-chat-chips {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bb-chat-chip {
    background: #ffffff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.06);
}

.bb-chat-chip:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    transform: translateX(3px);
    color: #1e40af;
}

/* Footer / Input Bar */
.bb-chat-footer {
    padding: 10px 14px 12px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.bb-chat-form {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    border-radius: 25px;
    padding: 4px 5px 4px 14px;
    border: 1px solid #e2e8f0;
    transition: border-color 0.2s, background 0.2s;
}

.bb-chat-form:focus-within {
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.bb-chat-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 13px;
    color: #0f172a;
    outline: none;
    padding: 6px 0;
}

.bb-chat-input::placeholder {
    color: #94a3b8;
}

.bb-chat-send-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, opacity 0.2s;
    flex-shrink: 0;
}

.bb-chat-send-btn:hover {
    transform: scale(1.06);
}

.bb-chat-footer-note {
    font-size: 11px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 7px;
}

/* Mobile Media Query */
@media (max-width: 480px) {
    .bb-chat-widget {
        right: 16px;
        bottom: 16px;
    }

    .bb-chat-trigger {
        width: 54px;
        height: 54px;
    }

    .bb-chat-teaser {
        right: 64px;
        bottom: 4px;
        max-width: 220px;
        padding: 8px 12px;
    }

    .bb-chat-popup {
        width: calc(100vw - 32px);
        right: 0;
        bottom: 68px;
        height: 440px;
    }
}