* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-bar {
    display: flex;
    gap: 20px;
    align-items: center;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.status-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff4444;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
    animation: pulse 2s infinite;
}

.status-light.connected {
    background: #44ff44;
    box-shadow: 0 0 10px rgba(68, 255, 68, 0.5);
    animation: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.login-container {
    background: white;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.login-btn {
    background: #9147ff;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
}

.login-btn:hover {
    background: #7c3aed;
}

.login-subtitle {
    margin: 20px 0;
}

.settings-panel {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.settings-panel h3 {
    margin-bottom: 15px;
    color: #333;
}

.settings-description {
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.filter-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 10px;
}

.filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.filter-tag {
    background: #9147ff;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-tag button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.chat-overlay {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    padding: 20px;
    min-height: 500px;
    max-height: 600px;
    overflow-y: auto;
    font-family: 'Inter', sans-serif;
}

.chat-placeholder {
    color: #999;
    text-align: center;
}

.chat-message {
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.chat-badges {
    display: inline-flex;
    gap: 4px;
    margin-right: 6px;
}

.chat-badge {
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

.chat-username {
    font-weight: bold;
    margin-right: 6px;
}

.chat-text {
    color: #fff;
    word-wrap: break-word;
}

.shared-chat-indicator {
    color: #ffa500;
    font-size: 11px;
    margin-left: 6px;
}

.expired-message {
    background: rgba(255, 68, 68, 0.2);
    border: 2px solid #ff4444;
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
    color: white;
}

.expired-message h3 {
    margin-bottom: 10px;
    color: #ff4444;
}

.reward-message {
    margin-bottom: 12px;
    padding: 12px 15px;
    border-radius: 8px;
    animation: slideIn 0.3s ease-out;
}

.automatic-reward {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 165, 0, 0.15) 100%);
    border-left: 4px solid #ffd700;
}

.custom-reward {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.15) 0%, rgba(126, 34, 206, 0.15) 100%);
    border-left: 4px solid #9333ea;
}

.reward-header {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.reward-icon {
    font-size: 16px;
}

.reward-image {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.reward-user {
    font-weight: bold;
    color: #ffd700;
}

.reward-text {
    color: #ccc;
}

.reward-name {
    font-weight: bold;
    color: #fff;
}

.reward-cost {
    color: #ffd700;
    font-size: 12px;
}

.reward-message-text {
    margin-top: 8px;
    padding-left: 22px;
    color: #fff;
    font-style: italic;
}

.reward-prompt {
    margin-top: 6px;
    padding-left: 22px;
    color: #aaa;
    font-size: 13px;
    font-style: italic;
}

.fullscreen-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
    margin-left: 10px;
}

.fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.fullscreen-mode .header,
.fullscreen-mode .settings-panel {
    display: none;
}

.fullscreen-mode {
    padding: 0 !important;
    max-width: 100% !important;
}

.chat-overlay.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    min-height: 100vh;
    border-radius: 0;
    z-index: 9999;
    margin: 0;
}

.fullscreen-exit-btn {
    display: none !important;
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 68, 68, 0.9);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    z-index: 10000;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.fullscreen-exit-btn:hover {
    background: rgba(255, 68, 68, 1);
    transform: scale(1.1);
}

.chat-overlay.fullscreen .fullscreen-exit-btn {
    display: block !important;
}
