#fab-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 2147483647;
    align-items: center;
    pointer-events: none;
}
#custom-chat-trigger {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    position: relative;
    background: var(--primary);
    color: black;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    cursor: pointer;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    pointer-events: auto;
}
#custom-chat-trigger:hover {
    transform: scale(1.1);
}

#custom-chat-trigger::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2ecc71;
    bottom: 8px;
    left: 8px;
    box-shadow: 0 0 6px rgba(46,204,113,0.7);
    border: 2px solid #18191b;
}
#scroll-top-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(15, 16, 18, 0.8);
    border: 1px solid #333;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    backdrop-filter: blur(4px);
    pointer-events: auto;
}
#scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#scroll-top-btn:hover {
    background: var(--primary);
    color: black;
    border-color: var(--primary);
}

#pboost-chat-widget {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 450px;
    height: 800px;
    max-height: 85vh;
    background: #18191b;
    border: 1px solid var(--primary);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    display: none;
    flex-direction: column;
    z-index: 2147483646;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
    animation: slideUpChat 0.3s ease-out;
}
@keyframes slideUpChat { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.chat-header {
    background: var(--primary);
    color: black;
    padding: 15px;
    font-weight: 800;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}
.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #0f1012;
}
.chat-welcome { margin: auto; text-align: center; color: #666; font-size: 0.95rem; padding: 20px 10px; }
.chat-welcome .chat-welcome-icon { font-size: 2rem; margin-bottom: 10px; color: #333; display: block; }
.chat-footer {
    padding: 15px;
    border-top: 1px solid #333;
    display: flex;
    gap: 10px;
    background: #18191b;
    flex-shrink: 0;
}
.chat-input {
    flex: 1;
    background: #0b0c0d;
    border: 1px solid #333;
    color: white;
    padding: 14px;
    border-radius: 5px;
    outline: none;
    font-size: 1rem;
}
.chat-send-btn {
    background: var(--primary);
    color: black;
    border: none;
    padding: 0 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.chat-body { align-items: flex-start; }

.chat-msg {
    width: auto;
    max-width: 480px; 
    box-sizing: border-box;
    padding: 14px;
    border-radius: 10px;
    font-size: 1rem;
    line-height: 1.6;
    word-wrap: break-word;
    white-space: normal;
}

.chat-msg.user {
    align-self: flex-end;
    background: rgba(255, 181, 44, 0.2);
    border: 1px solid var(--primary);
    color: white;
    border-bottom-right-radius: 0;
}
.chat-msg.admin {
    align-self: flex-start;
    background: #222;
    border: 1px solid #444;
    color: #ccc;
    border-bottom-left-radius: 0;
}

@media (max-width: 480px) {
    .chat-msg { max-width: calc(100% - 40px); }
}
.chat-timestamp { font-size: 0.65rem; color: #666; margin-top: 4px; text-align: right; }

.chat-view { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

#chat-home-view {
    background: linear-gradient(135deg, #18191b 0%, #0f1012 100%);
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0;
    text-align: center;
    overflow-y: auto;
}
.chat-home-logo {
    width: 80px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(255,181,44,0.2));
    animation: floatLogo 3s ease-in-out infinite;
}
@keyframes floatLogo { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.chat-home-card {
    background: #18191b;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}
.chat-home-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,181,44,0.15);
}
.chat-home-card::after {
    content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--primary);
}

.chat-agents-container { display: flex; justify-content: center; margin-bottom: 15px; margin-top: 10px; }
.chat-agent-avatar {
    width: 48px; height: 48px; border-radius: 50%; border: 3px solid #18191b;
    margin-left: -15px; background: #222; object-fit: cover;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.chat-agent-avatar:first-child { margin-left: 0; z-index: 3; }
.chat-agent-avatar:nth-child(2) { z-index: 2; }
.chat-agent-avatar:nth-child(3) { z-index: 1; }

.chat-faq-list { margin-top: 25px; text-align: left; width: 100%; }
.chat-faq-header { font-size: 0.8rem; color: #666; font-weight: bold; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.chat-faq-item {
    background: rgba(255,255,255,0.03);
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #ccc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.2s;
    border: 1px solid transparent;
}
.chat-faq-item:hover { background: rgba(255,255,255,0.08); border-color: var(--primary); color: white; transform: translateX(5px); }
.chat-faq-item i { color: var(--primary); font-size: 0.8rem; opacity: 0.7; }

.chat-bottom-nav {
    display: flex;
    background: #18191b;
    border-top: 1px solid #333;
    height: 60px;
    flex-shrink: 0;
}
.chat-nav-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #666;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: 0.2s;
    font-weight: 600;
}
.chat-nav-btn i { font-size: 1.2rem; margin-bottom: 2px; }
.chat-nav-btn.active { color: var(--primary); background: rgba(255,181,44,0.05); }
.chat-nav-btn:hover { color: #ccc; }
.chat-nav-btn.active:hover { color: var(--primary); }

@media (max-width: 480px) {
    #pboost-chat-widget { width: 90%; right: 5%; bottom: 90px; }
}

.pro-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 0%, #1f2023 0%, #0f1012 80%);
}
.pro-particle {
    position: absolute;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 6px var(--primary);
    animation: floatUp linear infinite;
}
@keyframes floatUp {
    0% { transform: translateY(110vh) scale(0.5); opacity: 0; }
    20% { opacity: 0.5; }
    80% { opacity: 0.5; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

#landing-page, .main-app-content, .container, footer, .card {
    position: relative;
    z-index: 1;
}

header, #header-placeholder {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}