/* Live Chat Styles - Glass Overlay Design */
.livechat-content {
    max-width: 500px;
    height: 600px;
    display: flex;
    flex-direction: column;
    background: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'MinecraftRegular', monospace;
}

.livechat-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    background: rgba(40, 40, 40, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 16px 16px 0 0;
}

.livechat-header h3 {
    margin: 0 0 10px 0;
    color: #61dafb;
    font-size: 1.4em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'MinecraftRegular', monospace;
}

.chat-status {
    font-size: 0.9em;
    color: #a0a0a0;
    padding: 8px 16px;
    background: rgba(97, 218, 251, 0.2);
    border-radius: 6px;
    display: inline-block;
    transition: all 0.3s ease;
    border: 1px solid rgba(97, 218, 251, 0.3);
    font-family: 'MinecraftRegular', monospace;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(5px);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #222;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.chat-message {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 75%;
    word-wrap: break-word;
    display: flex;
    flex-direction: column;
    font-size: 0.95em;
    line-height: 1.4;
    position: relative;
    font-family: 'MinecraftRegular', monospace;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-message.user {
    background: rgba(97, 218, 251, 0.2);
    color: #fff;
    margin-left: auto;
    align-items: flex-end;
    box-shadow: 0 4px 16px rgba(97, 218, 251, 0.2);
}

.chat-message.support {
    background: rgba(60, 60, 60, 0.6);
    color: #fff;
    margin-right: auto;
    align-items: flex-start;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.chat-message-sender {
    font-size: 0.8em;
    font-weight: 600;
    margin-bottom: 6px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-message.user .chat-message-sender {
    color: #61dafb;
}

.chat-message.support .chat-message-sender {
    color: #a0a0a0;
}

.chat-message-content {
    margin-bottom: 4px;
}

.chat-message-time {
    font-size: 0.75em;
    opacity: 0.6;
    margin-top: 4px;
    font-family: 'MinecraftRegular', monospace;
}

.chat-typing {
    padding: 15px 20px;
    color: #61dafb;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'MinecraftRegular', monospace;
}

.chat-typing::before {
    content: '⚡';
    font-size: 1.2em;
    animation: typing 1.5s infinite ease-in-out;
}

@keyframes typing {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.chat-input-container {
    display: flex;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 12px;
    background: rgba(40, 40, 40, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 0 0 16px 16px;
}

#liveChatInput {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(30, 30, 30, 0.7);
    backdrop-filter: blur(10px);
    color: #fff;
    outline: none;
    font-size: 0.95em;
    transition: all 0.3s ease;
    font-family: 'MinecraftRegular', monospace;
}

#liveChatInput:focus {
    border-color: #61dafb;
    box-shadow: 0 0 0 3px rgba(97, 218, 251, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #333 0%, #222 100%);
}

#liveChatInput:disabled {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    color: #666;
    border-color: #333;
}

#liveChatSend {
    padding: 0;
    background: rgba(97, 218, 251, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(97, 218, 251, 0.5);
    border-radius: 12px;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(97, 218, 251, 0.3);
    font-size: 1.1em;
}

#liveChatSend:hover:not(:disabled) {
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(97, 218, 251, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

#liveChatSend:active {
    transform: translateY(0);
}

#liveChatSend:disabled {
    background: linear-gradient(135deg, #666 0%, #555 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    border-color: #555;
}

.chat-rating {
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    background: rgba(40, 40, 40, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 0 0 16px 16px;
}

.chat-rating h4 {
    color: #61dafb;
    margin-bottom: 16px;
    font-size: 1.2em;
    font-family: 'MinecraftRegular', monospace;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.rating-stars {
    margin: 16px 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.star {
    font-size: 2em;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.star:hover,
.star.active {
    color: #ffb74d;
    transform: scale(1.2) rotate(10deg);
    text-shadow: 0 0 10px rgba(255, 183, 77, 0.5);
}

#ratingComment {
    width: 100%;
    padding: 12px 16px;
    margin: 16px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(30, 30, 30, 0.7);
    backdrop-filter: blur(10px);
    color: #fff;
    resize: vertical;
    min-height: 80px;
    font-size: 0.95em;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'MinecraftRegular', monospace;
}

#ratingComment:focus {
    border-color: #61dafb;
    box-shadow: 0 0 0 3px rgba(97, 218, 251, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #333 0%, #222 100%);
}

.chat-rating button {
    background: rgba(97, 218, 251, 0.8);
    backdrop-filter: blur(10px);
    color: #000;
    border: 1px solid rgba(97, 218, 251, 0.5);
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(97, 218, 251, 0.3);
    font-family: 'MinecraftRegular', monospace;
}

.chat-rating button:hover {
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(97, 218, 251, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Dark Mode Support - Enhanced */
.dark-mode .livechat-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border-color: #333;
}

.dark-mode .livechat-header {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.dark-mode .chat-messages {
    background: linear-gradient(180deg, #0f0f0f 0%, #050505 100%);
}

.dark-mode .chat-message.support {
    background: linear-gradient(135deg, #333 0%, #222 100%);
    border-color: #444;
}

.dark-mode .chat-input-container {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.dark-mode #liveChatInput {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border-color: #444;
}

.dark-mode #liveChatInput:focus {
    background: linear-gradient(135deg, #222 0%, #111 100%);
}

.dark-mode .chat-rating {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.dark-mode #ratingComment {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border-color: #444;
}

.dark-mode #ratingComment:focus {
    background: linear-gradient(135deg, #222 0%, #111 100%);
}

/* Live Chat Status Indicator */
.top-right-info {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.livechat-status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 8px 16px;
    font-family: 'MinecraftRegular', monospace;
    font-size: 0.9em;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.livechat-status-indicator:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #dc3545;
    transition: all 0.3s ease;
    box-shadow: 0 0 12px rgba(220, 53, 69, 0.8), 0 0 20px rgba(220, 53, 69, 0.4);
    animation: pulse 2s infinite;
}

.livechat-status-indicator.enabled .status-dot {
    background: #28a745;
    box-shadow: 0 0 12px rgba(40, 167, 69, 0.8), 0 0 20px rgba(40, 167, 69, 0.4);
}

.livechat-status-indicator.disabled .status-dot {
    background: #dc3545;
    box-shadow: 0 0 12px rgba(220, 53, 69, 0.8), 0 0 20px rgba(220, 53, 69, 0.4);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.status-text {
    font-weight: 500;
}

/* Mobile Responsive for Live Chat */
@media (max-width: 900px) {
    .top-right-info {
        top: 10px;
        right: 10px;
    }
    
    .livechat-status-indicator {
        padding: 6px 12px;
        font-size: 0.8em;
    }
    
    .status-dot {
        width: 10px;
        height: 10px;
    }
    .livechat-content {
        width: 95%;
        height: 80vh;
        margin: 10px;
        border-radius: 10px;
    }
    
    .livechat-header {
        padding: 16px;
        border-radius: 8px 8px 0 0;
    }
    
    .livechat-header h3 {
        font-size: 1.2em;
    }
    
    .chat-messages {
        padding: 16px;
    }
    
    .chat-input-container {
        padding: 16px;
        border-radius: 0 0 8px 8px;
        gap: 12px;
    }
    
    .chat-message {
        max-width: 85%;
        font-size: 0.9em;
        padding: 12px 16px;
    }
    
    #liveChatSend {
        width: 45px;
        height: 45px;
    }
    
    .rating-stars {
        gap: 6px;
    }
    
    .star {
        font-size: 1.6em;
    }
}
.support-icon {
    position: relative;
}

.support-status-dot {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #dc3545;
    box-shadow: 0 0 12px rgba(220, 53, 69, 0.8);
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
}

.support-status-dot.online {
    background: #28a745;
    box-shadow: 0 0 12px rgba(40, 167, 69, 0.8);
}

.support-status-dot.offline {
    background: #dc3545;
    box-shadow: 0 0 12px rgba(220, 53, 69, 0.8);
    animation: none;
    opacity: 0.7;
}

/* Live chat card dimmed when unavailable */
.support-card[data-chat-enabled="0"] {
    opacity: 0.65;
    filter: grayscale(0.3);
}
.support-card[data-chat-enabled="0"]:hover {
    transform: none;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.2);
    cursor: not-allowed;
}
/* Custom Modal Styles - Frosted Glass */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-modal-content {
    position: relative;
    max-width: 400px;
    width: 90%;
    background: rgba(63, 63, 63, 0.8);
    border: 2px solid #DCDCDC;
    border-radius: 18px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.custom-modal-header {
    padding: 30px;
    text-align: center;
}

.custom-modal-header h2 {
    color: #61dafb;
    margin: 0 0 15px 0;
    font-family: 'Minecraft Five Bold', Arial, sans-serif;
    font-size: 1.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.custom-modal-header p {
    color: white;
    margin: 0;
    font-family: 'minecraft-regular', sans-serif;
    line-height: 1.6;
}

.custom-modal-body {
    padding: 0 30px 20px 30px;
}

.custom-modal-body p {
    color: white;
    margin: 0 0 20px 0;
    font-family: 'minecraft-regular', sans-serif;
    line-height: 1.6;
}

.custom-modal input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(30, 30, 30, 0.7);
    backdrop-filter: blur(10px);
    color: #fff;
    outline: none;
    font-family: 'minecraft-regular', sans-serif;
    margin-bottom: 20px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.custom-modal input:focus {
    border-color: #61dafb;
    box-shadow: 0 0 0 3px rgba(97, 218, 251, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #333 0%, #222 100%);
}

.custom-modal-actions {
    padding: 20px 30px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.custom-modal button {
    padding: 12px 24px;
    border: 1px solid rgba(97, 218, 251, 0.5);
    border-radius: 12px;
    cursor: pointer;
    font-family: 'minecraft-regular', sans-serif;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(97, 218, 251, 0.3);
}

.custom-modal .btn-primary {
    background: rgba(97, 218, 251, 0.8);
    color: #000;
    border: 1px solid rgba(97, 218, 251, 0.5);
}

.custom-modal .btn-primary:hover {
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(97, 218, 251, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.custom-modal .btn-secondary {
    background: rgba(128, 128, 128, 0.8);
    color: #fff;
    border: 1px solid rgba(128, 128, 128, 0.5);
}

.custom-modal .btn-secondary:hover {
    background: linear-gradient(135deg, #999 0%, #777 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(128, 128, 128, 0.4);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(97, 218, 251, 0.2);
    border: 1px solid rgba(97, 218, 251, 0.3);
    font-size: 1.2rem;
    color: #61dafb;
    cursor: pointer;
    z-index: 1;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.modal-close:hover {
    background: rgba(97, 218, 251, 0.8);
    color: #000;
    transform: scale(1.1);
}
.btn-play {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(97, 218, 251, 0.8);
    border: 1px solid rgba(97, 218, 251, 0.5);
    color: #000;
    cursor: pointer;
    font-family: 'minecraft-regular', sans-serif;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(97, 218, 251, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
}

.btn-play:hover {
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(97, 218, 251, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}