/* Support Hub - Premium Floating Widget */
:root {
    --support-accent: #00D4AA;
    --support-glass: rgba(13, 17, 23, 0.85);
    --support-border: rgba(255, 255, 255, 0.12);
    --support-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
}

.support-hub {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

/* Floating Action Button */
.support-fab {
    width: 64px;
    height: 64px;
    background: var(--support-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.4);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
    border: none;
    outline: none;
}

.support-fab:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(0, 212, 170, 0.6);
}

.support-fab svg {
    width: 28px;
    height: 28px;
    color: #000;
}

/* Support Menu */
.support-menu {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: var(--support-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--support-border);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--support-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.support-menu.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.support-header {
    margin-bottom: 20px;
}

.support-header h3 {
    font-size: 18px;
    font-weight: 800;
    color: #FFF;
    margin: 0 0 4px 0;
}

.support-header p {
    font-size: 13px;
    color: #888;
    margin: 0;
}

.support-input-group {
    margin-bottom: 12px;
}

.support-input-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--support-border);
    border-radius: 12px;
    padding: 12px 16px;
    color: #FFF;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}

.support-input-group input:focus {
    border-color: var(--support-accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(0, 212, 170, 0.1);
}

/* Fix browser autofill styling */
.support-input-group input:-webkit-autofill,
.support-input-group input:-webkit-autofill:hover, 
.support-input-group input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0px 1000px rgba(20, 25, 35, 1) inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* Visitor Chat Container */
.visitor-chat-container {
    display: flex;
    flex-direction: column;
    height: 350px;
    background: rgba(0,0,0,0.2);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--support-border);
}

.visitor-chat-container .chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.visitor-chat-input-area {
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--support-border);
}

.visitor-input-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.visitor-input-row textarea {
    flex: 1;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--support-border);
    border-radius: 10px;
    padding: 10px 12px;
    color: #FFF;
    font-size: 13px;
    outline: none;
    resize: none;
    max-height: 80px;
}

.visitor-input-row textarea:focus { border-color: var(--support-accent); }

.visitor-input-row button {
    width: 38px;
    height: 38px;
    background: var(--support-accent);
    color: #000;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.visitor-input-row button:hover { filter: brightness(1.1); transform: translateY(-2px); }

/* Chat Bubbles (Shared with Profile) */
.chat-bubble {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.4;
}

.chat-bubble.is-user {
    align-self: flex-end;
    background: var(--support-accent);
    color: #000;
    border-bottom-right-radius: 4px;
}

.chat-bubble.is-admin {
    align-self: flex-start;
    background: rgba(255,255,255,0.05);
    color: #FFF;
    border: 1px solid var(--support-border);
    border-bottom-left-radius: 4px;
}

.bubble-meta {
    font-size: 9px;
    margin-top: 4px;
    opacity: 0.5;
}

/* Visitor Gate (Onboarding) */
.visitor-gate {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--support-glass);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.gate-content {
    width: 100%;
}

.gate-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.gate-content h4 {
    color: #FFF;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 800;
}

.gate-content p {
    color: #888;
    font-size: 13px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.btn-gate-start {
    width: 100%;
    padding: 14px;
    background: var(--support-accent);
    color: #000;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-gate-start:hover {
    filter: brightness(1.1);
    box-shadow: 0 5px 15px rgba(0, 212, 170, 0.3);
}
