.user-header {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.6);
    border-bottom: 2px solid rgba(172, 172, 172, 0.35);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.user-header:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.user-header__avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
}

.user-header__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-header__info {
    flex: 1;
    overflow: hidden;
}

.user-header__name {
    color: rgb(200, 200, 200);
    font-size: 16px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.user-header__settings-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s;
    opacity: 0.7;
}

.user-header__settings-btn:hover {
    transform: scale(1.2);
    opacity: 1;
}

.user-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.user-settings-modal.active {
    display: flex;
}

.user-settings-content {
    background-color: rgba(40, 40, 40, 0.95);
    border: 2px solid rgba(172, 172, 172, 0.5);
    border-radius: 10px;
    width: 400px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(172, 172, 172, 0.3);
}

.settings-header h2 {
    color: rgb(255, 255, 255);
    font-size: 20px;
    margin: 0;
}

.close-settings-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: rgb(150, 150, 150);
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.close-settings-btn:hover {
    color: rgb(255, 255, 255);
}

.settings-section {
    padding: 20px;
    border-bottom: 1px solid rgba(172, 172, 172, 0.2);
}

.settings-section:last-child {
    border-bottom: none;
}

.settings-section h3 {
    color: rgb(200, 200, 200);
    font-size: 16px;
    margin: 0 0 15px 0;
}

.avatar-setting {
    display: flex;
    align-items: center;
    gap: 20px;
}

.avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    overflow: hidden;
    flex-shrink: 0;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-actions {
    flex: 1;
}

.bubble-setting {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.current-bubble {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgb(150, 150, 150);
    font-size: 14px;
}

.current-bubble span:last-child {
    color: rgb(255, 255, 255);
    font-weight: bold;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #667eea;
    color: white;
}

.btn-primary:hover {
    background-color: #5568d3;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.5);
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
    width: 100%;
}

.btn-danger:hover {
    background-color: #c0392b;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.5);
}

.bubble-selector-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1100;
    justify-content: center;
    align-items: center;
}

.bubble-selector-modal.active {
    display: flex;
}

.bubble-selector-content {
    background-color: rgba(50, 50, 50, 0.95);
    border: 2px solid rgba(172, 172, 172, 0.5);
    border-radius: 10px;
    width: 600px;
    max-width: 90%;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.bubble-selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(172, 172, 172, 0.3);
    position: sticky;
    top: 0;
    background-color: rgba(50, 50, 50, 0.95);
}

.bubble-selector-header h3 {
    color: rgb(255, 255, 255);
    font-size: 18px;
    margin: 0;
}

.close-selector-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: rgb(150, 150, 150);
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.close-selector-btn:hover {
    color: rgb(255, 255, 255);
}

.bubble-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    padding: 20px;
}

.bubble-item {
    background-color: rgba(60, 60, 60, 0.8);
    border: 2px solid rgba(172, 172, 172, 0.3);
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.bubble-item:hover {
    border-color: rgba(231, 231, 234, 0.75);
    background-color: rgba(80, 80, 80, 0.8);
}

.bubble-item.selected {
    border-color: rgba(255, 215, 0, 0.75);
    background-color: rgba(100, 100, 100, 0.8);
}

.bubble-item__preview {
    margin-bottom: 10px;
}

.bubble-item__preview img {
    width: 100%;
    height: 60px;
    object-fit: contain;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
}

.bubble-item__name {
    color: rgb(200, 200, 200);
    font-size: 14px;
    font-weight: bold;
    text-align: center;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: rgba(172, 172, 172, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(172, 172, 172, 0.8);
}

.safety-setting {
    display: flex;
    align-items: center;
    gap: 15px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #555;
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #667eea;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.safety-label {
    color: white;
    font-size: 14px;
}