/* =====================================================================
   MAJESTIC CASINO - SUPPORT CHAT STYLES (PREMIUM & LUXURIOUS)
   ===================================================================== */

/* Floating Action Button (FAB) */
.support-chat-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e180e 0%, #0d0a06 100%);
    border: 2px solid #d4af37;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3), 0 0 0 1px rgba(212, 175, 55, 0.2);
    color: #d4af37;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.support-chat-fab:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5), 0 0 10px rgba(212, 175, 55, 0.2);
    color: #fff;
    background: linear-gradient(135deg, #d4af37 0%, #aa7c11 100%);
}

.support-chat-fab:active {
    transform: scale(0.95);
}

/* Pulsing Online Badge */
.support-chat-status-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #2ecc71;
    border: 2px solid #1e180e;
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.8);
}

.support-chat-fab:hover .support-chat-status-dot {
    border-color: #d4af37;
}

/* Pulsing Animation */
.support-chat-status-pulse {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #2ecc71;
    opacity: 0.7;
    animation: supportChatPulse 2s infinite;
    pointer-events: none;
}

@keyframes supportChatPulse {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

/* Chat Container Window */
.support-chat-container {
    position: fixed;
    bottom: 105px;
    right: 30px;
    width: 380px;
    height: 520px;
    max-height: calc(100vh - 150px);
    max-width: calc(100vw - 60px);
    z-index: 9998;
    display: none; /* Managed by JS */
    flex-direction: column;
    background: rgba(22, 17, 10, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.1);
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.support-chat-container.open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

/* Chat Header */
.support-chat-header {
    background: linear-gradient(90deg, #18130b 0%, #2a2012 100%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.support-chat-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.support-chat-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    border: 1.5px solid #d4af37;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4af37;
    font-size: 1.2rem;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.support-chat-avatar .online-indicator {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #2ecc71;
    border: 1.5px solid #18130b;
}

.support-chat-info {
    display: flex;
    flex-direction: column;
}

.support-chat-name {
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.support-chat-status {
    color: #2ecc71;
    font-size: 0.72rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.support-chat-close-btn {
    background: transparent;
    border: none;
    color: #8a909a;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.support-chat-close-btn:hover {
    color: #fff;
    transform: scale(1.1);
}

/* Chat Messages Area */
.support-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    scroll-behavior: smooth;
}

/* Scrollbar styles */
.support-chat-messages::-webkit-scrollbar {
    width: 6px;
}

.support-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.support-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.2);
    border-radius: 3px;
}

.support-chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.4);
}

/* Chat Message Bubbles */
.chat-msg {
    display: flex;
    flex-direction: column;
    max-width: 80%;
    animation: msgFadeIn 0.25s ease-out forwards;
}

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

.chat-msg.bot {
    align-self: flex-start;
}

.chat-msg.user {
    align-self: flex-end;
}

.chat-bubble {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
}

.chat-msg.bot .chat-bubble {
    background: rgba(30, 24, 15, 0.8);
    color: #eee;
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-top-left-radius: 2px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.chat-msg.user .chat-bubble {
    background: linear-gradient(135deg, #d4af37 0%, #aa7c11 100%);
    color: #000;
    font-weight: 500;
    border-top-right-radius: 2px;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.15);
}

.chat-time {
    font-size: 0.65rem;
    color: #6c727c;
    margin-top: 4px;
    align-self: flex-end;
}

.chat-msg.user .chat-time {
    color: #a49880;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    background: rgba(30, 24, 15, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    border-top-left-radius: 2px;
    align-self: flex-start;
    animation: msgFadeIn 0.25s ease-out forwards;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #d4af37;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Predefined Suggestions Panel (Chips) */
.support-chat-suggestions {
    padding: 10px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    background: rgba(18, 14, 8, 0.5);
}

.suggestion-chip {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: #d4af37;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggestion-chip:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: #d4af37;
    color: #fff;
    transform: translateY(-1px);
}

/* Chat Input Footer Area */
.support-chat-footer {
    padding: 12px 20px 20px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #0d0a06;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.support-chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 24px;
    padding: 10px 16px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    transition: all 0.25s ease;
}

.support-chat-input:focus {
    outline: none;
    border-color: #d4af37;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.15);
}

.support-chat-send-btn {
    background: linear-gradient(135deg, #d4af37 0%, #aa7c11 100%);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #000;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease, transform 0.1s active;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.support-chat-send-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 3px 12px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, #f1c40f 0%, #d4af37 100%);
}

.support-chat-send-btn:active {
    transform: scale(0.95);
}

/* =====================================================================
   MAJESTIC CASINO - LEVEL UP CELEBRATION MODAL STYLES
   ===================================================================== */

.level-up-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 8, 5, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    animation: levelUpFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes levelUpFadeIn {
    to { opacity: 1; }
}

.level-up-card {
    background: linear-gradient(135deg, #18130a 0%, #0c0905 100%);
    border: 2.5px solid #d4af37;
    border-radius: 24px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.25);
    padding: 40px;
    max-width: 460px;
    width: 90%;
    text-align: center;
    position: relative;
    overflow: hidden;
    transform: scale(0.85) translateY(30px);
    opacity: 0;
    animation: levelUpCardSlide 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.1s forwards;
}

@keyframes levelUpCardSlide {
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.level-up-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
    pointer-events: none;
    animation: levelUpBgRotate 15s linear infinite;
}

@keyframes levelUpBgRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.level-up-crown-container {
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.level-up-crown-icon {
    font-size: 3rem;
    color: #d4af37;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
    animation: levelUpCrownPulse 2s ease-in-out infinite;
}

@keyframes levelUpCrownPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.4));
    }
    50% {
        transform: scale(1.1) rotate(3deg);
        filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.8));
    }
}

.level-up-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #fff 10%, #d4af37 60%, #f3e5ab 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.level-up-subtitle {
    color: #8a909a;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.level-up-badge {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.level-up-badge-label {
    display: block;
    color: #d4af37;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.level-up-badge-value {
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
}

.level-up-reward-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 5px;
    color: #2ecc71;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
}

.level-up-reward-row i {
    animation: rewardBounce 1s infinite alternate;
}

@keyframes rewardBounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-3px); }
}

.level-up-btn {
    width: 100%;
    padding: 14px 20px;
    border-radius: 30px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: none;
    background: linear-gradient(135deg, #d4af37 0%, #aa7c11 100%);
    color: #000;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transition: all 0.25s ease;
    position: relative;
    z-index: 2;
}

.level-up-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
    background: linear-gradient(135deg, #f1c40f 0%, #d4af37 100%);
}

.level-up-btn:active {
    transform: translateY(1px);
}
