/* Support Chat Widget */
.support-chat-fab {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 234, 255, 0.9), rgba(0, 180, 220, 0.9));
    border: 2px solid rgba(0, 234, 255, 0.4);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    z-index: 99998;
    box-shadow: 0 4px 24px rgba(0, 234, 255, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: chatFabPulse 2.5s ease-in-out infinite;
}

.support-chat-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 32px rgba(0, 234, 255, 0.5);
}

/* Navbar Support Button */
.navbar-support-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 234, 255, 0.15), rgba(0, 180, 220, 0.1));
    border: 1px solid rgba(0, 234, 255, 0.3);
    color: #00eaff;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.navbar-support-btn:hover {
    background: linear-gradient(135deg, rgba(0, 234, 255, 0.3), rgba(0, 180, 220, 0.2));
    border-color: rgba(0, 234, 255, 0.5);
    box-shadow: 0 2px 14px rgba(0, 234, 255, 0.3);
}

.navbar-support-btn i {
    font-size: 1rem;
}

@media (max-width: 992px) {
    .navbar-support-btn .navbar-support-label {
        display: none;
    }
    .navbar-support-btn {
        padding: 0.5rem 0.7rem;
    }
}

.support-chat-fab.active {
    animation: none;
    background: linear-gradient(135deg, rgba(255, 80, 80, 0.9), rgba(220, 60, 60, 0.9));
    border-color: rgba(255, 80, 80, 0.4);
    box-shadow: 0 4px 24px rgba(255, 80, 80, 0.35);
}

.support-chat-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    background: #ff3b3b;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid #0a0e1a;
}

@keyframes chatFabPulse {
    0%, 100% { box-shadow: 0 4px 24px rgba(0, 234, 255, 0.35); }
    50% { box-shadow: 0 4px 24px rgba(0, 234, 255, 0.6); }
}

.support-chat-window {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 380px;
    max-width: calc(100vw - 48px);
    max-height: 560px;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 234, 255, 0.2);
    border-radius: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.5);
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.support-chat-window.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.support-chat-header {
    padding: 1rem 1.2rem;
    background: linear-gradient(135deg, rgba(0, 234, 255, 0.15), rgba(0, 180, 220, 0.05));
    border-bottom: 1px solid rgba(0, 234, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.support-chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.support-chat-header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 234, 255, 0.3), rgba(0, 180, 220, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #00eaff;
    border: 1px solid rgba(0, 234, 255, 0.3);
}

.support-chat-header-text h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
}

.support-chat-header-text .status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    margin-right: 4px;
}

.support-chat-header-text span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.support-chat-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.3rem;
    transition: color 0.2s;
}

.support-chat-close:hover {
    color: #fff;
}

.support-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    scroll-behavior: smooth;
}

.support-chat-body::-webkit-scrollbar {
    width: 4px;
}

.support-chat-body::-webkit-scrollbar-thumb {
    background: rgba(0, 234, 255, 0.3);
    border-radius: 2px;
}

.support-chat-msg {
    max-width: 80%;
    padding: 0.6rem 0.9rem;
    border-radius: 14px;
    font-size: 0.85rem;
    line-height: 1.4;
    word-wrap: break-word;
    animation: chatMsgIn 0.25s ease;
}

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

.support-chat-msg.user {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(0, 234, 255, 0.25), rgba(0, 180, 220, 0.15));
    border: 1px solid rgba(0, 234, 255, 0.2);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.support-chat-msg.admin {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    border-bottom-left-radius: 4px;
}

.support-chat-msg-time {
    font-size: 0.65rem;
    opacity: 0.4;
    margin-top: 0.2rem;
}

.support-chat-typing {
    align-self: flex-start;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    padding: 0.4rem 0.9rem;
}

.support-chat-typing .dots {
    display: inline-flex;
    gap: 3px;
}

.support-chat-typing .dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 234, 255, 0.5);
    animation: chatTypingDot 1.2s infinite;
}

.support-chat-typing .dots span:nth-child(2) { animation-delay: 0.2s; }
.support-chat-typing .dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes chatTypingDot {
    0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-4px); }
}

.support-chat-form {
    padding: 0.8rem 1.2rem;
    border-top: 1px solid rgba(0, 234, 255, 0.1);
    flex-shrink: 0;
}

.support-chat-input-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.support-chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.6rem 0.9rem;
    color: #fff;
    font-size: 0.85rem;
    font-family: 'Rajdhani', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.support-chat-input:focus {
    border-color: rgba(0, 234, 255, 0.4);
}

.support-chat-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.support-chat-send {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, rgba(0, 234, 255, 0.8), rgba(0, 180, 220, 0.6));
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, opacity 0.2s;
    flex-shrink: 0;
}

.support-chat-send:hover {
    transform: scale(1.08);
}

.support-chat-send:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Guest info form */
.support-chat-guest-form {
    padding: 1.5rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.support-chat-guest-form h4 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    text-align: center;
}

.support-chat-guest-form p {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.support-chat-guest-form input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.7rem 0.9rem;
    color: #fff;
    font-size: 0.85rem;
    font-family: 'Rajdhani', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.support-chat-guest-form input:focus {
    border-color: rgba(0, 234, 255, 0.4);
}

.support-chat-guest-form input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.support-chat-guest-btn {
    background: linear-gradient(135deg, rgba(0, 234, 255, 0.8), rgba(0, 180, 220, 0.6));
    border: none;
    border-radius: 12px;
    padding: 0.7rem;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    cursor: pointer;
    transition: transform 0.2s;
}

.support-chat-guest-btn:hover {
    transform: scale(1.02);
}

.support-chat-welcome {
    text-align: center;
    padding: 2rem 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.support-chat-welcome i {
    font-size: 2rem;
    color: rgba(0, 234, 255, 0.4);
    margin-bottom: 0.8rem;
    display: block;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .support-chat-window {
        right: 0;
        bottom: 0;
        width: 100vw;
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }
}
